/* UNIMERCE Patch 020 — scoped checkout / payment flow layout fix */
.unimerce-storefront-v2 .um-checkout-page{
  --checkout-ink:#17120e;
  --checkout-muted:#6b6258;
  --checkout-paper:#fbf7ef;
  --checkout-card:#fffdf8;
  --checkout-line:#e1d4c1;
  --checkout-gold:#b88a38;
  --checkout-gold-dark:#825d25;
  --checkout-black:#080808;
  background:
    radial-gradient(circle at 12% 0,rgba(184,138,56,.10),transparent 28%),
    linear-gradient(180deg,#fffdf8 0%,var(--checkout-paper) 100%);
  color:var(--checkout-ink);
  padding:clamp(2rem,4vw,3.75rem) 0 clamp(3rem,6vw,5.5rem);
  overflow:visible;
}
.unimerce-storefront-v2 .um-checkout-shell{width:min(1180px,calc(100% - 32px));margin:0 auto;min-width:0}
.unimerce-storefront-v2 .um-checkout-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1.25rem;align-items:end;margin-bottom:1.75rem}
.unimerce-storefront-v2 .um-checkout-heading .um-eyebrow{display:block;text-transform:uppercase;letter-spacing:.14em;color:var(--checkout-gold-dark);font-weight:900;font-size:.75rem;margin-bottom:.5rem}
.unimerce-storefront-v2 .um-checkout-heading h1{font-family:"Playfair Display",Georgia,serif;font-size:clamp(2rem,4vw,3.6rem);line-height:1;margin:0;color:var(--checkout-ink)}
.unimerce-storefront-v2 .um-checkout-heading p{margin:.8rem 0 0;max-width:720px;color:var(--checkout-muted)}
.unimerce-storefront-v2 .um-checkout-secure{display:inline-flex;align-items:center;gap:.5rem;border:1px solid rgba(184,138,56,.35);background:#fff7e8;color:#624315;padding:.75rem 1rem;font-weight:900;font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}
.unimerce-storefront-v2 .um-stepper{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;align-items:start;margin:0 auto 2rem;max-width:820px;counter-reset:checkout-step}
.unimerce-storefront-v2 .um-stepper__item{position:relative;display:grid;justify-items:center;text-align:center;color:#7c746c;font-size:.75rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em;min-width:0}
.unimerce-storefront-v2 .um-stepper__item:before{content:"";position:absolute;top:16px;left:-50%;right:50%;height:1px;background:var(--checkout-line);z-index:0}
.unimerce-storefront-v2 .um-stepper__item:first-child:before{display:none}
.unimerce-storefront-v2 .um-stepper__number{position:relative;z-index:1;width:34px;height:34px;border-radius:999px;border:1px solid var(--checkout-line);background:#fff;display:inline-flex;align-items:center;justify-content:center;color:#4f463d;margin-bottom:.65rem;font-weight:900}
.unimerce-storefront-v2 .um-stepper__item.done:before,.unimerce-storefront-v2 .um-stepper__item.active:before{background:rgba(184,138,56,.65)}
.unimerce-storefront-v2 .um-stepper__item.done .um-stepper__number,.unimerce-storefront-v2 .um-stepper__item.active .um-stepper__number{border-color:var(--checkout-gold);background:var(--checkout-gold);color:#fff}
.unimerce-storefront-v2 .um-stepper__item.active{color:#111}
.unimerce-storefront-v2 .um-checkout-grid{display:grid;grid-template-columns:minmax(0,1.42fr) minmax(320px,.85fr);gap:1.5rem;align-items:start}
.unimerce-storefront-v2 .um-checkout-card,.unimerce-storefront-v2 .um-order-summary{background:rgba(255,253,248,.96);border:1px solid var(--checkout-line);box-shadow:0 18px 55px rgba(55,42,27,.07);min-width:0}
.unimerce-storefront-v2 .um-checkout-card{padding:clamp(1.25rem,2.5vw,2rem)}
.unimerce-storefront-v2 .um-order-summary{padding:clamp(1.15rem,2.2vw,1.6rem);position:sticky;top:1.25rem}
.unimerce-storefront-v2 .um-checkout-section{padding:1.35rem 0;border-top:1px solid rgba(225,212,193,.75)}
.unimerce-storefront-v2 .um-checkout-section:first-child{border-top:0;padding-top:0}
.unimerce-storefront-v2 .um-checkout-section:last-child{padding-bottom:0}
.unimerce-storefront-v2 .um-checkout-card h2,.unimerce-storefront-v2 .um-order-summary h2{font-family:"Playfair Display",Georgia,serif;text-transform:uppercase;letter-spacing:.06em;font-size:1.02rem;line-height:1.25;margin:0 0 .4rem;color:#201913}
.unimerce-storefront-v2 .um-checkout-card h2 small,.unimerce-storefront-v2 .um-order-summary h2 small{font-family:Inter,system-ui,sans-serif;font-size:.68rem;color:var(--checkout-muted);font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.unimerce-storefront-v2 .um-checkout-section>p,.unimerce-storefront-v2 .um-summary-note{margin:.15rem 0 1rem;color:var(--checkout-muted);font-size:.92rem;line-height:1.55}
.unimerce-storefront-v2 .um-field{display:block;margin:0 0 .95rem;min-width:0}
.unimerce-storefront-v2 .um-field-label{display:flex;align-items:center;gap:.45rem;margin:0 0 .4rem;color:#372d24;font-size:.82rem;font-weight:900;text-align:left}
.unimerce-storefront-v2 .um-field-label .field-help{flex:0 0 22px}
.unimerce-storefront-v2 .um-field input,.unimerce-storefront-v2 .um-field select,.unimerce-storefront-v2 .um-field textarea{display:block;width:100%;height:48px;margin:0;border:1px solid #d8cbb9;border-radius:6px;background:#fff;color:#1d1813;padding:.75rem .85rem;font:inherit;box-shadow:none;outline:none}
.unimerce-storefront-v2 .um-field textarea{height:auto;min-height:112px;resize:vertical}
.unimerce-storefront-v2 .um-field input:focus,.unimerce-storefront-v2 .um-field select:focus,.unimerce-storefront-v2 .um-field textarea:focus{border-color:var(--checkout-gold);box-shadow:0 0 0 .18rem rgba(184,138,56,.16)}
.unimerce-storefront-v2 .um-form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.95rem}
.unimerce-storefront-v2 .um-form-row.one{grid-template-columns:1fr}
.unimerce-storefront-v2 .um-check{display:flex!important;align-items:flex-start;gap:.65rem;margin:.35rem 0 0;color:#312920;font-size:.9rem;line-height:1.45;font-weight:700;text-align:left}
.unimerce-storefront-v2 .um-check input{width:16px!important;height:16px!important;flex:0 0 16px;margin:.15rem 0 0!important;padding:0!important;border-radius:3px}
.unimerce-storefront-v2 .um-shipping-list{border:1px solid var(--checkout-line);border-radius:8px;overflow:hidden;background:#fff;margin-top:1rem}
.unimerce-storefront-v2 .um-shipping-option{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:.85rem;align-items:center;padding:1rem 1.05rem;border-top:1px solid var(--checkout-line);background:#fff;color:#231c16}
.unimerce-storefront-v2 .um-shipping-option:first-child{border-top:0}
.unimerce-storefront-v2 .um-shipping-option.selected{background:#fffaf0;box-shadow:inset 3px 0 0 var(--checkout-gold)}
.unimerce-storefront-v2 .um-shipping-radio{width:16px;height:16px;border-radius:999px;border:1px solid #b8ab99;display:inline-flex;align-items:center;justify-content:center;background:#fff}
.unimerce-storefront-v2 .um-shipping-option.selected .um-shipping-radio:after{content:"";width:8px;height:8px;border-radius:999px;background:var(--checkout-gold)}
.unimerce-storefront-v2 .um-shipping-option strong{display:block;font-size:.92rem;line-height:1.25;color:#1e1712}
.unimerce-storefront-v2 .um-shipping-option small{display:block;color:var(--checkout-muted);font-size:.78rem;margin-top:.18rem;line-height:1.25}
.unimerce-storefront-v2 .um-shipping-option b{font-size:.86rem;white-space:nowrap;color:#17120e}
.unimerce-storefront-v2 .um-order-summary h2{display:flex;justify-content:space-between;gap:1rem;align-items:baseline;margin-bottom:1.2rem}
.unimerce-storefront-v2 .um-order-item{display:grid;grid-template-columns:82px minmax(0,1fr);gap:.95rem;align-items:start;padding:0 0 1rem;margin-bottom:1rem;border-bottom:1px solid rgba(225,212,193,.72)}
.unimerce-storefront-v2 .um-order-thumb,.unimerce-storefront-v2 .um-order-placeholder{width:82px;height:82px;border-radius:6px;overflow:hidden;background:linear-gradient(135deg,#eee6d8,#cdb891);border:1px solid rgba(225,212,193,.9);display:flex;align-items:center;justify-content:center;text-align:center;color:#6c5737;font-size:.64rem;line-height:1.25;text-transform:uppercase;letter-spacing:.05em}
.unimerce-storefront-v2 .um-order-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.unimerce-storefront-v2 .um-order-item strong{display:block;color:#1d1712;font-size:.9rem;line-height:1.3;margin-bottom:.25rem;overflow-wrap:break-word}
.unimerce-storefront-v2 .um-order-item span{display:block;color:var(--checkout-muted);font-size:.78rem;line-height:1.35;margin-bottom:.45rem}
.unimerce-storefront-v2 .um-order-item b{display:block;color:#111;font-size:.88rem}
.unimerce-storefront-v2 .um-total-row,.unimerce-storefront-v2 .um-grand-total{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;padding:.58rem 0;color:#231c16;border-bottom:1px solid rgba(225,212,193,.65)}
.unimerce-storefront-v2 .um-total-row span,.unimerce-storefront-v2 .um-grand-total span{color:#3e342b;font-size:.9rem}
.unimerce-storefront-v2 .um-total-row b{font-size:.9rem;text-align:right;overflow-wrap:anywhere}
.unimerce-storefront-v2 .um-grand-total{margin-top:.35rem;padding-top:1rem;border-bottom:0}
.unimerce-storefront-v2 .um-grand-total strong{font-family:"Playfair Display",Georgia,serif;font-size:clamp(1.3rem,2.4vw,1.8rem);letter-spacing:.04em;text-align:right;color:#111}
.unimerce-storefront-v2 .um-summary-assurance{display:grid;gap:.8rem;border-top:1px solid rgba(225,212,193,.75);margin-top:1rem;padding-top:1rem}
.unimerce-storefront-v2 .um-summary-assurance div{display:grid;grid-template-columns:26px minmax(0,1fr);gap:.65rem;align-items:start;color:#3a3027;font-size:.82rem;line-height:1.25}
.unimerce-storefront-v2 .um-summary-assurance span:first-child{color:var(--checkout-gold);font-size:1.1rem;line-height:1}
.unimerce-storefront-v2 .um-summary-assurance strong{display:block;font-size:.82rem;line-height:1.2;color:#1f1913}
.unimerce-storefront-v2 .um-summary-assurance small{display:block;color:var(--checkout-muted);font-size:.74rem;margin-top:.15rem}
.unimerce-storefront-v2 .um-promo-box{display:flex;align-items:center;justify-content:space-between;gap:1rem;border:1px solid var(--checkout-line);background:#fffaf2;margin-top:1rem;padding:.9rem 1rem;border-radius:8px;color:#342b23;font-weight:800}
.unimerce-storefront-v2 .um-checkout-actions{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-top:1.25rem;padding-top:1.25rem;border-top:1px solid rgba(225,212,193,.75)}
.unimerce-storefront-v2 .um-btn.full{width:100%;margin-top:1rem}
.unimerce-storefront-v2 .um-btn.secondary{border:1px solid var(--checkout-line);background:#fff;color:#241d17}
.unimerce-storefront-v2 .um-btn.gold{border:1px solid var(--checkout-gold);background:linear-gradient(135deg,var(--checkout-gold),#d9ad56);color:#fff}
.unimerce-storefront-v2 .um-btn:hover{filter:brightness(.98);transform:translateY(-1px)}
.unimerce-storefront-v2 .um-payment-methods{display:grid;gap:.75rem;margin-top:1rem}
.unimerce-storefront-v2 .um-payment-method{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:.85rem;align-items:center;border:1px solid var(--checkout-line);border-radius:8px;padding:1rem;background:#fff}
.unimerce-storefront-v2 .um-payment-method.selected{background:#fffaf0;border-color:rgba(184,138,56,.65);box-shadow:inset 3px 0 0 var(--checkout-gold)}
.unimerce-storefront-v2 .um-payment-method strong,.unimerce-storefront-v2 .um-payment-method small{display:block}
.unimerce-storefront-v2 .um-payment-method small{color:var(--checkout-muted);font-size:.78rem;margin-top:.2rem}
.unimerce-storefront-v2 .um-complete-panel{text-align:center;padding:clamp(2rem,4vw,3.5rem);max-width:840px;margin:0 auto;background:rgba(255,253,248,.96);border:1px solid var(--checkout-line);box-shadow:0 18px 55px rgba(55,42,27,.07)}
.unimerce-storefront-v2 .um-complete-icon{width:72px;height:72px;border-radius:999px;margin:0 auto 1rem;background:var(--checkout-gold);color:#fff;display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:900}
.unimerce-storefront-v2 .um-complete-panel h1{font-family:"Playfair Display",Georgia,serif;font-size:clamp(2.1rem,4vw,3.8rem);line-height:1;margin:.4rem 0;color:#17120e}
.unimerce-storefront-v2 .um-complete-panel p{color:var(--checkout-muted);max-width:640px;margin:.75rem auto 1.5rem}
.unimerce-storefront-v2 .um-complete-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1.5rem 0;text-align:left}
.unimerce-storefront-v2 .um-complete-meta div{border:1px solid var(--checkout-line);background:#fff;padding:1rem}
.unimerce-storefront-v2 .um-complete-meta span{display:block;color:var(--checkout-muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.07em;font-weight:900}
.unimerce-storefront-v2 .um-complete-meta strong{display:block;margin-top:.25rem;color:#1c1611}
@media(max-width:991.98px){
  .unimerce-storefront-v2 .um-checkout-heading{grid-template-columns:1fr;align-items:start}
  .unimerce-storefront-v2 .um-checkout-secure{justify-self:start;white-space:normal}
  .unimerce-storefront-v2 .um-checkout-grid{grid-template-columns:1fr!important}
  .unimerce-storefront-v2 .um-order-summary{position:static;top:auto;order:-1}
}
@media(max-width:767.98px){
  .unimerce-storefront-v2 .um-checkout-page{padding-top:1.25rem}
  .unimerce-storefront-v2 .um-stepper{grid-template-columns:repeat(4,minmax(58px,1fr));overflow-x:auto;padding-bottom:.25rem;margin-bottom:1.25rem}
  .unimerce-storefront-v2 .um-stepper__item{font-size:.65rem;letter-spacing:.04em}
  .unimerce-storefront-v2 .um-form-row{grid-template-columns:1fr}
  .unimerce-storefront-v2 .um-checkout-card,.unimerce-storefront-v2 .um-order-summary{padding:1rem}
  .unimerce-storefront-v2 .um-shipping-option,.unimerce-storefront-v2 .um-payment-method{grid-template-columns:20px minmax(0,1fr);align-items:start}
  .unimerce-storefront-v2 .um-shipping-option b,.unimerce-storefront-v2 .um-payment-method>span:last-child{grid-column:2;justify-self:start;margin-top:.2rem}
  .unimerce-storefront-v2 .um-order-item{grid-template-columns:72px minmax(0,1fr);gap:.75rem}
  .unimerce-storefront-v2 .um-order-thumb,.unimerce-storefront-v2 .um-order-placeholder{width:72px;height:72px}
  .unimerce-storefront-v2 .um-complete-meta{grid-template-columns:1fr}
}
@media(max-width:420px){
  .unimerce-storefront-v2 .um-checkout-shell{width:min(100% - 24px,1180px)}
  .unimerce-storefront-v2 .um-total-row,.unimerce-storefront-v2 .um-grand-total{display:grid;grid-template-columns:1fr;gap:.15rem}
  .unimerce-storefront-v2 .um-total-row b,.unimerce-storefront-v2 .um-grand-total strong{text-align:left}
}
