* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(circle at top, rgba(30, 83, 181, 0.08), transparent 32%),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f8 100%);
  color: #16223b;
  font-family: "Poppins", sans-serif;
}

a {
  color: #0b63f6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.checkout-header {
  display: none;
}

.checkout-page {
  width: 100%;
  max-width: 1120px;
  margin: 18px auto 40px;
  padding: 0 18px;
  background: transparent;
}

.checkout-shell {
  padding-top: 35px;
}

.hero-banner {
  position: relative;
  border-radius: 16px 16px 0 0;
}

.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
}

.hero-banner::after {
  content: "\1F512  Secure Checkout";
  display: block;
  padding: 12px 18px;
  background: #ffffff;
  color: #233252;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  border: 1px solid #dbe4f0;
  border-top: 0;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  display: none;
}

.desktop-layout {
  display: block;
}

.checkout-primary,
.checkout-secondary {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.reserve-box,
.card-box,
.guarantee-box,
.terms-box {
  background: #ffffff;
  border: 1px solid #dfe7f2;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.benefits-box {
  display: none;
}

.people-box {
  display: block;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dfe7f2;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  margin-top: 20px;
}

.seal img {
  width: 115px;
}

.reserve-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px;
}

.reserve-label {
  color: #354764;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.reserve-label::before {
  content: "\23F3";
  margin-right: 10px;
}

.reserve-time {
  color: #e04158;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.card-box {
  padding: 24px;
}

.section-title,
.payment-heading,
.form-section-title {
  color: #233252;
  font-weight: 700;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8edf5;
  font-size: 22px;
}

.section-title.center {
  text-align: center;
}

.section-title .section-icon {
  display: none;
}

.section-title::before {
  content: "\1F6D2";
  font-size: 22px;
}

.product-row {
  padding: 18px 0 12px;
}

.product-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  padding: 0;
  border-radius: 7px;
  /* background: linear-gradient(135deg, #ff9f43, #ff6b00); */
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.brand-badge img {
  width: 60px;
}

.brand-name {
  color: #233252;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 600;
}

.online-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(11, 99, 246, 0.08);
  color: #0b63f6;
  font-size: 13px;
  font-weight: 600;
}

.online-line::before {
  content: "\1F441";
}

.price-lines {
  display: grid;
  gap: 12px;
  padding-top: 20px;
}

.line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f8;
  color: #4a5d7d;
  font-size: 15px;
}

.line strong {
  color: #1f2f4b;
  font-weight: 700;
}

.line.total {
  padding-top: 6px;
  border-bottom: 0;
  color: #12213c;
  font-size: 19px;
}

.line.total strong {
  color: #0f7a34;
  font-size: 23px;
}

.product-image-wrap {
  padding-top: 12px;
  text-align: center;
}

.product-image-wrap img {
  width: min(100%, 320px);
  height: auto;
  filter: drop-shadow(0 18px 20px rgba(19, 31, 56, 0.18));
}

.payment-heading {
  font-size: 17px;
  margin-bottom: 16px;
}

