/* Guild & Gryphon: WooCommerce screens (cart, checkout, account, forms). */

/* ---------- radio cards: real inputs, hidden, the card shows the state ---------- */
.gg-sr-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.gg-opts { display: flex; flex-direction: column; gap: 8px; }
label.gs-opt, a.gs-opt, span.gs-opt { cursor: pointer; position: relative; color: var(--ink); text-decoration: none; }
span.gs-opt { cursor: default; }
.gs-opt:has(input:checked) { border: 2px solid var(--brass); padding: 11px 15px; }
.gs-opt:has(input:checked) .gs-dot { border-color: var(--brass); }
.gs-opt:has(input:checked) .gs-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
.gs-opt:has(input:focus-visible) { outline: var(--border-frame) solid var(--brass); outline-offset: 2px; }
.gg-opt__text { flex: 1; display: flex; flex-direction: column; line-height: 21px; min-width: 0; }
.gg-opt__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gg-opt__price { font-size: 19px; white-space: nowrap; }
.gg-opt-sm { min-height: 48px; padding-block: 8px; }
.gg-opt-sm:has(input:checked) { padding-block: 7px; }

/* ---------- quantity ---------- */
.gs-qty input.qty, .gs-qty input[type="number"] { width: 48px; border: 0; background: none; text-align: center; color: var(--ink);
  font: 700 18px/1 var(--font-label); -moz-appearance: textfield; appearance: textfield; padding: 0; }
.gs-qty input::-webkit-outer-spin-button, .gs-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gs-qty input:focus { outline: none; }
.gs-qty:focus-within { outline: var(--border-frame) solid var(--brass); outline-offset: 1px; }
html:not(.gg-js) .gs-qty input { width: 72px; }

/* ---------- WooCommerce fields (checkout, address, account) ---------- */
.woocommerce form .form-row, .gg-co-fields .form-row { margin: 0; padding: 0; }
.gs-field label, .gs-field .gs-field__label { font-family: var(--font-label); font-weight: 500; font-size: 16px; letter-spacing: .08em; color: var(--ink-muted); }
.gs-field label .required, .gs-field label .optional { color: var(--ink-muted); font-weight: 400; text-decoration: none; border: 0; }
.gs-field label .required { color: var(--garnet); }
.gs-field .woocommerce-input-wrapper { display: block; }
.gs-field .woocommerce-input-wrapper strong { display: block; padding: 10px 0; }
.gs-field.woocommerce-invalid .gs-input { border-color: var(--garnet); box-shadow: inset 0 0 0 1px var(--garnet); }
.gs-field .checkout-inline-error-message, .gs-field [role="alert"] { margin-top: 4px; color: var(--garnet); font-size: 17px; }
.gg-co-fields { display: grid; gap: 12px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gg-co-fields > * { grid-column: span 6; min-width: 0; }
.gg-co-fields > .gg-col-3 { grid-column: span 3; }
.gg-co-fields > .gg-col-city { grid-column: span 3; }
.gg-co-fields > .gg-col-state { grid-column: span 2; }
.gg-co-fields > .gg-col-zip { grid-column: span 1; }
.gg-co-fields > .form-row[style*="display: none"], .gg-co-fields > .form-row.hidden { display: none !important; }
@media (max-width: 760px) {
  .gg-co-fields > .gg-col-city { grid-column: span 6; }
  .gg-co-fields > .gg-col-state { grid-column: span 4; }
  .gg-co-fields > .gg-col-zip { grid-column: span 2; }
}
@media (max-width: 560px) { .gg-co-fields > .gg-col-3, .gg-co-fields > .gg-col-state, .gg-co-fields > .gg-col-zip { grid-column: span 6; } }
.woocommerce-password-strength { margin-top: 6px; font-size: 16px; }
.woocommerce-password-strength.bad, .woocommerce-password-strength.short { color: var(--garnet); }
.woocommerce-password-hint { display: block; margin-top: 4px; font-size: 16px; color: var(--ink-muted); }
.woocommerce-form__label-for-checkbox, .woocommerce-form__label-checkbox { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.woocommerce form input[type="checkbox"], .ac-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--brass); }

/* ---------- cart ---------- */
.gg-ct-rows { border-top: 2px solid var(--brass); }
.ct-price { min-width: 90px; text-align: right; }
.ct-row .product-remove { margin: 0; }
.gg-ct-actions { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 20px; }
.gg-coupon { display: flex; gap: 8px; align-items: flex-end; flex: 1 1 320px; max-width: 460px; }
.gg-ct-guild { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 24px 28px; }
.gg-ct-guild .gg-stack-2 { flex: 1 1 260px; }
.gg-estimate { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ground); }
.gg-estimate__form { display: flex; gap: 8px; align-items: flex-end; }
.cart_totals .gs-sum .woocommerce-Price-amount, .woocommerce-checkout-review-order-table .woocommerce-Price-amount { white-space: nowrap; }
.blockUI.blockOverlay { background: var(--ground) !important; opacity: .55 !important; }
.processing { pointer-events: none; }
@media (max-width: 620px) {
  .ct-row .product-quantity, .ct-row .ct-price { grid-column: 2; }
  .ct-row .ct-price { text-align: left; }
}

