/*
 * Checkout v3 (page 1147618), the split layout: order panel left, form right. Loads after checkout-v2.css.
 * Practical UI roles on GT tokens: text-strong --ink, text-weak --muted, stroke-strong --control,
 * stroke-weak --hair / --hair-strong, tinted panel --well, raised card --surface.
 * Spacing 4 8 12 16 24 32 40 48 64 only; radii 4 8 12. Every rule is scoped to body.gtco-v3.
 * Added 2026-12-02. Owner: lib/site/checkout-v3.php.
 */

/* ---------- Columns ---------- */
body.gtco-v3.gtco-page .fct_checkout .fluent-cart-checkout-block-child-wrap>.wp-block-columns{display:grid!important;grid-template-columns:minmax(0,5fr) minmax(0,6fr)!important;gap:0!important;align-items:stretch!important;margin:0!important}
body.gtco-v3.gtco-page .fct_checkout .wp-block-columns>.wp-block-column{flex-basis:auto!important;width:auto!important;max-width:none!important;margin:0!important;min-width:0}
body.gtco-v3.gtco-page .fct_checkout .wp-block-columns>.wp-block-column:last-child{grid-column:1;grid-row:1;display:flex!important;flex-direction:column;gap:0;padding:48px 48px 64px!important;background:var(--well);border-right:1px solid var(--hair)}
body.gtco-v3.gtco-page .fct_checkout .wp-block-columns>.wp-block-column:first-child{grid-column:2;grid-row:1;align-content:start!important;justify-items:start;row-gap:24px!important;padding:48px 48px 64px!important}
body.gtco-v3.gtco-page .fct_checkout .wp-block-columns>.wp-block-column:first-child>*{width:100%;max-width:520px;margin-top:0!important;margin-bottom:0!important}

/* ---------- Panel ---------- */
body.gtco-v3.gtco-page .fct_checkout .fct_checkout_summary{position:static!important;top:auto!important;display:flex;flex-direction:column;gap:32px;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
body.gtco-v3.gtco-page .gtco-panelhead{display:flex;flex-direction:column;gap:8px}
body.gtco-v3.gtco-page .gtco-panelhead__top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-12px 0 16px}
body.gtco-v3.gtco-page .gtco-back{display:inline-flex;align-items:center;gap:4px;min-height:48px;margin-left:-4px;color:var(--ink)!important;text-decoration:none!important;font-size:1rem;line-height:1.5}
body.gtco-v3.gtco-page .gtco-back:hover span{text-decoration:underline;text-underline-offset:4px}
body.gtco-v3.gtco-page .gtco-back svg,body.gtco-v3.gtco-page .gtco-secure svg{width:20px;height:20px;flex:none}
body.gtco-v3.gtco-page .gtco-secure{display:inline-flex;align-items:center;gap:8px;margin:0;color:var(--muted);font-size:1rem;line-height:1.5}
body.gtco-v3.gtco-page .gtco-secure svg{color:var(--ink)}
body.gtco-v3.gtco-page .gtco-secure--phone{display:none}
body.gtco-v3.gtco-page .gtco-amount{min-height:44px;margin:0;color:var(--ink);font-size:36px;line-height:44px;font-weight:700;font-variant-numeric:tabular-nums}
body.gtco-v3.gtco-page .gtco-amount__note{margin:0;color:var(--muted);font-size:1rem;line-height:1.5}
body.gtco-v3.gtco-page .fct_checkout:is(.gtco-free,:has(.gtfc-zero-coupons)) .gtco-amount__note{display:none}