.payment-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.pay-tab {
  min-height: 60px;
  border: 1px solid #d9e3f1;
  border-radius: 14px;
  background: #f8fbff;
  color: #425575;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.pay-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.pay-tab.active {
  background: linear-gradient(135deg, #0b63f6, #2f8bff);
  border-color: #0b63f6;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(11, 99, 246, 0.22);
}

.pay-tab img {
  max-width: 100%;
  max-height: 24px;
}

.pay-logo-tab {
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-message,
.status-message {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.error-message {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
}

.status-message {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.hidden {
  display: none !important;
}

.checkout-primary .payment-box form {
  display: block;
}

.form-section-title {
  margin: 18px 0 10px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
}

.form-section-title svg {
  width: 24px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.field {
  margin-bottom: 12px;
}

.input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid #cdd9e8;
  border-radius: 12px;
  background: #ffffff;
  color: #16223b;
  font-size: 15px;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.input:focus {
  border-color: #0b63f6;
  box-shadow: 0 0 0 4px rgba(11, 99, 246, 0.12);
}

.input::placeholder {
  color: #7b8da9;
}

.input-error {
  border-color: #e04158 !important;
  background: #fff7f8;
}

.select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #5a6f92 50%), linear-gradient(135deg, #5a6f92 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 22px,
    calc(100% - 16px) 22px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.mini-cards {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-card img {
  height: 40px;
}

.card-heading {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
}

#cc-form {
  display: grid;
  gap: 12px;
}

.card-expiry-field .input,
.card-cvv-field .input {
  padding-right: 40px;
}

.card-expiry-field .input {
  font-size: 14px;
}

.card-expiry-field .input::placeholder {
  font-size: 13px;
}

.info-field {
  position: relative;
}

.hint {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0;
  background: #3d4b64;
  color: #ffffff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.hint:hover,
.hint:focus-visible {
  background: #0b63f6;
  transform: translateY(-50%) scale(1.04);
}

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.popup-card {
  position: relative;
  width: min(100%, 680px);
  padding: 22px 22px 18px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.32);
}

.popup-card h3 {
  margin-bottom: 16px;
  color: #233252;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.popup-card-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e3eaf4;
  border-radius: 14px;
  background: #f8fbff;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #eef3fb;
  color: #233252;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.popup-close:hover,
.popup-close:focus-visible {
  background: #0b63f6;
  color: #ffffff;
}

.buy-now-btn {
  width: 100%;
  height: 58px;
  margin-top: 8px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #0b63f6, #265df2);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 16px 24px rgba(11, 99, 246, 0.24);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}

.buy-now-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 26px rgba(11, 99, 246, 0.28);
}

.buy-now-btn.paypal-mode {
  background: linear-gradient(135deg, #ffc439, #ffb300);
  color: #1f2937;
  box-shadow: 0 16px 24px rgba(255, 196, 57, 0.24);
}

.buy-now-btn.apple-mode {
  background: linear-gradient(135deg, #111827, #000000);
  color: #ffffff;
  box-shadow: 0 16px 24px rgba(17, 24, 39, 0.24);
}

.buy-now-btn:disabled {
  opacity: 0.82;
  cursor: not-allowed;
}

.secure-text {
  margin-top: 12px;
  text-align: center;
  color: #4d607f;
  font-size: 12px;
  font-weight: 600;
}

.security-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.security-logo-img {
  display: block;
  width: auto;
  height: 28px;
}

.guarantee-box {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
}

.people-headline {
  padding: 18px 20px 10px;
  color: #233252;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.people-box img {
  display: block;
  width: 100%;
  height: auto;
}

.seal {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe389, #dcb441 55%, #b58a1c);
  color: #111111;
  font-size: 28px;
  font-weight: 700;
  line-height: 0.95;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.35);
}

.seal span {
  font-size: 16px;
}

.guarantee-copy h3 {
  color: #233252;
  font-size: 18px;
  margin-bottom: 8px;
}

.guarantee-copy p {
  color: #5f708d;
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 8px;
}

.guarantee-copy p:last-child {
  margin-bottom: 0;
}

.terms-box {
  padding: 22px 22px 26px;
}

.terms-box h4 {
  color: #233252;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.terms-box ul {
  padding-left: 18px;
}

.terms-box li {
  color: #5f708d;
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 8px;
}

.copyright {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e8edf5;
  color: #7b8da9;
  font-size: 12px;
  text-align: center;
}

.checkout-footer {
  background: transparent;
  padding: 8px 18px 28px;
}

.checkout-footer p,
.checkout-footer div,
.checkout-footer a {
  color: #6b7c96;
  font-size: 12px;
}

.checkout-page .hero-banner {
  padding: 0;
}

.hero-inner {
  background: #fff;
  position: absolute;
  width: 100%;
  bottom: -11px;
  left: 0;
  right: 0;
  padding: 15px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-radius: 0 0 16px 16px;
}

.hero-inner-left {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 992px) {
  .checkout-page {
    margin-top: 26px;
    padding: 0 20px;
  }

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

  .checkout-primary,
  .checkout-secondary {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
  }

  .reserve-box {
    padding: 22px 24px;
  }

  .order-box {
    position: static;
  }

  .people-box {
    margin-top: 0;
  }

  .reserve-time {
    font-size: 52px;
  }

  .card-box {
    padding: 26px;
  }

  .people-headline {
    padding: 22px 24px 14px;
    font-size: 18px;
  }

  .section-title {
    font-size: 22px;
  }

  .brand-name {
    font-size: 22px;
  }

  .line {
    font-size: 16px;
  }

  .line.total {
    font-size: 21px;
  }

  .line.total strong {
    font-size: 28px;
  }

  .payment-heading {
    font-size: 18px;
  }

  .checkout-primary .payment-box form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
  }

  .checkout-primary .payment-box form > input[type="hidden"],
  .checkout-primary .payment-box form > .form-section-title,
  .checkout-primary .payment-box form > #cc-form,
  .checkout-primary .payment-box form > .buy-now-btn {
    grid-column: 1 / -1;
  }

  #cc-form {
    grid-template-columns: minmax(0, 2fr) minmax(160px, 1.2fr) minmax(150px, 1fr);
    align-items: start;
  }

  #cc-form .field {
    margin-bottom: 0;
  }

  .buy-now-btn {
    height: 60px;
    font-size: 19px;
  }

  .security-logo-img {
    height: 30px;
  }
}

@media (min-width: 992px) and (max-width: 1120px) {
  #cc-form {
    grid-template-columns: 1fr 1fr;
  }

  #cc-form .field:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .checkout-page {
    padding: 0 12px;
  }

  .hero-banner img {
    border-radius: 16px 16px 0 0;
  }

  .hero-banner::after {
    border-radius: 0 0 16px 16px;
  }

  .reserve-box {
    flex-direction: column;
    align-items: center;
  }

  .reserve-time {
    font-size: 38px;
  }

  .guarantee-box {
    flex-direction: column;
    text-align: center;
  }

  .hero-inner {
    padding: 5px 10px;
    bottom: -21px;
    border-radius: 0 0 16px 16px;
  }
}
