/* IPTV Belgique Commerce Engine v2.7.19.120
   Premium cart + checkout tunnel redesign.
   Scope: public panier + validation commande only. */

/* -------------------------------------------------------------------------
   Tunnel shell
------------------------------------------------------------------------- */
body .iptvbc-commerce-flow.iptvbc-cart,
body .iptvbc-commerce-flow.iptvbc-checkout {
  position: relative;
  max-width: 1120px;
  margin: clamp(34px, 5vw, 72px) auto clamp(54px, 6vw, 92px);
  padding: 0 clamp(16px, 2vw, 22px);
  isolation: isolate;
}

body .iptvbc-commerce-flow.iptvbc-cart::before,
body .iptvbc-commerce-flow.iptvbc-checkout::before {
  content: "";
  position: absolute;
  inset: -58px -80px auto;
  height: 420px;
  border-radius: 44px;
  background:
    radial-gradient(circle at 78% 4%, rgba(239, 18, 30, .13), transparent 34%),
    radial-gradient(circle at 10% 16%, rgba(255, 255, 255, .94), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,.74), rgba(248,250,253,.64));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  z-index: -2;
  pointer-events: none;
}

body .iptvbc-commerce-flow.iptvbc-cart::after,
body .iptvbc-commerce-flow.iptvbc-checkout::after {
  content: "";
  position: absolute;
  inset: -20px -30px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239,18,30,.20), transparent);
  z-index: -1;
  pointer-events: none;
}

/* -------------------------------------------------------------------------
   Hero / section head
------------------------------------------------------------------------- */
body .iptvbc-commerce-flow .iptvbc-section-head {
  position: relative;
  max-width: 780px;
  margin: 0 auto clamp(28px, 4vw, 42px);
  padding: clamp(34px, 5vw, 58px) clamp(28px, 5vw, 58px);
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 0%, rgba(239,18,30,.12), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(246,248,252,.78));
  border: 1px solid rgba(239, 18, 30, .13);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, .075),
    inset 0 1px 0 rgba(255,255,255,.98);
}

body .iptvbc-commerce-flow .iptvbc-section-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(255,255,255,.62), transparent 32%, transparent 72%, rgba(255,255,255,.42)),
    repeating-linear-gradient(90deg, rgba(15,23,42,.026) 0 1px, transparent 1px 92px);
  opacity: .42;
  pointer-events: none;
}

body .iptvbc-commerce-flow .iptvbc-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 17px;
  border-radius: 999px;
  background: rgba(239, 18, 30, .070);
  border: 1px solid rgba(239, 18, 30, .13);
  color: #ef121e;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
}

body .iptvbc-commerce-flow .iptvbc-section-head h2 {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 18px 0 14px;
  color: #090f22;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: .88;
  letter-spacing: -.065em;
  font-weight: 950;
}

body .iptvbc-commerce-flow .iptvbc-section-head p {
  position: relative;
  z-index: 1;
  max-width: 610px;
  margin: 0;
  color: #68748a;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
}

/* -------------------------------------------------------------------------
   Alerts / empty states
------------------------------------------------------------------------- */
body .iptvbc-commerce-flow .iptvbc-alert {
  max-width: 960px;
  margin: 0 auto 22px;
  border-radius: 18px;
  padding: 17px 22px;
  border: 1px solid rgba(12, 170, 105, .18);
  background: linear-gradient(180deg, rgba(236,253,245,.92), rgba(240,253,248,.82));
  color: #08764a;
  font-weight: 750;
  box-shadow: 0 12px 28px rgba(15,23,42,.04);
}

body .iptvbc-commerce-flow .iptvbc-empty {
  max-width: 640px;
  margin: 0 auto;
  padding: 38px;
  border-radius: 28px;
  text-align: center;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: 0 24px 54px rgba(15,23,42,.07);
}

/* -------------------------------------------------------------------------
   Cart layout
------------------------------------------------------------------------- */
body .iptvbc-cart .iptvbc-cart-items {
  display: grid;
  gap: 18px;
  max-width: 960px;
  margin: 0 auto 18px;
}

