.ofs {
  --ofs-accent: #f26718;
  --ofs-accent-dark: #d95008;
  --ofs-text: #2e2323;
  --ofs-muted: #746c68;
  --ofs-border: #e9e3df;
  position: relative;
  width: auto;
  color: var(--ofs-text);
}

.ofs__compact { display: flex; align-items: stretch; }
.ofs__advanced-trigger {
  min-height: 44px; border: 1px solid var(--ofs-accent); padding: 0 18px; background: #fff; color: var(--ofs-accent); font-size: 12px; font-weight: 700; cursor: pointer; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ofs__advanced-trigger:hover, .ofs__advanced-trigger:focus { background: var(--ofs-accent); color: #fff; box-shadow: 0 7px 18px rgba(242, 103, 24, .22); outline: 0; transform: translateY(-1px); }
.ofs__advanced-trigger--active { border-color: var(--ofs-accent); background: #fff4ec; box-shadow: inset 0 0 0 1px rgba(242, 103, 24, .08); animation: ofs-active-pulse 1.15s ease-in-out infinite; }
.ofs__advanced-trigger--active:hover { animation-play-state: paused; }
.ofs__active-dot { display: inline-block; width: 7px; height: 7px; margin: 0 2px 0 0; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(242, 103, 24, .14); }
.ofs__advanced-trigger--active:hover .ofs__active-dot, .ofs__advanced-trigger--active:focus .ofs__active-dot { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .2); }
.ofs__advanced-icon { margin-right: 6px; }
.ofs__advanced-label-mobile { display: none; }
.ofs__backdrop { position: fixed; z-index: 10040; inset: 0; background: rgba(35, 27, 24, .48); backdrop-filter: blur(2px); }
.ofs__panel {
  position: fixed; z-index: 10050; top: var(--ofs-header-bottom, 90px); right: 0; left: 0; border-top: 3px solid var(--ofs-accent); background: linear-gradient(110deg, #fff 0%, #fff 64%, #fffaf6 100%);
  max-height: calc(100vh - var(--ofs-header-bottom, 90px)); overflow-y: auto; box-shadow: 0 18px 42px rgba(35, 27, 24, .2); animation: ofs-panel-in .22s ease-out;
}
.ofs__panel-inner { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 26px 0 32px; }
.ofs__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.ofs__heading { display: flex; align-items: center; gap: 14px; }
.ofs__heading-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #fff0e7; color: var(--ofs-accent); font-size: 18px; }
.ofs__header h2 { margin: 0 0 3px; color: var(--ofs-text); font-size: 24px; line-height: 1.2; }
.ofs__header p { margin: 0; color: var(--ofs-muted); font-size: 13px; }
.ofs__close { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--ofs-border); border-radius: 50%; background: #fff; color: var(--ofs-text); font-size: 27px; line-height: 1; cursor: pointer; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.ofs__close:hover, .ofs__close:focus { border-color: var(--ofs-accent); color: var(--ofs-accent); outline: 0; transform: rotate(6deg); }
.ofs__form { display: block; }
.ofs__field > label, .ofs__options legend { display: block; margin-bottom: 10px; color: var(--ofs-muted); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ofs__query-row { display: flex; }
.ofs__query-row input { flex: 1 1 auto; min-width: 0; height: 52px; border: 1px solid var(--ofs-border); border-right: 0; border-radius: 8px 0 0 8px; padding: 0 17px; background: #fff; color: var(--ofs-text); transition: border-color .2s ease, box-shadow .2s ease; }
.ofs__query-row input:focus { position: relative; z-index: 1; border-color: var(--ofs-accent); box-shadow: 0 0 0 3px rgba(242, 103, 24, .12); outline: 0; }
.ofs__query-row button { flex: 0 0 auto; min-width: 112px; border: 0; border-radius: 0 8px 8px 0; padding: 0 22px; background: var(--ofs-accent); color: #fff; font-weight: 700; cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease; }
.ofs__query-row button:hover, .ofs__query-row button:focus { background: var(--ofs-accent-dark); box-shadow: 0 7px 18px rgba(242, 103, 24, .2); outline: 0; }
.ofs__reset { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 132px; margin-left: 9px; border: 1px solid var(--ofs-border); border-radius: 8px; padding: 0 16px; background: #fff; color: var(--ofs-muted); font-size: 12px; font-weight: 700; text-decoration: none; transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
.ofs__reset:hover, .ofs__reset:focus { border-color: var(--ofs-accent); background: #fff7f1; color: var(--ofs-accent); text-decoration: none; outline: 0; }
.ofs__reset i { margin-right: 6px; }
.ofs__suggestions { margin-top: 10px; border: 1px solid var(--ofs-border); border-radius: 10px; background: #fff; box-shadow: 0 12px 28px rgba(35, 27, 24, .1); overflow: hidden; }
.ofs__suggestions-status { min-height: 35px; border-bottom: 1px solid #f0ebe8; padding: 9px 13px; background: #fffaf7; color: var(--ofs-muted); font-size: 12px; font-weight: 600; }
.ofs__suggestions-status--error { color: #a94442; }
.ofs__suggestions-list { max-height: clamp(180px, calc(100vh - var(--ofs-header-bottom, 90px) - 390px), 420px); overflow-y: auto; overscroll-behavior: contain; }
.ofs__suggestion { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 68px; border-bottom: 1px solid #f3efec; padding: 7px 13px; color: var(--ofs-text); text-decoration: none; transition: background-color .18s ease; }
.ofs__suggestion:hover, .ofs__suggestion:focus { background: #fff7f1; color: var(--ofs-text); text-decoration: none; outline: 0; }
.ofs__suggestion-image { width: 46px; height: 55px; border-radius: 6px; object-fit: contain; background: #f8f6f4; }
.ofs__suggestion-content { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.ofs__suggestion-content strong { overflow: hidden; font-size: 13px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.ofs__suggestion-availability { font-size: 11px; }
.ofs__suggestion-availability.is-available { color: #548f38; }
.ofs__suggestion-availability.is-unavailable { color: #a06e28; }
.ofs__suggestion-price { color: var(--ofs-accent-dark); font-size: 13px; font-weight: 700; white-space: nowrap; }
.ofs__suggestions-all { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 13px; background: #fff4ec; color: var(--ofs-accent-dark); font-size: 12px; font-weight: 700; text-decoration: none; }
.ofs__suggestions-all:hover, .ofs__suggestions-all:focus { background: var(--ofs-accent); color: #fff; text-decoration: none; outline: 0; }
.ofs__suggestions-all i { margin-left: 7px; }
.ofs__options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0 0; border: 1px solid var(--ofs-border); border-radius: 12px; padding: 16px; background: rgba(255, 255, 255, .9); }
.ofs__options legend { float: none; grid-column: 1 / -1; width: auto; margin: 0; padding: 0 7px; }
.ofs__options .ofs__category-context { grid-column: 1 / -1; min-height: 54px; border-color: #f5c8ad; background: linear-gradient(90deg, #fff4ec 0%, #fffaf7 100%); }
.ofs__category-context span { display: flex; align-items: center; gap: 10px; }
.ofs__category-context strong { color: var(--ofs-accent-dark); }
.ofs__category-context small { border-left: 1px solid #efc3a8; padding-left: 10px; color: var(--ofs-muted); font-size: 12px; }
.ofs__options label { display: flex; align-items: center; gap: 11px; min-height: 62px; margin: 0; border: 1px solid transparent; border-radius: 9px; padding: 11px 14px; background: #faf8f6; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.ofs__options label:hover { border-color: #f5c8ad; background: #fff7f1; transform: translateY(-1px); }
.ofs__options label:has(input:checked) { border-color: var(--ofs-accent); background: #fff4ec; box-shadow: 0 5px 14px rgba(242, 103, 24, .1); }
.ofs__options input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: var(--ofs-accent); }
.ofs__options span { color: var(--ofs-text); font-weight: 500; line-height: 1.3; }
body.ofs-is-open { overflow: hidden; }

.ofs-empty { max-width: 760px; margin: 35px auto 70px; border: 1px solid var(--ofs-border, #e9e3df); border-top: 3px solid #f26718; border-radius: 12px; padding: 50px 35px; background: linear-gradient(135deg, #fff 0%, #fff7f1 100%); box-shadow: 0 14px 35px rgba(35, 27, 24, .08); text-align: center; }
.ofs-empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; margin-bottom: 20px; border-radius: 50%; background: #fff0e7; color: #f26718; font-size: 25px; }
.ofs-empty h2 { margin: 0 0 10px; color: #2e2323; font-size: 29px; }
.ofs-empty p { max-width: 520px; margin: 0 auto 24px; color: #746c68; font-size: 15px; }
.ofs-empty__button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid #f26718; border-radius: 8px; padding: 0 22px; background: #f26718; color: #fff; font-weight: 700; text-decoration: none; transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.ofs-empty__button:hover, .ofs-empty__button:focus { background: #d95008; color: #fff; box-shadow: 0 8px 20px rgba(242, 103, 24, .24); text-decoration: none; outline: 0; transform: translateY(-1px); }
.ofs-empty__button i { margin-right: 7px; }

@keyframes ofs-panel-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ofs-active-pulse {
  0%, 100% { border-color: var(--ofs-accent); background-color: #fff4ec; color: var(--ofs-accent); box-shadow: 0 0 0 0 rgba(242, 103, 24, .12); }
  50% { border-color: var(--ofs-accent-dark); background-color: var(--ofs-accent); color: #fff; box-shadow: 0 0 0 7px rgba(242, 103, 24, .22), 0 7px 18px rgba(242, 103, 24, .25); }
}

@media (max-width: 991px) {
  .ofs { width: auto; }
  .ofs__advanced-trigger { min-height: 42px; }
  .ofs__panel { top: 0; bottom: 0; overflow-y: auto; }
  .ofs__panel-inner { width: 100%; min-height: 100%; padding: 18px; }
  .ofs__heading-icon { display: none; }
  .ofs__header p { display: none; }
  .ofs__options { display: grid; grid-template-columns: 1fr; margin-top: 25px; }
  .ofs__query-row { display: block; }
  .ofs__query-row input, .ofs__query-row button, .ofs__reset { width: 100%; }
  .ofs__query-row button { height: 48px; margin-top: 10px; }
  .ofs__reset { min-height: 44px; margin: 9px 0 0; }
  .ofs__suggestions-list { max-height: 42vh; }
  .ofs__suggestion { grid-template-columns: 48px minmax(0, 1fr) auto; padding-right: 9px; padding-left: 9px; }
  .ofs-empty { margin: 20px auto 45px; padding: 38px 20px; }
  .ofs-empty h2 { font-size: 25px; }
}

@media (max-width: 991px) {
  #mobile-btn-search .ofs__advanced-trigger {
    display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; border: 0; padding: 0; background: transparent; color: inherit; font-size: inherit; font-weight: inherit;
  }
  #mobile-btn-search .ofs__advanced-icon { margin: 0; font-size: 18px; }
  #mobile-btn-search .ofs__advanced-label { display: none; }
  #mobile-btn-search .ofs__advanced-label-mobile { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .ofs * { scroll-behavior: auto !important; }
  .ofs__panel, .ofs__advanced-trigger--active { animation: none !important; }
}
