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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
  color: #333;
}

/* ===== CHECKOUT WRAPPER ===== */
/* Column layout: hero stacks above the two-column body */
.checkout-wrapper {
  max-width: 960px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
}

/* ===== HERO SECTION ===== */
/* Full-width banner image above the two-column layout */
.checkout-hero {
  width: 100%;
  overflow: hidden;
}

.checkout-hero img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px;
  object-fit: cover;
}

/* ===== VIDEO EMBED ===== */
/* 16:9 responsive container for YouTube/Vimeo iframes */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 24px;
  background: #000;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== CHECKOUT BODY (two-column wrapper) ===== */
.checkout-body {
  display: flex;
  flex-direction: row;
}

/* ===== LEFT COLUMN - Product Info ===== */
.checkout-left {
  flex: 1;
  padding: 40px 36px;
  border-right: 1px solid #eee;
}

/* Product header — shared base */
.product-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

/* Product header — hero mode (no thumbnail, bigger title) */
.product-header--hero {
  display: block;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.product-header--hero h1 {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
}

.product-header--hero .product-price-tag {
  margin-top: 6px;
}

/* Product image / emoji placeholder */
.product-image {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 50%, #e8eaf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-placeholder {
  font-size: 40px;
}

/* Product title and price */
.product-title-row h1 {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
}

.product-price-tag {
  font-size: 15px;
  font-weight: 600;
  color: #7c3aed;
  margin-top: 4px;
}

/* ===== DESCRIPTION PARAGRAPH ===== */
.product-intro {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-intro p {
  margin-bottom: 12px;
}

.product-intro p:last-child {
  margin-bottom: 0;
}

.rich-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 12px;
}

.rich-list li {
  padding: 4px 0;
  line-height: 1.6;
}

/* ===== FEATURES LIST (emoji-icon format) ===== */
.product-description {
  margin-bottom: 24px;
}

.product-description h3 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 10px 0;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  border-bottom: 1px solid #f3f3f3;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-icon {
  flex-shrink: 0;
  font-size: 16px;
}

/* ===== CONTENT SECTION (bullet list format) ===== */
.content-section {
  margin-bottom: 24px;
}

.content-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 14px;
}

.content-list {
  list-style: none;
  padding: 0;
}

.content-list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.content-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: #7c3aed;
  font-weight: 700;
}

/* ===== CLOSING TEXT ===== */
.closing-text {
  margin-bottom: 24px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 50%, #e8eaf6 100%);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  text-align: center;
}

/* ===== ORDER SUMMARY ===== */
.order-summary {
  background: #fafafa;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.order-summary h3 {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: #666;
}

.summary-row.total {
  border-top: 2px solid #eee;
  margin-top: 8px;
  padding-top: 12px;
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

.original-price {
  text-decoration: line-through;
  color: #aaa;
  margin-right: 8px;
}

/* ===== RIGHT COLUMN - Form ===== */
.checkout-right {
  width: 380px;
  flex-shrink: 0;
  padding: 40px 32px;
  background: #fafafa;
  position: sticky;
  top: 20px;
  align-self: flex-start;
}

.checkout-right h2 {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  transition: border-color 0.2s;
  outline: none;
  background: #fff;
}

.form-group input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group input::placeholder {
  color: #bbb;
}

/* Coupon section */
.coupon-section {
  margin-bottom: 20px;
}

.coupon-toggle {
  font-size: 13px;
  color: #7c3aed;
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}

.coupon-toggle:hover {
  color: #6d28d9;
}

.coupon-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.coupon-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.coupon-row input:focus {
  border-color: #7c3aed;
}

.coupon-row button {
  padding: 10px 20px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.coupon-row button:hover {
  background: #555;
}

.coupon-applied {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  color: #10b981;
  font-weight: 600;
}

.coupon-hidden {
  display: none;
}

/* ===== BUMP OFFER ===== */
.bump-offer {
  margin: 20px 0;
  border: 2px dashed #7c3aed;
  border-radius: 12px;
  padding: 16px 20px;
  background: #faf5ff;
}

.bump-offer-header {
  margin-bottom: 8px;
}

.bump-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.bump-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #7c3aed;
  cursor: pointer;
}

.bump-check-icon {
  display: none;
}

.bump-label {
  flex: 1;
}

.bump-offer-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #666;
  padding-top: 6px;
  border-top: 1px solid #e9d5ff;
}

.bump-name {
  font-weight: 500;
}

.bump-price {
  font-weight: 700;
  color: #7c3aed;
}

/* ===== GIFT SECTION ===== */
.gift-section {
  margin-bottom: 16px;
  padding: 12px 0;
}

.gift-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #555;
}

.gift-toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #7c3aed;
  cursor: pointer;
}

/* Divider */
.form-divider {
  height: 1px;
  background: #e5e5e5;
  margin: 20px 0;
}

/* Submit button */
.btn-pay {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s, transform 0.1s;
  letter-spacing: 0.3px;
}

.btn-pay:hover {
  opacity: 0.92;
}

.btn-pay:active {
  transform: scale(0.98);
}

.btn-pay:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Error message */
.error-message {
  background: #fef2f2;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}

.error-message.show {
  display: block;
}

/* Secure badge */
.secure-badge {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.secure-badge svg {
  width: 14px;
  height: 14px;
  fill: #aaa;
}

/* Redirect info microcopy */
.redirect-info {
  font-size: 12px;
  color: #888;
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
  padding: 0 8px;
}

/* Terms text */
.terms-text {
  font-size: 11px;
  color: #aaa;
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* ===== LOADING ===== */
.loading {
  text-align: center;
  padding: 120px 20px;
  color: #888;
  width: 100%;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== NOT FOUND ===== */
.not-found {
  text-align: center;
  padding: 120px 20px;
  width: 100%;
}

.not-found h2 {
  font-size: 20px;
  color: #333;
  margin-bottom: 8px;
}

.not-found p {
  color: #888;
  font-size: 14px;
}

/* ===== SUCCESS PAGE ===== */
.success-wrapper {
  max-width: 560px;
  margin: 80px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 48px 40px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.failure-icon {
  width: 64px;
  height: 64px;
  background: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.failure-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.success-text {
  text-align: center;
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 28px;
}

.btn-back {
  display: block;
  width: 100%;
  padding: 14px;
  background: #f3f4f6;
  color: #333;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-back:hover {
  background: #e5e7eb;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .checkout-body {
    flex-direction: column;
  }

  .checkout-hero img {
    max-height: 250px;
  }

  .checkout-left {
    padding: 28px 20px;
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .checkout-right {
    position: static;
    width: 100%;
    padding: 28px 20px;
    align-self: auto;
  }

  .product-header {
    flex-direction: column;
    text-align: center;
  }

  .product-header--hero {
    text-align: center;
  }

  .success-wrapper {
    margin: 20px;
    padding: 32px 20px;
  }
}
