/* ==========================================================================
   ECOMERS — ULTRA PREMIUM CHECKOUT 2.0
   Modern, colorful, fully responsive — Digital Product Store
   ========================================================================== */

/* ── FONT */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800;900&display=swap');

/* ── CHECKOUT HERO BANNER ── */
.ecom-checkout-hero {
  background: linear-gradient(135deg, #1E0A4E 0%, #2F1C6A 35%, #3B2A8A 65%, #4A2BC1 88%, #673DE6 100%);
  padding: 36px 0 28px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  color: #fff;
  position: relative;
  overflow: hidden;
  font-family: 'DM Sans', Inter, system-ui, sans-serif;
}

.ecom-checkout-hero__glow {
  position: absolute;
  top: -80px; right: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(139,92,246,0.35) 0%, transparent 70%);
  pointer-events: none;
}

.ecom-checkout-hero__glow2 {
  position: absolute;
  bottom: -60px; left: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(16,185,129,0.20) 0%, transparent 70%);
  pointer-events: none;
}

.ecom-checkout-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Breadcrumb */
.ecom-checkout-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

.ecom-checkout-breadcrumb a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.ecom-checkout-breadcrumb a:hover { color: #fff; }

/* Title Row */
.ecom-checkout-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ecom-checkout-heading {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 850;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ecom-checkout-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,0.18);
  border: 1px solid rgba(16,185,129,0.35);
  color: #6EE7B7;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 9999px;
  white-space: nowrap;
}

/* Step Pills */
.ecom-checkout-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
}

.ecom-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.70);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s;
}