/* ---------- checkout ---------- */
.co-head { margin: 0; }
.co-step > .gs-field, .co-step > p { margin: 0; }
.gg-co-shipping { display: flex; flex-direction: column; gap: 16px; }
.woocommerce-checkout .co-summary .gs-line-item .gs-thumb img { height: 52px; }
.gg-paylist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gg-paylist .payment_box { margin-top: 10px; }
.gg-paylist .payment_box p { margin: 0; }
.gg-payicons img { height: 22px; width: auto; margin-left: 4px; vertical-align: middle; }
.gg-payicons:empty { display: none; }
#payment .place-order { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
#payment .woocommerce-terms-and-conditions-wrapper:empty { display: none; }
#place_order { width: 100%; }
.woocommerce-checkout .woocommerce-form-coupon-toggle .gg-msg { margin-bottom: 16px; }
form.checkout_coupon { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin: 0 0 24px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
form.checkout_coupon p { margin: 0; }
form.checkout_coupon .form-row-first { flex: 1 1 240px; }
form.checkout_coupon input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--ink-muted); border-radius: var(--radius-sm); background: var(--ground-raised); color: var(--ink); font: inherit; }
form.checkout_coupon button { min-height: 46px; }
.woocommerce-NoticeGroup-checkout { margin-bottom: 24px; }

/* Stripe's card element sits on our field background. */
.wc-stripe-upe-element, .wc-stripe-elements-field, .StripeElement { padding: 12px; border: 1px solid var(--ink-muted); border-radius: var(--radius-sm); background: var(--ground-raised); }
.wc-stripe-upe-form, .wc-upe-form { display: flex; flex-direction: column; gap: 12px; }
#wc-stripe-upe-form .woocommerce-SavedPaymentMethods, .woocommerce-SavedPaymentMethods { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

/* ---------- order received ---------- */
.gg-ty-head { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.gg-ty-head .gg-stack-8 { flex: 1 1 420px; }
.gg-addr-row { padding-top: 8px; border-top: 1px solid var(--line); }
.gg-sum-right .gs-sum { max-width: 420px; margin-left: auto; width: 100%; }

/* ---------- account ---------- */
.gs-acct__nav a { text-decoration: none; color: var(--ink); font: 700 17px/1 var(--font-label); letter-spacing: .08em; }
.gs-acct__nav a:hover { color: var(--brass); }
.gs-acct__nav a.is-on { color: var(--brass); background: var(--ground-raised); box-shadow: inset 3px 0 0 var(--brass); }
.gs-acct__nav a.woocommerce-MyAccount-navigation-link--customer-logout { color: var(--ink-muted); }
.gg-pwset { margin: 12px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); gap: 16px; }
.gg-pwset > legend { float: left; width: 100%; margin-bottom: 16px; }
.gg-pwset > legend + * { clear: both; }
.gs-table .ac-actions .gg-btn { min-height: 40px; padding-inline: 16px; }
.woocommerce-MyAccount-content > .gg-msg { margin-bottom: 0; }

/* ---------- variable products: WooCommerce's own picker stays hidden ---------- */
.variations_form .variations select { min-width: 160px; }
.woocommerce-variation-price { display: none; }

/* free shipping progress in the cart and checkout summaries (2026-11-21) */
.gg-freeship { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ground); }
.gg-freeship__text { margin: 0; font-size: 17px; line-height: 24px; }
.gg-freeship__text b { font-weight: 700; }
.gg-freeship__bar { display: block; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.gg-freeship__bar > span { display: block; height: 100%; border-radius: 4px; background: var(--brass); transition: width .4s ease; }
.gg-freeship.is-free { border-color: #2F6B3A; }
.gg-freeship.is-free .gg-freeship__text { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #2F6B3A; }
.gg-freeship.is-free .gg-freeship__bar > span { background: #2F6B3A; }
.gg-freeship__check { flex: none; width: 20px; height: 20px; stroke-width: 2.4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gg-freeship.is-free { border-color: #6FBF7E; } :root:not([data-theme="light"]) .gg-freeship.is-free .gg-freeship__text { color: #8FD39C; } :root:not([data-theme="light"]) .gg-freeship.is-free .gg-freeship__bar > span { background: #6FBF7E; } }
:root[data-theme="dark"] .gg-freeship.is-free { border-color: #6FBF7E; }
:root[data-theme="dark"] .gg-freeship.is-free .gg-freeship__text { color: #8FD39C; }
:root[data-theme="dark"] .gg-freeship.is-free .gg-freeship__bar > span { background: #6FBF7E; }
@media (prefers-reduced-motion: reduce) { .gg-freeship__bar > span { transition: none; } }
