/* ==========================================================================
   Space of Antiques — WordPress / WooCommerce bridge styles
   (loaded after site.css; keeps WP-specific glue out of the ported design CSS)
   ========================================================================== */

/* Quantity input inside .soa-qty */
.soa-qty input.soa-qty-val {
  width: 44px; text-align: center; border: none; background: transparent;
  font-family: var(--soa-mono); font-size: 14px; color: var(--soa-ink);
  -moz-appearance: textfield; appearance: textfield; padding: 0;
}
.soa-qty input.soa-qty-val::-webkit-outer-spin-button,
.soa-qty input.soa-qty-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.soa-qty .soa-qty-minus, .soa-qty .soa-qty-plus {
  padding: 0 16px; font-family: var(--soa-serif); font-size: 22px; color: var(--soa-ink); align-self: stretch; background: none; border: none; cursor: pointer;
}

/* Sort select focus */
.soa-sort-select:focus { outline: none; border-color: var(--soa-oxblood); }

/* WooCommerce notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews {
  font-family: var(--soa-serif); font-size: 16px; line-height: 1.5;
  border: 1px solid var(--soa-line); background: var(--soa-site-bg-3);
  padding: 16px 20px; margin: 0 0 28px; list-style: none;
}
/* single-message notices (a <div>): text + button on one row */
.woocommerce-message, .woocommerce-info, .woocommerce-noreviews {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.woocommerce-error { border-color: var(--soa-oxblood); }
/* error notices are a <ul> with one <li> per error — keep the list vertical,
   make each <li> its own text + button row (the old rule flexed the <ul>,
   which tiled the items into columns). */
.woocommerce-error li { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0; }
.woocommerce-error li + li { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--soa-hair); }
.woocommerce-message a.button, .woocommerce-info a.button, .woocommerce-error li a.button {
  margin-left: auto; order: 1; /* WC puts the button first in the markup — push it to the right of the text */
}

/* Replace WooCommerce's default font-glyph (absolute, overlaps the text) with a clean,
   theme-tinted ring icon that flows inline as the first flex item. */
.woocommerce-error::before { content: none; } /* the error icon is rendered on each <li> instead */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error li::before {
  content: ""; position: static; flex: 0 0 auto;
  width: 21px; height: 21px; margin: 1px 0 0; font-size: 0;
  background-repeat: no-repeat; background-position: center; background-size: contain;
}
.woocommerce-message::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a7d76' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8.2 12.3l2.5 2.6 5.1-5.6'/%3E%3C/svg%3E"); }
.woocommerce-info::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b5f52' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5'/%3E%3Ccircle cx='12' cy='7.9' r='0.55' fill='%236b5f52' stroke='none'/%3E%3C/svg%3E"); }
.woocommerce-error li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a3d2e' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5'/%3E%3Ccircle cx='12' cy='16.1' r='0.55' fill='%238a3d2e' stroke='none'/%3E%3C/svg%3E"); }

/* Align the notices band with the page content instead of spanning edge-to-edge */
.woocommerce-notices-wrapper { max-width: 1280px; margin: 0 auto; padding: 28px 48px 0; }
.woocommerce-notices-wrapper:empty { padding: 0; }
@media (max-width: 1100px) { .woocommerce-notices-wrapper { padding-left: 32px; padding-right: 32px; } }
@media (max-width: 720px) { .woocommerce-notices-wrapper { padding-left: 22px; padding-right: 22px; } }