body .iptvbc-cart .iptvbc-cart-item {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 252px);
  gap: 22px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 8%, rgba(239,18,30,.10), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(252,250,248,.78));
  border: 1px solid rgba(239, 18, 30, .16);
  box-shadow:
    0 24px 62px rgba(15, 23, 42, .075),
    inset 0 1px 0 rgba(255,255,255,.98);
}

body .iptvbc-cart .iptvbc-cart-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  bottom: 28px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff4b55, #cf0610);
  box-shadow: 0 0 24px rgba(239,18,30,.26);
}

body .iptvbc-cart .iptvbc-cart-item h3 {
  margin: 0 0 18px;
  max-width: 720px;
  color: #10172a;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.04;
  letter-spacing: -.04em;
  font-weight: 950;
}

body .iptvbc-options {
  display: grid;
  gap: 10px;
  margin: 0;
}

body .iptvbc-cart .iptvbc-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body .iptvbc-option-row,
body .iptvbc-summary-product,
body .iptvbc-summary-line {
  min-width: 0;
}

body .iptvbc-option-row {
  display: grid;
  grid-template-columns: minmax(112px, .6fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 11px 13px;
  border-radius: 15px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,23,42,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

body .iptvbc-option-row dt {
  margin: 0;
  color: #68748a;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

body .iptvbc-option-row dd {
  margin: 0;
  color: #111827;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
  word-break: break-word;
}

body .iptvbc-option-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

body .iptvbc-option-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff4df;
  border: 1px solid rgba(222, 159, 41, .25);
  color: #8b5a00;
  font-size: 11px;
  font-weight: 900;
}

/* -------------------------------------------------------------------------
   Cart price panel + actions
------------------------------------------------------------------------- */
body .iptvbc-cart .iptvbc-cart-price {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  border-radius: 23px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.98), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,247,248,.76));
  border: 1px solid rgba(239,18,30,.11);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.98),
    0 14px 34px rgba(239,18,30,.075);
}

body .iptvbc-cart .iptvbc-cart-price strong,
body .iptvbc-cart .iptvbc-cart-total strong,
body .iptvbc-checkout .iptvbc-summary-line.total strong {
  color: #e70e19;
  font-weight: 950;
  letter-spacing: -.055em;
}

body .iptvbc-cart .iptvbc-cart-price strong {
  font-size: clamp(28px, 3vw, 38px);
  line-height: .95;
}

body .iptvbc-cart .iptvbc-connection-price-detail {
  display: block;
  max-width: 190px;
  text-align: right;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
}

body .iptvbc-cart .iptvbc-cart-price a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 6px;
  padding: 0 12px;
  border-radius: 999px;
  color: #b20a13;
  background: rgba(239,18,30,.075);
  border: 1px solid rgba(239,18,30,.12);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

body .iptvbc-cart .iptvbc-cart-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  max-width: 960px;
  margin: 18px auto 14px;
  padding: 18px 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 0%, rgba(239,18,30,.08), transparent 34%),
    rgba(255,255,255,.84);
  border: 1px solid rgba(15,23,42,.055);
  box-shadow: 0 18px 42px rgba(15,23,42,.055), inset 0 1px 0 rgba(255,255,255,.98);
}

body .iptvbc-cart .iptvbc-cart-total span {
  color: #5d6677;
  font-size: 14px;
  font-weight: 750;
}

body .iptvbc-cart .iptvbc-cart-total strong {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1;
}

body .iptvbc-cart .iptvbc-cart-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}

/* -------------------------------------------------------------------------
   Buttons
------------------------------------------------------------------------- */
body .iptvbc-commerce-flow .iptvbc-btn {
  position: relative;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.065);
  background: rgba(255,255,255,.88);
  color: #10172a;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(15,23,42,.055), inset 0 1px 0 rgba(255,255,255,.96);
  overflow: hidden;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease;
}

body .iptvbc-commerce-flow .iptvbc-btn::before {
  content: "";
  position: absolute;
  inset: -60% auto -60% -40%;
  width: 34%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.76), transparent);
  opacity: .55;
  transition: left .55s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}

