/* ───────────────────────────────────────────────────────────────────────────
   pretty-select.css — unified look for every native <select> on the storefront.

   Resets the browser chrome (chevron, gradient, focus ring) and replaces it
   with a brand-aligned style: white surface, soft brown border, custom chevron
   SVG glued to the right via background-image.

   We use a `:not()` allow-list so selects that already carry a bespoke skin
   (filter sidebar, checkout phone-country, account return wizard, etc.) keep
   their original styling untouched — fighting two stylesheets always loses.
   ─────────────────────────────────────────────────────────────────────────── */

#content select:not(.ot-skip):not(.osf-select):not(.osf-select-multi):not(.osf-category-input):not(.otc-phone__select):not(.otc-addr-picker__native):not(.cart-checkout_select):not(.acc-ret-sheet-preview__qty-select):not(.acc-ret-item__reason-select):not(.acc-ret-item__qty):not(.acc-pwd-field__input):not(.ot-cart__qty-select):not(.popup-cart__qty-select):not(.otc-gift-input):not([multiple]),
#column-left select:not(.ot-skip):not(.osf-select):not(.osf-select-multi):not(.osf-category-input):not([multiple]),
#column-right select:not(.ot-skip):not(.osf-select):not(.osf-select-multi):not(.osf-category-input):not([multiple]),
.onetap-search-overlay select:not(.ot-skip):not([multiple]),
.popup-cart select:not(.ot-skip):not(.popup-cart__qty-select):not([multiple]),
.ot-account-popup select:not(.ot-skip):not([multiple]),
.ot-ss select:not(.ot-skip):not([multiple]),
body > .modal select:not(.ot-skip):not([multiple]) {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  background-color: #ffffff;
  border: 1px solid #d6cfc4;
  border-radius: 10px;
  color: #1a1a1a;

  font: inherit;
  font-size: 14px;
  line-height: 1.4;

  padding: 10px 32px 10px 14px;
  min-height: 42px;

  /* Custom chevron — inline SVG so no extra HTTP. 10px from right edge,
     vertically centered. Stroke matches body text colour. */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%231a1a1a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;

  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  outline: none;
  text-overflow: ellipsis;
}

#content select:not(.ot-skip):not(.osf-select):not(.osf-select-multi):not(.osf-category-input):not(.otc-phone__select):not(.otc-addr-picker__native):not(.cart-checkout_select):not(.acc-ret-sheet-preview__qty-select):not(.acc-ret-item__reason-select):not(.acc-ret-item__qty):not(.acc-pwd-field__input):not(.ot-cart__qty-select):not(.popup-cart__qty-select):not(.otc-gift-input):not([multiple]):hover,
#column-left select:not(.ot-skip):not([multiple]):hover,
#column-right select:not(.ot-skip):not([multiple]):hover,
.popup-cart select:not(.ot-skip):not([multiple]):hover,
.ot-ss select:not(.ot-skip):not([multiple]):hover,
body > .modal select:not(.ot-skip):not([multiple]):hover {
  border-color: #b9b1a2;
  background-color: #fcfaf6;
}

#content select:not(.ot-skip):not(.osf-select):not(.osf-select-multi):not(.osf-category-input):not(.otc-phone__select):not(.otc-addr-picker__native):not(.cart-checkout_select):not(.acc-ret-sheet-preview__qty-select):not(.acc-ret-item__reason-select):not(.acc-ret-item__qty):not(.acc-pwd-field__input):not(.ot-cart__qty-select):not(.popup-cart__qty-select):not(.otc-gift-input):not([multiple]):focus,
#column-left select:not(.ot-skip):not([multiple]):focus,
#column-right select:not(.ot-skip):not([multiple]):focus,
.popup-cart select:not(.ot-skip):not([multiple]):focus,
.ot-ss select:not(.ot-skip):not([multiple]):focus,
body > .modal select:not(.ot-skip):not([multiple]):focus {
  border-color: #392923;
  box-shadow: 0 0 0 3px rgba(57, 41, 35, 0.10);
  background-color: #ffffff;
}

#content select:not(.ot-skip):not([multiple]):disabled,
#column-left select:not(.ot-skip):not([multiple]):disabled,
#column-right select:not(.ot-skip):not([multiple]):disabled,
.ot-ss select:not(.ot-skip):not([multiple]):disabled {
  background-color: #f3f0eb;
  border-color: #e1dcd3;
  color: #8a8378;
  cursor: not-allowed;
  opacity: 1;
}

/* Native <option> styling — limited cross-browser control, but Chromium honors
   these hints and they don't break Firefox. */
#content select:not([multiple]) option,
#column-left select:not([multiple]) option,
#column-right select:not([multiple]) option,
.ot-ss select:not([multiple]) option,
.popup-cart select:not([multiple]) option {
  background-color: #ffffff;
  color: #1a1a1a;
  padding: 8px 12px;
}