/* Toast notifications — JS relocates WooCommerce notices into a fixed top-right stack */
.soa-toasts {
  position: fixed; top: 96px; right: 24px; z-index: 300;
  display: flex; flex-direction: column; gap: 14px;
  width: min(380px, calc(100vw - 32px)); pointer-events: none;
}
.soa-toast {
  position: relative; pointer-events: auto;
  background: var(--soa-site-bg);
  border: 1px solid var(--soa-hair); border-left: 3px solid var(--soa-verdigris);
  border-radius: 6px; box-shadow: 0 14px 44px rgba(10, 8, 6, 0.22);
  padding: 15px 42px 15px 18px;
  opacity: 0; transform: translateX(26px);
  transition: opacity .35s ease, transform .4s cubic-bezier(.2, .7, .3, 1);
}
.soa-toast.is-in { opacity: 1; transform: none; }
.soa-toast.is-out { opacity: 0; transform: translateX(26px); }
.soa-toast--error { border-left-color: var(--soa-oxblood); }
.soa-toast--info { border-left-color: var(--soa-muted); }
/* the moved notice keeps its icon + text + button; the toast provides the box */
.soa-toast .woocommerce-message,
.soa-toast .woocommerce-info,
.soa-toast .woocommerce-error {
  border: 0; background: none; box-shadow: none; margin: 0; padding: 0; max-width: none;
  font-size: 16.5px; line-height: 1.5; font-weight: 500;
}
.soa-toast .woocommerce-error li { margin: 0; }
.soa-toast .woocommerce-error li + li { margin-top: 10px; padding-top: 10px; }
/* The toast lives outside .woocommerce, so the WC button style doesn't reach it — restyle here. */
.soa-toast a.button {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--soa-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1;
  padding: 11px 20px; border: 1px solid var(--soa-ink); background: var(--soa-ink); color: var(--soa-on-ink);
  border-radius: 0; text-decoration: none; transition: background .18s, color .18s, border-color .18s;
}
.soa-toast a.button:hover { background: var(--soa-oxblood); border-color: var(--soa-oxblood); color: #fff; }
/* WC gives notices tabindex="-1" and focuses them for screen readers — hide the oxblood focus ring */
.woocommerce-message:focus, .woocommerce-info:focus, .woocommerce-error:focus,
.woocommerce-message:focus-visible, .woocommerce-info:focus-visible, .woocommerce-error:focus-visible { outline: none; }
.soa-toast-close {
  position: absolute; top: 9px; right: 9px;
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--soa-muted); cursor: pointer; border-radius: 50%;
  transition: background .15s, color .15s;
}
.soa-toast-close:hover { background: var(--soa-site-bg-2); color: var(--soa-ink); }
@media (max-width: 720px) {
  .soa-toasts { top: 78px; right: 14px; left: 14px; width: auto; }
}

/* Buttons rendered by WooCommerce that we didn't template — fall back to our btn look */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--soa-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 14px 24px; border: 1px solid var(--soa-ink); background: var(--soa-ink); color: var(--soa-on-ink);
  border-radius: 0; cursor: pointer; transition: all .2s; line-height: 1;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce .button:hover { background: var(--soa-oxblood); border-color: var(--soa-oxblood); color: #fff; }

/* Override WooCommerce's brand-purple .button.alt (add-to-cart, place order, etc.) */
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce #respond input#submit.alt, .woocommerce .button.alt,
.single_add_to_cart_button.button.alt {
  background: var(--soa-ink) !important; border-color: var(--soa-ink) !important; color: var(--soa-on-ink) !important;
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover,
.woocommerce .button.alt:hover, .single_add_to_cart_button.button.alt:hover {
  background: var(--soa-oxblood) !important; border-color: var(--soa-oxblood) !important; color: #fff !important;
}

/* Pagination */
.woocommerce-pagination { margin-top: 56px; text-align: center; }
.woocommerce-pagination ul { display: inline-flex; gap: 4px; list-style: none; margin: 0; padding: 0; border: none; }
.woocommerce-pagination ul li { border: none; margin: 0; }
.woocommerce-pagination ul li a, .woocommerce-pagination ul li span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px;
  font-family: var(--soa-mono); font-size: 12px; color: var(--soa-muted); border: 1px solid transparent; transition: color .18s, border-color .18s;
}
.woocommerce-pagination ul li a:hover { color: var(--soa-ink); }
.woocommerce-pagination ul li span.current { color: var(--soa-ink); border-color: var(--soa-line); }

/* Result count default (we hide it; keep tidy) */
.woocommerce-result-count { display: none; }

/* Stock badge inside single product */
.soa-prod-info .stock { font-family: var(--soa-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soa-oxblood); margin-bottom: 8px; }
.soa-prod-info .out-of-stock { color: var(--soa-muted); }

/* My account navigation as our account nav */
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--soa-line); }
.woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--soa-hair); }
.woocommerce-MyAccount-navigation li a {
  display: block; padding: 16px 0; font-family: var(--soa-serif); font-size: 19px; color: var(--soa-ink); transition: color .18s;
}
.woocommerce-MyAccount-navigation li.is-active a, .woocommerce-MyAccount-navigation li a:hover { color: var(--soa-oxblood); font-style: italic; }

