/* =========================================================
   RC4 CHECKOUT — CSS complet
========================================================= */

body.woocommerce-checkout h1.entry-title,
body.woocommerce-checkout .entry-title,
body.woocommerce-checkout .page-title,
body.woocommerce-checkout .elementor-heading-title {
  display: none !important;
}

.rc4-checkout-page {
  background: #f4f6f8;
  min-height: 100vh;
}
/* Stripe ECE outputté par le hook - on le replace dans notre carte */
#wc-stripe-express-checkout-element {
    display: none; /* caché par défaut, révélé par JS */
}

/* ── EXPRESS CARD ─────────────────────────────────────────────────────────────
   CRITIQUE — visibility:hidden et PAS display:none.

   display:none  → l'élément n'est pas rendu → dimensions = 0
                 → Stripe.js ne peut pas monter son bouton
                 → canMakePayment() échoue → Apple Pay / Google Pay absents

   visibility:hidden → l'élément est rendu, dimensions calculées
                     → Stripe s'initialise correctement
                     → JS change en visibility:visible si wallet détecté
                     → ou display:none si aucun wallet après 4s
───────────────────────────────────────────────────────────────────────────── */
#rc4-express-card {
  visibility: hidden;
  margin-bottom: 14px;
  background: transparent;
  border: none;
  box-shadow: none;
}

#rc4-express-card .rc4-card__body {
  padding: 0;
}

.rc4-express-slot {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Stripe injecte son wrapper — on ne le touche pas */
.rc4-express-slot .wc-stripe-payment-request-wrapper,
.rc4-express-slot #wc-stripe-payment-request-button-wrapper {
  margin: 0 !important;
}

/* On cache le séparateur natif Stripe, on a le nôtre */
.rc4-express-slot .wc-stripe-payment-request-button-separator,
.rc4-express-slot #wc-stripe-payment-request-button-separator {
  display: none !important;
}
#wc-stripe-express-checkout-button-separator {
  display: none !important;
}

/* ── SHIPPING PENDING ─────────────────────────────────────────────────────── */
.rc4-shipping-pending-label {
  color: #9aabb8;
  font-style: italic;
  font-size: 12px;
}

/* ── TRUSTBAR ─────────────────────────────────────────────────────────────── */
.rc4-trustbar {
  background: linear-gradient(180deg, #063847 0%, #042f3c 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.rc4-trustbar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px 12px;
}

.rc4-trustbar__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.rc4-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.rc4-badge img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .95;
}

