/* si-surfer-brand 2.3.0 · cart and checkout redesign, built on the 2.2.0 checkout clean-up (sis_checkout_mode). Loaded only while the clean-up is active.
   Same banner, button and card components as the rest of the site; this file only trims and spaces them. */

/* C4 compact banner on cart, checkout, order received and My Account: same banner, no photo, no buttons, no strip. */
body.sis-co-compact .sis-banner{height:auto!important;min-height:0!important;background:var(--ds-surface-0)}
body.sis-co-compact .sis-banner::before{display:none!important}
body.sis-co-compact .sis-banner__media,
body.sis-co-compact .sis-banner .sis-actions,
body.sis-co-compact .sis-banner__meta,
body.sis-co-compact .sis-banner .sis-lead{display:none!important}
body.sis-co-compact .sis-banner__inner{padding-top:40px!important;padding-bottom:28px!important}
body.sis-co-compact .sis-banner .sis-h1{margin:10px 0 0!important;font-size:clamp(34px,4vw,48px)!important}
@media (max-width:767px){
  body.sis-co-compact .sis-banner__inner{padding-top:28px!important;padding-bottom:20px!important}
  body.sis-co-compact .sis-banner .sis-h1{font-size:32px!important}
}
/* Start the WooCommerce content right under the compact banner. */
body.sis-co-compact .elementor > .e-con:first-child{padding-top:32px!important}

/* C9 "What happens next" card (site card style) */
.sis-co-next{margin:0 0 32px;padding:28px;max-width:760px}
.sis-co-next h2{margin:8px 0 12px;font:400 var(--ds-fs-h3)/1.2 var(--ds-font-display);color:var(--ds-text)}
.sis-co-next ol{margin:0;padding-left:1.25em;color:var(--ds-text-muted);line-height:1.6}
.sis-co-next li{margin:0 0 8px}
.sis-co-next .sis-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
@media (max-width:767px){.sis-co-next{padding:20px}.sis-co-next .sis-actions{flex-direction:column}.sis-co-next .sis-btn{width:100%}}

/* C14 refund line under the Terms checkbox */
.sis-co-refund-line{margin:12px 0 0;font-size:var(--ds-fs-small);color:var(--ds-text-muted)}
.sis-co-refund-line a{color:var(--ds-accent-text)}

/* ======================================================================
   2.3.0 cart and checkout redesign
   ====================================================================== */
/* Focus: no moving announcement ribbon on cart and checkout. */
body.sis-co-checkout .sis-ribbon,
body.sis-co-cart .sis-ribbon{display:none!important}
body.sis-co-checkout{--ds-ribbon-h:0px}

/* Checkout: our own one-line head replaces the banner. */
body.sis-co-checkout .sis-banner{display:none!important}
body.sis-co-checkout .elementor > .e-con:first-child,
body.sis-co-checkout .elementor > .e-con:first-child > .e-con-inner{padding-top:0!important;padding-bottom:0!important}
body.sis-co-checkout .elementor > .e-con:first-child{padding-top:10px!important;padding-bottom:48px!important}
body.sis-co-checkout .elementor > .e-con:first-child{--content-width:1120px}
body.sis-co-checkout .elementor > .e-con:first-child > .e-con-inner{max-width:1120px!important}
body.sis-co-checkout .woocommerce:has(> form.checkout){max-width:1120px;margin:0 auto}
body.sis-co-checkout .woocommerce-form-coupon-toggle,
body.sis-co-checkout form.checkout_coupon{display:none!important}

.sis-co-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 16px;margin:0 0 14px}
.sis-co-h1{margin:0!important;font:400 30px/1.15 var(--ds-font-display)!important;color:var(--ds-text)!important}
.sis-co-secure{display:flex;align-items:flex-start;gap:8px;margin:0!important;font-size:13px!important;line-height:1.45!important;color:var(--ds-text-muted)!important}
.sis-co-secure .sis-co-lock{flex:0 0 auto;margin-top:2px;color:var(--ds-accent-text)}
.sis-co-head .sis-co-secure{max-width:520px}

