.sp-events-public {
  --sp-bg: #f8fafc;
  --sp-surface: #ffffff;
  --sp-border: #d9e1ee;
  --sp-text: #111827;
  --sp-sub: #6b7280;
  --sp-blue: #2f63e0;
  --sp-blue-2: #1f56da;
  --sp-blue-soft: #e8efff;
  --sp-green: #69b540;
  --sp-shadow: 0 8px 26px rgba(17, 24, 39, 0.06);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--sp-text);
  box-shadow: none;
  overflow: visible;
}

.sp-events-public__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0 16px;
  border-top: 0;
}

.sp-events-public__toolbar-left,
.sp-events-public__toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hard scope controls to avoid theme/Elementor overrides */
.sp-events-public .sp-events-public__toolbar input.sp-events-public__q,
.sp-events-public .sp-events-public__toolbar button.sp-events-public__filter,
.sp-events-public .sp-events-public__toolbar button.sp-events-public__mode-btn,
.sp-events-public .sp-events-public__toolbar select.sp-events-public__segment {
  box-sizing: border-box !important;
  font-size: 15px !important;
  line-height: 1 !important;
  margin: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.sp-events-public__q {
  width: 248px;
  border: 1px solid #d7dde8!important;
  border-radius: 8px!important;
  font-size: 15px;
  height: 38px;
  padding: 0 12px 0 34px;
  text-indent: 16px;
  background-color: #f7f9fc!important;
  background-repeat: no-repeat;
  background-position: 10px 50%;
  background-size: 14px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M11.5 11.5L14.5 14.5' stroke='%23909AAF' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='7' cy='7' r='4.8' stroke='%23909AAF' stroke-width='1.6'/%3E%3C/svg%3E");
  outline: none;
  transition: border-color 0.16s ease, background-color 0.16s ease;
  color: #4b5563;
}

.sp-events-public__q:focus {
  border-color: #c6cfde;
  background-color: #ffffff!important;
  box-shadow: none;
}

.sp-events-public__filter,
.sp-events-public__segment {
  border: 1px solid #d7dde8;
  border-radius: 8px;
  background: #fff!important;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  padding: 0 14px;
  font-size: 15px;
  line-height: 38px;
  color: #2f3b52 !important;
}

.sp-events-public__filter {
  -webkit-appearance: none !important;
  appearance: none !important;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.16s ease, background 0.16s ease;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2f3b52;
}

.sp-events-public__filter .bi {
  font-size: 13px;
  opacity: 0.72;
}

.sp-events-public__filter:hover {
  background: #f7f9fc !important;
  border-color: #c3cede !important;
  color: #2f3b52;
}

.sp-events-public__mode {
  display: inline-flex;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  gap: 8px;
}

.sp-events-public__mode-btn {
  -webkit-appearance: none !important;
  appearance: none !important;
  border: 0;
  background: #e7efff!important;
  color: #2f63e0 !important;
  border-radius: 8px;
  height: 38px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  outline: none;
  text-align: left;
}

.sp-events-public__mode-btn .bi {
  font-size: 13px;
  line-height: 1;
}

.sp-events-public__mode-btn:hover,
.sp-events-public__mode-btn:focus {
  color: #2f63e0 !important;
  background: #dce8ff !important;
}

.sp-events-public__mode-btn.is-active {
  background: #2f63e0 !important;
  color: #fff !important;
  box-shadow: none;
}

.sp-events-public__mode-btn.is-active:hover,
.sp-events-public__mode-btn.is-active:focus {
  color: #fff;
  background: #2f63e0 !important;
}

.sp-events-public__segment {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: #fff !important;
  color: #1f2937 !important;
  border-color: #d1d9e6 !important;
  border-radius: 8px;
  padding-left: 14px;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%2364738B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
}

.sp-events-public .sp-events-public__toolbar button.sp-events-public__filter:hover,
.sp-events-public .sp-events-public__toolbar button.sp-events-public__filter:focus,
.sp-events-public .sp-events-public__toolbar button.sp-events-public__filter:active,
.sp-events-public .sp-events-public__toolbar button.sp-events-public__mode-btn:hover,
.sp-events-public .sp-events-public__toolbar button.sp-events-public__mode-btn:focus,
.sp-events-public .sp-events-public__toolbar button.sp-events-public__mode-btn:active {
  text-decoration: none !important;
  outline: none !important;
}

.sp-events-public .sp-events-public__toolbar input.sp-events-public__q::placeholder {
  color: #7a869a !important;
  opacity: 1 !important;
}

.sp-events-public__status {
  min-height: 20px;
  padding: 0 0 10px;
  font-size: 14px;
  color: var(--sp-sub);
}

.sp-events-public__status.is-error {
  color: #b42318;
}

.sp-events-public__list-view,
.sp-events-public__calendar-view {
  display: none;
  background: var(--sp-surface);
}

.sp-events-public__list-view.is-active,
.sp-events-public__calendar-view.is-active {
  display: block;
}

.sp-events-public__list-view {
  border: 1px solid var(--sp-border);
  border-radius: 8px;
  overflow: hidden;
}

.sp-events-public__list-head {
  display: grid;
  grid-template-columns: 1.9fr 0.56fr 0.42fr 0.42fr;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
  font-weight: 500;
  font-size: 13px;
  color: #2a3a59;
  border-bottom: 1px solid var(--sp-border);
  letter-spacing: 0.01em;
}

.sp-events-public__row {
  display: grid;
  grid-template-columns: 1.9fr 0.56fr 0.42fr 0.42fr;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--sp-border);
  background: var(--sp-surface);
  transition: background 0.12s ease;
  cursor: pointer;
}