.rc4-badge span {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.rc4-badge.is-highlight {
  background: rgba(255,92,27,.14);
  border-color: rgba(255,92,27,.32);
}

.rc4-badge.is-highlight img {
  filter: none;
}

/* ── STEPS ────────────────────────────────────────────────────────────────── */
.rc4-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rc4-step {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #7f95aa;
  font-size: 12px;
  font-weight: 600;
}

.rc4-step__num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #53687b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

.rc4-step.is-done,
.rc4-step.is-active { color: #fff; }

.rc4-step.is-done .rc4-step__num,
.rc4-step.is-active .rc4-step__num {
  background: #ff5c1b;
  border-color: #ff5c1b;
  color: #fff;
}

.rc4-step__line {
  width: 34px;
  height: 2px;
  background: #4e6376;
  border-radius: 999px;
}

.rc4-step__line.is-done { background: #ff5c1b; }

.rc4-step.is-link { text-decoration: none; transition: opacity .2s ease; }
.rc4-step.is-link:hover { opacity: .85; }

/* ── WRAP & SHELL ─────────────────────────────────────────────────────────── */
.rc4-wrap { padding: 18px 20px 46px; }

.rc4-shell { max-width: 1280px; margin: 0 auto; }

.rc4-grid {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(420px, 500px);
  justify-content: space-between;
  gap: 24px;
  align-items: start;
}

.rc4-side { position: sticky; top: 20px; }

/* ── NOTICES ──────────────────────────────────────────────────────────────── */
.rc4-notices { margin-bottom: 16px; }

.rc4-notices .woocommerce-error,
.rc4-notices .woocommerce-info,
.rc4-notices .woocommerce-message {
  margin: 0 0 14px !important;
  border: none !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
}

/* ── CARDS ────────────────────────────────────────────────────────────────── */
.rc4-card,
.rc4-summary {
  background: #fff;
  border: 1px solid #dfe6ee;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(15,23,42,.05);
}

.rc4-card { margin-bottom: 12px; }

.rc4-card__body { padding: 18px 22px 22px; }
.rc4-card__body--form { padding-top: 16px; }

/* ── EXPRESS TITLE & SEPARATOR ───────────────────────────────────────────── */
.rc4-express-title {
  text-align: center;
  color: #7c8b99;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.rc4-express-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  color: #b0bcc8;
  font-size: 11px;
}

.rc4-express-separator span {
  position: relative;
  padding: 0 10px;
}

.rc4-express-separator span::before,
.rc4-express-separator span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 70px;
  height: 1px;
  background: #e4eaf0;
}

.rc4-express-separator span::before { right: 100%; }
.rc4-express-separator span::after  { left: 100%;  }

/* ── SECTION HEAD ─────────────────────────────────────────────────────────── */
.rc4-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px 0;
}

.rc4-section-head__num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff5c1b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.rc4-section-head__title {
  color: #1b2f42;
  font-size: 16px;
  font-weight: 700;
}

.rc4-shipping-inline-title {
  margin: 14px 0 12px;
  padding-top: 14px;
  border-top: 1px solid #ebf0f5;
  color: #ff5c1b;
  font-size: 13px;
  font-weight: 700;
}

/* ── SUMMARY ──────────────────────────────────────────────────────────────── */
.rc4-summary__head { padding: 18px 22px 0; }

.rc4-summary__title {
  margin: 0;
  color: #1b2f42;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.rc4-summary__title span {
  font-size: 13px;
  font-weight: 600;
  color: #647789;
}

.rc4-summary__body { padding: 16px 22px 22px; }

/* ── SUMMARY ITEMS ────────────────────────────────────────────────────────── */
.rc4-summary-items { margin-bottom: 14px; }

.rc4-summary-item {
  display: grid;
  grid-template-columns: 54px minmax(0,1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 0 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #edf2f6;
}

.rc4-summary-item:last-child { margin-bottom: 0; }

.rc4-summary-item__thumb img,
.rc4-summary-item__placeholder {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  background: #f3f6f8;
  border: 1px solid #e6ebf0;
}

.rc4-summary-item__name {
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.rc4-summary-item__meta {
  color: #7b8794;
  font-size: 12px;
  margin-top: 2px;
}

.rc4-summary-item__price {
  color: #1f2937;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

/* ── COUPON ───────────────────────────────────────────────────────────────── */
.rc4-coupon-box {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 8px;
  margin-bottom: 16px;
}

.rc4-coupon-box__input {
  min-height: 42px;
  border: 1px solid #d9e2ea;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  background: #fff;
}

.rc4-coupon-box__button {
  min-height: 42px;
  padding: 0 14px;
  border: none;
  border-radius: 10px;
  background: #ff5c1b;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

/* ── TOTALS ───────────────────────────────────────────────────────────────── */
.rc4-totals {
  padding: 2px 0 16px;
  border-bottom: 1px solid #edf2f6;
  margin-bottom: 16px;
}

.rc4-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #5f7284;
  font-size: 13px;
}

.rc4-total-row--discount { color: #1f8a43; }

.rc4-total-row--grand {
  margin-top: 10px;
  margin-bottom: 0;
  color: #1b2f42;
  font-size: 16px;
  font-weight: 800;
}

.rc4-total-row--grand span:last-child {
  color: #ff5c1b;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.rc4-total-tax {
  margin-top: 4px;
  text-align: right;
  color: #b1bcc8;
  font-size: 11px;
}

/* ── ORDER REVIEW / PAYMENT ───────────────────────────────────────────────── */
.rc4-order-review .shop_table { display: none !important; }

.rc4-order-review #payment {
  background: #fbfcfd;
  border: 1px solid #e6ecf1;
  border-radius: 14px;
  padding: 14px;
}

.rc4-order-review #payment ul.payment_methods {
  border: none;
  margin: 0 0 12px;
  padding: 0;
}

.rc4-order-review #payment ul.payment_methods > li {
  list-style: none;
  margin: 0 0 10px;
  padding: 12px;
  border: 1px solid #e2e8ef;
  border-radius: 12px;
  background: #fff;
}

.rc4-order-review #payment ul.payment_methods > li:last-child { margin-bottom: 0; }

.rc4-order-review #payment label {
  color: #1b2f42;
  font-weight: 700;
  font-size: 13px;
}

.rc4-order-review #payment div.payment_box {
  margin: 10px 0 0;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #f7f9fb;
  color: #4b5d6e;
}

.rc4-order-review #payment div.payment_box::before { display: none; }

.rc4-order-review .woocommerce-SavedPaymentMethods { margin-bottom: 10px; }

.rc4-order-review .wc-stripe-elements-field,
.rc4-order-review .StripeElement {
  background: #fff;
  border: 1px solid #d9e2ea;
  border-radius: 12px;
  padding: 12px;
  min-height: 50px;
}

.rc4-order-review .wc-stripe-elements-field.focus,
.rc4-order-review .StripeElement--focus {
  border-color: #ff5c1b;
  box-shadow: 0 0 0 4px rgba(255,92,27,.10);
}

.rc4-order-review #payment .place-order { padding: 0; margin-top: 14px; }

