/* Cart, checkout and account surfaces. WooCommerce continues to own all forms. */
.checkout-topbar{border-bottom:1px solid #eee;background:#fff}
.checkout-topbar__inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 20px;padding:14px 0}
.checkout-topbar__inner p{display:flex;align-items:center;gap:7px;margin:0;color:#26332c;font-size:13px;font-weight:650}
.checkout-topbar__inner .icon{width:17px;height:17px;color:#19734a}

/* =============================================
   CHECKOUT (classic [woocommerce_checkout] shortcode)
   Styled to reproduce the previous Blocks checkout: white field column
   on the left (contact / address / shipping / payment), full-bleed warm
   order-summary column on the right. See inc/checkout-block.php and
   woocommerce/checkout/*.php for the markup hooks/overrides.
   ============================================= */

body.woocommerce-checkout main.content-shell{padding-block:0;overflow-x:clip}
body.woocommerce-checkout .entry-content{max-width:none}

.raytoys-checkout-brand{margin:22px 0 0}
.raytoys-checkout-brand .custom-logo{display:block;width:auto;max-width:150px;max-height:64px}
.raytoys-checkout-brand .brand-text{font:700 30px/1 Alata,sans-serif;letter-spacing:-1.5px}
.raytoys-checkout-brand .brand-text span{color:var(--rt-coral)}

/* Coupon toggle: quiet row aligned with the form, not a full-width bar. */
.woocommerce-checkout .woocommerce-form-coupon-toggle{max-width:var(--rt-container);margin:8px auto 0;padding:0}
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info{margin:0;padding:0;border:0;background:transparent;color:var(--rt-muted);font-size:13px;list-style:none}
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before{display:none}
.woocommerce-checkout form.checkout_coupon{max-width:var(--rt-container);margin:0 auto;padding-inline:20px;border:0}

.woocommerce-checkout form.checkout{position:relative;max-width:var(--rt-container);margin-inline:auto;padding:8px 0 60px;display:grid;grid-template-columns:minmax(0,1fr) 460px;column-gap:40px;align-items:start}


.woocommerce-checkout #customer_details{grid-column:1;grid-row:1;float:none!important;width:auto!important;padding:0!important;border:0!important;background:transparent!important;border-radius:0!important;max-width:640px}
.col2-set#customer_details{display:block}
.col2-set#customer_details .col-1,
.col2-set#customer_details .col-2{width:auto;float:none}


/* Section rhythm, matching the old step sections. */
.raytoys-checkout-section{padding-bottom:26px;margin-bottom:26px;border-bottom:1px solid var(--rt-line)}
.woocommerce-checkout #customer_details h3,
.raytoys-checkout-section>h3,
#ship-to-different-address{font:400 19px/1.2 Alata,sans-serif;color:var(--rt-ink);margin:0 0 14px}
#ship-to-different-address{display:flex;align-items:center;margin-top:18px}
#ship-to-different-address label{display:flex;align-items:center;gap:8px;font:inherit;color:inherit;margin:0}
.woocommerce-additional-fields{margin-top:18px}

#order_review_heading{display:none}

.raytoys-checkout-summary-col{grid-column:2;grid-row:1 / span 2;align-self:start;min-width:0}
.raytoys-summary-heading{margin:0 0 18px;padding:0;font:400 22px/1.2 Alata,sans-serif;font-weight:400!important;color:var(--rt-ink);background:transparent;border:0;border-radius:0}
.woocommerce-checkout #order_review.woocommerce-checkout-review-order{float:none!important;width:auto!important;margin:0!important;padding:0!important;background:transparent;border:0!important;border-radius:0!important}
.raytoys-checkout-help{margin-top:24px}

/* Inputs, aligned with the rest of the site's form styling. */
.woocommerce-checkout .form-row{margin:0 0 10px;padding:0}
.woocommerce-checkout .form-row label{display:block;margin-bottom:4px;font:600 14px/1.35 Inter,Arial,sans-serif;color:var(--rt-ink)}
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last{width:calc(50% - 7px);float:none;display:inline-block;vertical-align:top}
.woocommerce-checkout .form-row-first{margin-right:10px}
.woocommerce-checkout form.checkout .form-row input.input-text,
.woocommerce-checkout form.checkout .form-row select{width:100%;height:48px;min-height:48px;border-radius:8px;border:1px solid #d7d9dd;padding:0 14px!important;font-size:14px;line-height:1.2;background:#fff}
.woocommerce-checkout form.checkout .form-row select{padding-right:40px!important}
.woocommerce-checkout form.checkout .form-row textarea{width:100%;min-height:80px;border-radius:8px;border:1px solid #d7d9dd;padding:12px 14px!important;font-size:14px;line-height:1.4;background:#fff;resize:vertical}
.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus{border-color:var(--rt-green);outline:none}
.woocommerce-checkout .select2-container .select2-selection--single{height:48px;min-height:48px;border-radius:8px;border-color:#d7d9dd;display:flex;align-items:center;padding:0 40px 0 14px}
.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered{padding:0;line-height:1.2}
.woocommerce-checkout .select2-container .select2-selection__arrow{height:46px;right:8px}
.woocommerce-checkout input[type=checkbox]{accent-color:var(--rt-green);width:16px;height:16px}

/* Order summary: plain products above a grouped totals panel. */
.woocommerce-checkout-review-order-table{display:block;width:100%;margin:0!important;border:0!important;border-radius:0!important;border-collapse:collapse;table-layout:auto;background:transparent!important}
.woocommerce table.shop_table td{border-top:0}
.woocommerce table.shop_table tfoot th{border-top:0}
.woocommerce-checkout-review-order-table thead{display:none}
.woocommerce-checkout-review-order-table tbody{display:block;width:100%}
.woocommerce-checkout-review-order-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%;border-bottom:1px solid var(--rt-line)}
.woocommerce-checkout-review-order-table tbody td{padding:14px 0;border:0}
.woocommerce-checkout-review-order-table .product-name{color:var(--rt-ink)}
.woocommerce-checkout-review-order-table .product-total{width:auto!important;padding-left:14px;text-align:right;align-self:center;color:var(--rt-ink);white-space:nowrap}
.woocommerce-checkout-review-order-table .product-total .woocommerce-Price-amount{color:var(--rt-ink)!important}
.woocommerce-checkout-review-order-table tfoot{display:block;width:100%;margin-top:20px;border:1px solid #d7d9dd;border-radius:8px;background:#fafafa;overflow:hidden}
.woocommerce-checkout-review-order-table tfoot tr{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%;padding:0 20px;border-bottom:1px solid #d7d9dd;align-items:start}
.woocommerce-checkout-review-order-table tfoot tr:last-child{border-bottom:0}
.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td{width:auto!important;padding:17px 0;border:0;background:transparent!important}
.woocommerce-checkout-review-order-table tfoot th{font-weight:400;color:var(--rt-ink);text-align:left}
.woocommerce-checkout-review-order-table tfoot td{padding-left:14px;text-align:right;color:var(--rt-ink);white-space:nowrap}
.woocommerce-checkout-review-order-table tfoot tr.order-total th,
.woocommerce-checkout-review-order-table tfoot tr.order-total td{padding-top:22px;padding-bottom:22px;font-size:19px;font-weight:800;color:var(--rt-ink);vertical-align:top}
.woocommerce-checkout-review-order-table tfoot tr.order-total td{white-space:nowrap}
.woocommerce-checkout-review-order-table tfoot tr.order-total td .woocommerce-Price-taxRateLabel,
.woocommerce-checkout-review-order-table tfoot tr.order-total td small{display:block;font-size:12px;font-weight:400;color:var(--rt-muted);white-space:normal}

.raytoys-summary-item{display:flex;align-items:flex-start;gap:12px}
.raytoys-summary-item__image{position:relative;flex:0 0 auto}
.raytoys-summary-item__image img{width:56px;height:56px;max-width:56px;object-fit:contain;border:1px solid var(--rt-line);border-radius:10px;background:#fff}
.raytoys-summary-item__qty{position:absolute;top:-7px;right:-7px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--rt-ink);color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}
.raytoys-summary-item__text{font-weight:600;font-size:14px;line-height:1.35}

/* Native WooCommerce shipping choices inside the totals panel. */
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals{display:grid;grid-template-columns:1fr;width:100%;padding:0 20px 16px}
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals>th{display:block;width:100%;padding:18px 0 8px;font-size:15px;font-weight:400;color:var(--rt-ink)}
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals>td{display:block;width:100%!important;padding:0!important;white-space:normal!important}
#shipping_method{list-style:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;overflow:visible}
#shipping_method li{position:relative;min-height:34px;margin:0;padding:0;border:0;border-radius:0;background:transparent;display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:9px}
.woocommerce ul#shipping_method li{margin:0!important}
#shipping_method li:has(input:checked){background:transparent;outline:0}
#shipping_method li input[type=radio],
li.wc_payment_method>input[type=radio]{float:none!important;width:18px;height:18px;margin:0!important;accent-color:#39b54a;cursor:pointer}
#shipping_method li input[type=radio]:focus,
li.wc_payment_method>input[type=radio]:focus{outline:0;box-shadow:none}
#shipping_method li label{width:100%;min-height:34px;margin:0;display:flex!important;align-items:center;justify-content:space-between;gap:8px;font:600 14px/1.35 Inter,Arial,sans-serif;color:var(--rt-ink);cursor:pointer}
#shipping_method li label .amount{flex:0 0 auto;margin-left:auto;font-weight:600;color:var(--rt-ink);white-space:nowrap}
.woocommerce-shipping-totals .woocommerce-shipping-destination,
.woocommerce-shipping-totals .shipping-calculator-button{display:block;margin-top:6px;color:var(--rt-muted);font-size:12px}

.woocommerce-checkout #payment{margin:20px 0 0;padding:0;background:transparent;border:0;border-radius:0}
.woocommerce-checkout #payment::before{content:none}
.woocommerce-checkout #payment ul.wc_payment_methods{list-style:none;margin:0;padding:0;border:1px solid #d7d9dd;border-radius:8px;background:#fff;overflow:hidden}
li.wc_payment_method{position:relative;min-height:60px;margin:0!important;padding:0 20px!important;border:0!important;border-bottom:1px solid #d7d9dd!important;border-radius:0!important;background:#fff;display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:0 12px}
li.wc_payment_method::before,
li.wc_payment_method::after{display:none!important;content:none!important}
li.wc_payment_method:last-child{border-bottom:0!important}
li.wc_payment_method:has(>input:checked){background:#fff;outline:0}
li.wc_payment_method>input[type=radio]{grid-column:1;grid-row:1}
li.wc_payment_method>label{grid-column:2;grid-row:1;width:auto!important;min-height:60px;margin:0!important;padding:14px 0;display:flex!important;align-items:center;justify-content:space-between;gap:14px;font:600 14px/1.35 Inter,Arial,sans-serif;color:var(--rt-ink);cursor:pointer}
li.wc_payment_method>label img{flex:0 0 auto;max-width:86px;max-height:32px;margin-left:auto}
li.wc_payment_method .payment_box{grid-column:1 / -1;grid-row:2;width:auto!important;margin:0!important;padding:0 0 16px 30px!important;border:0!important;border-radius:0!important;background:transparent!important;font-size:13px;line-height:1.5;color:var(--rt-ink)}
li.wc_payment_method .payment_box p{margin:0}
li.wc_payment_method .payment_box::before{display:none!important;content:none!important}

.raytoys-checkout-newsletter{display:flex;align-items:flex-start;gap:0;font-size:14px;font-weight:600;color:var(--rt-ink)}

.woocommerce-terms-and-conditions-wrapper{margin:18px 0 12px;color:var(--rt-ink);font-size:14px}
.woocommerce-terms-and-conditions-wrapper a{color:#1769aa;text-decoration:underline}
.woocommerce-form__label-for-checkbox{display:flex;align-items:flex-start;gap:8px}
.woocommerce-checkout #payment .form-row.place-order{margin:0!important;padding:0!important;background:transparent!important}

/* Primary checkout action. */
#place_order{width:100%;min-height:56px;margin-top:10px;padding:0 28px;background:#35b94f!important;border:1px solid #35b94f!important;border-radius:7px!important;color:#fff!important;font-weight:700!important;box-shadow:none}
#place_order:hover{background:#125d3b!important;border-color:#125d3b!important;transform:translateY(-1px)}
#place_order.disabled,
#place_order[disabled]{background:#aeb4b0!important;border-color:#aeb4b0!important;box-shadow:none;opacity:1;cursor:not-allowed;transform:none}

/* Help card, last thing under the order review column. */
.raytoys-checkout-help{margin-top:24px;padding-top:20px;border-top:1px solid var(--rt-line);text-align:center}
.raytoys-checkout-help p{margin:0 0 8px;color:var(--rt-muted);font-size:13px}
.raytoys-checkout-help a{display:inline-flex;align-items:center;gap:8px;color:var(--rt-ink);font-weight:700;font-size:15px}
.raytoys-checkout-help a:hover{color:var(--rt-green)}
.raytoys-checkout-help .icon{width:18px;height:18px;color:var(--rt-green)}
.raytoys-checkout-help a.raytoys-checkout-help__back{display:block;margin-top:14px;color:var(--rt-muted)!important;font-weight:400!important;font-size:13px!important;text-decoration:underline;text-underline-offset:3px}
.raytoys-checkout-help a.raytoys-checkout-help__back:hover{color:var(--rt-ink)!important}

@media(max-width:900px){
	.woocommerce-checkout form.checkout{display:block}
	.raytoys-summary-heading{margin-top:24px;border-radius:16px 16px 0 0}
	.woocommerce-checkout #order_review.woocommerce-checkout-review-order{margin-bottom:0}
	.checkout-topbar__inner{justify-content:center;gap:8px 14px}
	.checkout-topbar__inner p{gap:5px;font-size:11px;white-space:nowrap}
	.checkout-topbar__inner .icon{width:15px;height:15px}
}
/* =============================================
   CART (WooCommerce block-based Cart)
   Rendered via do_blocks() on markup stored in the theme (see
   inc/cart-block.php), not the [woocommerce_cart] shortcode still sitting
   in the page's post_content. Class names verified against a real
   rendered Cart block on this same WooCommerce version.
   ============================================= */

.wp-block-woocommerce-cart{margin-top:6px;color:var(--rt-ink)}

.wc-block-cart__main{padding:0 20px;border:1px solid var(--rt-line);border-radius:var(--rt-radius);background:#fff;box-shadow:var(--rt-shadow)}

.wc-block-cart-items__header{color:var(--rt-muted);font-size:12px}

.wc-block-components-product-name{color:var(--rt-ink);font-weight:700}

.wc-block-components-product-price,
.wc-block-cart-item__total,
.wc-block-components-totals-item__value{color:var(--rt-ink)}

.wc-block-components-product-price del{color:#9aa0a6}

.wc-block-components-product-metadata__description{display:none}

.wc-block-components-quantity-selector{min-height:44px;border-color:var(--rt-line);border-radius:10px;background:#fff;overflow:hidden}
.wc-block-components-quantity-selector__button{color:var(--rt-ink)}
.wc-block-components-quantity-selector__button:hover{background:var(--rt-warm)}

.wc-block-cart-item__remove-link{border-radius:8px!important;color:var(--rt-muted)!important}
.wc-block-cart-item__remove-link:hover{background:rgba(255,107,98,.08)!important;color:var(--rt-coral)!important}

.wc-block-cart-items .wc-block-cart-item__image img{width:88px;max-width:88px;height:88px;object-fit:contain;object-position:center;border-radius:10px;border:1px solid var(--rt-line)}

.wp-block-woocommerce-cart-order-summary-block{padding:4px 20px 0;border:1px solid var(--rt-line);border-radius:var(--rt-radius);background:#fff;box-shadow:var(--rt-shadow)}

.wc-block-components-panel__button,
.wc-block-components-totals-item{color:var(--rt-ink)}

.wc-block-components-totals-shipping .wc-block-components-totals-item__value{color:var(--rt-green);font-weight:700}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value{font-size:19px;font-weight:800}

.wc-block-components-totals-coupon__input input{border-color:var(--rt-line);border-radius:10px;min-height:44px}
.wc-block-components-totals-coupon__input input:focus{border-color:var(--rt-green)}
.wc-block-components-totals-coupon__button{border-radius:10px;background:var(--rt-ink);color:#fff;font-weight:700}
.wc-block-components-totals-coupon__button:hover{background:#000}

/* Proceed to checkout button, matches the site's other primary CTAs. */
.wc-block-cart__submit-button{min-height:52px;border:1px solid var(--rt-green)!important;border-radius:10px!important;background:var(--rt-green)!important;color:#fff!important;font-weight:700!important;box-shadow:0 7px 18px rgba(25,115,74,.16)}
.wc-block-cart__submit-button:hover{background:#125d3b!important;border-color:#125d3b!important;transform:translateY(-1px)}

/* "You may be interested in…" / "New in store" cross-sell headings. */
.wp-block-woocommerce-cart .wp-block-heading{font:400 clamp(22px,2.6vw,30px)/1.2 Alata,sans-serif;letter-spacing:-.5px}
.wc-block-cart__empty-cart__title{margin-bottom:10px}

@media(max-width:850px){
	.wc-block-cart__main{padding:0}
	.wc-block-cart__main,
	.wp-block-woocommerce-cart-order-summary-block{border:0;border-radius:0;background:transparent;box-shadow:none}

	table.wc-block-cart-items{display:block;border-spacing:0}
	table.wc-block-cart-items tbody{display:grid;gap:12px}
	table.wc-block-cart-items .wc-block-cart-items__row{display:grid;grid-template-columns:76px minmax(0,1fr);width:100%;padding:14px!important;border:1px solid var(--rt-line)!important;border-radius:14px;background:#fff;box-shadow:0 8px 22px rgba(21,33,50,.06)}
	table.wc-block-cart-items .wc-block-cart-item__image{grid-column:1;grid-row:1;align-self:start;padding:0 10px 0 0!important}
	.wc-block-cart-items .wc-block-cart-item__image img{width:64px;max-width:64px;height:64px}
	table.wc-block-cart-items .wc-block-cart-item__product{grid-column:2;grid-row:1;min-width:0;padding:0!important}
	table.wc-block-cart-items .wc-block-cart-item__quantity{grid-column:1/3;grid-row:2;align-self:center;margin-top:12px;padding:0!important}
	table.wc-block-cart-items .wc-block-cart-item__total{display:none}

	.wp-block-woocommerce-cart-order-summary-block{margin-top:18px;padding:4px 14px 0;border:1px solid var(--rt-line);border-radius:14px;background:#fff;box-shadow:0 8px 22px rgba(21,33,50,.06)}
}
