.checkout-shell{max-width:1240px;margin:0 auto;padding:42px 28px 80px}.checkout-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(330px,.8fr);gap:34px;align-items:start}.checkout-main{min-width:0}.checkout-form,.payment-panel,.checkout-summary{background:#fffaf5;border:1px solid var(--line);border-radius:18px;padding:26px}.checkout-form h2,.payment-panel h2,.checkout-summary h2{font-size:21px;margin:0 0 20px}.checkout-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}.checkout-fields label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:800;color:#68574e}.checkout-fields label.full{grid-column:1/-1}.checkout-fields input{width:100%;min-height:45px;border:1px solid #e2d2c7;border-radius:10px;padding:10px 12px;background:#fff;color:#30251f;font:inherit;font-size:14px;box-sizing:border-box}.checkout-fields input:focus{outline:2px solid #c88768;outline-offset:1px}.section-gap{margin-top:27px!important}.shipping-options{display:grid;gap:10px}.shipping-option{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid #e2d2c7;border-radius:12px;background:#fff;cursor:pointer}.shipping-option input{accent-color:#9d482b}.shipping-option span{display:flex;flex-direction:column;gap:4px;flex:1}.shipping-option strong{font-size:13px}.shipping-option small{font-size:11px;color:#806f64}.shipping-option b{font-size:14px;white-space:nowrap}.checkout-hint,.summary-note{font-size:11px;line-height:1.5;color:#806f64}.checkout-submit{margin-top:15px;cursor:pointer}.checkout-submit:disabled{opacity:.6}.checkout-error{color:#a52b22;font-size:13px;min-height:18px}.checkout-summary{position:sticky;top:105px;background:#f3e4d8}.checkout-items{display:grid;gap:12px;margin-bottom:16px}.checkout-item{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:11px;align-items:center}.checkout-item img{width:58px;height:62px;object-fit:cover;border-radius:9px;background:#f0dfd0}.checkout-item strong{display:block;font-size:12px}.checkout-item small{font-size:11px;color:#806f64}.checkout-item b{font-size:12px;white-space:nowrap}.payment-panel{margin-top:18px}.payment-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.payment-panel-head button{border:0;background:transparent;color:#964326;text-decoration:underline;font-weight:700;cursor:pointer}.payment-panel[hidden]{display:none!important}.checkout-form[hidden]{display:none!important}.checkout-summary .summary-line{border-color:#e5d0c1}.checkout-summary .summary-total strong{font-size:24px}.checkout-items:empty{display:none}@media(max-width:850px){.checkout-shell{padding:32px 17px 55px}.checkout-layout{grid-template-columns:1fr;gap:18px}.checkout-summary{position:static;grid-row:1}.checkout-main{grid-row:2}}@media(max-width:520px){.checkout-form,.payment-panel,.checkout-summary{padding:18px}.checkout-fields{grid-template-columns:1fr}.checkout-fields label.full{grid-column:auto}.checkout-item{grid-template-columns:50px minmax(0,1fr) auto}.checkout-item img{width:50px;height:54px}}
/* V1.5.1 — formulário de entrega inspirado no Stripe Checkout */
.checkout-form{background:#fff;border:1px solid #e7e2dd;border-radius:14px;box-shadow:0 1px 2px rgba(32,24,20,.04)}
.checkout-fields{gap:13px 14px}
.checkout-fields label{font-size:12px;font-weight:600;color:#5f5a56;gap:6px}
.checkout-fields input,.checkout-fields select{
  min-height:48px;border:1px solid #d9d5d1;border-radius:8px;padding:0 13px;
  background-color:#fff;color:#302923;font:inherit;font-size:14px;box-sizing:border-box;
  transition:border-color .15s,box-shadow .15s
}
.checkout-fields select{
  appearance:none;-webkit-appearance:none;
  padding-right:42px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f5a56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center
}
.checkout-fields input:focus,.checkout-fields select:focus{outline:0;border-color:#8badd8;box-shadow:0 0 0 3px rgba(82,139,213,.16)}
.shipping-options{gap:0;border:1px solid #e2ded9;border-radius:10px;overflow:hidden;background:#fff}
.shipping-option{border:0;border-radius:0;border-bottom:1px solid #eeeae6;padding:15px 14px}
.shipping-option:last-child{border-bottom:0}
.shipping-option:has(input:checked){background:#fcf8f4}
.shipping-option input{width:17px;height:17px;accent-color:#a94b2d;flex:0 0 auto}
.shipping-option strong{font-size:13px;font-weight:650}
.shipping-option small{font-size:11px;color:#8a827b}
.checkout-form h2{font-size:18px;font-weight:700;margin-bottom:17px}
@media(max-width:520px){.checkout-fields{grid-template-columns:1fr}.checkout-fields label.full{grid-column:auto}}


/* Decorama — resumo da encomenda no fim do checkout em ecrãs pequenos */
@media(max-width:850px){
  .checkout-layout{display:flex;flex-direction:column;align-items:stretch}
  .checkout-main{order:1;width:100%}
  .checkout-summary{order:2;width:100%;position:static}
}