.sp-events-public__row:hover {
  background: #f9fbff;
}

.sp-events-public__row:last-child {
  border-bottom: 0;
}

.sp-events-public__event-col {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sp-events-public__date-badge {
  width: 48px;
  text-align: center;
}

.sp-events-public__date-month {
  color: #f97316;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sp-events-public__date-day {
  color: #4b5563;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.sp-events-public__thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e3e8f3;
  flex: 0 0 72px;
}

.sp-events-public__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-events-public__thumb-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #dbeafe, #eff6ff);
}

.sp-events-public__event-main {
  min-width: 0;
}

.sp-events-public__event-title {
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 5px;
  color: #1f2937;
}

.sp-events-public__event-sub {
  color: var(--sp-sub);
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 3px;
}

.sp-events-public__event-time {
  font-size: 13px;
  color: #374151;
}

.sp-events-public__sold-col {
  min-width: 120px;
}

.sp-events-public__sold-text {
  color: #4b5563;
  margin-bottom: 6px;
  font-size: 14px;
}

.sp-events-public__bar {
  height: 6px;
  border-radius: 999px;
  background: #e6ebf4;
  overflow: hidden;
}

.sp-events-public__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #6dbc44, #85c85f);
}

.sp-events-public__gross-col {
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
}

.sp-events-public__status-col {
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.sp-events-public__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sp-green);
  display: inline-block;
}

.sp-events-public__calendar-view {
  padding: 12px 20px 18px;
}

.sp-events-public__calendar {
  min-height: 680px;
}

.sp-events-public .ec {
  --ec-border-color: #d9e1ee;
  --ec-button-bg-color: #fff;
  --ec-button-text-color: #1f2937;
  --ec-button-active-bg-color: #e8efff;
  --ec-button-active-text-color: #2156da;
  --ec-event-bg-color: #4f95ea;
  --ec-event-text-color: #fff;
}

.sp-events-public .ec-toolbar {
  margin-bottom: 12px;
  border: 0;
  border-radius: 8px;
  padding: 10px 0;
  background: transparent;
}

.sp-events-public .ec-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.sp-events-public .ec .ec-button {
  background: #f3f7ff !important;
  color: #334155 !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-weight: 600;
  min-height: 44px;
  padding: 0 14px;
}

.sp-events-public .ec .ec-button:hover {
  background: #e8efff !important;
  color: #2156da !important;
}

.sp-events-public .ec .ec-button.ec-active,
.sp-events-public .ec .ec-button.ec-selected,
.sp-events-public .ec .ec-button.ec-today {
  background: #e8efff !important;
  color: #2156da !important;
  border-color: #9db3e7 !important;
}

.sp-events-public .ec .ec-button-group {
  display: inline-flex;
  gap: 6px;
}

.sp-events-public__empty {
  padding: 16px 20px;
  color: var(--sp-sub);
  font-size: 14px;
}
button.ec-button {
  display: block!important;
}
.ec-grid .ec-day {
  min-block-size: 8em!important;
}
@media (max-width: 1024px) {
  .sp-events-public__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .sp-events-public__toolbar-left,
  .sp-events-public__toolbar-right {
    width: 100%;
  }

  .sp-events-public__q {
    width: 100%;
  }

  .sp-events-public__segment {
    margin-left: auto;
  }

  .sp-events-public__list-head,
  .sp-events-public__row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