.ecom-step-pill--done {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

.ecom-step-pill--active {
  background: #fff;
  color: #5B21B6;
  border-color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  font-weight: 800;
}

.ecom-step-arrow {
  color: rgba(255,255,255,0.3);
  font-size: 14px;
}

/* ── PAGE BODY ── */
.ecom-checkout-page-bg {
  background: #F3F7FF;
  padding: 28px 0 56px;
  min-height: calc(100vh - 340px);
  font-family: 'DM Sans', Inter, system-ui, sans-serif;
}

.ecom-checkout-container {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

@media(min-width: 640px) {
  .ecom-checkout-container { padding: 0 28px; }
}

/* ── DELIVERY BANNER ── */
.ecom-digital-banner {
  background: linear-gradient(90deg, #FAF5FF 0%, #EDE9FE 100%);
  border: 1px solid #C4B5FD;
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(103,61,230,0.07);
}

.ecom-digital-banner__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ecom-digital-banner__icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #673DE6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(103,61,230,0.3);
  font-size: 16px;
}

.ecom-digital-banner__text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #1E1B4B;
}

.ecom-digital-banner__text span {
  font-size: 12px;
  color: #5B5B6B;
}

.ecom-digital-banner__badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ecom-digi-chip {
  background: #fff;
  border: 1px solid #C4B5FD;
  color: #5B21B6;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  white-space: nowrap;
}

/* ── MAIN CONTENT CARD WRAPPER ── */
.ecom-checkout-content-card {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  width: 100% !important;
}

/* ── WOOCOMMERCE BLOCKS CHECKOUT LAYOUT ── */
.wc-block-checkout,
.wp-block-woocommerce-checkout {
  font-family: 'DM Sans', Inter, system-ui, sans-serif !important;
  color: #0F172A !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
  align-items: flex-start !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Left Main Form: ~60% */
.wc-block-checkout__main {
  flex: 1 1 520px !important;
  min-width: 300px !important;
  max-width: 100% !important;
}

/* Right Sidebar: ~38% */
.wc-block-checkout__sidebar {
  flex: 0 0 360px !important;
  min-width: 300px !important;
  max-width: 100% !important;
  position: sticky !important;
  top: 80px !important;
}

@media(max-width: 900px) {
  .wc-block-checkout {
    flex-direction: column !important;
  }
  .wc-block-checkout__main,
  .wc-block-checkout__sidebar {
    flex: 1 1 100% !important;
    min-width: 100% !important;
    position: static !important;
  }
}

/* Left Column Step Cards */
.wc-block-components-checkout-step,
.wc-block-checkout__main .wc-block-components-checkout-step {
  background: #fff !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 18px !important;
  padding: 22px !important;
  margin-bottom: 18px !important;
  box-shadow: 0 2px 12px rgba(15,23,42,0.04) !important;
  transition: box-shadow 0.2s !important;
}

.wc-block-components-checkout-step:hover {
  box-shadow: 0 6px 24px rgba(103,61,230,0.07) !important;
}

@media(min-width: 768px) {
  .wc-block-components-checkout-step,
  .wc-block-checkout__main .wc-block-components-checkout-step {
    padding: 26px !important;
  }
}

/* Step Headings */
.wc-block-components-checkout-step__heading,
.wc-block-components-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #0F172A !important;
  margin-bottom: 16px !important;
}

/* Step Number Circles */
.wc-block-components-checkout-step__heading-content::before {
  background: linear-gradient(135deg, #673DE6, #7C3AED) !important;
  border-radius: 50% !important;
  color: #fff !important;
  font-weight: 800 !important;
}

/* Form Inputs */
.wc-block-components-text-input {
  margin-bottom: 14px !important;
}

.wc-block-components-text-input input,
.wc-block-components-combobox input,
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"] {
  height: 48px !important;
  border-radius: 12px !important;
  border: 1.5px solid #CBD5E1 !important;
  background: #F8FAFC !important;
  padding: 13px 15px !important;
  font-size: 14px !important;
  color: #0F172A !important;
  font-family: 'DM Sans', Inter, system-ui, sans-serif !important;
  transition: all 0.15s ease !important;
  box-shadow: none !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-combobox input:focus {
  border-color: #673DE6 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(103,61,230,0.12) !important;
  outline: none !important;
}

.wc-block-components-text-input label,
.wc-block-components-combobox .components-base-control__label {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #64748B !important;
  padding: 0 4px !important;
}

/* Select / Dropdown */
.wc-block-components-combobox select,
.wc-block-components-country-input select,
.components-select-control select {
  height: 48px !important;
  border-radius: 12px !important;
  border: 1.5px solid #CBD5E1 !important;
  background: #F8FAFC !important;
  padding: 13px 15px !important;
  font-size: 14px !important;
  color: #0F172A !important;
  font-family: 'DM Sans', Inter, system-ui, sans-serif !important;
}

/* Payment Step Highlight */
.wc-block-checkout__payment_methods,
.wc-block-components-checkout-step--payment {
  background: #FAF8FF !important;
  border: 2px solid #8B5CF6 !important;
  border-radius: 18px !important;
  padding: 22px !important;
}

/* Payment Radio Options */
.wc-block-components-radio-control-accordion-option {
  background: #fff !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 12px !important;
  padding: 14px !important;
  margin-bottom: 10px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
  transition: all 0.2s ease !important;
}

.wc-block-components-radio-control-accordion-option:hover,
.wc-block-components-radio-control-accordion-option--selected {
  border-color: #8B5CF6 !important;
  box-shadow: 0 4px 16px rgba(139,92,246,0.12) !important;
}

/* ── ORDER SUMMARY SIDEBAR ── */
.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
  background: #fff !important;
  border: 1.5px solid #EDE8FF !important;
  border-radius: 20px !important;
  padding: 22px !important;
  box-shadow: 0 8px 32px rgba(103,61,230,0.07) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

/* Remove nested card boxes */
.wc-block-components-order-summary,
.wc-block-checkout__sidebar .wc-block-components-order-summary,
.wc-block-components-totals-wrapper,
.wc-block-components-panel,
.wc-block-components-order-summary__content {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: 100% !important;
}

/* Order Summary Header */
.wc-block-components-order-summary__header,
.wp-block-woocommerce-checkout-order-summary-block h2 {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  letter-spacing: -0.02em !important;
  padding-bottom: 12px !important;
  border-bottom: 1.5px solid #F1F5F9 !important;
  margin: 0 !important;
}

/* Order Item Row */
.wc-block-components-order-summary-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 0 12px !important;
  border-bottom: 1px solid #F1F5F9 !important;
  background: transparent !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Item Image */
.wc-block-components-order-summary-item__image {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
  background: #F8FAFC !important;
}

.wc-block-components-order-summary-item__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* Item Title */
.wc-block-components-order-summary-item__description {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-align: left !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wc-block-components-order-summary-item__title,
.wc-block-components-product-name {
  font-size: 13px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
  display: block !important;
  word-break: normal !important;
  white-space: normal !important;
}

/* Item Price */
.wc-block-components-order-summary-item__total-price {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: center !important;
  text-align: right !important;
  gap: 3px !important;
  padding: 0 !important;
}

.wc-block-components-order-summary-item__total-price span,
.wc-block-components-order-summary-item__total-price .wc-block-formatted-money-amount {
  font-size: 15px !important;
  font-weight: 850 !important;
  color: #673DE6 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
}

/* Save / Discount badge — HIDDEN COMPLETELY */
.wc-block-components-order-summary-item__discount-badge,
.wc-block-components-order-summary-item .wc-block-components-discount-badge,
.wc-block-components-order-summary-item__total-price span[class*="discount"],
.wc-block-components-totals-item--discount,
.wc-block-components-order-summary-item .woocommerce-Price-amount + span,
.screen-reader-text + .wc-block-formatted-money-amount,
.wc-block-components-order-summary .wc-block-components-sale-badge,
.wc-block-checkout__sidebar .wc-block-components-sale-badge,
.wc-block-components-order-summary-item .wc-block-components-sale-badge,
[class*="discount-badge"],
[class*="discounted"],
[class*="sale-badge"],
[class*="save-badge"],
[class*="savings"] {
  display: none !important;
}

/* Hide cluttering duplicate metadata */
.wc-block-components-order-summary-item__individual-prices,
.wc-block-components-product-metadata,
.wc-block-components-order-summary-item .wc-block-components-product-metadata,
.wc-block-components-product-details__description {
  display: none !important;
}

/* Totals Rows */
.wc-block-components-totals-item {
  display: flex !important;
  justify-content: space-between !important;
  padding: 7px 0 !important;
  font-size: 13.5px !important;
  color: #475569 !important;
  border: none !important;
}

.wc-block-components-totals-footer-item {
  border-top: 2px solid #EDE8FF !important;
  padding-top: 12px !important;
  margin-top: 8px !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 22px !important;
  font-weight: 850 !important;
  color: #0F172A !important;
  letter-spacing: -0.025em !important;
}

/* ── PLACE ORDER BUTTON — High-converting, glowing ── */
.wc-block-components-checkout-place-order-button,
.wc-block-checkout__actions_row button,
button.wp-element-button.wc-block-components-checkout-place-order-button,
.wc-block-components-button.wc-block-components-checkout-place-order-button,
#place_order {
  width: 100% !important;
  height: 54px !important;
  background: linear-gradient(90deg, #5B21B6 0%, #673DE6 45%, #8B5CF6 100%) !important;
  color: #fff !important;
  border-radius: 9999px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow: 0 8px 28px rgba(103,61,230,0.40) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  transition: all 0.2s ease !important;
  margin-top: 16px !important;
  font-family: 'DM Sans', Inter, system-ui, sans-serif !important;
}

.wc-block-components-checkout-place-order-button:hover,
.wc-block-checkout__actions_row button:hover,
button.wp-element-button.wc-block-components-checkout-place-order-button:hover,
#place_order:hover {
  transform: translateY(-2px) scale(1.01) !important;
  box-shadow: 0 12px 36px rgba(103,61,230,0.55) !important;
  background: linear-gradient(90deg, #4C1D95 0%, #5B21B6 45%, #7C3AED 100%) !important;
}

/* ── TRUST ROW ── */
.ecom-checkout-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

@media(max-width: 640px) {
  .ecom-checkout-trust-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.ecom-trust-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #64748B;
  background: #fff;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
  transition: all 0.18s;
}

.ecom-trust-pill:hover {
  border-color: #DDD6FE;
  box-shadow: 0 6px 20px rgba(103,61,230,0.10);
  transform: translateY(-2px);
}

.ecom-trust-pill svg {
  color: #10B981;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.ecom-trust-pill strong {
  display: block;
  font-size: 12.5px;
  color: #0F172A;
  font-weight: 750;
  line-height: 1.3;
}

.ecom-trust-pill span {
  display: block;
  font-size: 11px;
  color: #64748B;
  margin-top: 1px;
  line-height: 1.3;
}

/* ── RESPONSIVE ── */
@media(max-width: 480px) {
  .ecom-checkout-hero {
    padding: 24px 0 18px;
  }
  .ecom-checkout-hero__inner {
    padding: 0 16px;
  }
  .ecom-checkout-container {
    padding: 0 14px;
  }
  .ecom-checkout-heading {
    font-size: 20px;
  }
  .ecom-checkout-steps {
    gap: 6px;
    font-size: 11px;
  }
  .ecom-step-pill {
    padding: 4px 10px;
  }
  .ecom-checkout-badge {
    font-size: 11px;
    padding: 4px 10px;
  }
  .wc-block-components-checkout-step,
  .wc-block-checkout__main .wc-block-components-checkout-step {
    padding: 18px !important;
    border-radius: 14px !important;
  }
  .wp-block-woocommerce-checkout-order-summary-block,
  .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
    padding: 16px !important;
    border-radius: 16px !important;
  }
  .ecom-digital-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
