.checkout-page{
  padding:24px 0 48px;
}

.checkout-layout{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(280px,0.8fr);
  gap:24px;
  align-items:start;
}

.checkout-card,
.checkout-summary{
  background:#fff;
  border:1px solid #ededed;
  border-radius:18px;
  padding:24px;
  box-shadow:0 8px 24px rgba(0,0,0,.05);
}

.checkout-card h1,
.checkout-summary h2{
  margin:0 0 18px;
  font-size:26px;
  line-height:1.2;
}

.checkout-field{
  margin-bottom:16px;
}

.checkout-field label{
  display:block;
  margin-bottom:6px;
  font-size:14px;
  font-weight:700;
  color:#111827;
}

.checkout-input{
  width:100%;
  min-height:44px;
  border:1px solid #d1d5db;
  border-radius:12px;
  padding:0 14px;
  font-size:15px;
  font-family:inherit;
  box-sizing:border-box;
  background:#fff;
}

.checkout-input:focus{
  outline:none;
  border-color:#ef3d2f;
  box-shadow:0 0 0 3px rgba(239,61,47,.12);
}

.checkout-radio-group{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.checkout-radio-option{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px 16px;
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#fafafa;
  cursor:pointer;
}

.checkout-radio-option.is-active{
  border-color:#ef3d2f;
  background:#fff7f6;
  box-shadow:0 0 0 1px rgba(239,61,47,.08);
}

.checkout-radio-option input{
  margin-top:3px;
  accent-color:#ef3d2f;
}

.checkout-radio-title{
  font-size:15px;
  font-weight:800;
  color:#111827;
}

.checkout-radio-note{
  margin-top:4px;
  font-size:13px;
  color:#6b7280;
  line-height:1.45;
}

.checkout-delivery-panel{
  display:none;
  margin-top:14px;
  padding:16px;
  border:1px dashed #d1d5db;
  border-radius:14px;
  background:#fcfcfc;
}

.checkout-delivery-panel.is-visible{
  display:block;
}

.checkout-grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.checkout-summary-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin:0 0 18px;
  padding:0;
  list-style:none;
}

.checkout-summary-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.checkout-summary-thumb{
  width:64px;
  height:64px;
  object-fit:contain;
  border-radius:10px;
  border:1px solid #eee;
  background:#fff;
  flex-shrink:0;
}

.checkout-summary-body{
  flex:1;
  min-width:0;
}

.checkout-summary-title{
  font-size:14px;
  font-weight:700;
  line-height:1.35;
  color:#111827;
}

.checkout-summary-meta{
  margin-top:4px;
  font-size:13px;
  color:#6b7280;
}

.cart-qty-controls{
  max-width:140px;
  margin-top:8px;
}

.cart-line-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
}

.cart-line-total{
  font-weight:700;
  color:#111827;
}

.checkout-summary-total{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top:16px;
  border-top:1px solid #eee;
  font-size:18px;
  font-weight:800;
}

.checkout-summary-total span:last-child{
  color:#ef3d2f;
}

.checkout-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:20px;
}

.checkout-note{
  margin:8px 0 0;
  padding:14px 16px;
  border-radius:14px;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  color:#475569;
  font-size:14px;
  line-height:1.55;
}

.order-success-lead{
  color:#475569;
  line-height:1.65;
  margin:12px 0 18px;
}

.order-success-warning{
  margin-bottom:20px;
  padding:14px 16px;
  border-radius:14px;
  background:#fff7ed;
  border:1px solid #fdba74;
  color:#9a3412;
  font-size:15px;
  font-weight:700;
  line-height:1.5;
}

.order-success-section{
  margin-bottom:18px;
}

.order-success-section h2{
  margin:0 0 12px;
  font-size:18px;
}

.order-success-meta{
  margin:0;
  color:#334155;
  line-height:1.65;
}

.order-success-items{
  margin-top:0;
}

.order-success-item{
  align-items:flex-start;
}

.checkout-error{
  margin-top:6px;
  font-size:13px;
  color:#dc2626;
}

.cart-empty{
  text-align:center;
  padding:48px 24px;
}

.kaspi-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 16px;
  background:linear-gradient(180deg,#f3f4f6 0%,#e5e7eb 100%);
}

.kaspi-shell{
  width:100%;
  max-width:460px;
  background:#fff;
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 24px 60px rgba(15,23,42,.16);
}

.kaspi-header{
  background:#f14635;
  color:#fff;
  padding:24px;
}

.kaspi-header h1{
  margin:0;
  font-size:28px;
  font-weight:900;
}

.kaspi-header p{
  margin:8px 0 0;
  opacity:.92;
  font-size:14px;
}

.kaspi-body{
  padding:24px;
}

.kaspi-amount{
  font-size:34px;
  font-weight:900;
  color:#111827;
  margin-bottom:8px;
}

.kaspi-meta{
  color:#6b7280;
  font-size:14px;
  line-height:1.5;
  margin-bottom:24px;
}

.kaspi-pay-btn{
  width:100%;
  min-height:52px;
  border:none;
  border-radius:14px;
  background:#f14635;
  color:#fff;
  font-size:16px;
  font-weight:800;
  cursor:pointer;
}

.kaspi-pay-btn:hover{
  background:#d93d2d;
}

.kaspi-note{
  margin-top:14px;
  font-size:12px;
  color:#9ca3af;
  text-align:center;
}

.order-success-card{
  max-width:720px;
  margin:32px auto;
  background:#fff;
  border:1px solid #ededed;
  border-radius:18px;
  padding:28px;
  box-shadow:0 8px 24px rgba(0,0,0,.05);
}

.order-success-badge{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  background:#ecfdf3;
  color:#15803d;
  font-size:13px;
  font-weight:700;
  margin-bottom:14px;
}

@media (max-width:900px){
  .checkout-layout{
    grid-template-columns:1fr;
  }

  .checkout-grid-2{
    grid-template-columns:1fr;
  }
}
