/* Stage 12 — Readdy design refinement without replacing native WooCommerce forms.
 * This stylesheet is intentionally scoped to RT layouts to avoid payment-gateway widgets.
 */
:root{--rt-polish-red:#bd2831;--rt-polish-deep:#87202e;--rt-polish-ink:#292124;--rt-polish-muted:#796d71;--rt-polish-border:#eee4e5;--rt-polish-surface:#fcfafa;--rt-polish-shadow:0 16px 45px rgba(49,18,26,.065)}
.rt-commerce-page{padding-block:1.5rem 4.75rem}
.rt-commerce-heading{font-family:var(--font-body);font-size:clamp(1.65rem,3vw,2.5rem);font-weight:800;letter-spacing:-.04em;margin:0 0 1.6rem}
.rt-commerce-breadcrumb{font-size:.78rem;margin-bottom:1rem;color:var(--rt-polish-muted)}
.rt-commerce-breadcrumb a:hover{color:var(--rt-polish-red)}
.rt-checkout-intro{margin:0 auto 1.6rem;max-width:1100px}
.rt-checkout-back{display:inline-flex;gap:.5rem;align-items:center;color:var(--rt-polish-muted);font-weight:650;font-size:.79rem;text-decoration:none;margin:0 0 .7rem}
.rt-checkout-back:hover{color:var(--rt-polish-red)}
.rt-checkout-brand{text-align:center;font-family:var(--font-body);font-size:clamp(1.6rem,3vw,2rem);font-weight:850;letter-spacing:-.06em;margin:.1rem 0 1.2rem;color:#231e1e}
.rt-checkout-brand span{color:var(--rt-polish-red)}
.rt-checkout-steps{display:flex;align-items:center;justify-content:center;gap:clamp(.7rem,3vw,2.5rem);margin:0 0 1.2rem;padding:0;list-style:none;color:#5a5054}
.rt-checkout-steps li{display:flex;align-items:center;gap:.55rem;font-size:.78rem;font-weight:700;min-width:0}
.rt-step-number{display:inline-grid;place-items:center;width:27px;height:27px;flex:0 0 27px;background:#fff3f3;border:1px solid #f1dadd;border-radius:50%;color:var(--rt-polish-red);font-size:.75rem}
.rt-checkout-info{display:flex;gap:.75rem;align-items:flex-start;border:1px solid #edd7db;background:#fff8f8;color:#68383f;border-radius:13px;padding:1rem 1.15rem;margin:0 0 1.6rem;font-size:.82rem;line-height:1.6}
.rt-checkout-info span{font-weight:800;flex:0 0 auto;color:var(--rt-polish-red)}
/* Native classic checkout: actual WooCommerce gateway fields and review table remain untouched. */
.rt-commerce-checkout .rt-commerce-shortcode.woocommerce form.checkout{display:grid;grid-template-columns:minmax(0,1fr) minmax(310px,390px);grid-template-areas:"details summary-title" "details summary";grid-template-rows:max-content auto;align-items:start;gap:0 2rem}
.rt-commerce-checkout .rt-commerce-shortcode.woocommerce form.checkout #customer_details{grid-area:details;min-width:0;margin:0}
.rt-commerce-checkout .rt-commerce-shortcode.woocommerce form.checkout #order_review_heading{grid-area:summary-title;min-width:0;padding:1.1rem 1.3rem .1rem;margin:0;background:#fff;border:1px solid var(--rt-polish-border);border-bottom:0;border-radius:15px 15px 0 0;font:800 1rem var(--font-body)}
.rt-commerce-checkout .rt-commerce-shortcode.woocommerce form.checkout #order_review{grid-area:summary;min-width:0;border:1px solid var(--rt-polish-border);border-top:0;border-radius:0 0 15px 15px;background:#fff;padding:1rem 1.3rem 1.3rem;box-shadow:var(--rt-polish-shadow)}
.rt-commerce-checkout .rt-commerce-shortcode.woocommerce form.checkout #customer_details .col-1,
.rt-commerce-checkout .rt-commerce-shortcode.woocommerce form.checkout #customer_details .col-2{float:none!important;width:100%!important;max-width:none!important;min-width:0;padding:0;margin:0 0 1.35rem}
.rt-commerce-checkout .rt-commerce-shortcode.woocommerce form.checkout #customer_details h3{font:800 clamp(1.03rem,2vw,1.22rem) var(--font-body);letter-spacing:-.02em;margin:0 0 1rem;color:var(--rt-polish-ink)}
.rt-commerce-checkout .rt-commerce-shortcode.woocommerce form.checkout #customer_details>.col-1,
.rt-commerce-checkout .rt-commerce-shortcode.woocommerce form.checkout #customer_details>.col-2{background:white;border:1px solid var(--rt-polish-border);border-radius:15px;padding:clamp(1rem,2vw,1.5rem);box-shadow:var(--rt-polish-shadow)}
.rt-commerce-shortcode.woocommerce form.checkout .form-row{margin:0 0 .85rem}
.rt-commerce-shortcode.woocommerce form.checkout .form-row-first,.rt-commerce-shortcode.woocommerce form.checkout .form-row-last{max-width:calc(50% - .5rem);width:calc(50% - .5rem)}
.rt-commerce-shortcode.woocommerce form.checkout .form-row-first{float:left!important;clear:left}.rt-commerce-shortcode.woocommerce form.checkout .form-row-last{float:right!important;clear:none}
.rt-commerce-shortcode.woocommerce form.checkout .form-row-wide{clear:both}
.rt-commerce-shortcode.woocommerce form.checkout .form-row label{font-weight:700;margin-bottom:.3rem;color:#504348}
.rt-commerce-shortcode.woocommerce form.checkout .form-row input.input-text,
.rt-commerce-shortcode.woocommerce form.checkout .form-row textarea,
.rt-commerce-shortcode.woocommerce form.checkout .form-row select{width:100%;box-shadow:none;min-height:46px;transition:border-color .16s,box-shadow .16s}
.rt-commerce-shortcode.woocommerce form.checkout .form-row input.input-text:focus,
.rt-commerce-shortcode.woocommerce form.checkout .form-row textarea:focus,
.rt-commerce-shortcode.woocommerce form.checkout .form-row select:focus{outline:2px solid #f3c8cc;outline-offset:1px;border-color:#bb2e3a}
.rt-commerce-shortcode.woocommerce form.checkout .select2-container{max-width:100%;min-width:0}
.rt-commerce-checkout .rt-commerce-shortcode.woocommerce #order_review table.shop_table{border:0;border-radius:0;box-shadow:none;margin:0 0 1rem;width:100%;font-size:.83rem}
.rt-commerce-checkout .rt-commerce-shortcode.woocommerce #order_review table.shop_table th,
.rt-commerce-checkout .rt-commerce-shortcode.woocommerce #order_review table.shop_table td{padding:.65rem .25rem;border:0;border-bottom:1px solid #f3ebed;background:#fff;overflow-wrap:anywhere}
.rt-commerce-checkout .rt-commerce-shortcode.woocommerce #order_review table.shop_table th:last-child,
.rt-commerce-checkout .rt-commerce-shortcode.woocommerce #order_review table.shop_table td:last-child{text-align:right}
.rt-commerce-checkout .rt-commerce-shortcode.woocommerce #payment{background:#fcf7f8;border:1px solid #f2e4e6}
.rt-commerce-checkout .rt-commerce-shortcode.woocommerce #payment ul.payment_methods{padding:1rem;border-bottom:1px solid #eadbdf}
.rt-commerce-checkout .rt-commerce-shortcode.woocommerce #payment div.form-row{padding:1rem}
.rt-commerce-checkout .rt-commerce-shortcode.woocommerce #payment #place_order{width:100%;float:none;min-height:50px;font-size:.91rem;background:var(--rt-polish-red);box-shadow:0 6px 16px #bd283125}
.rt-commerce-checkout .rt-commerce-shortcode.woocommerce #payment .payment_box{max-width:100%}
.rt-commerce-checkout .rt-commerce-shortcode.woocommerce .woocommerce-privacy-policy-text{font-size:.76rem;color:#70656a;line-height:1.65}
.rt-commerce-security-note{text-align:center;max-width:590px;margin:1.2rem auto 0;font-size:.78rem;color:#756d6e}
/* Cart stays editable using the native WC form, with accessible scroll on small screens. */
.rt-commerce-cart .rt-commerce-shortcode.woocommerce{min-width:0}
.rt-commerce-cart .rt-commerce-shortcode.woocommerce form.woocommerce-cart-form{width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.rt-commerce-cart .rt-commerce-shortcode.woocommerce .woocommerce-cart-form table.shop_table{min-width:580px;margin-bottom:1.4rem}
.rt-commerce-cart .rt-commerce-shortcode.woocommerce .cart_totals table.shop_table{min-width:0;width:100%;table-layout:auto}
.rt-commerce-cart .rt-commerce-shortcode.woocommerce table.shop_table .product-price,
.rt-commerce-cart .rt-commerce-shortcode.woocommerce table.shop_table .product-subtotal{white-space:nowrap}
.rt-commerce-cart .rt-commerce-shortcode.woocommerce .cart-collaterals{display:flex;justify-content:flex-end;clear:both;gap:1.5rem}
.rt-commerce-cart .rt-commerce-shortcode.woocommerce .cart-collaterals .cart_totals{float:none;width:min(100%,420px);border:1px solid var(--rt-polish-border);padding:1.25rem;border-radius:15px;box-shadow:var(--rt-polish-shadow)}
.rt-commerce-cart .rt-commerce-shortcode.woocommerce .cart-collaterals h2{font:800 1.22rem var(--font-body);margin:0 0 1rem}
.rt-commerce-cart .rt-commerce-shortcode.woocommerce .cart-collaterals .checkout-button{width:100%;text-align:center;display:block;min-height:48px}
.rt-tier-banner{border-color:#eedfe1;background:#fff7f7;box-shadow:none}
/* Account: sidebar on desktop, scrollable tab rail on mobile. No mock orders. */
.rt-commerce-my-account .rt-commerce-shortcode.woocommerce .woocommerce-MyAccount-navigation{float:left!important;width:min(26%,260px)!important;max-width:260px;margin:0 0 1.5rem}
.rt-commerce-my-account .rt-commerce-shortcode.woocommerce .woocommerce-MyAccount-content{float:right!important;width:calc(74% - 2rem)!important;min-width:0;padding:clamp(1.15rem,2.5vw,2rem);box-shadow:var(--rt-polish-shadow)}
.rt-commerce-my-account .rt-commerce-shortcode.woocommerce .woocommerce-MyAccount-content h2,
.rt-commerce-my-account .rt-commerce-shortcode.woocommerce .woocommerce-MyAccount-content h3{font-family:var(--font-body);font-weight:800}
.rt-commerce-my-account .rt-commerce-shortcode.woocommerce .woocommerce-MyAccount-content .woocommerce-Button{display:inline-flex;justify-content:center;align-items:center}
.rt-commerce-my-account .rt-commerce-shortcode.woocommerce .woocommerce-MyAccount-navigation li a{border-left:3px solid transparent;transition:background .15s,color .15s}
.rt-commerce-my-account .rt-commerce-shortcode.woocommerce .woocommerce-MyAccount-navigation li.is-active a{border-left-color:var(--rt-polish-red)}
.rt-commerce-my-account .rt-commerce-shortcode.woocommerce .woocommerce-MyAccount-orders{display:block;overflow-x:auto;max-width:100%;font-size:.8rem}
.rt-commerce-my-account .rt-commerce-shortcode.woocommerce .woocommerce-MyAccount-orders th,
.rt-commerce-my-account .rt-commerce-shortcode.woocommerce .woocommerce-MyAccount-orders td{white-space:nowrap;padding:.6rem}
/* Factual process reassurance, in the original Readdy three-column card rhythm. */
.rt-commerce-assurance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:2rem 0 0}
.rt-commerce-assurance>div{display:flex;gap:.8rem;align-items:flex-start;padding:1rem 1.1rem;border:1px solid var(--rt-polish-border);border-radius:14px;background:var(--rt-polish-surface)}
.rt-assurance-icon{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;color:var(--rt-polish-red);background:#ffedef;font-weight:800}
.rt-commerce-assurance p{display:grid;gap:.35rem;margin:0;min-width:0}
.rt-commerce-assurance strong{font-size:.81rem;line-height:1.3;color:#38292c}
.rt-commerce-assurance small{font-size:.73rem;color:#786b70;line-height:1.45}
/* Catalog/image baseline; actual product prices and media still come from WooCommerce. */
.rt-commerce-main .rt-shop-card,.rt-product-buy,.rt-product-gallery-col .woocommerce-product-gallery__wrapper{box-shadow:0 2px 14px rgba(31,10,14,.04)}
.rt-commerce-main a:focus-visible,.rt-commerce-page a:focus-visible,.rt-commerce-page button:focus-visible,
.rt-commerce-page input:focus-visible,.rt-commerce-page select:focus-visible{outline:2px solid var(--rt-polish-red);outline-offset:3px}
.rt-commerce-shortcode.woocommerce .woocommerce-error a,.rt-commerce-shortcode.woocommerce .woocommerce-message a{font-weight:700}
/* Avoid layout jumps for media and support reduced-motion preferences. */
.rt-shop-card img,.rt-product-gallery-col img{height:auto;max-width:100%}
@media(max-width:1023px){
 .rt-commerce-checkout .rt-commerce-shortcode.woocommerce form.checkout{grid-template-columns:minmax(0,1fr);grid-template-areas:"summary-title" "summary" "details";grid-template-rows:auto;gap:0}
 .rt-commerce-checkout .rt-commerce-shortcode.woocommerce form.checkout #order_review{margin-bottom:1.35rem}
 .rt-commerce-my-account .rt-commerce-shortcode.woocommerce .woocommerce-MyAccount-navigation{width:220px!important}
 .rt-commerce-my-account .rt-commerce-shortcode.woocommerce .woocommerce-MyAccount-content{width:calc(100% - 245px)!important}
}
@media(max-width:767px){
 .rt-commerce-page{padding-block:1.2rem 3rem;width:min(100% - 2rem,1200px)}
 .rt-checkout-steps{justify-content:space-between;gap:.35rem}
 .rt-checkout-steps li{font-size:.66rem;gap:.25rem}.rt-step-number{width:23px;height:23px;flex-basis:23px;font-size:.67rem}
 .rt-checkout-info{font-size:.76rem;padding:.85rem;line-height:1.5}
 .rt-commerce-checkout .rt-commerce-shortcode.woocommerce form.checkout #order_review_heading{padding:1rem .9rem 0}
 .rt-commerce-checkout .rt-commerce-shortcode.woocommerce form.checkout #order_review{padding:.75rem .9rem 1rem}
 .rt-commerce-checkout .rt-commerce-shortcode.woocommerce form.checkout #customer_details>.col-1,
 .rt-commerce-checkout .rt-commerce-shortcode.woocommerce form.checkout #customer_details>.col-2{padding:1rem}
 .rt-commerce-cart .rt-commerce-shortcode.woocommerce .cart-collaterals .cart_totals{width:100%}
 .rt-commerce-my-account .rt-commerce-shortcode.woocommerce .woocommerce-MyAccount-navigation{float:none!important;width:100%!important;max-width:100%;margin:0 0 1rem;border:0;background:transparent;overflow-x:auto}
 .rt-commerce-my-account .rt-commerce-shortcode.woocommerce .woocommerce-MyAccount-navigation ul{display:flex;align-items:stretch;gap:.35rem;overflow-x:auto;scrollbar-width:thin;padding:0 0 .5rem}
 .rt-commerce-my-account .rt-commerce-shortcode.woocommerce .woocommerce-MyAccount-navigation li{flex:0 0 auto;border:0}
 .rt-commerce-my-account .rt-commerce-shortcode.woocommerce .woocommerce-MyAccount-navigation li a{white-space:nowrap;border:1px solid #e9dfe0!important;border-radius:999px;padding:.55rem .9rem;font-size:.78rem}
 .rt-commerce-my-account .rt-commerce-shortcode.woocommerce .woocommerce-MyAccount-navigation li.is-active a{background:#fff0f2;border-color:#d99ca6!important}
 .rt-commerce-my-account .rt-commerce-shortcode.woocommerce .woocommerce-MyAccount-content{float:none!important;width:100%!important;padding:1rem}
 .rt-commerce-assurance{grid-template-columns:1fr;gap:.6rem;margin-top:1.35rem}
 .rt-commerce-assurance>div{padding:.85rem}
}
@media(max-width:420px){
 .rt-commerce-shortcode.woocommerce form.checkout .form-row-first,
 .rt-commerce-shortcode.woocommerce form.checkout .form-row-last{float:none!important;clear:both!important;width:100%;max-width:100%}
 .rt-checkout-steps li{max-width:33%;line-height:1.15}
 .rt-commerce-checkout .rt-commerce-shortcode.woocommerce form.checkout #order_review table.shop_table{font-size:.77rem}
}
@media(prefers-reduced-motion:reduce){.rt-commerce-page *{scroll-behavior:auto!important;transition:none!important;animation-duration:.01ms!important}}
/* Stage 12 header alignment: Readdy's slim sticky navigation while retaining WP menus. */
.rt-site-header{position:sticky;top:0;z-index:1100;background:rgba(255,255,255,.96);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 1px 8px rgba(34,19,21,.045)}
.rt-header-inner{min-height:64px}
.rt-primary-nav .rt-menu-list a{font-size:.82rem}
@media(max-width:767px){.rt-header-inner{min-height:58px}.rt-site-header{box-shadow:0 1px 6px rgba(34,19,21,.05)}}
/* WooCommerce's heading and order-review are siblings, so align both to the same
   grid row to prevent the billing panel height from creating a visual gap. */
@media(min-width:1024px){
 .rt-commerce-checkout .rt-commerce-shortcode.woocommerce form.checkout{grid-template-areas:none;grid-template-rows:auto}
 .rt-commerce-checkout .rt-commerce-shortcode.woocommerce form.checkout #customer_details{grid-area:auto;grid-column:1;grid-row:1}
 .rt-commerce-checkout .rt-commerce-shortcode.woocommerce form.checkout #order_review_heading{grid-area:auto;grid-column:2;grid-row:1;align-self:start}
 .rt-commerce-checkout .rt-commerce-shortcode.woocommerce form.checkout #order_review{grid-area:auto;grid-column:2;grid-row:1;align-self:start;margin-top:49px}
}