/* Summary: no card, no "Your order" toggle; lines, then one divider, then the figures. */
body.gtco-v3.gtco-page .fct_checkout .fct_checkout_summary :is(.fct_summary,.fct_summary_box,.fct_checkout_form_section,.fct_form_section_body,.fct_form_section_body_inner,.fct_items_wrapper,.fct_line_items,.fct_summary_items){margin:0!important;padding:0!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;max-height:none!important}
body.gtco-v3.gtco-page .fct_checkout .fct_checkout_summary .fct_form_section_header{display:none!important}
body.gtco-v3.gtco-page .fct_checkout .fct_checkout_summary .fct_form_section_body{display:block!important;height:auto!important;overflow:visible!important}
body.gtco-v3.gtco-page .fct_checkout .fct_checkout_summary .fct_line_item{margin:0!important;padding:0!important;border:0!important}
body.gtco-v3.gtco-page .fct_checkout .fct_checkout_summary .fct_line_item_body{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px}
body.gtco-v3.gtco-page .fct_checkout .fct_checkout_summary .fct_line_item_info{display:flex!important;align-items:center;gap:16px;min-width:0}
body.gtco-v3.gtco-page .fct_checkout .fct_checkout_summary .fct_item_image{flex:none;width:48px!important;height:48px!important;margin:0!important}
body.gtco-v3.gtco-page .fct_checkout .fct_checkout_summary .fct_item_image img{width:48px!important;height:48px!important;border-radius:8px!important;object-fit:cover}
body.gtco-v3.gtco-page .fct_checkout .fct_checkout_summary .fct_item_title a{color:var(--ink)!important;font-size:1rem!important;line-height:1.5!important;font-weight:400!important;text-decoration:none!important}
body.gtco-v3.gtco-page .fct_checkout .fct_checkout_summary .fct_item_variant_title{color:var(--muted)!important;font-size:1rem!important;line-height:1.5!important;font-weight:400!important}
body.gtco-v3.gtco-page .fct_checkout .fct_checkout_summary .fct_line_item_total{color:var(--ink)!important;font-size:1rem!important;font-weight:400!important;font-variant-numeric:tabular-nums}
body.gtco-v3.gtco-page .fct_checkout .fct_checkout_summary .fct_summary_items{margin-top:24px!important}
body.gtco-v3.gtco-page .fct_checkout .fct_checkout_summary .fct_summary_items_list{display:flex!important;flex-direction:column;gap:8px!important;margin:0!important;padding:16px 0 0!important;border-top:1px solid var(--hair-strong)!important}
body.gtco-v3.gtco-page .fct_checkout .fct_checkout_summary .fct_summary_items_list>li{display:flex!important;align-items:baseline;justify-content:space-between;gap:16px;margin:0!important;padding:0!important;border:0!important;min-height:0!important}
body.gtco-v3.gtco-page .fct_checkout .fct_checkout_summary .fct_summary_items_list>li:empty{display:none!important}
body.gtco-v3.gtco-page .fct_checkout .fct_checkout_summary .fct_summary_items_list .fct_summary_label{color:var(--muted)!important;font-size:1rem!important;font-weight:400!important}
body.gtco-v3.gtco-page .fct_checkout .fct_checkout_summary .fct_summary_items_list .fct_summary_value{color:var(--ink)!important;font-size:1rem!important;font-weight:400!important;font-variant-numeric:tabular-nums}
body.gtco-v3.gtco-page .fct_checkout .fct_checkout_summary .fct_summary_items_total :is(.fct_summary_label,.fct_summary_value){color:var(--ink)!important;font-size:21px!important;line-height:28px!important;font-weight:700!important}
body.gtco-v3.gtco-page .fct_checkout .fct_checkout_summary .fct_coupon{width:100%}
body.gtco-v3.gtco-page .fct_checkout .fct_checkout_summary .fct_coupon_toggle a{display:inline-flex;align-items:center;min-height:48px;margin:-12px 0;font-weight:500!important}

/* Order bump: a raised white card on the tint, the whole card is the target. */
body.gtco-v3.gtco-page .fct_checkout .fct_checkout_summary .fct_order_bump_wrap{margin:0!important}
body.gtco-v3.gtco-page .fct_checkout .fct_checkout_summary .fct_order_promotions_wrap{margin:0!important;padding:0!important;background:none!important;border:0!important}

/* Trust: the panel copy on wide screens, a separate group under a divider. */
body.gtco-v3.gtco-page .fct_checkout .gtco-paneltrust:empty{display:none}
body.gtco-v3.gtco-page .fct_checkout .gtco-paneltrust{padding-top:32px;border-top:1px solid var(--hair-strong)}
body.gtco-v3.gtco-page .fct_checkout .gtco-paneltrust .gtfc-trust{margin:0!important;padding:0!important;border:0!important;background:none!important;color:var(--muted);font-size:1rem;line-height:1.5}
body.gtco-v3.gtco-page .fct_checkout .gtco-paneltrust .gtfc-trust-heading{display:none}
body.gtco-v3.gtco-page .fct_checkout .gtco-paneltrust .gtfc-trust ul{display:grid;gap:12px;margin:0!important;padding:0!important;list-style:none}
body.gtco-v3.gtco-page .fct_checkout .gtco-paneltrust .gtfc-trust li{display:flex;align-items:flex-start;gap:12px;margin:0!important;padding:0!important;color:var(--muted);font-size:1rem;line-height:1.5}
body.gtco-v3.gtco-page .fct_checkout .gtco-paneltrust .gtfc-icon{flex:none;width:20px;height:20px;margin-top:2px;color:var(--ink);opacity:1}
body.gtco-v3.gtco-page .fct_checkout .gtco-paneltrust .gtfc-trust-image{margin:16px 0 0!important}
body.gtco-v3.gtco-page .fct_checkout .gtco-paneltrust .gtfc-trust-image img{display:block;width:auto;height:auto;max-height:32px}
body.gtco-v3.gtco-page .fct_checkout .gtco-paneltrust .gtfc-trust-policy{margin:12px 0 0!important}
body.gtco-v3.gtco-page .fct_checkout .gtco-paneltrust .gtfc-trust-policy a{color:var(--accent-strong)}
body.gtco-v3.gtco-page .fct_checkout .wp-block-column:first-child>.gtfc-trust{display:none!important}

