/* E27-E commerce / checkout conversion and recovery layer. */
.e27e-commerce-page{display:grid;gap:20px}
.e27e-commerce-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px;border:1px solid rgba(111,73,111,.12);border-radius:22px;background:linear-gradient(135deg,#fff,#fbf7fb);box-shadow:0 12px 34px rgba(55,37,58,.05)}
.e27e-commerce-hero h1{margin:.25rem 0 .35rem;color:var(--portal-ink);font-size:1.2rem;font-weight:900}
.e27e-commerce-hero p{margin:0;color:var(--portal-muted);font-size:.76rem;line-height:1.9}
.e27e-commerce-hero .btn{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.e27e-commerce-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.e27e-commerce-steps>div{display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;padding:15px;border:1px solid rgba(111,73,111,.1);border-radius:16px;background:#fff}
.e27e-commerce-steps span{display:grid;width:34px;height:34px;place-items:center;border-radius:11px;color:#fff;background:linear-gradient(135deg,var(--portal-primary),#4d314f);font-weight:900}
.e27e-commerce-steps strong,.e27e-commerce-steps small{display:block}
.e27e-commerce-steps strong{color:var(--portal-ink);font-size:.76rem}
.e27e-commerce-steps small{margin-top:3px;color:var(--portal-muted);font-size:.66rem;line-height:1.75}
.e27e-commerce-gate{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 16px;border:1px solid #f0d5a7;border-radius:16px;background:#fff8e8}
.e27e-commerce-gate>div{display:flex;align-items:center;gap:10px}
.e27e-commerce-gate .portal-icon{width:21px;height:21px;color:#94600b}
.e27e-commerce-gate strong,.e27e-commerce-gate small{display:block}
.e27e-commerce-gate small{margin-top:2px;color:#7c6848;font-size:.68rem}
.e27e-commerce-product-card .commerce-product-icon{display:grid;place-items:center}
.e27e-commerce-product-card .commerce-product-icon .portal-icon{width:22px;height:22px}
.e27e-commerce-empty{display:grid;gap:8px;justify-items:start}
.e27e-commerce-empty>.portal-icon{width:30px;height:30px;color:var(--portal-primary)}
.e27e-commerce-back{display:inline-flex;align-items:center;gap:7px;width:max-content}
.e27e-commerce-back .portal-icon{width:15px;height:15px}
.e27e-commerce-form-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}
.e27e-commerce-form-heading .portal-icon{width:28px;height:28px;color:var(--portal-primary)}
.e27e-commerce-reassurance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:16px 0}
.e27e-commerce-reassurance>div{display:flex;gap:8px;align-items:flex-start;padding:12px;border:1px solid rgba(111,73,111,.1);border-radius:13px;background:#fcfafc}
.e27e-commerce-reassurance .portal-icon{width:18px;height:18px;color:var(--portal-primary);flex:0 0 auto}
.e27e-commerce-reassurance strong,.e27e-commerce-reassurance small{display:block}
.e27e-commerce-reassurance strong{font-size:.7rem}
.e27e-commerce-reassurance small{margin-top:2px;color:var(--portal-muted);font-size:.63rem;line-height:1.65}
.e27e-commerce-form-error{display:grid;gap:3px;margin:14px 0;padding:12px 14px;border:1px solid #f2c8ce;border-radius:13px;background:#fff1f3;color:#8d3340}
.e27e-commerce-form-error span{font-size:.68rem}
.e27e-commerce-orders-list{display:grid;gap:10px}
.e27e-commerce-orders-list .commerce-order-row{display:grid;grid-template-columns:1.3fr .8fr .8fr auto;gap:12px;align-items:center}
.e27e-order-open{display:grid;place-items:center}
.e27e-order-open .portal-icon{width:16px;height:16px}
.e27e-order-status{border-radius:999px;padding:5px 10px;font-size:.68rem;font-weight:900}
.e27e-order-next-action{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;margin:16px 0 22px;padding:15px;border:1px solid rgba(111,73,111,.12);border-radius:15px;background:#fbf7fb}
.e27e-order-next-action>.portal-icon{width:22px;height:22px;color:var(--portal-primary)}
.e27e-order-next-action span,.e27e-order-next-action strong,.e27e-order-next-action small{display:block}
.e27e-order-next-action span{color:var(--portal-primary);font-size:.64rem;font-weight:900}
.e27e-order-next-action strong{margin-top:2px;color:var(--portal-ink);font-size:.77rem}
.e27e-order-next-action small{margin-top:3px;color:var(--portal-muted);font-size:.66rem}
.e27e-order-timeline{display:grid;gap:12px}
.e27e-order-timeline>div{display:grid;grid-template-columns:12px minmax(0,1fr);gap:8px}
.e27e-order-dot{width:9px;height:9px;margin-top:5px;border-radius:50%;background:var(--portal-accent);box-shadow:0 0 0 3px rgba(185,111,134,.12)}
.e27e-order-timeline small{display:block;color:var(--portal-muted);font-size:.65rem}
.e27e-order-timeline p{margin:4px 0 0;font-size:.68rem;line-height:1.7}
.e27e-order-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:18px;padding-top:18px;border-top:1px solid rgba(111,73,111,.12)}
.e27e-order-actions form{margin:0}
.e27e-order-actions .btn{display:inline-flex;align-items:center;gap:7px}
.e27e-payment-result{width:min(620px,100%);margin:24px auto;padding:28px;border:1px solid rgba(111,73,111,.12);border-radius:24px;text-align:center;background:#fff;box-shadow:0 18px 48px rgba(55,37,58,.07)}
.e27e-payment-icon{display:grid;width:64px;height:64px;margin:0 auto 14px;place-items:center;border-radius:20px;background:#eef8f3;color:#287054}
.e27e-payment-result.is-failed .e27e-payment-icon{background:#fff0f2;color:#a23d4b}
.e27e-payment-icon .portal-icon{width:32px;height:32px}
.e27e-payment-result h1{margin:.35rem 0;color:var(--portal-ink);font-size:1.25rem;font-weight:900}
.e27e-payment-result p{color:var(--portal-muted);line-height:1.9}
.e27e-payment-reference{display:inline-grid;gap:3px;margin:8px auto 16px;padding:10px 15px;border-radius:13px;background:#f7f4f7}
.e27e-payment-reference span{color:var(--portal-muted);font-size:.65rem}
.e27e-payment-actions{display:flex;justify-content:center;gap:10px;margin:18px 0}
.e27e-payment-actions .is-secondary{background:#fff;color:var(--portal-primary);border:1px solid rgba(111,73,111,.16);box-shadow:none}
.e27e-payment-result>small{display:block;color:var(--portal-muted);line-height:1.8}
@media(max-width:760px){
  .e27e-commerce-hero,.e27e-commerce-gate{align-items:stretch;flex-direction:column}
  .e27e-commerce-steps,.e27e-commerce-reassurance{grid-template-columns:1fr}
  .e27e-commerce-orders-list .commerce-order-row{grid-template-columns:1fr 1fr}
  .e27e-order-actions,.e27e-payment-actions{align-items:stretch;flex-direction:column}
  .e27e-order-actions .btn,.e27e-order-actions form,.e27e-order-actions form .btn,.e27e-payment-actions a{width:100%}
}
@media(prefers-reduced-motion:reduce){
  .e27e-commerce-page a,.e27e-commerce-page button{transition:none!important}
}