body .iptvbc-commerce-flow .iptvbc-btn:hover,
body .iptvbc-commerce-flow .iptvbc-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15,23,42,.075), inset 0 1px 0 rgba(255,255,255,.96);
}

body .iptvbc-commerce-flow .iptvbc-btn:hover::before,
body .iptvbc-commerce-flow .iptvbc-btn:focus-visible::before {
  left: 112%;
}

body .iptvbc-commerce-flow .iptvbc-btn-primary,
body .iptvbc-commerce-flow .iptvbc-btn-wide {
  color: #fff;
  border-color: rgba(255,255,255,.18);
  background:
    radial-gradient(circle at 26% 0%, rgba(255,255,255,.28), transparent 34%),
    linear-gradient(135deg, #ff3542 0%, #ef121e 58%, #c60610 100%);
  box-shadow:
    0 18px 38px rgba(239,18,30,.27),
    inset 0 1px 0 rgba(255,255,255,.25);
}

body .iptvbc-checkout .iptvbc-btn-wide {
  width: 100%;
  min-height: 56px;
  margin-top: 8px;
}

/* -------------------------------------------------------------------------
   Checkout
------------------------------------------------------------------------- */
body .iptvbc-checkout .iptvbc-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(280px, .78fr);
  gap: 24px;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
}

body .iptvbc-checkout .iptvbc-checkout-form,
body .iptvbc-checkout .iptvbc-summary {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 0%, rgba(239,18,30,.08), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(252,250,248,.78));
  border: 1px solid rgba(15,23,42,.055);
  box-shadow:
    0 24px 62px rgba(15,23,42,.075),
    inset 0 1px 0 rgba(255,255,255,.98);
}

body .iptvbc-checkout .iptvbc-checkout-form {
  padding: clamp(22px, 3vw, 32px);
}

body .iptvbc-checkout .iptvbc-checkout-form::before,
body .iptvbc-checkout .iptvbc-summary::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #ef121e, rgba(239,18,30,.12), transparent);
  pointer-events: none;
}

body .iptvbc-checkout .iptvbc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

body .iptvbc-checkout .iptvbc-field {
  margin: 0;
}

body .iptvbc-checkout .iptvbc-field-full {
  grid-column: 1 / -1;
}

body .iptvbc-checkout .iptvbc-field label {
  display: grid;
  gap: 8px;
  color: #111827;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
}

body .iptvbc-checkout input[type="text"],
body .iptvbc-checkout input[type="email"],
body .iptvbc-checkout input[type="tel"],
body .iptvbc-checkout select,
body .iptvbc-checkout textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(15,23,42,.080);
  border-radius: 15px;
  padding: 0 15px;
  background: rgba(255,255,255,.88);
  color: #111827;
  font-size: 14px;
  font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 10px 22px rgba(15,23,42,.032);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

body .iptvbc-checkout select {
  appearance: auto;
}

body .iptvbc-checkout textarea {
  min-height: 120px;
  padding-top: 14px;
  resize: vertical;
}

body .iptvbc-checkout input:focus,
body .iptvbc-checkout select:focus,
body .iptvbc-checkout textarea:focus {
  border-color: rgba(239,18,30,.45);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(239,18,30,.08), inset 0 1px 0 rgba(255,255,255,.95);
}

body .iptvbc-checkout .iptvbc-payment-help {
  display: block;
  margin-top: 8px;
  color: #697386;
  font-size: 12px;
  line-height: 1.42;
}

/* Fix the ugly centered checkbox from the previous render. */
body .iptvbc-checkout .iptvbc-terms {
  margin-top: 4px;
  padding: 15px 16px;
  border-radius: 17px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(15,23,42,.055);
}

body .iptvbc-checkout .iptvbc-terms label {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  color: #111827;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.55;
}

body .iptvbc-checkout .iptvbc-terms input[type="checkbox"] {
  appearance: none;
  flex: 0 0 22px;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  margin: 2px 0 0 !important;
  border-radius: 7px;
  border: 2px solid rgba(239,18,30,.28);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95);
  cursor: pointer;
}

