/* ==========================================================================
   Ronaz Shop — cart.css  (cart, checkout, order received / failed)
   ========================================================================== */
.checkout-hero{padding-block:26px}

/* ---------- Cart ---------- */
.cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:28px;align-items:start}
.cart-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.cart-head .page-title{font-size:var(--fs-xl);margin:0}
.shop_table.cart{border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;background:var(--velvet);font-variant-numeric:tabular-nums}
.shop_table.cart th{font-size:12.5px;color:var(--muted);font-weight:500;text-align:right;padding:13px 14px;background:var(--velvet-2)}
.shop_table.cart td{padding:16px 14px;border-top:1px solid var(--line);vertical-align:middle}
.product-thumbnail img{width:90px;height:90px;border-radius:14px;object-fit:cover}
.shop_table.cart .product-name a{font-weight:600;font-size:14.5px;line-height:1.6}
.variation{margin:4px 0 0;font-size:12.5px;color:var(--muted)}
.variation dd{margin:0}
.cart-brand{display:block;font-size:13px;color:var(--rg-4)}
.shop_table.cart .price{gap:0}
.shop_table.cart .price > .amount,.shop_table.cart .price ins .amount{font-size:14.5px}
.product-subtotal .amount{font-weight:800;color:var(--rg-8)}
.product-remove .remove{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;color:var(--faint)}
.product-remove .remove:hover{background:rgba(239,139,128,.1);color:var(--danger)}
.cart-actions{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px}
.coupon{display:flex;gap:8px;flex:1;max-width:440px}
.coupon input{flex:1;min-width:0;border-radius:var(--r-pill)}
.gift-option{margin-top:18px;padding:16px 18px;border:1px dashed var(--rg-2);border-radius:var(--r);background:var(--metal-soft)}
.gift-option b{color:var(--rg-7)}

.cart-collaterals{position:sticky;top:calc(var(--header-h) + 60px);display:flex;flex-direction:column;gap:14px}
.free-shipping-meter.in-panel{padding:0 0 14px;border:0}
.free-shipping-meter.in-panel p{display:flex;align-items:center;gap:4px;color:var(--success)}
.totals-table{font-size:14px;font-variant-numeric:tabular-nums}
.totals-table th{text-align:right;font-weight:400;color:var(--muted);padding:9px 0}
.totals-table td{text-align:left;padding:9px 0}
.totals-table .cart-discount td,.totals-table .cart-discount .amount{color:var(--sale)}
.totals-table .cart-discount .woocommerce-Price-currencySymbol{color:inherit}
.totals-table .order-total th,.totals-table .order-total td{border-top:1px solid var(--line);padding-top:14px;font-size:16px;color:var(--text);font-weight:700}
.totals-table .order-total .amount{font-size:19px;color:var(--rg-8)}
.wc-proceed-to-checkout{margin-top:16px}
.totals-note{display:flex;align-items:center;justify-content:center;gap:6px;margin:12px 0 0;font-size:12.5px;color:var(--muted);text-align:center}
.cart-trust{display:flex;flex-direction:column;gap:10px;padding:16px 18px;border:1px solid var(--line);border-radius:var(--r-lg);font-size:13px;color:var(--muted)}
.cart-trust li{display:flex;align-items:center;gap:10px}
.cart-trust .icon{color:var(--rg-5)}
.cross-sells{margin-top:20px}

@media (max-width:1024px){
  .cart-layout{grid-template-columns:1fr}
  .cart-collaterals{position:static}
}
/* Responsive cart table → cards */
@media (max-width:720px){
  .shop_table_responsive thead{display:none}
  .shop_table_responsive,.shop_table_responsive tbody{display:block}
  .shop_table_responsive tr.cart_item{display:grid;grid-template-columns:80px 1fr auto;grid-template-areas:"img name remove" "img price price" "img qty sub";gap:6px 12px;padding:14px;border-top:1px solid var(--line)}
  .shop_table_responsive tr.cart_item:first-child{border-top:0}
  .shop_table_responsive tr.cart_item td{display:block;padding:0;border:0}
  .shop_table.cart .product-thumbnail{grid-area:img}
  .product-thumbnail img{width:80px;height:80px}
  .shop_table.cart .product-name{grid-area:name}
  .shop_table.cart .product-price{grid-area:price}
  .shop_table.cart .product-quantity{grid-area:qty}
  .shop_table.cart .product-subtotal{grid-area:sub;align-self:center}
  .shop_table.cart .product-remove{grid-area:remove}
  .shop_table.cart .product-price .price{flex-direction:row;gap:8px;align-items:baseline}
  .coupon{max-width:none;width:100%}
  .cart-actions .btn-dark{width:100%}
}