.rc4-order-review #payment .terms,
.rc4-order-review #payment .wc-terms-and-conditions { margin-bottom: 12px; }

.rc4-order-review #payment .woocommerce-privacy-policy-text,
.rc4-order-review #payment .terms label,
.rc4-order-review #payment .wc-terms-and-conditions label {
  font-size: 12px;
  color: #5f7284;
  line-height: 1.45;
  font-weight: 500;
}

.rc4-order-review #payment .woocommerce-privacy-policy-text a,
.rc4-order-review #payment .terms a,
.rc4-order-review #payment .wc-terms-and-conditions a {
  color: #ff5c1b;
  text-decoration: none;
}

.rc4-order-review #payment .woocommerce-privacy-policy-text a:hover,
.rc4-order-review #payment .terms a:hover,
.rc4-order-review #payment .wc-terms-and-conditions a:hover {
  text-decoration: underline;
}

.rc4-order-review #place_order {
  width: 100%;
  min-height: 50px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff6d31 0%, #ff5c1b 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(255,92,27,.22);
  transition: .2s ease;
  cursor: pointer;
}

.rc4-order-review #place_order:hover { filter: brightness(.98); }

/* ── REASSURANCE GRID ─────────────────────────────────────────────────────── */
.rc4-reassurance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.rc4-reassurance-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid #e6ebf0;
  border-radius: 12px;
  background: #fff;
}

.rc4-reassurance-card img { width: 24px; height: 24px; object-fit: contain; }

.rc4-reassurance-card span {
  color: #1f2d3a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.rc4-reassurance-card.is-highlight {
  background: #fff8f3;
  border-color: #ffd7c2;
}

/* ── LEGAL NOTE ───────────────────────────────────────────────────────────── */
.rc4-legal-note {
  margin-top: 14px;
  color: #91a0ae;
  font-size: 11px;
  line-height: 1.45;
}

.rc4-legal-note a { color: #ff5c1b; text-decoration: none; }

.rc-shipping-intl__highlight{
  background:linear-gradient(135deg,rgba(0,78,102,.42),rgba(255,92,27,.12));
  border-color:rgba(255,92,27,.28);
}

.rc-shipping-intl__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:10px;
  padding:13px 22px;
  border-radius:999px;
  background:#FF5C1B;
  color:#fff !important;
  text-decoration:none !important;
  font-weight:700;
}

.rc-shipping-intl__btn:hover{
  background:#e84e10;
  color:#fff !important;
}

/* ── FORM FIELDS ──────────────────────────────────────────────────────────── */
.rc4-form .form-row { margin-bottom: 14px; }

.rc4-form label {
  color: #304354;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rc4-form .required { color: #ff5c1b; }

.rc4-form .input-text,
.rc4-form select,
.rc4-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d8e0e8;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  font-size: 14px;
  padding: 10px 12px;
  transition: .2s ease;
}

.rc4-form textarea { min-height: 90px; }

.rc4-form .input-text:focus,
.rc4-form select:focus,
.rc4-form textarea:focus {
  border-color: #ff5c1b;
  box-shadow: 0 0 0 4px rgba(255,92,27,.10);
  outline: none;
}

.rc4-form .woocommerce-invalid .input-text,
.rc4-form .woocommerce-invalid select {
  border-color: #dc2626;
  box-shadow: none;
}

.rc4-form .select2-container--default .select2-selection--single {
  min-height: 42px;
  border: 1px solid #d8e0e8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: #fff;
}

.rc4-form .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 40px;
  padding-left: 0;
  color: #1f2937;
  font-size: 14px;
}

.rc4-form .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px;
  right: 8px;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .rc4-grid { grid-template-columns: minmax(0,1fr) 340px; }
}

@media (max-width: 900px) {
  .rc4-grid { grid-template-columns: 1fr; }
  .rc4-side { position: static; top: auto; }
  .rc4-topbar__inner, .rc4-trustbar__inner, .rc4-shell { padding-left: 0; padding-right: 0; }
}

@media (max-width: 640px) {
  .rc4-topbar__inner, .rc4-trustbar__inner, .rc4-wrap { padding-left: 14px; padding-right: 14px; }
  .rc4-topbar__inner { flex-direction: column; align-items: flex-start; }
  .rc4-trustbar__badges { justify-content: flex-start; }
  .rc4-steps { justify-content: flex-start; flex-wrap: wrap; }
  .rc4-summary__body, .rc4-card__body { padding-left: 16px; padding-right: 16px; }
  .rc4-summary__head, .rc4-section-head { padding-left: 16px; padding-right: 16px; }
  .rc4-total-row--grand span:last-child { font-size: 24px; }
  .rc4-reassurance-grid { grid-template-columns: 1fr 1fr; }
  .rc4-form .col2-set .col-1, .rc4-form .col2-set .col-2 { float: none; width: 100%; }
}

/* =========================