/* ---------- Form ---------- */
body.gtco-v3.gtco-page .fct_checkout .gtco-formhead{order:5!important;display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:16px!important}
body.gtco-v3.gtco-page .fct_checkout .gtco-formhead h1{margin:0!important;padding:0!important;color:var(--ink);font-size:28px;line-height:36px;font-weight:700}
body.gtco-v3.gtco-page .fct_checkout .wp-block-column:first-child>h2.gtco-step,body.gtco-v3.gtco-page .fct_checkout .fct_checkout_payment_methods #payment_methods_label{margin:0!important;padding:0!important;color:var(--ink);font-size:21px!important;line-height:28px!important;font-weight:700!important}
body.gtco-v3.gtco-page .fct_checkout .wp-block-column:first-child>.fct_checkout_payment_methods{margin-top:24px!important;padding-top:0!important;border-top:0!important}
body.gtco-v3.gtco-page .fct_checkout .wp-block-column:first-child>.fcrm_checkout_subscribe{margin-top:8px!important}
body.gtco-v3.gtco-page .fct_checkout .wp-block-column:first-child>.fct_place_order_btn_wrap{margin-top:8px!important}

/* Labels: regular weight; the email hint sits between the label and the field. */
body.gtco-v3.gtco-page .fct_checkout .fct_checkout_input_group [data-fct-field=input]::before{font-weight:400!important;margin-bottom:4px!important;line-height:1.5!important}
body.gtco-v3.gtco-page .fct_checkout #fct_wrapper_billing_email{display:flex!important;flex-direction:column}
body.gtco-v3.gtco-page .fct_checkout #fct_wrapper_billing_email::before{order:-2}
body.gtco-v3.gtco-page .fct_checkout #fct_wrapper_billing_email::after{order:-1;margin:0 0 8px!important;line-height:1.5!important}
body.gtco-v3.gtco-page .fct_checkout .fct_form_section_header_label,body.gtco-v3.gtco-page .fct_checkout .gtfc-currency-selector label{font-weight:400!important}