/* WC tables (orders, cart) baseline */
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; font-family: var(--soa-serif); }
.woocommerce table.shop_table th { font-family: var(--soa-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soa-muted); text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--soa-line); }
.woocommerce table.shop_table td { padding: 18px 12px; border-bottom: 1px solid var(--soa-hair); font-size: 17px; }
.woocommerce table.shop_table tfoot th, .woocommerce table.shop_table tfoot td { font-size: 16px; border-bottom: 1px solid var(--soa-hair); }
.woocommerce table.shop_table tfoot tr.order-total th, .woocommerce table.shop_table tfoot tr.order-total td { border-bottom: none; padding-top: 18px; }
.woocommerce table.shop_table tfoot tr.order-total .amount { font-size: 24px; }

/* Checkout: order review + payment live inside .soa-summary aside */
.soa-summary .woocommerce-checkout-review-order-table { margin-bottom: 22px; }
.soa-summary .shop_table th, .soa-summary .shop_table td { padding: 10px 0; }
.woocommerce-checkout #payment { background: transparent; border-radius: 0; }
.woocommerce-checkout #payment ul.payment_methods { border: none; padding: 8px 0; margin: 0; list-style: none; }
.woocommerce-checkout #payment ul.payment_methods li { font-family: var(--soa-serif); font-size: 16px; margin: 0 0 8px; }
.woocommerce-checkout #payment div.payment_box { background: var(--soa-site-bg-3); border: 1px solid var(--soa-line); font-family: var(--soa-serif); font-size: 14px; line-height: 1.5; }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
#place_order, .woocommerce #payment #place_order {
  display: inline-flex; width: 100%; align-items: center; justify-content: center;
  font-family: var(--soa-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 18px 28px; border: 1px solid var(--soa-ink); background: var(--soa-ink); color: var(--soa-on-ink);
  margin-top: 16px; cursor: pointer; transition: all .2s;
}
#place_order:hover { background: var(--soa-oxblood); border-color: var(--soa-oxblood); color: #fff; }

/* Checkout page container (theme-neutral plugin template brings no .soa-wrap) */
.soa-wc-page { padding-top: 28px; padding-bottom: 96px; }
@media (max-width: 720px) { .soa-wc-page { padding-bottom: 64px; } }

/* Brand the WPLB One-Page Checkout plugin with Space of Antiques tokens */
.wplb-opc {
  --wplb-opc-accent: var(--soa-oxblood);
  --wplb-opc-ink: var(--soa-ink);
  --wplb-opc-muted: var(--soa-muted);
  --wplb-opc-hair: var(--soa-hair);
  --wplb-opc-hair-strong: var(--soa-hair-strong);
  --wplb-opc-bg: var(--soa-site-bg);
  --wplb-opc-panel: var(--soa-site-bg-3);
  --wplb-opc-on-accent: var(--soa-on-ink);
  --wplb-opc-aside-border: var(--soa-line);
  --wplb-opc-radius: 3px;
  --wplb-opc-heading-font: var(--soa-serif);
  --wplb-opc-heading-weight: 400;
  --wplb-opc-heading-tracking: -0.01em;
  --wplb-opc-label-font: var(--soa-mono);
  --wplb-opc-label-size: 10px;
  --wplb-opc-label-tracking: 0.16em;
}

/* Numbered step headings (01 Contact / 02 Delivery / 03 Payment) → chapter-style
   underline rule, no fill. Opinionated brand look kept in the theme. */
.wplb-opc .wplb-opc-step {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--soa-line);
  border-radius: 0;
  color: var(--soa-ink);
  padding: 0 0 12px;
}