/* ── Mobile: keep the tap target large + use a 16px font size so iOS Safari
       doesn't auto-zoom on focus. ─────────────────────────────────────────── */
@media (max-width: 576px) {
  #content select:not(.ot-skip):not(.osf-select):not(.osf-select-multi):not(.osf-category-input):not(.otc-phone__select):not(.otc-addr-picker__native):not(.cart-checkout_select):not(.acc-ret-sheet-preview__qty-select):not(.acc-ret-item__reason-select):not(.acc-ret-item__qty):not(.acc-pwd-field__input):not(.ot-cart__qty-select):not(.popup-cart__qty-select):not(.otc-gift-input):not([multiple]),
  #column-left select:not(.ot-skip):not([multiple]),
  #column-right select:not(.ot-skip):not([multiple]),
  .popup-cart select:not(.ot-skip):not([multiple]),
  .ot-ss select:not(.ot-skip):not([multiple]),
  body > .modal select:not(.ot-skip):not([multiple]) {
    font-size: 16px;
    min-height: 30px;
    padding: 8px 32px 8px 14px;
  }
}

/* ───────────────────────────────────────────────────────────────────────────
   Custom dropdown widget (pretty-select.js)

   Replaces the native <select> chrome with a fully brandable shell:
   - .ps-shell wraps the original <select>, which is kept in the DOM and hidden
     via .ps-native so form submission and JS reads (`select.value`) still work
   - .ps-toggle is the visible button matching the pretty-select skin above
   - .ps-list is rendered into <body> on open (portal) so it escapes overflow
     clipping inside popups / scroll containers; positioned with JS
   ─────────────────────────────────────────────────────────────────────────── */
.ps-shell { position: relative; display: block; width: 100%; }
.ps-shell .ps-native {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important; padding: 0 !important;
  border: 0 !important;
}
.ps-toggle {
  width: 100%;
  min-height: 42px;
  /* Каретка тут — реальний flex-елемент (.ps-caret), тому праве поле = лівому;
     раніше стояло 38px і стрілка «висіла» далеко від краю (req 1.3.6). */
  padding: 10px 12px 10px 14px;
  background-color: #ffffff;
  border: 1px solid #d6cfc4;
  border-radius: 10px;
  color: #1a1a1a;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.ps-toggle:hover { border-color: #b9b1a2; background-color: #fcfaf6; }
.ps-shell.is-open .ps-toggle,
.ps-toggle:focus,
.ps-toggle:focus-visible {
  border-color: #392923;
  box-shadow: 0 0 0 3px rgba(57, 41, 35, 0.10);
  background-color: #ffffff;
  outline: none;
}
.ps-shell.is-disabled .ps-toggle,
.ps-toggle:disabled {
  background-color: #f3f0eb;
  border-color: #e1dcd3;
  color: #8a8378;
  cursor: not-allowed;
}
.ps-label {
  flex: 1 1 auto;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.ps-caret {
  width: 12px; height: 8px;
  flex: 0 0 auto;
  margin-left: 10px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%231a1a1a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform .15s ease;
}
.ps-shell.is-open .ps-caret { transform: rotate(180deg); }
.ps-list {
  position: fixed;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #ffffff;
  border: 1px solid #d6cfc4;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  max-height: 280px;
  overflow-y: auto;
  z-index: 100070;
}
.ps-opt {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
  color: #1a1a1a;
  user-select: none;
  white-space: nowrap;
  transition: background-color .12s ease, color .12s ease;
}
.ps-opt:hover,
.ps-opt.is-active {
  background-color: #f7f2eb;
  color: #392923;
}
.ps-opt.is-selected {
  background-color: #392923;
  color: #ffffff;
}
.ps-opt.is-selected:hover {
  background-color: #2a160e;
  color: #ffffff;
}
.ps-opt.is-disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}
.ps-group {
  padding: 8px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #8a8378;
  user-select: none;
  cursor: default;
}

@media (max-width: 576px) {
  .ps-toggle { font-size: 16px; min-height: 44px; padding: 11px 12px 11px 14px; }
  .ps-opt { font-size: 16px; padding: 12px 14px; }
}

/* ── Search filter inside the dropdown (long lists e.g. country) ── */
.ps-search {
  position: sticky;
  top: -6px;                 /* cancel .ps-list padding so it hugs the top edge */
  margin: -6px -6px 6px;     /* bleed over the list padding */
  padding: 8px;
  background: #ffffff;
  border-bottom: 1px solid #ece7df;
  z-index: 1;
}
.ps-search__input {
  width: 100%;
  box-sizing: border-box;
  height: 38px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #392923;
  background: #f7f5f3;
  border: 1px solid #d6cfc4;
  border-radius: 8px;
  outline: none;
}
.ps-search__input:focus {
  border-color: #392923;
  background: #fff;
}
@media (max-width: 576px) {
  .ps-search__input { font-size: 16px; height: 44px; }
}