/* ---------- Phone: one column, panel first and open, trust under the button ---------- */
@media (max-width:900px){
  body.gtco-v3.gtco-page .fct_checkout .fluent-cart-checkout-block-child-wrap>.wp-block-columns{grid-template-columns:minmax(0,1fr)!important}
  body.gtco-v3.gtco-page .fct_checkout .wp-block-columns>.wp-block-column:last-child{grid-column:1;grid-row:1;padding:24px 16px 32px!important;border-right:0;border-bottom:1px solid var(--hair)}
  body.gtco-v3.gtco-page .fct_checkout .wp-block-columns>.wp-block-column:first-child{grid-column:1;grid-row:2;padding:32px 16px 48px!important}
  body.gtco-v3.gtco-page .fct_checkout .wp-block-columns>.wp-block-column:first-child>*{max-width:none}
  body.gtco-v3.gtco-page .fct_checkout .fct_checkout_summary{gap:24px}
  body.gtco-v3.gtco-page .gtco-amount{font-size:28px;line-height:36px;min-height:36px}
  body.gtco-v3.gtco-page .gtco-secure--phone{display:inline-flex}
  body.gtco-v3.gtco-page .fct_checkout .gtco-formhead .gtco-secure{display:none!important}
  body.gtco-v3.gtco-page .fct_checkout .gtco-formhead{margin:0!important}
  body.gtco-v3.gtco-page .fct_checkout .gtco-formhead h1{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  body.gtco-v3.gtco-page .fct_checkout .gtco-paneltrust{display:none!important}
  body.gtco-v3.gtco-page .fct_checkout .wp-block-column:first-child>.gtfc-trust{display:block!important}
}

/* ---------- Specificity layer: wins over checkout-v2.css column rules ---------- */
html body.gtco-v3.gtco-v2.gtco-page .fct_checkout .fluent-cart-checkout-block-child-wrap{margin-left:-48px!important;margin-right:-48px!important}
html body.gtco-v3.gtco-v2.gtco-page .fct_checkout .fluent-cart-checkout-block-child-wrap>.wp-block-columns>.wp-block-column:last-child{padding:48px 48px 64px!important;background:var(--well)!important;border:0!important;border-right:1px solid var(--hair)!important}
html body.gtco-v3.gtco-v2.gtco-page .fct_checkout .fluent-cart-checkout-block-child-wrap>.wp-block-columns>.wp-block-column:first-child{padding:48px 48px 64px!important;background:none!important;border:0!important}
html body.gtco-v3.gtco-v2.gtco-page .fct_checkout .fct_order_promotion_title{color:var(--ink)!important}
@media (max-width:900px){
  html body.gtco-v3.gtco-v2.gtco-page .fct_checkout .fluent-cart-checkout-block-child-wrap{margin-left:-36px!important;margin-right:-36px!important}
  html body.gtco-v3.gtco-v2.gtco-page .fct_checkout .fluent-cart-checkout-block-child-wrap>.wp-block-columns>.wp-block-column:last-child{padding:24px 16px 32px!important;border-right:0!important;border-bottom:1px solid var(--hair)!important}
  html body.gtco-v3.gtco-v2.gtco-page .fct_checkout .fluent-cart-checkout-block-child-wrap>.wp-block-columns>.wp-block-column:first-child{padding:32px 16px 48px!important}
}
html body.gtco-v3.gtco-v2.gtco-page .fct_checkout .fct_checkout_payment_methods .fct_form_section_header{margin:0 0 16px!important;padding:0!important}
/* Accepted-payments image (media 1193091, 3 x 2 logo grid): show it at a readable size. */
html body.gtco-v3.gtco-v2.gtco-page .fct_checkout .gtfc-trust .gtfc-trust-image img{width:100%!important;max-width:420px!important;height:auto!important;max-height:none!important}
/* Order bump in the panel: a raised white card, solid hairline, ink outline when added. */
html body.gtco-v3.gtco-v2.gtco-page .fct_checkout .fct_checkout_summary .fct_order_promotion{border:1px solid var(--hair)!important;border-radius:12px!important;background:var(--surface)!important;padding:16px!important;box-shadow:0 4px 8px -2px #0000000A,0 2px 4px -2px #00000014!important;transition:border-color .15s}
html body.gtco-v3.gtco-v2.gtco-page .fct_checkout .fct_checkout_summary .fct_order_promotion:hover{border-color:var(--control)!important}
html body.gtco-v3.gtco-v2.gtco-page .fct_checkout .fct_checkout_summary .fct_order_promotion:has(input:checked){border-color:var(--ink)!important;box-shadow:0 0 0 1px var(--ink)!important}
html body.gtco-v3.gtco-v2.gtco-page .fct_checkout .fct_checkout_summary .fct_order_promotion:has(input:focus-visible){outline:2px solid var(--ink);outline-offset:2px}
html body.gtco-v3.gtco-v2.gtco-page .fct_checkout .fct_checkout_summary .fct_order_promotion_footer{margin-top:16px!important;padding-top:12px!important;border-top:1px solid var(--hair)!important}
html body.gtco-v3.gtco-v2.gtco-page .fct_checkout .fct_checkout_summary .fct_order_promotion_icon img{width:48px!important;height:48px!important;border-radius:8px!important;object-fit:cover}
@media (prefers-reduced-motion:reduce){html body.gtco-v3 .fct_checkout .fct_order_promotion{transition:none}}
/* The panel runs down to the footer: no canvas seam under it. */
html body.gtco-v3.gtco-v2.gtco-page #the_content>section.wp-block-group:has(.fluent-cart-checkout-page){margin-bottom:0!important}
/* Ticked bump: the card's ink outline shows the state; no second (red) box around the checkbox row. */
html body.gtco-v3.gtco-v2.gtco-page .fct_checkout .fct_checkout_summary .fct_order_promotion_toggle{border:0!important;outline:0!important;box-shadow:none!important;background:none!important;padding:4px 0!important}
