/* checkout.css */
.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px min(5vw, 64px);
  background: #fff;
  border-bottom: 1px solid #e1e5e4;
}

.checkout-logo {
  color: #181818;
  font-size: 1.6rem;
  font-weight: 900;
  text-decoration: none;
}

.checkout-logo span {
  color: #c5223f;
}

.checkout-back {
  color: #0f6f67;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.checkout-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.checkout-intro {
  max-width: 720px;
  margin-bottom: 30px;
}

.checkout-intro h1 {
  margin-top: 8px;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.96;
}

.checkout-intro p:not(.eyebrow) {
  margin-top: 12px;
  color: #747b80;
  font-size: 1.08rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.checkout-card {
  background: #fff;
  border: 1px solid #e1e5e4;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(20, 24, 25, 0.08);
}

.checkout-card h2 {
  margin-bottom: 18px;
  font-size: 1.35rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkout-card label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.checkout-card label span {
  color: #4f5457;
  font-size: 0.84rem;
  font-weight: 900;
}

.checkout-card input,
.checkout-card textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e1e5e4;
  border-radius: 8px;
  padding: 12px;
  color: #181818;
  font: inherit;
  outline: none;
}

.checkout-card textarea {
  min-height: 112px;
  resize: vertical;
}

.checkout-card input:focus,
.checkout-card textarea:focus {
  border-color: #0f6f67;
  box-shadow: 0 0 0 3px rgba(15, 111, 103, 0.13);
}

.order-card {
  position: sticky;
  top: 24px;
}

.checkout-items {
  display: grid;
  gap: 14px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 64px 1fr 86px;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #e1e5e4;
}

.checkout-item img {
  width: 64px;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
  background: #f2f5f4;
}

.checkout-item strong,
.checkout-item small {
  display: block;
}

.checkout-item small {
  color: #747b80;
}

.checkout-item input {
  min-height: 40px;
  text-align: center;
}

.totals {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.grand-total {
  padding-top: 14px;
  border-top: 1px solid #e1e5e4;
  font-size: 1.22rem;
}

.pay-now-btn {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 10px;
  background: #c5223f;
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
  cursor: pointer;
  transition: 0.18s ease;
}

.pay-now-btn:hover {
  background: #92172d;
  transform: translateY(-1px);
}

.pay-now-btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.secure-note {
  margin-top: 14px;
  color: #747b80;
  font-size: 0.9rem;
}

.checkout-status {
  display: none;
  margin-top: 14px;
  border-radius: 8px;
  padding: 12px;
  font-weight: 800;
}

.checkout-status.success {
  display: block;
  background: #e9f8ef;
  color: #09613b;
}

.checkout-status.error {
  display: block;
  background: #fff0f2;
  color: #97172d;
}

.checkout-status.info {
  display: block;
  background: #eef6ff;
  color: #185a8d;
}

@media (max-width: 900px) {
  .checkout-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .order-card {
    position: static;
  }
}