/* Checkout field columns */
.woocommerce form .form-row { margin: 0 0 22px; display: flex; flex-direction: column; gap: 8px; }
.woocommerce form .form-row label { font-family: var(--soa-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--soa-muted); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection {
  font-family: var(--soa-serif); font-size: 18px; color: var(--soa-ink); background: transparent;
  border: none; border-bottom: 1px solid var(--soa-hair-strong); padding: 10px 0; border-radius: 0;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus { outline: none; border-color: var(--soa-oxblood); }
.woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2 { width: 100%; float: none; }

/* One-page checkout inputs → soft warm fill + ink underline (scoped to the skin
   so account / login forms keep their plain underline style). */
.woocommerce form.wplb-opc .form-row input.input-text,
.woocommerce form.wplb-opc .form-row textarea,
.woocommerce form.wplb-opc .form-row select,
form.wplb-opc .select2-container--default .select2-selection--single {
  background: var(--soa-site-bg-2);
  border: 0;
  border-bottom: 1px solid var(--soa-hair-strong);
  border-radius: 3px 3px 0 0;
  padding: 13px 14px;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.woocommerce form.wplb-opc .form-row input.input-text:focus,
.woocommerce form.wplb-opc .form-row textarea:focus,
.woocommerce form.wplb-opc .form-row select:focus,
form.wplb-opc .select2-container--default.select2-container--focus .select2-selection--single {
  background: var(--soa-site-bg);
  border-bottom-color: var(--soa-oxblood);
  box-shadow: inset 0 -1px 0 var(--soa-oxblood);
}
.woocommerce form.wplb-opc .form-row input::placeholder,
.woocommerce form.wplb-opc .form-row textarea::placeholder { color: var(--soa-muted); opacity: .6; }

/* Checkout checkboxes (ship-to, terms, create-account) → brand square + serif label */
form.wplb-opc input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
  border: 1px solid var(--soa-hair-strong);
  border-radius: 3px;
  background: var(--soa-site-bg-2);
  cursor: pointer;
  position: relative;
  transition: background .15s ease, border-color .15s ease;
}
form.wplb-opc input[type="checkbox"]:hover { border-color: var(--soa-muted); }
form.wplb-opc input[type="checkbox"]:checked {
  background: var(--soa-ink);
  border-color: var(--soa-ink);
}
form.wplb-opc input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--soa-on-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
form.wplb-opc input[type="checkbox"]:focus-visible {
  outline: none;
  border-color: var(--soa-oxblood);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--soa-oxblood) 18%, transparent);
}
.woocommerce form.wplb-opc #ship-to-different-address,
.woocommerce form.wplb-opc .form-row label.woocommerce-form__label-for-checkbox,
form.wplb-opc #ship-to-different-address label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--soa-serif);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--soa-ink);
  cursor: pointer;
}
.woocommerce form.wplb-opc #ship-to-different-address { margin: 0 0 18px; padding: 0; border: 0; }
form.wplb-opc #ship-to-different-address label { font-size: 19px; }
.woocommerce form.wplb-opc .form-row label.woocommerce-form__label-for-checkbox {
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.5;
}
.woocommerce-billing-fields h3, .woocommerce-shipping-fields h3, .woocommerce-additional-fields h3 {
  font-family: var(--soa-serif); font-weight: 400; font-size: 24px; margin: 0 0 22px;
}

/* My account */
.soa-acct-panel .woocommerce-MyAccount-content { min-height: 360px; }
.woocommerce-MyAccount-content p { font-family: var(--soa-serif); font-size: 18px; line-height: 1.6; }
.woocommerce-MyAccount-content a { color: var(--soa-oxblood); }
.woocommerce-account .woocommerce > h2,
.woocommerce-MyAccount-content h2, .woocommerce-MyAccount-content h3 { font-family: var(--soa-serif); font-weight: 400; }

