:root{
  --bg:#f3f3f3;
  --card:#ffffff;
  --text:#111111;
  --muted:rgba(0,0,0,.58);
  --line:rgba(0,0,0,.08);
  --blue:#0078ff;
  --pink:#ff0080;
  --shadow:0 18px 46px rgba(0,0,0,.10);
  --radius-pill:999px;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  background:var(--bg);
  color:var(--text);
}

.topbar{
  padding:20px 16px 0;
}

.topbar-inner{
  max-width:1200px;
  margin:0 auto;
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  box-shadow:0 14px 40px rgba(0,0,0,.12);
  border-radius:var(--radius-pill);
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand-badge{
  width:46px;
  height:46px;
  border-radius:50%;
  background:#111;
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:700;
}

.brand-title{
  font-size:14px;
  font-weight:700;
  letter-spacing:.18em;
}

.brand-sub{
  font-size:12px;
  color:var(--muted);
}

.back-link{
  text-decoration:none;
  color:#111;
  font-weight:700;
  background:#f1f1f1;
  padding:12px 16px;
  border-radius:999px;
}

.back-link:hover{
  background:var(--pink);
  color:#fff;
}

.checkout-layout{
  max-width:1200px;
  margin:24px auto 0;
  padding:16px;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:24px;
  align-items:start;
}

.checkout-main,
.summary-card{
  background:#fff;
  border-radius:30px;
  box-shadow:var(--shadow);
  padding:28px;
}

.eyebrow{
  margin:0 0 8px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--muted);
}

h1{
  margin:0;
  font-size:clamp(32px, 4vw, 52px);
  line-height:1.1;
}

.intro{
  margin:16px 0 0;
  line-height:1.7;
  color:rgba(0,0,0,.72);
}

.checkout-items{
  margin-top:24px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.checkout-item{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:18px;
  border-radius:22px;
  background:#f6f6f6;
}

.checkout-item strong{
  display:block;
  margin-bottom:6px;
}

.checkout-meta{
  color:rgba(0,0,0,.7);
  line-height:1.6;
}

.checkout-price{
  font-weight:700;
  white-space:nowrap;
}

.summary-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  border-bottom:1px solid var(--line);
}

.next-btn{
  width:100%;
  margin-top:24px;
  border:none;
  border-radius:999px;
  padding:15px 18px;
  font-weight:700;
  background:#111;
  color:#fff;
  opacity:.55;
  cursor:not-allowed;
}

.empty-box{
  margin-top:20px;
  padding:20px;
  border-radius:20px;
  background:#f6f6f6;
  color:rgba(0,0,0,.65);
}

@media (max-width: 860px){
  .checkout-layout{
    grid-template-columns:1fr;
  }

  .topbar-inner{
    flex-direction:column;
    align-items:flex-start;
  }
}

.form-card{
  margin-top:24px;
  padding:28px;
  border-radius:30px;
  background:#fff;
  box-shadow:var(--shadow);
}

.form-card h2{
  margin:0;
  font-size:32px;
  line-height:1.1;
}

.customer-form{
  margin-top:22px;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.field label{
  font-weight:700;
}

.field input,
.field select{
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px 16px;
  background:#f7f7f7;
  color:var(--text);
}

.field input:focus,
.field select:focus{
  outline:none;
  border-color:var(--blue);
  background:#fff;
}

.save-btn{
  margin-top:8px;
  border:none;
  border-radius:999px;
  padding:15px 18px;
  font-weight:700;
  background:#111;
  color:#fff;
  cursor:pointer;
  transition:background .2s ease;
}

.save-btn:hover{
  background:var(--blue);
}

.form-message{
  margin:0;
  min-height:24px;
  color:rgba(0,0,0,.65);
}

.summary-card.is-ready .next-btn{
  opacity:1;
  cursor:pointer;
  background:var(--blue);
}

.summary-card.is-ready .next-btn:hover{
  background:var(--pink);
}

@media (max-width: 860px){
  .form-grid{
    grid-template-columns:1fr;
  }
}

.paypal-box{
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid rgba(0,0,0,.08);
}

.paypal-note{
  margin:0 0 12px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(0,0,0,.58);
}

.paypal-status{
  margin:12px 0 0;
  min-height:22px;
  color:rgba(0,0,0,.68);
  line-height:1.5;
}