/* Grid: details left, summary + payment right. */
body.sis-co-checkout form.checkout{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(380px,460px);grid-template-rows:auto auto 1fr;column-gap:28px;align-items:start}
body.sis-co-checkout form.checkout > .woocommerce-NoticeGroup{grid-column:1 / -1;grid-row:1;margin:0 0 14px}
body.sis-co-checkout form.checkout > *{grid-column:1}
body.sis-co-checkout form.checkout > .sis-co-left{grid-row:2 / span 2;min-width:0}
body.sis-co-checkout form.checkout > #order_review_heading{grid-column:2;grid-row:2;margin:0!important;padding:16px 20px 0;background:var(--ds-surface-2);border:1px solid var(--ds-line);border-bottom:0;border-radius:var(--ds-radius-lg) var(--ds-radius-lg) 0 0;font:600 15px/1.3 var(--ds-font-body)!important;color:var(--ds-text)!important;letter-spacing:0}
body.sis-co-checkout form.checkout > #order_review{grid-column:2;grid-row:3;position:sticky;top:16px;margin:0!important;padding:4px 20px 18px;background:var(--ds-surface-2);border:1px solid var(--ds-line);border-top:0;border-radius:0 0 var(--ds-radius-lg) var(--ds-radius-lg)}
body.sis-co-checkout.admin-bar form.checkout > #order_review{top:48px}