/* Edit-account: replace the default fieldset chrome with an on-brand password section */
.woocommerce-EditAccountForm fieldset { border: 0; margin: 38px 0 0; padding: 0; min-width: 0; }
.woocommerce-EditAccountForm legend {
  display: block; width: 100%; box-sizing: border-box;
  font-family: var(--soa-serif); font-weight: 400; font-size: 24px; color: var(--soa-ink);
  padding: 0 0 16px; margin: 0 0 26px; border-bottom: 1px solid var(--soa-hair);
}
/* Password fields: full-width input + room for the show/hide eye */
.woocommerce form .form-row .password-input { display: block; width: 100%; }
.woocommerce form .form-row .password-input .input-text { width: 100%; padding-right: 34px; box-sizing: border-box; }
.woocommerce-account .show-password-input {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  cursor: pointer; color: var(--soa-muted);
}
.woocommerce-account .show-password-input.display-password,
.woocommerce-account .show-password-input:hover { color: var(--soa-oxblood); }
.woocommerce-password-strength { font-family: var(--soa-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; padding: 8px 0; border: 0; background: none; }
.woocommerce-password-hint { display: block; font-family: var(--soa-serif); font-size: 14px; line-height: 1.5; color: var(--soa-muted); margin-top: 6px; }
/* First / last name sit side by side */
.woocommerce-EditAccountForm .form-row-first { float: left; width: 48%; }
.woocommerce-EditAccountForm .form-row-last { float: right; width: 48%; }
.woocommerce-EditAccountForm > .clear { clear: both; }
.woocommerce-EditAccountForm .woocommerce-Button { margin-top: 6px; }

/* Neutralise WC's default 30% / 65% float columns — our .soa-acct-layout grid handles placement */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content { float: none; width: 100%; margin: 0; }

/* Addresses tab */
.woocommerce-MyAccount-content .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 56px; margin-top: 28px; align-items: start; }
.woocommerce-MyAccount-content .woocommerce-Address { width: 100%; float: none; }
/* Pin each address to its column/row — WC sets stray float/order that otherwise staggers them */
.woocommerce-MyAccount-content .woocommerce-Address.col-1 { grid-column: 1; grid-row: 1; }
.woocommerce-MyAccount-content .woocommerce-Address.col-2 { grid-column: 2; grid-row: 1; }
.woocommerce-Address-title { display: flex; flex-direction: column; align-items: baseline; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--soa-hair); padding-bottom: 12px; margin-bottom: 16px; }
.woocommerce-Address-title h2, .woocommerce-Address-title h3 { font-family: var(--soa-serif); font-weight: 400; font-size: 24px; margin: 0; }
.woocommerce-Address-title .edit { font-family: var(--soa-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soa-oxblood); white-space: nowrap; }
.woocommerce-Address-title .edit:hover { color: var(--soa-ink); }
.woocommerce-Address address { font-family: var(--soa-serif); font-size: 17px; line-height: 1.6; font-style: normal; color: var(--soa-ink); }
@media (max-width: 720px) { .woocommerce-MyAccount-content .woocommerce-Addresses { grid-template-columns: 1fr; gap: 36px; } }

/* ── Custom selects ───────────────────────────────────────────── */
/* Native <select>: drop the OS arrow, draw our chevron */
.woocommerce form .form-row select,
.woocommerce-EditAccountForm select,
.soa-field select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b5f52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1px center; padding-right: 24px; cursor: pointer;
}
:root[data-theme="dark"] .woocommerce form .form-row select,
:root[data-theme="dark"] .woocommerce-EditAccountForm select,
:root[data-theme="dark"] .soa-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a8f7e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* select2 (country / state) themed to match the underline fields */
.woocommerce .select2-container--default .select2-selection--single { height: auto; min-height: 0; border: 0; border-bottom: 1px solid var(--soa-hair-strong); border-radius: 0; background: transparent; padding: 10px 22px 10px 0; }
.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered { font-family: var(--soa-serif); font-size: 18px; color: var(--soa-ink); line-height: 1.3; padding: 0; }
.woocommerce .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--soa-muted); }
.woocommerce .select2-container--default.select2-container--open .select2-selection--single,
.woocommerce .select2-container--default.select2-container--focus .select2-selection--single { border-bottom-color: var(--soa-oxblood); }
/* chevron (CSS-drawn so it follows the theme colour) */
.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow { top: 0; right: 0; height: 100%; width: 18px; }
.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow b { position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; margin: 0; padding: 0; border: solid var(--soa-muted); border-width: 0 1.5px 1.5px 0; border-radius: 0; transform: translate(-50%, -75%) rotate(45deg); transition: transform .2s ease; }
.woocommerce .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { transform: translate(-50%, -25%) rotate(-135deg); }

/* select2 dropdown — appended to <body>, so deliberately NOT scoped under .woocommerce */
.select2-container--default .select2-dropdown { border: 1px solid var(--soa-hair-strong); border-radius: 4px; background: var(--soa-site-bg); box-shadow: 0 16px 40px rgba(26, 22, 18, 0.14); overflow: hidden; }
.select2-container--default .select2-search--dropdown { padding: 12px 14px 6px; }
.select2-container--default .select2-search--dropdown .select2-search__field { font-family: var(--soa-serif); font-size: 16px; color: var(--soa-ink); border: 0; border-bottom: 1px solid var(--soa-hair-strong); background: transparent; padding: 6px 0; outline: none; border-radius: 0; }
.select2-container--default .select2-results__options { font-family: var(--soa-serif); }
.select2-container--default .select2-results__option { font-size: 16px; color: var(--soa-ink); padding: 9px 16px; }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted { background: var(--soa-site-bg-3); color: var(--soa-ink); }
.select2-container--default .select2-results__option[aria-selected="true"] { background: transparent; color: var(--soa-oxblood); font-style: italic; }
