/* Salma Orders: order form, contact form. Uses the theme's colour tokens with fallbacks. */
.so-order { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.so-form { min-width: 0; }
.so-step { border: 0; margin: 0 0 56px; padding: 0; min-width: 0; }
.so-step legend { padding: 0; margin: 0 0 24px; }
.so-step legend h2 { font-size: clamp(26px, 2.4vw, 34px); margin: 0; letter-spacing: -0.03em; }
.so-products { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 32px; }
.so-product { cursor: pointer; display: block; }
.so-product input { position: absolute; opacity: 0; pointer-events: none; }
.so-product__card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 10px 18px; border-radius: 16px; border: 1px solid transparent; background: var(--wp--preset--color--surface, #F4F4F8); text-align: center; transition: background-color .2s, transform .2s cubic-bezier(.2,.7,.2,1); height: 100%; box-sizing: border-box; }
.so-product__card img { width: 100%; max-width: 160px; aspect-ratio: 1; object-fit: contain; border-radius: 50%; }
.so-product img[src$=".jpg"] { object-fit: cover; }
.so-product__name { font-size: 16px; font-weight: 600; line-height: 1.25; }
.so-product:hover .so-product__card { transform: translateY(-3px); }
.so-product input:checked + .so-product__card { background: var(--wp--preset--color--gold-soft, #FFF6C7); border-color: var(--wp--preset--color--gold, #F9D20A); }
.so-product input:focus-visible + .so-product__card { outline: 3px solid var(--wp--preset--color--navy, #2A2A7C); outline-offset: 3px; }
.so-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.so-row--3 { grid-template-columns: 1fr 1.4fr 1fr; }
.so-field { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.so-field--wide { grid-column: 1 / -1; }
.so-field label { font-size: 14px; font-weight: 500; }
.so-field label span { font-weight: 400; color: var(--wp--preset--color--muted, #4A4A72); }
.so-field input, .so-field select, .so-field textarea { font: inherit; font-size: 18px; color: var(--wp--preset--color--ink, #16164A); background: #fff; border: 1px solid var(--wp--preset--color--line, #E4E4EE); border-radius: 12px; padding: 13px 14px; font-size: 16px; width: 100%; box-sizing: border-box; transition: border-color .2s; }
.so-field textarea { resize: vertical; }
.so-field input:hover, .so-field select:hover, .so-field textarea:hover { border-color: #B9B9CF; }
.so-field input:focus, .so-field select:focus, .so-field textarea:focus { border-color: var(--wp--preset--color--navy, #2A2A7C); outline: 3px solid var(--wp--preset--color--gold, #F9D20A); outline-offset: 0; }
.so-field [aria-invalid="true"] { border-color: #B3261E; }
.so-error { color: #B3261E; font-size: 16px; margin: 0; }
.so-alert { background: #FDECEA; color: #8C1D18; padding: 14px 18px; margin: 0 0 32px; font-weight: 600; border-radius: 12px; }
.so-check { margin: 28px 0 0; font-size: 16px; }
.so-check label { display: flex; gap: 12px; align-items: flex-start; }
.so-check input { width: 22px; height: 22px; flex: none; margin: 2px 0 0; accent-color: var(--wp--preset--color--navy, #2A2A7C); }
.so-submit { margin: 0; }
.so-submit button { font: inherit; font-size: 15px; font-weight: 500; background: var(--wp--preset--color--navy, #2A2A7C); color: #fff; border: 0; border-radius: 999px; padding: 15px 28px; cursor: pointer; transition: background-color .2s, transform .2s cubic-bezier(.2,.7,.2,1); }
.so-submit button:hover { background: var(--wp--preset--color--deep, #13133F); }
.so-submit button:active { transform: scale(.97); }
.so-submit button:focus-visible { outline: 3px solid var(--wp--preset--color--gold, #F9D20A); outline-offset: 3px; }
.so-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* taste-skill-ignore: hidden spam trap, not a rule */

.so-summary { position: sticky; top: 120px; }
.so-summary__inner { background: var(--wp--preset--color--navy, #2A2A7C); color: #fff; padding: clamp(24px, 3vw, 36px); border-radius: 22px; }
.so-summary h2 { color: inherit; font-size: clamp(22px, 2vw, 28px); margin: 0 0 24px; letter-spacing: -0.03em; }
.so-summary dl { margin: 0; display: grid; gap: 14px; }
.so-summary dl > div { display: flex; justify-content: space-between; gap: 16px; font-size: 17px; }
.so-summary dt { color: #D4D4EC; }
.so-summary dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.so-summary__total { margin-top: 10px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.so-summary__total dt { color: #fff; font-weight: 600; align-self: end; }
.so-summary__total dd { font-size: clamp(28px, 2.8vw, 40px); color: var(--wp--preset--color--gold, #F9D20A); letter-spacing: -0.02em; }
.so-summary__note { margin: 24px 0 0; font-size: 14px; color: #D4D4EC; }

.so-done { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.so-done__main h2 { font-size: clamp(32px, 3.4vw, 52px); margin: 0 0 24px; }
.so-done__main p { font-size: 19px; max-width: 34em; }
.so-done--small { display: block; background: var(--wp--preset--color--gold-soft, #FFF6C7); padding: 24px; border-radius: 16px; }
.so-done--small p { margin: 0; font-size: 18px; }

@media (max-width: 1080px) {
	.so-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.so-order, .so-done { grid-template-columns: 1fr; }
	.so-summary { position: static; order: -1; }
	.so-order .so-summary { position: sticky; top: 0; z-index: 5; order: 0; }
}
@media (max-width: 600px) {
	.so-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.so-row, .so-row--3 { grid-template-columns: 1fr; }
	.so-submit button { width: 100%; }
	.so-order .so-summary { position: static; }
}
@media (prefers-reduced-motion: reduce) {
	.so-product__card, .so-submit button { transition: none; }
}

/* ---------- Price check: two cards, the market price and the Salma price ---------- */
.sg-price { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sg-price__field { border-radius: 22px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; min-height: 420px; box-sizing: border-box; }
.sg-price__field--market { background: var(--wp--preset--color--surface, #F4F4F8); color: var(--wp--preset--color--ink, #15153F); }
.sg-price__field--salma { background: var(--wp--preset--color--navy, #2A2A7C); color: #fff; }
.sg-price h2 { font-size: clamp(24px, 2.2vw, 30px); margin: 0; color: inherit; letter-spacing: -0.03em; }
.sg-price__intro { margin: 0; font-size: 15px; opacity: .85; max-width: 32ch; }
.sg-price__inputs { margin-top: auto; display: flex; flex-direction: column; gap: 18px; }
.sg-price label, .sg-price legend { font-size: 14px; font-weight: 500; display: block; margin-bottom: 8px; padding: 0; }
.sg-price fieldset { border: 0; padding: 0; margin: 0; }
.sg-price__money { display: flex; align-items: center; background: #fff; border: 1px solid var(--wp--preset--color--line, #E4E4EE); border-radius: 999px; padding: 0 20px; max-width: 360px; }
.sg-price__money span { font-size: 20px; font-weight: 600; }
.sg-price__money input { all: unset; width: 100%; font-size: 20px; font-weight: 600; padding: 12px 8px; color: inherit; font-variant-numeric: tabular-nums; }
.sg-price__money:focus-within { outline: 2px solid var(--wp--preset--color--navy, #2A2A7C); outline-offset: 2px; }
.sg-price__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-price__chips label { margin: 0; font-weight: 500; cursor: pointer; }
.sg-price__chips input { position: absolute; opacity: 0; pointer-events: none; }
.sg-price__chips span { display: inline-block; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--wp--preset--color--line, #E4E4EE); font-size: 14px; transition: background-color .2s, border-color .2s; }
.sg-price__chips label:hover span { border-color: var(--wp--preset--color--navy, #2A2A7C); }
.sg-price__chips input:checked + span { background: var(--wp--preset--color--navy, #2A2A7C); border-color: var(--wp--preset--color--navy, #2A2A7C); color: #fff; }
.sg-price__chips input:focus-visible + span { outline: 2px solid var(--wp--preset--color--navy, #2A2A7C); outline-offset: 2px; }
.sg-price__result { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sg-price__field--salma .sg-price__result { margin-top: auto; }
.sg-price__figure { font-family: var(--sg-font-heading, sans-serif); font-size: clamp(44px, 5vw, 72px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; margin: 0; font-variant-numeric: tabular-nums; }
.sg-price__field--salma .sg-price__figure { color: var(--wp--preset--color--gold, #F9D20A); }
.sg-price__figure--market { font-size: clamp(32px, 3.4vw, 48px); }
.sg-price__per { font-size: 15px; margin: 8px 0 0; opacity: .85; }
.sg-price__note { font-size: 14px; margin: 0; opacity: .75; }
.sg-price .sg-price__go { display: inline-block; background: #fff; color: var(--wp--preset--color--ink, #15153F); padding: 13px 22px; border-radius: 999px; font-weight: 500; font-size: 15px; text-decoration: none; transition: background-color .2s; }
.sg-price .sg-price__go::after { content: " →"; }
.sg-price .sg-price__go:hover { background: var(--wp--preset--color--gold, #F9D20A); }
@media (max-width: 781px) { .sg-price { grid-template-columns: 1fr; } .sg-price__field { min-height: 0; } }

/* Live gold price inside the order form */
.so-live { background: var(--wp--preset--color--navy, #2A2A7C); color: #fff; border-radius: 12px; padding: 10px 14px; justify-content: center; gap: 2px !important; }
.so-live__label { font-size: 13px; font-weight: 500; color: #D4D4EC; }
.so-live__price { font-size: 20px; font-weight: 700; color: var(--wp--preset--color--gold, #F9D20A); font-variant-numeric: tabular-nums; }
.so-live__time { font-size: 12px; color: #D4D4EC; }
.so-pdf { display: inline-block; background: var(--wp--preset--color--navy, #2A2A7C); color: #fff !important; padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 500; }
.so-pdf::before { content: "↓ "; }
.so-pdf:hover { background: var(--wp--preset--color--deep, #121238); }
.sg-price__market { font-size: 15px; margin: 0; }

/* ---------- Order enquiry: quantities on each product ---------- */
.so-step__intro { margin: -12px 0 20px; color: var(--wp--preset--color--muted, #5A5A78); }
.so-products--qty .so-product { cursor: default; }
.so-products--qty .so-product.is-picked .so-product__card { background: var(--wp--preset--color--gold-soft, #FFF6C7); border-color: var(--wp--preset--color--gold, #F9D20A); }
.so-products--qty .so-product__name { cursor: pointer; }
.so-qty { display: flex; align-items: center; margin-top: auto; background: var(--wp--preset--color--white, #fff); border: 1px solid var(--wp--preset--color--line, #E4E4EE); border-radius: var(--sg-pill, 999px); overflow: hidden; }
.so-qty input { all: unset; width: 3.2em; text-align: center; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 8px 0; -moz-appearance: textfield; }
.so-qty input::-webkit-outer-spin-button, .so-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.so-qty:focus-within { outline: 2px solid var(--wp--preset--color--navy, #2A2A7C); outline-offset: 2px; }
.so-qty__btn { all: unset; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; font-size: 18px; font-weight: 600; color: var(--wp--preset--color--navy, #2A2A7C); }
.so-qty__btn:hover { background: var(--wp--preset--color--surface, #F4F4F8); }
.so-qty__btn:focus-visible { outline: 2px solid var(--wp--preset--color--navy, #2A2A7C); outline-offset: -2px; }
.so-steps { margin: 24px 0 0; padding: 22px 0 0 20px; border-top: 1px solid rgba(255,255,255,.18); display: grid; gap: 12px; font-size: 15px; color: #D4D4EC; }
.so-steps strong { color: #fff; font-weight: 600; }
.so-steps a { color: var(--wp--preset--color--gold, #F9D20A); }
.so-steps li::marker { color: var(--wp--preset--color--gold, #F9D20A); font-weight: 700; }

/* ---------- Get your invoice ---------- */
.so-lookup { max-width: 640px; margin: 0 auto; }
.so-lookup__form { background: var(--wp--preset--color--surface, #F4F4F8); border-radius: var(--sg-radius, 22px); padding: clamp(24px, 4vw, 48px); }
.so-lookup__form > label { display: block; font-weight: 600; font-size: 17px; margin-bottom: 12px; }
.so-lookup__row { display: flex; gap: 10px; flex-wrap: wrap; }
.so-lookup__row input { flex: 1 1 240px; min-width: 0; font: inherit; font-family: Menlo, Consolas, monospace; font-size: 22px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--navy, #2A2A7C); background: #fff; border: 1px solid var(--wp--preset--color--line, #E4E4EE); border-radius: var(--sg-pill, 999px); padding: 13px 22px; box-sizing: border-box; }
.so-lookup__row input:focus { outline: 3px solid var(--wp--preset--color--gold, #F9D20A); border-color: var(--wp--preset--color--navy, #2A2A7C); }
.so-lookup__row input[aria-invalid="true"] { border-color: #B3261E; }
.so-lookup__row button, .so-confirm .so-submit button { font: inherit; font-size: 15px; font-weight: 500; background: var(--sg-btn-bg, #2A2A7C); color: var(--sg-btn-text, #fff); border: 0; border-radius: var(--sg-pill, 999px); padding: 15px 28px; cursor: pointer; }
.so-lookup__row button:hover { background: var(--wp--preset--color--deep, #121238); }
.so-lookup__help { margin: 14px 0 0; font-size: 14px; color: var(--wp--preset--color--muted, #5A5A78); }
.so-confirm__to { margin: 24px 0; display: grid; gap: 12px; }
.so-confirm__to div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--wp--preset--color--line, #E4E4EE); }
.so-confirm__to dt { color: var(--wp--preset--color--muted, #5A5A78); }
.so-confirm__to dd { margin: 0; font-weight: 500; }
.so-summary--done dl > div dt { max-width: 60%; }
@media (max-width: 600px) { .so-confirm__to div { grid-template-columns: 1fr; gap: 2px; } .so-lookup__row button { width: 100%; } }
.so-products--qty .so-product input { position: static; opacity: 1; pointer-events: auto; }

/* Jump targets clear the sticky header */
#salma-order, #salma-invoice { scroll-margin-top: 130px; }

/* ---------- Enquiry type: buy gold or shipping only ---------- */
.so-type__options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.so-type__options label { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: 16px; border: 1px solid var(--wp--preset--color--line, #E4E4EE); background: var(--wp--preset--color--surface, #F4F4F8); cursor: pointer; transition: background-color .2s, border-color .2s; }
.so-type__options input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--wp--preset--color--navy, #2A2A7C); }
.so-type__options span { font-size: 15px; color: var(--wp--preset--color--muted, #5A5A78); }
.so-type__options strong { display: block; font-size: 17px; color: var(--wp--preset--color--ink, #15153F); margin-bottom: 2px; }
.so-type__options label:has(input:checked) { background: var(--wp--preset--color--gold-soft, #FFF6C7); border-color: var(--wp--preset--color--gold, #F9D20A); }
.so-type { margin-bottom: 40px; }
.so-order:has(input[name="type"][value="gold"]:checked) .so-for-shipping,
.so-order:has(input[name="type"][value="shipping"]:checked) .so-for-gold { display: none; }
@media (max-width: 600px) { .so-type__options { grid-template-columns: 1fr; } }

/* ---------- Country list and phone with country code ---------- */
.so-field select, .so-phone select { font: inherit; font-size: 16px; color: var(--wp--preset--color--ink, #16164A); background: #fff; border: 1px solid var(--wp--preset--color--line, #E4E4EE); border-radius: 12px; padding: 13px 14px; width: 100%; box-sizing: border-box; }
.so-phone { display: flex; gap: 8px; min-width: 0; }
.so-phone .so-phone__code { flex: 0 0 min(220px, 45%); width: min(220px, 45%); padding-right: 8px; text-overflow: ellipsis; }
.so-phone input { flex: 1 1 auto; min-width: 0; max-width: 340px; }
.so-field select:focus { border-color: var(--wp--preset--color--navy, #2A2A7C); outline: 3px solid var(--wp--preset--color--gold, #F9D20A); outline-offset: 0; }
.so-field [aria-invalid="true"] select, .so-field select[aria-invalid="true"] { border-color: #B3261E; }