/* Left column */
body:not(#sis).sis-co-checkout #customer_details{display:block!important;width:auto!important;margin:0!important;padding:0!important;background:none!important;border:0!important;border-radius:0!important}
body.sis-co-checkout #customer_details > .col-1,
body.sis-co-checkout #customer_details > .col-2{float:none!important;width:100%!important;max-width:none!important;padding:0!important;margin:0!important}
body.sis-co-checkout #customer_details > .col-2:not(:has(*:not(:empty))){display:none}
body.sis-co-checkout .woocommerce-billing-fields{padding:18px 20px 6px;background:var(--ds-surface-2);border:1px solid var(--ds-line);border-radius:var(--ds-radius-lg)}
body.sis-co-checkout .woocommerce-billing-fields > h3{margin:0 0 10px!important;font:600 15px/1.3 var(--ds-font-body)!important;color:var(--ds-text)!important}
body.sis-co-checkout .woocommerce-billing-fields__field-wrapper{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}
body.sis-co-checkout .woocommerce-billing-fields__field-wrapper > .form-row{float:none!important;width:auto!important;margin:0!important;padding:0!important}
body.sis-co-checkout .woocommerce-billing-fields__field-wrapper > .form-row-wide,
body.sis-co-checkout .woocommerce-billing-fields__field-wrapper > .form-row:not(.form-row-first):not(.form-row-last){grid-column:1 / -1}
body.sis-co-checkout form.checkout .form-row label{margin:0 0 4px!important;font-size:14px!important}
body.sis-co-checkout form.checkout .form-row .input-text,
body.sis-co-checkout form.checkout .form-row select,
body.sis-co-checkout form.checkout .select2-container .select2-selection--single{min-height:44px!important;height:44px}
body.sis-co-checkout form.checkout .form-row .description{display:block!important;position:static!important;margin:4px 0 0!important;padding:0!important;background:none!important;color:var(--ds-text-muted)!important;font-size:12.5px!important}
body.sis-co-checkout form.checkout .form-row .description::before{display:none!important}
body.sis-co-checkout .woocommerce-account-fields{margin:10px 0 0;padding:0 2px}
body.sis-co-checkout .woocommerce-account-fields .form-row{margin:0!important;padding:0!important}

/* Stripe express buttons (Apple Pay, Google Pay, Link) stay first in the left column on wide screens. */
body.sis-co-checkout .sis-co-left > #wc-stripe-express-checkout-element{margin:0 0 6px}
body.sis-co-checkout .sis-co-left > #wc-stripe-express-checkout-button-separator{margin:4px 0 12px!important;text-align:center;font-size:13px;color:var(--ds-text-muted)}

.sis-co-note{margin:14px 0 0;padding:14px 20px;border:1px solid var(--ds-line);border-radius:var(--ds-radius-lg)}
.sis-co-note-h{margin:0 0 6px!important;font:600 14px/1.3 var(--ds-font-body)!important;color:var(--ds-text)!important}
.sis-co-note ul{margin:0!important;padding-left:1.1em!important;color:var(--ds-text-muted);font-size:14px;line-height:1.5}
.sis-co-note li{margin:0 0 2px}

/* Right column: summary */
body.sis-co-checkout .woocommerce-checkout-review-order-table{margin:0 0 6px!important;border:0!important;background:transparent!important;font-size:14px}
body.sis-co-checkout .woocommerce-checkout-review-order-table thead{display:none}
body.sis-co-checkout .woocommerce-checkout-review-order-table th,
body.sis-co-checkout .woocommerce-checkout-review-order-table td{padding:8px 0!important;border:0!important;border-bottom:1px solid var(--ds-line)!important;background:transparent!important;color:var(--ds-text)!important;vertical-align:top}
body.sis-co-checkout .woocommerce-checkout-review-order-table td:last-child,
body.sis-co-checkout .woocommerce-checkout-review-order-table tfoot td{text-align:right}
body.sis-co-checkout .woocommerce-checkout-review-order-table tfoot:not(:has(.cart-discount,.fee,.tax-rate,.tax-total,.woocommerce-shipping-totals)) .cart-subtotal{display:none}
body.sis-co-checkout .woocommerce-checkout-review-order-table .order-total th,
body.sis-co-checkout .woocommerce-checkout-review-order-table .order-total td{border-bottom:0!important;font-size:16px;font-weight:600;padding-top:10px!important}
body.sis-co-checkout .woocommerce-checkout-review-order-table .product-quantity{font-weight:400;color:var(--ds-text-muted)}

.sis-co-coupon{margin:12px 0 0;padding:0 4px;font-size:13.5px}
.sis-co-coupon > summary{cursor:pointer;color:var(--ds-accent-text);list-style:none;display:inline-block}
.sis-co-coupon > summary::-webkit-details-marker{display:none}
.sis-co-coupon-row{display:flex;gap:8px;margin-top:8px}
.sis-co-coupon-row .input-text{flex:1;min-height:40px}
.sis-co-coupon-msg:empty{display:none}
.sis-co-coupon-msg > *{margin:8px 0 0!important}
.sis-co-coupon-err{color:#FCA5A5;font-size:13px}

/* Payment: one gateway, no extra boxes; Stripe draws its own form. */
.sis-co-pay-h{margin:4px 0 8px!important;font:600 15px/1.3 var(--ds-font-body)!important;color:var(--ds-text)!important}
body.sis-co-checkout #payment{background:transparent!important;border-radius:0!important;padding:0!important}
body.sis-co-checkout #payment ul.payment_methods{margin:0!important;padding:0!important;border:0!important}
body.sis-co-checkout #payment ul.payment_methods > li{margin:0!important;padding:0!important;background:transparent!important}
body.sis-co-checkout #payment ul.payment_methods > li:only-child > input.input-radio,
body.sis-co-checkout #payment ul.payment_methods > li:only-child > label{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
body.sis-co-checkout #payment div.payment_box{margin:0!important;padding:0!important;background:transparent!important;color:var(--ds-text-muted)!important}
body.sis-co-checkout #payment div.payment_box::before{display:none!important}
body.sis-co-checkout #payment .form-row.place-order{margin:10px 0 0!important;padding:0!important}
body.sis-co-checkout .woocommerce-terms-and-conditions-wrapper{margin:0 0 10px}
body.sis-co-checkout .woocommerce-terms-and-conditions-wrapper .form-row{margin:0!important;padding:0!important}
body.sis-co-checkout .woocommerce-terms-and-conditions-checkbox-text{font-size:14px;line-height:1.45}
body.sis-co-checkout .woocommerce-terms-and-conditions-wrapper a{color:var(--ds-accent-text)!important;text-decoration:underline}
body.sis-co-checkout #place_order{display:block;width:100%!important;float:none!important;min-height:52px;margin:0!important;font-size:16px!important}
.sis-co-assure{margin:10px 0 0;font-size:12.5px;line-height:1.45;color:var(--ds-text-muted)}
.sis-co-assure p{margin:0 0 4px!important;font-size:12.5px!important}
.sis-co-assure a{color:var(--ds-accent-text)}
.sis-co-mini{display:none}

/* Phone and small tablets: one column, summary folded on top, then details, payment, Place order. */
@media (max-width:899px){
  body.sis-co-checkout .elementor > .e-con:first-child{padding-top:12px!important}
  body.sis-co-checkout form.checkout{display:flex!important;flex-direction:column}
  body.sis-co-checkout form.checkout > *{order:5}
  body.sis-co-checkout form.checkout > .woocommerce-NoticeGroup{order:0}
  body.sis-co-checkout .sis-co-left{display:contents!important}
  body.sis-co-checkout .sis-co-left > .sis-co-head{order:1}
  body.sis-co-checkout .sis-co-left > .sis-co-mini{order:2}
  body.sis-co-checkout .sis-co-left > *{order:3}
  body.sis-co-checkout form.checkout > #order_review{order:6}
  body.sis-co-checkout .sis-co-left > .sis-co-note{order:7;margin-top:12px}
  body.sis-co-checkout form.checkout > #order_review_heading{display:none!important}
  body.sis-co-checkout form.checkout > #order_review{position:static;margin-top:12px!important;padding:14px 16px 16px;border-top:1px solid var(--ds-line);border-radius:var(--ds-radius-lg)}
  body.sis-co-checkout .woocommerce-checkout-review-order-table{display:none!important}
  .sis-co-head{margin-bottom:10px}
  .sis-co-h1{font-size:26px!important}
  .sis-co-mini{display:block;margin:0 0 12px;padding:0 16px;background:var(--ds-surface-2);border:1px solid var(--ds-line);border-radius:var(--ds-radius-lg)}
  .sis-co-mini > summary{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:48px;cursor:pointer;list-style:none;font-weight:600;color:var(--ds-text)}
  .sis-co-mini > summary::-webkit-details-marker{display:none}
  .sis-co-mini > summary > span:first-child::after{content:"";display:inline-block;width:7px;height:7px;margin:0 0 3px 10px;border-right:2px solid var(--ds-accent-text);border-bottom:2px solid var(--ds-accent-text);transform:rotate(45deg)}
  .sis-co-mini[open] > summary > span:first-child::after{transform:rotate(-135deg);margin-bottom:-1px}
  .sis-co-mini-items{margin:0!important;padding:0 0 4px!important;list-style:none;border-top:1px solid var(--ds-line)}
  .sis-co-mini-items li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;font-size:14px;color:var(--ds-text)}
  .sis-co-mini-note{margin:0 0 10px!important;font-size:12.5px!important;color:var(--ds-text-muted)!important}
  body.sis-co-checkout .woocommerce-billing-fields{padding:14px 16px 4px}
  .sis-co-note{padding:12px 16px}
}
@media (max-width:420px){
  body.sis-co-checkout .woocommerce-billing-fields__field-wrapper{gap:10px}
}

/* Cart: one card for the items, one for the total, big "Checkout securely". */
body.sis-co-cart .woocommerce:has(> form.woocommerce-cart-form){max-width:1120px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;align-items:start}
body.sis-co-cart .woocommerce:has(> form.woocommerce-cart-form) > *{grid-column:1}
body.sis-co-cart .woocommerce:has(> form.woocommerce-cart-form) > .cart-collaterals{grid-column:2;grid-row:1 / span 3;position:sticky;top:16px;width:auto!important;margin:0!important}
body.sis-co-cart .woocommerce:has(> form.woocommerce-cart-form) > .woocommerce-notices-wrapper:empty{display:none}
body.sis-co-cart .woocommerce-cart-form{margin:0!important;padding:8px 20px;background:var(--ds-surface-2);border:1px solid var(--ds-line);border-radius:var(--ds-radius-lg)}
body.sis-co-cart table.shop_table.cart{margin:0!important;border:0!important;background:transparent!important}
body.sis-co-cart table.shop_table.cart thead{display:none}
body.sis-co-cart table.shop_table.cart td{border:0!important;border-bottom:1px solid var(--ds-line)!important;background:transparent!important;padding:12px 8px!important;vertical-align:middle}
body.sis-co-cart table.shop_table.cart tr:last-child td{border-bottom:0!important}
body.sis-co-cart table.shop_table.cart .product-thumbnail img{width:64px!important;height:64px;object-fit:cover;border-radius:10px}
body.sis-co-cart.sis-co-cart-simple table.shop_table.cart .product-quantity,
body.sis-co-cart.sis-co-cart-simple table.shop_table.cart .product-price{display:none}
body:not(#sis).sis-co-cart-simple .woocommerce-cart-form button[name="update_cart"]{display:none!important}
body.sis-co-cart table.shop_table.cart td.actions{padding:10px 8px!important;text-align:left!important}
body.sis-co-cart .sis-co-coupon-toggle{padding:0;border:0;background:none;color:var(--ds-accent-text);font-size:14px;cursor:pointer;text-decoration:underline}
body.sis-co-cart .woocommerce-cart-form .coupon{margin-top:8px}
body.sis-co-cart .woocommerce-cart-form .coupon[hidden]{display:none!important}
body.sis-co-cart .cart-collaterals .cart_totals{float:none!important;width:auto!important;padding:18px 20px;background:var(--ds-surface-2);border:1px solid var(--ds-line);border-radius:var(--ds-radius-lg)}
body.sis-co-cart .cart_totals h2{margin:0 0 8px!important;font:600 15px/1.3 var(--ds-font-body)!important;color:var(--ds-text)!important}
body.sis-co-cart .cart_totals table{margin:0 0 12px!important;border:0!important;background:transparent!important}
body.sis-co-cart .cart_totals th,
body.sis-co-cart .cart_totals td{padding:8px 0!important;border:0!important;border-bottom:1px solid var(--ds-line)!important;background:transparent!important}
body.sis-co-cart .cart_totals table:not(:has(.cart-discount,.fee,.tax-rate,.tax-total,.woocommerce-shipping-totals)) .cart-subtotal{display:none}
body.sis-co-cart .cart_totals .order-total th,
body.sis-co-cart .cart_totals .order-total td{border-bottom:0!important;font-size:16px;font-weight:600}
body.sis-co-cart .wc-proceed-to-checkout{padding:0!important}
body.sis-co-cart .wc-proceed-to-checkout .sis-co-cta{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;margin:0 0 8px!important;font-size:16px!important}
.sis-co-secure--cart{justify-content:center;text-align:center}
@media (max-width:899px){
  body.sis-co-cart .woocommerce:has(> form.woocommerce-cart-form){display:block}
  body.sis-co-cart .woocommerce:has(> form.woocommerce-cart-form) > .cart-collaterals{position:static;margin-top:12px!important}
  body.sis-co-cart .woocommerce-cart-form{padding:4px 14px}
  body.sis-co-cart table.shop_table_responsive.cart tr td{display:flex!important;justify-content:space-between;align-items:center;text-align:right!important}
  body.sis-co-cart table.shop_table_responsive.cart tr td.product-thumbnail{display:none!important}
}

body.sis-co-cart .elementor > .e-con:first-child{--content-width:1120px}
body.sis-co-cart .elementor > .e-con:first-child > .e-con-inner{max-width:1120px!important}
body.sis-co-cart .cart_totals td{text-align:right!important}

/* Desktop height budget (1280x800): Stripe draws the card form itself, so its own "Card" label is the payment heading. */
@media (min-width:900px){
  .sis-co-pay-h{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);margin:0!important}
  body.sis-co-checkout form.checkout > #order_review{position:sticky}
  body.sis-co-checkout form.checkout > #order_review_heading{padding-top:12px}
  body.sis-co-checkout .woocommerce-checkout-review-order-table th,
  body.sis-co-checkout .woocommerce-checkout-review-order-table td{padding:6px 0!important}
  body.sis-co-checkout .woocommerce-checkout-review-order-table .order-total th,
  body.sis-co-checkout .woocommerce-checkout-review-order-table .order-total td{padding-top:8px!important}
  body.sis-co-checkout .woocommerce-checkout-review-order-table{margin-bottom:10px!important}
}
body.sis-co-checkout #payment fieldset,
body.sis-co-checkout #payment .wc-stripe-upe-element,
body.sis-co-checkout #payment #wc-stripe-upe-form{margin:0!important;padding:0!important;border:0!important}
body.sis-co-checkout .woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox{display:flex!important;align-items:flex-start;gap:8px}
body.sis-co-checkout .woocommerce-terms-and-conditions-wrapper input#terms{margin-top:3px!important;flex:0 0 auto}
@media (max-width:899px){
  body.sis-co-checkout form.checkout > *,
  body.sis-co-checkout .sis-co-left > *{width:100%!important;max-width:100%!important;box-sizing:border-box;align-self:stretch}
  body.sis-co-checkout #wc-stripe-express-checkout-button-separator{text-align:center!important;margin:4px 0 12px!important;color:var(--ds-text-muted)}
  body.sis-co-checkout .elementor > .e-con:first-child{padding-top:4px!important}
}