/* ---------- Checkout ---------- */
.checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:28px;align-items:start}
.checkout-main{display:flex;flex-direction:column;gap:20px;min-width:0}
.step-num{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--metal);color:var(--on-metal);font-size:14px;font-weight:800;margin-left:8px}
.shipping-fields{margin-top:16px;padding-top:16px;border-top:1px dashed var(--line)}
.option-cards{display:flex;flex-direction:column;gap:10px}
.option-card{display:flex;align-items:center;gap:14px;padding:16px 18px;border:1px solid var(--line);border-radius:var(--r);background:var(--velvet-2);cursor:pointer;transition:border-color .2s,background .2s;font-weight:400;color:var(--text)}
.option-card:hover{border-color:var(--rg-3)}
.option-card:has(input:checked){border-color:var(--rg-5);background:rgba(222,154,127,.08)}
.option-card input{appearance:none;-webkit-appearance:none;width:20px;height:20px;min-height:0;padding:0;border-radius:50%;border:1.5px solid var(--rg-3);flex-shrink:0;display:grid;place-items:center}
.option-card input:checked{border-color:var(--rg-5)}
.option-card input:checked::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--metal)}
.oc-body{display:flex;align-items:center;gap:12px;flex:1;min-width:0}
.oc-body > .icon{color:var(--rg-5);flex-shrink:0}
.oc-body b{display:block;font-size:14.5px}
.oc-body small{display:block;font-size:12.5px;color:var(--muted)}
.oc-price{font-size:13.5px;font-weight:700;color:var(--rg-7);white-space:nowrap}
.gw-logo{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--ink);border:1px solid var(--line);font-family:var(--font-latin);font-weight:700;color:var(--rg-6);flex-shrink:0}
.checkout-side{position:sticky;top:calc(var(--header-h) + 60px)}
.review-items{display:flex;flex-direction:column;gap:12px;max-height:300px;overflow-y:auto;margin-bottom:14px}
.review-item{display:grid;grid-template-columns:56px 1fr auto;gap:12px;align-items:center;font-size:13px}
.ri-img{position:relative}
.ri-img img{width:56px;height:56px;border-radius:12px;object-fit:cover}
.ri-qty{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;border-radius:10px;background:var(--metal);color:var(--on-metal);font-size:11px;font-weight:800;display:grid;place-items:center}
.review-item b{display:block;font-weight:600;line-height:1.55}
.review-item small{color:var(--muted);font-size:12px}
.ri-price{font-weight:700;white-space:nowrap;font-size:13px}
.inline-coupon{max-width:none;margin-bottom:6px}
.inline-coupon input{min-height:40px;height:40px}
.terms{margin:16px 0;font-size:13px}
@media (max-width:1024px){
  .checkout-layout{grid-template-columns:1fr}
  .checkout-side{position:static}
}
@media (max-width:600px){.form-grid{grid-template-columns:1fr}.panel{padding:18px}}

/* ---------- Order result (success / failed) ---------- */
.result-hero{text-align:center;max-width:760px;margin:0 auto 34px;padding:40px 24px;border-radius:var(--r-xl);border:1px solid var(--line);background:var(--glow),var(--velvet)}
.result-icon{width:104px;height:104px;margin:0 auto 18px;border-radius:50%;display:grid;place-items:center;position:relative}
.result-hero.success .result-icon{background:var(--metal);color:var(--on-metal);box-shadow:0 0 0 10px rgba(222,154,127,.1),0 0 0 22px rgba(222,154,127,.05)}
.result-hero.failed .result-icon{background:rgba(239,139,128,.12);color:var(--danger);border:1px solid rgba(239,139,128,.35);box-shadow:0 0 0 10px rgba(239,139,128,.06)}
.result-hero.failed .eyebrow{color:var(--danger)}
.result-hero h1{font-size:var(--fs-2xl);font-weight:800;margin:6px 0 10px}
.result-hero > p{color:var(--muted);max-width:56ch;margin-inline:auto}
.order_details{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;margin:26px 0;text-align:center}
.order_details li{background:var(--ink);padding:14px 10px;font-size:12px;color:var(--muted);display:flex;flex-direction:column;gap:4px;align-items:center}
.order_details strong{font-size:14px;color:var(--text)}
.result-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.failed-reasons{text-align:right;max-width:460px;margin:0 auto 26px;padding:18px 22px;border-radius:var(--r-lg);border:1px solid var(--line);background:var(--ink)}
.failed-reasons h3{font-size:15px;margin-bottom:8px}
.failed-reasons ul{list-style:disc;padding-right:18px;color:var(--muted);font-size:14px}
.small-note{font-size:12.5px;margin-top:18px}

.order-details-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:20px;align-items:start}
.table-wrap.plain{border:0;background:none}
.order-table{min-width:420px}
.order-table td,.order-table th{padding:12px 6px}
.order-table tfoot th{text-align:right;color:var(--muted);font-weight:400}
.order-table tfoot td,.order-table tfoot th{border-top:1px solid var(--line)}
.order-table .order-total .amount{font-size:17px;color:var(--rg-8)}
.od-prod{display:flex;align-items:center;gap:12px}
.od-prod img{width:52px;height:52px;border-radius:10px}
.od-prod a{font-weight:600;font-size:13.5px;display:block}
.od-prod small{color:var(--muted);font-size:12px}
address{font-style:normal;color:var(--muted);line-height:2.1;font-size:14px}
address b{color:var(--text)}
.next-steps{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.next-steps h3{font-size:14.5px;margin-bottom:10px}
.next-steps ol{list-style:none;display:flex;flex-direction:column;gap:10px;font-size:13.5px;color:var(--muted)}
.next-steps li{display:flex;align-items:center;gap:10px}
.next-steps li::before{content:"";width:12px;height:12px;border-radius:50%;border:2px solid var(--line)}
.next-steps li.done{color:var(--success)}
.next-steps li.done::before{background:var(--success);border-color:var(--success)}
@media (max-width:860px){.order-details-grid{grid-template-columns:1fr}}
.order-details-grid > *{min-width:0}
