@media (max-width: 899px), (hover: none) and (pointer: coarse) {
  .ss-mobile-filter-sheet-enabled .browse-festivals-page .browse-toolbar .ss-select-wrap,
  .ss-mobile-filter-sheet-enabled .page-template-browse-festivals .browse-toolbar .ss-select-wrap {
    position: relative;
  }

  .ss-mobile-filter-sheet-enabled .browse-festivals-page .browse-toolbar .ss-select-wrap select,
  .ss-mobile-filter-sheet-enabled .page-template-browse-festivals .browse-toolbar .ss-select-wrap select {
    display: none !important;
  }

  .ss-mobile-filter-sheet-enabled .browse-festivals-page .browse-toolbar .ss-select-wrap .ss-select-value,
  .ss-mobile-filter-sheet-enabled .page-template-browse-festivals .browse-toolbar .ss-select-wrap .ss-select-value {
    display: none !important;
  }

  .ss-mobile-filter-sheet-enabled .browse-festivals-page .browse-toolbar .ss-select-wrap .ss-select-chevron,
  .ss-mobile-filter-sheet-enabled .page-template-browse-festivals .browse-toolbar .ss-select-wrap .ss-select-chevron {
    display: none !important;
  }

  .ss-mobile-filter-trigger {
    box-sizing: border-box;
    width: 100%;
    min-height: var(--browse-toolbar-height, 56px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 48px 0 18px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .ss-mobile-filter-trigger::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239aa1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  }

  .ss-mobile-filter-trigger:disabled {
    cursor: default;
    opacity: 0.72;
  }

  .ss-mobile-filter-trigger__label {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--ss-page-body-size, 1rem);
    font-weight: 500;
    line-height: 1.2;
  }

  .ss-mobile-filter-sheet-enabled .browse-festivals-page .browse-toolbar .ss-select-wrap[data-mobile-sheet-open="true"],
  .ss-mobile-filter-sheet-enabled .page-template-browse-festivals .browse-toolbar .ss-select-wrap[data-mobile-sheet-open="true"] {
    border-color: color-mix(in srgb, var(--ghost-accent-color, #15171A) 26%, var(--ss-border, rgba(0, 0, 0, 0.12)) 74%);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ghost-accent-color, #15171A) 10%, transparent);
  }
}

.ss-mobile-filter-sheet-open,
.ss-mobile-filter-sheet-open body {
  overflow: hidden;
}

.ss-mobile-filter-sheet {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.ss-mobile-filter-sheet.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ss-mobile-filter-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(8, 12, 20, 0.66);
  -webkit-backdrop-filter: blur(10px) saturate(1.03);
  backdrop-filter: blur(10px) saturate(1.03);
}

.ss-mobile-filter-sheet__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 42rem);
  max-height: min(84vh, 44rem);
  display: flex;
  flex-direction: column;
  border-radius: 30px 30px 0 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.975);
  box-shadow:
    0 -24px 58px rgba(15, 23, 42, 0.24),
    0 -4px 12px rgba(15, 23, 42, 0.1);
  transform: translateY(22px);
  transition: transform 0.24s ease;
  overflow: hidden;
}

.ss-mobile-filter-sheet.is-open .ss-mobile-filter-sheet__panel {
  transform: translateY(0);
}

.ss-mobile-filter-sheet__panel.is-dragging {
  transition: none;
}

.ss-mobile-filter-sheet__handle {
  align-self: center;
  width: 2.9rem;
  height: 0.325rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.72);
  margin: 0.85rem 0 0.4rem;
  touch-action: none;
}

.ss-mobile-filter-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem 0.95rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.985);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.ss-mobile-filter-sheet__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #111111;
}

.ss-mobile-filter-sheet__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.045);
  color: #111111;
  font-size: 1.35rem;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 1px 2px rgba(15, 23, 42, 0.04);
  position: relative;
  z-index: 2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.ss-mobile-filter-sheet__list {
  overflow: auto;
  padding: 0.35rem 0 1.1rem;
  padding-bottom: calc(1.1rem + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}

.ss-mobile-filter-sheet__option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.45rem;
  padding: 0.9rem 1.1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.ss-mobile-filter-sheet__option + .ss-mobile-filter-sheet__option {
  border-top: 1px solid rgba(15, 23, 42, 0.075);
}

.ss-mobile-filter-sheet__option.is-clear .ss-mobile-filter-sheet__option-text {
  opacity: 0.78;
}

.ss-mobile-filter-sheet__option.is-selected {
  background: rgba(211, 47, 47, 0.055);
  box-shadow: inset 0 0 0 1px rgba(211, 47, 47, 0.12);
}

.ss-mobile-filter-sheet__option:active {
  background: color-mix(in srgb, currentColor 4%, transparent);
}

.ss-mobile-filter-sheet__option-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #1f1f1f;
}

.ss-mobile-filter-sheet__option.is-selected .ss-mobile-filter-sheet__option-text {
  font-weight: 630;
  color: #181818;
}

.ss-mobile-filter-sheet__option-check {
  flex: 0 0 auto;
  min-width: 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: #d32f2f;
  opacity: 0.96;
}

.ss-mobile-filter-sheet__option:not(.is-selected) .ss-mobile-filter-sheet__option-check {
  opacity: 0;
}

@media (prefers-color-scheme: dark) {
  .ss-mobile-filter-trigger::after {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23cfd3da' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  }

  .ss-mobile-filter-sheet__backdrop {
    background: rgba(2, 6, 23, 0.76);
  }

  .ss-mobile-filter-sheet__panel {
    border-color: rgba(255, 255, 255, 0.12);
    background: color-mix(in srgb, var(--ss-surface, #0f1115) 98%, black 2%);
    box-shadow:
      0 -22px 56px rgba(2, 6, 23, 0.54),
      0 -4px 12px rgba(2, 6, 23, 0.24);
  }

  .ss-mobile-filter-sheet__header,
  .ss-mobile-filter-sheet__option + .ss-mobile-filter-sheet__option {
    border-color: rgba(255, 255, 255, 0.08);
  }

  .ss-mobile-filter-sheet__header {
    background: color-mix(in srgb, var(--ss-surface, #0f1115) 97%, rgba(255, 255, 255, 0.03) 3%);
  }

  .ss-mobile-filter-sheet__title {
    color: rgba(248, 250, 252, 0.96);
  }

  .ss-mobile-filter-sheet__close {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(248, 250, 252, 0.94);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 1px 2px rgba(0, 0, 0, 0.18);
  }

  .ss-mobile-filter-sheet__option.is-selected {
    background: color-mix(in srgb, var(--ghost-accent-color, #ff6b6b) 11%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ghost-accent-color, #ff6b6b) 18%, transparent);
  }

  .ss-mobile-filter-sheet__option:active {
    background: rgba(255, 255, 255, 0.05);
  }

  .ss-mobile-filter-sheet__option-text {
    color: rgba(241, 245, 249, 0.92);
  }

  .ss-mobile-filter-sheet__option.is-selected .ss-mobile-filter-sheet__option-text {
    color: rgba(255, 255, 255, 0.98);
  }

  .ss-mobile-filter-sheet__option-check {
    color: color-mix(in srgb, var(--ghost-accent-color, #ff6b6b) 78%, white 22%);
  }
}
