/* SmartSPM Sejarah — Checkout Premium Centered / Fix Screen
   Patch: restore a centered bounded container, prevent viewport stretching,
   keep checkout compact and production-friendly. Minimum font remains 16px. */

.checkout-page{
  overflow-x:hidden;
}

/* Align header and checkout to the same premium canvas */
.checkout-header .container{
  width:min(calc(100% - 48px),1240px);
  min-height:70px;
  margin-inline:auto;
}

.checkout-shell{
  min-height:calc(100svh - 70px);
  padding:28px 0 34px;
  display:flex;
  align-items:center;
}

/* IMPORTANT: element is both .container and .checkout-grid.
   Do not use width:100% here; that was what stretched the page edge-to-edge. */
.checkout-shell > .checkout-grid{
  width:min(calc(100% - 48px),1240px);
  max-width:1240px;
  margin-inline:auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:30px;
  align-items:center;
}

.checkout-main{
  min-width:0;
}

.checkout-main h1{
  margin:10px 0 8px;
  max-width:820px;
  font-size:clamp(38px,3vw,48px);
  line-height:1.03;
  letter-spacing:-.035em;
}

.checkout-lead{
  margin:0 0 18px;
  max-width:760px;
  font-size:17px;
  line-height:1.55;
}

.sandbox-banner{
  margin-bottom:16px;
}

.checkout-form{
  padding:24px 26px;
  border-radius:24px;
}

.checkout-form-head{
  margin-bottom:18px;
}

.checkout-form-head h2{
  margin:0 0 4px;
  font-size:26px;
}

.checkout-form-head p{
  margin:0;
  color:var(--muted);
  font-size:16px;
}

.checkout-buyer-grid{
  gap:14px 16px;
}

.checkout-buyer-grid .field{
  margin-bottom:0;
}

.checkout-buyer-grid .field.full{
  grid-column:1/-1;
}

.checkout-buyer-grid .field input{
  min-height:50px;
}

.checkout-agree{
  margin:18px 0;
  padding:14px 16px;
  border-radius:16px;
}

.checkout-agree small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:16px!important;
  line-height:1.45;
}

.checkout-pay-btn{
  width:100%;
  min-height:54px;
}

.checkout-provider-note{
  margin:9px 0 0;
  text-align:center;
  color:var(--muted);
  font-size:16px;
}

.checkout-summary{
  position:relative;
  top:auto;
  width:100%;
  max-width:360px;
  justify-self:end;
  align-self:center;
  padding:26px 26px;
  border-radius:24px;
}

.checkout-summary .price-product{
  font-size:16px;
  font-weight:800;
  letter-spacing:.015em;
}

.checkout-summary-price{
  margin:16px 0 8px;
}

.checkout-summary-price strong{
  font-size:44px;
}

.checkout-summary .saving{
  margin-bottom:16px;
}

.checkout-includes{
  display:grid;
  gap:9px;
  padding:17px 0;
  border-top:1px solid rgba(255,255,255,.13);
  border-bottom:1px solid rgba(255,255,255,.13);
}

.checkout-includes strong{
  font-family:Poppins,Inter,sans-serif;
  font-size:17px;
  color:#fff;
  margin-bottom:2px;
}

.checkout-includes span{
  font-size:16px;
  color:#dbe8ff;
  line-height:1.4;
}

.checkout-lines{
  border-top:0;
  margin-top:4px;
}

.checkout-lines span{
  padding:13px 0;
}

.checkout-lines .total em{
  font-size:19px;
}

.checkout-trust{
  margin-top:14px;
  gap:7px;
}

.checkout-trust span{
  font-size:16px;
  line-height:1.4;
}

/* Medium desktop / laptop */
@media(max-width:1180px){
  .checkout-header .container,
  .checkout-shell > .checkout-grid{
    width:min(calc(100% - 40px),1100px);
  }
  .checkout-shell > .checkout-grid{
    grid-template-columns:minmax(0,1fr) 340px;
    gap:24px;
  }
  .checkout-summary{
    max-width:340px;
    padding:24px;
  }
}

/* Tablet: stack naturally, still centered */
@media(max-width:960px){
  .checkout-shell{
    display:block;
    min-height:auto;
    padding:32px 0 60px;
  }
  .checkout-shell > .checkout-grid{
    width:min(calc(100% - 36px),820px);
    grid-template-columns:1fr;
    gap:24px;
  }
  .checkout-main,
  .checkout-summary{
    width:100%;
    max-width:none;
    margin:0 auto;
  }
  .checkout-summary{
    justify-self:stretch;
  }
}

/* Mobile */
@media(max-width:700px){
  .checkout-header .container{
    width:min(calc(100% - 28px),1240px);
    min-height:68px;
  }
  .checkout-shell{
    padding:26px 0 48px;
  }
  .checkout-shell > .checkout-grid{
    width:min(calc(100% - 28px),820px);
    gap:20px;
  }
  .checkout-main h1{
    font-size:36px;
  }
  .checkout-form,
  .checkout-summary{
    padding:22px 18px;
  }
  .checkout-buyer-grid .field.full{
    grid-column:auto;
  }
  .checkout-summary-price strong{
    font-size:42px;
  }
}