body .iptvbc-checkout .iptvbc-terms input[type="checkbox"]:checked {
  border-color: #ef121e;
  background:
    linear-gradient(135deg, #ff3340, #d80713);
}

body .iptvbc-checkout .iptvbc-terms input[type="checkbox"]:checked::after {
  content: "";
  display: block;
  width: 7px;
  height: 12px;
  margin: 2px auto 0;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* -------------------------------------------------------------------------
   Checkout summary
------------------------------------------------------------------------- */
body .iptvbc-checkout .iptvbc-summary {
  position: sticky;
  top: 108px;
  padding: 28px;
}

body .iptvbc-checkout .iptvbc-summary h3 {
  margin: 0 0 22px;
  color: #111827;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.03em;
  font-weight: 950;
}

body .iptvbc-checkout .iptvbc-summary-product,
body .iptvbc-checkout .iptvbc-summary-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(15,23,42,.065);
}

body .iptvbc-checkout .iptvbc-summary-product span,
body .iptvbc-checkout .iptvbc-summary-line span {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

body .iptvbc-checkout .iptvbc-summary-product strong {
  color: #111827;
  font-size: 14px;
  font-weight: 950;
}

body .iptvbc-checkout .iptvbc-summary-line.total {
  margin-top: 8px;
  padding-top: 18px;
  border-bottom: 0;
}

body .iptvbc-checkout .iptvbc-summary-line.total strong {
  font-size: clamp(32px, 4vw, 48px);
}

/* -------------------------------------------------------------------------
   Responsive
------------------------------------------------------------------------- */
@media (max-width: 980px) {
  body .iptvbc-cart .iptvbc-cart-item,
  body .iptvbc-checkout .iptvbc-checkout-layout {
    grid-template-columns: 1fr;
  }

  body .iptvbc-cart .iptvbc-cart-price {
    align-items: flex-start;
  }

  body .iptvbc-cart .iptvbc-connection-price-detail {
    max-width: none;
    text-align: left;
  }

  body .iptvbc-checkout .iptvbc-summary {
    position: relative;
    top: auto;
  }
}

@media (max-width: 720px) {
  body .iptvbc-commerce-flow.iptvbc-cart,
  body .iptvbc-commerce-flow.iptvbc-checkout {
    margin-top: 26px;
    padding-inline: 14px;
  }

  body .iptvbc-commerce-flow .iptvbc-section-head {
    padding: 30px 22px;
    border-radius: 26px;
  }

  body .iptvbc-commerce-flow .iptvbc-section-head h2 {
    font-size: clamp(34px, 12vw, 46px);
  }

  body .iptvbc-cart .iptvbc-options,
  body .iptvbc-checkout .iptvbc-form-grid {
    grid-template-columns: 1fr;
  }

  body .iptvbc-option-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  body .iptvbc-cart .iptvbc-cart-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body .iptvbc-commerce-flow .iptvbc-btn {
    width: 100%;
  }

  body .iptvbc-cart .iptvbc-cart-total {
    justify-content: space-between;
  }
}

@media (max-width: 420px) {
  body .iptvbc-commerce-flow .iptvbc-section-head h2 {
    letter-spacing: -.052em;
  }

  body .iptvbc-cart .iptvbc-cart-item,
  body .iptvbc-checkout .iptvbc-checkout-form,
  body .iptvbc-checkout .iptvbc-summary {
    border-radius: 22px;
    padding: 20px;
  }

  body .iptvbc-checkout .iptvbc-summary-line.total {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .iptvbc-commerce-flow .iptvbc-btn,
  body .iptvbc-commerce-flow .iptvbc-btn::before,
  body .iptvbc-checkout input,
  body .iptvbc-checkout select,
  body .iptvbc-checkout textarea {
    transition: none !important;
  }

  body .iptvbc-commerce-flow .iptvbc-btn:hover,
  body .iptvbc-commerce-flow .iptvbc-btn:focus-visible {
    transform: none !important;
  }
}
