/* ==========================================================
   BLOOPIN — SURECART GLOBAL CART DRAWER
========================================================== */

.sc-cart-drawer .sc-product-line-item__swap{
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  align-items: center !important;
  column-gap: 14px !important;

  padding: 14px 16px !important;

  background: rgba(255,255,255,.68) !important;
  border-top: 3px solid rgba(15,23,42,.10) !important;
}

.sc-cart-drawer .sc-product-line-item__swap .sc-toggle{
  flex: 0 0 auto !important;
}

.sc-cart-drawer .sc-product-line-item__swap-content{
  min-width: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
}

.sc-cart-drawer .sc-product-line-item__swap-content span[data-wp-text="state.swap.description"]{
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;

  color: var(--text, #0F172A) !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  font-weight: 500 !important;
}

.sc-cart-drawer .sc-product-line-item__swap-content span[data-wp-text="state.swap.description"] strong,
.sc-cart-drawer .sc-product-line-item__swap-content span[data-wp-text="state.swap.description"] b{
  white-space: nowrap !important;
}

/* Prix annuel */
.sc-cart-drawer .sc-product-line-item__swap-amount{
  flex: 0 0 auto !important;
  white-space: nowrap !important;

  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;

  font-weight: 700 !important;
  color: #0F172A !important;
}

.sc-cart-drawer .sc-product-line-item__swap-amount-value{
  font-weight: 700 !important;
  color: #0F172A !important;
}

/* Cache le "1" */
.sc-cart-drawer .sc-product-line-item__swap-amount-interval-count{
  display: none !important;
}

/* Remplace "/ 1 année" par "/ an" */
.sc-cart-drawer .sc-product-line-item__swap-amount-interval{
  font-size: 0 !important;
  color: #0F172A !important;
}

.sc-cart-drawer .sc-product-line-item__swap-amount-interval::after{
  content: "/ an";
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
}

/* ==========================================================
   BLOOPIN — CART DRAWER
========================================================== */

.sc-cart-drawer,
.sc-drawer,
.wp-block-surecart-slide-out-cart{
  background: #fffdf9 !important;
  border-left: 1px solid rgba(15,23,42,.08) !important;
  box-shadow: -12px 0 40px rgba(15,23,42,.08) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Overlay */
.sc-drawer-overlay{
  background: rgba(15,23,42,.45) !important;
}

/* Cards produit */
.sc-cart-drawer .sc-product-line-item{
  background: #fffdf9 !important;
  border: 3px solid rgba(15,23,42,.10) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

/* Bloc option / paiement annuel */
.sc-cart-drawer [class*="bump"],
.sc-cart-drawer .wp-block-surecart-cart-bump-line-item{
  background: rgba(255,255,255,.65) !important;
  border-top: 3px solid rgba(15,23,42,.10) !important;
}

/* Textes */
.sc-cart-drawer h1,
.sc-cart-drawer h2,
.sc-cart-drawer h3,
.sc-cart-drawer p,
.sc-cart-drawer span{
  color: var(--text, #0F172A) !important;
}

/* Séparateurs */
.sc-cart-drawer hr,
.sc-cart-drawer .wp-block-separator{
  border-color: rgba(15,23,42,.10) !important;
}

/* Cache quantité */
.sc-cart-drawer .sc-input-group.sc-quantity-selector,
.sc-cart-drawer .sc-quantity-selector,
.sc-cart-drawer label[for*="quantity"],
.sc-cart-drawer .sc-form-label[for*="quantity"]{
  display: none !important;
}

/* Supprimer */
.sc-cart-drawer .wp-block-surecart-cart-line-item-remove{
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;

  padding: 7px 11px !important;

  background: rgba(239,68,68,.08) !important;
  border: 2px solid rgba(239,68,68,.18) !important;
  border-radius: 999px !important;

  color: #ef4444 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.sc-cart-drawer .wp-block-surecart-cart-line-item-remove svg,
.sc-cart-drawer .wp-block-surecart-cart-line-item-remove path,
.sc-cart-drawer .wp-block-surecart-cart-line-item-remove span{
  color: #ef4444 !important;
  stroke: currentColor !important;
}

/* Bouton checkout */
.sc-cart-drawer .sc-button__link,
.sc-cart-drawer button[type="submit"],
.sc-cart-drawer .wp-block-surecart-cart-submit-button button{
  min-height: 56px !important;

  background: #0F172A !important;
  color: #fff !important;

  border: 3px solid #0F172A !important;
  border-radius: 14px !important;

  font-size: 15px !important;
  font-weight: 800 !important;
  opacity: 1 !important;
}

.sc-cart-drawer .sc-button__link *,
.sc-cart-drawer button[type="submit"] *,
.sc-cart-drawer .wp-block-surecart-cart-submit-button button *{
  color: #fff !important;
}

.sc-cart-drawer .sc-button__link:hover,
.sc-cart-drawer button[type="submit"]:hover,
.sc-cart-drawer .wp-block-surecart-cart-submit-button button:hover{
  background: #020617 !important;
  border-color: #020617 !important;
}

/* Prix ligne produit */
.wp-block-surecart-cart-line-item-amount{
  font-weight: 700 !important;
  color: #0F172A !important;
}

/* Sous-total */
.wp-block-surecart-cart-subtotal-amount{
  font-weight: 700 !important;
  color: #0F172A !important;
  font-size: 20px !important;
}

/* 14 jours d'essai gratuit */
.wp-block-surecart-cart-line-item-trial{
  font-weight: 700 !important;
  color: #0F172A !important;
}

/* ==========================================================
   BLOOPIN — SURECART LOGIN
========================================================== */

body:has(.sc-dashboard__logged-out){
  background: #fffdf9 !important;
}

/* ==========================================================
   STRUCTURE GÉNÉRALE
========================================================== */

.sc-dashboard__logged-out{
  min-height: 100vh !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 120px 20px 80px !important;

  background: #fffdf9 !important;

  font-family: 'Poppins', sans-serif !important;
}

.sc-dashboard__logged-out-content{
  width: min(100%, 460px) !important;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* ==========================================================
   CARD LOGIN
========================================================== */

sc-login-form{
  display: block !important;
  width: 100% !important;

  padding: clamp(34px, 4vw, 46px) !important;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.88),
      rgba(255,255,255,.96)
    ) !important;

  border: 3px solid rgba(15,23,42,.10) !important;
  border-radius: 28px !important;

  box-shadow:
    0 18px 46px rgba(15,23,42,.07),
    0 4px 14px rgba(15,23,42,.035) !important;

  font-family: 'Poppins', sans-serif !important;

  /* Card interne SureCart */
  --sc-card-padding: 0;
  --sc-card-background-color: transparent;
  --sc-card-border-color: transparent;
  --sc-card-border-width: 0;
  --sc-card-border-radius: 0;
  --sc-shadow-small: none;

  /* Inputs */
  --sc-input-height-medium: 54px;
  --sc-input-background-color: var(--surface, #ffffff);
  --sc-input-border-color: var(--border, rgba(15,23,42,.12));
  --sc-input-border-width: 2px;
  --sc-input-border-radius-medium: var(--radius-sm, 14px);
  --sc-input-color: var(--text, #0F172A);

  /* Bouton */
  --sc-color-primary-500: #0F172A;
  --sc-color-primary-600: #020617;
  --sc-color-primary-text: #ffffff;

  --sc-button-primary-background-color: #0F172A;
  --sc-button-primary-border-color: #0F172A;
  --sc-button-primary-color: #ffffff;

  /* Focus */
  --sc-focus-ring-color-primary:
    color-mix(
      in srgb,
      var(--primary, #22a1ee) 14%,
      transparent
    );
}

/* Fallback pour les parts exposés */
sc-login-form::part(title){
  color: #0F172A !important;

  font-family: 'Poppins', sans-serif !important;
  font-size: clamp(1.65rem, 3vw, 2.15rem) !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  letter-spacing: -.045em !important;
  text-align: center !important;
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 520px){

  .sc-dashboard__logged-out{
    padding: 96px 14px 60px !important;
  }

  sc-login-form{
    padding: 28px 20px !important;
    border-radius: 24px !important;
  }
}

/* ==========================================================
   BLOOPIN — SURECART CHECKOUT
========================================================== */

/* Page générale */
body:has(sc-checkout){
  background: #fffdf9 !important;
}

/* Variables SureCart du checkout */
sc-checkout{
  display: block !important;

  /* Typographie */
  --sc-font-sans: 'Poppins', sans-serif;

  /* Couleur principale */
  --sc-color-primary-500: #0F172A;
  --sc-color-primary-600: #020617;
  --sc-color-primary-text: #ffffff;

  /* Boutons */
  --sc-button-primary-background-color: #0F172A;
  --sc-button-primary-border-color: #0F172A;
  --sc-button-primary-color: #ffffff;
  --sc-button-font-size-large: 15px;

  /* Inputs */
  --sc-input-height-medium: 54px;

  --sc-input-background-color: var(--surface, #ffffff);
  --sc-input-background-color-hover: var(--surface, #ffffff);
  --sc-input-background-color-focus: var(--surface, #ffffff);

  --sc-input-border-width: 2px;
  --sc-input-border-color:
    var(--border, rgba(15,23,42,.12));
  --sc-input-border-color-hover:
    var(--border-strong, rgba(15,23,42,.22));
  --sc-input-border-color-focus:
    var(--primary, #22A1EE);

  --sc-input-border-radius-medium:
    var(--radius-sm, 14px);

  --sc-input-box-shadow: none;

  --sc-input-color: var(--text, #0F172A);
  --sc-input-color-hover: var(--text, #0F172A);
  --sc-input-color-focus: var(--text, #0F172A);

  --sc-input-font-size-medium: 15px;
  --sc-input-font-weight: 500;

  --sc-input-placeholder-color:
    var(--text-soft, #64748B);

  --sc-input-label-color:
    var(--text, #0F172A);
  --sc-input-label-font-size-medium: 14px;
  --sc-input-label-font-weight: 700;

  /* Focus */
  --sc-focus-ring-color-primary:
    color-mix(
      in srgb,
      var(--primary, #22A1EE) 16%,
      transparent
    );

  --sc-focus-ring-width: 3px;

  /* Arrondis */
  --sc-border-radius-medium: 14px;
  --sc-border-radius-large: 14px;
}

/* ==========================================================
   SURECART CHECKOUT — ESPACEMENT DES CHAMPS CUSTOM
========================================================== */

sc-checkout sc-customer-email,
sc-checkout sc-customer-name,
sc-checkout sc-customer-phone,
sc-checkout sc-address,
sc-checkout sc-phone,
sc-checkout sc-payment{
  display: block !important;
  margin-bottom: 18px !important;
}

sc-checkout sc-address{
  margin-top: 8px !important;
}

sc-checkout sc-checkbox{
  display: block !important;
  margin: 16px 0 24px !important;
}

/* ==========================================================
   STRUCTURE — DEUX ZONES
========================================================== */

sc-checkout,
.sc-checkout-container,
.wp-block-surecart-columns{
  background: #fffdf9 !important;
}

/* Colonne formulaire */
sc-checkout .wp-block-surecart-column:not(.is-sticky){
  background: #fffdf9 !important;
}

/* Colonne résumé */
sc-checkout .wp-block-surecart-column.is-sticky{
  min-height: 100vh !important;
  background: #f3f4f6 !important;
}

/* ==========================================================
   INPUTS
========================================================== */

/* Enveloppes accessibles */
sc-customer-email::part(base),
sc-customer-name::part(base){
  width: 100% !important;
  min-height: 54px !important;

  background: var(--surface, #ffffff) !important;

  border:
    2px solid
    var(--border, rgba(15,23,42,.12)) !important;

  border-radius:
    var(--radius-sm, 14px) !important;

  box-shadow: none !important;
  outline: none !important;

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease !important;
}

sc-customer-email::part(base):hover,
sc-customer-name::part(base):hover{
  border-color:
    var(--border-strong, rgba(15,23,42,.22)) !important;
}

sc-customer-email::part(base):focus-within,
sc-customer-name::part(base):focus-within{
  background: var(--surface, #ffffff) !important;
  border-color: var(--primary, #22A1EE) !important;

  box-shadow:
    0 0 0 3px
    color-mix(
      in srgb,
      var(--primary, #22A1EE) 12%,
      transparent
    ) !important;
}

/* Contenu des champs */
sc-customer-email::part(input),
sc-customer-name::part(input){
  min-height: 50px !important;
  padding: 0 16px !important;

  color: var(--text, #0F172A) !important;
  background: transparent !important;

  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;

  font-family: 'Poppins', sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

/* Labels */
sc-customer-email::part(label),
sc-customer-name::part(label){
  color: var(--text, #0F172A) !important;

  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

/* ==========================================================
   BLOC PAIEMENT
========================================================== */

sc-payment{
  display: block !important;

  background: var(--surface, #ffffff) !important;

  border:
    2px solid
    var(--border, rgba(15,23,42,.12)) !important;

  border-radius:
    var(--radius-sm, 14px) !important;
  
  padding: 10px;

  box-shadow: none !important;
  overflow: hidden !important;
}

/* ==========================================================
   BOUTON PAIEMENT
========================================================== */

sc-order-submit{
  display: block !important;

  --sc-color-primary-500: #0F172A !important;
  --sc-color-primary-600: #020617 !important;
  --sc-color-primary-text: #ffffff !important;

  --sc-button-primary-background-color:
    #0F172A !important;

  --sc-button-primary-border-color:
    #0F172A !important;

  --sc-button-primary-color:
    #ffffff !important;

  --sc-button-font-size-large:
    15px !important;

  --sc-border-radius-large:
    14px !important;
}

/* ==========================================================
   RÉSUMÉ DE COMMANDE
========================================================== */

sc-checkout
.wp-block-surecart-column.is-sticky
sc-order-summary{
  display: block !important;

  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;

  box-shadow: none !important;
  overflow: visible !important;
}

/* Titre Résumé */
sc-order-summary .collapse-link{
  color: var(--text, #0F172A) !important;
  font-weight: 700 !important;
}

/* ==========================================================
   CARD PRODUIT — STYLE PANIER FLOTTANT
========================================================== */

sc-order-summary sc-line-item::part(base){
  background: #fffdf9 !important;

  border:
    3px solid
    rgba(15,23,42,.10) !important;

  border-radius: 12px !important;

  color: var(--text, #0F172A) !important;

  box-shadow: none !important;
  overflow: hidden !important;
}

/* Nom du produit */
sc-order-summary sc-line-item::part(title){
  color: #0F172A !important;
  font-weight: 700 !important;
}

/* Prix principal */
sc-order-summary sc-line-item::part(price){
  color: #0F172A !important;
  font-weight: 700 !important;
}

/* Période : / 1 mois */
sc-order-summary sc-line-item::part(price__description){
  color: var(--text-soft, #64748B) !important;

  font-size: 13px !important;
  font-weight: 500 !important;
}

/* Description : paiement mensuel */
sc-order-summary sc-line-item::part(description){
  color: var(--text, #0F172A) !important;

  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
}

/* Essai gratuit + frais */
sc-order-summary sc-line-item::part(trial-fees){
  color: #0F172A !important;

  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

/* ==========================================================
   OPTION ANNUELLE
========================================================== */

sc-order-summary sc-line-items{
  display: block !important;

  background: transparent !important;
  border-radius: 12px !important;

  overflow: hidden !important;
}

/* Les éléments internes exacts sont harmonisés par le JS */
sc-order-summary{
  --sc-color-primary-500: #0F172A;
  --sc-color-primary-600: #020617;
}

/* ==========================================================
   TOTAUX
========================================================== */

sc-order-summary sc-line-item-total,
sc-order-summary sc-line-item-trial,
sc-order-summary sc-order-coupon-form,
sc-order-summary sc-line-item-tax{
  color: var(--text, #0F172A) !important;
}

/* Sous-total */
sc-order-summary sc-line-item-total[total="subtotal"]{
  color: #0F172A !important;
  font-weight: 700 !important;
}

/* Essai */
sc-order-summary sc-line-item-trial{
  color: #0F172A !important;
  font-weight: 700 !important;
}

/* Total final */
sc-order-summary sc-line-item-total[total="total"]{
  color: #0F172A !important;
  font-size: 20px !important;
  font-weight: 700 !important;
}

/* Coupon */
sc-order-summary sc-order-coupon-form{
  color: var(--text, #0F172A) !important;
  font-weight: 500 !important;
}

/* ==========================================================
   SÉPARATEURS
========================================================== */

sc-order-summary sc-divider{
  opacity: .65 !important;
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px){

  sc-checkout .wp-block-surecart-column.is-sticky{
    min-height: auto !important;
  }

  sc-order-summary sc-line-item::part(base){
    border-radius: 12px !important;
  }
}

/* ==========================================================
   BLOOPIN — SURECART CUSTOMER DASHBOARD
========================================================== */

body:has(.sc-dashboard){
  margin: 0 !important;
  background: #f3f4f6 !important;
  font-family: 'Poppins', sans-serif !important;
}

/* ==========================================================
   STRUCTURE GÉNÉRALE
========================================================== */

.sc-dashboard{
  display: flex !important;

  width: 100% !important;
  min-height: 100dvh !important;

  color: var(--text, #0F172A) !important;
  background: #f3f4f6 !important;

  font-family: 'Poppins', sans-serif !important;
}

/* ==========================================================
   SIDEBAR
========================================================== */

.sc-dashboard__column.dashboard-left{
  position: sticky !important;
  top: 0 !important;

  display: flex !important;
  flex: 0 0 292px !important;
  flex-direction: column !important;

  width: 292px !important;
  height: 100dvh !important;
  min-height: 100dvh !important;

  background: #fffdf9 !important;

  border-right: 3px solid rgba(15,23,42,.08) !important;

  box-shadow:
    12px 0 38px rgba(15,23,42,.035) !important;

  overflow: hidden !important;
  z-index: 50 !important;
}

/* Partie haute */
.sc-dashboard__header{
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;

  min-height: 0 !important;
  padding: 26px 20px 18px !important;
}

/* ==========================================================
   MARQUE BLOOPIN
========================================================== */

.sc-dashboard__logo{
  min-height: 62px !important;
  max-width: 100px !important;
  margin: 0 0 24px !important;
}

.sc-dashboard__logo > a:empty{
  display: none !important;
}

.bp-dashboard-brand{
  display: none; 
}
  
  /* flex !important;
  align-items: center !important;
  gap: 12px !important;

  width: 100% !important;

  color: #0F172A !important;
  text-decoration: none !important;
} */

.bp-dashboard-brand__mark{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  flex: 0 0 44px !important;

  width: 44px !important;
  height: 44px !important;

  color: #fff !important;
  background: #0F172A !important;

  border: 3px solid #0F172A !important;
  border-radius: 14px !important;

  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;

  box-shadow:
    0 8px 20px rgba(15,23,42,.12) !important;
}

.bp-dashboard-brand__text{
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;

  min-width: 0 !important;
}

.bp-dashboard-brand__name{
  color: #0F172A !important;

  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  letter-spacing: -.03em !important;
}

.bp-dashboard-brand__subtitle{
  color: var(--text-soft, #64748B) !important;

  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

/* ==========================================================
   NAVIGATION
========================================================== */

.sc-dashboard__header sc-spacing{
  display: grid !important;
  gap: 7px !important;

  width: 100% !important;
}

.sc-dashboard__header sc-tab{
  display: block !important;
  width: 100% !important;
}

.sc-dashboard__header sc-tab::part(base){
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;

  width: 100% !important;
  min-height: 50px !important;

  padding: 11px 14px !important;

  color: #64748B !important;
  background: transparent !important;

  border: 2px solid transparent !important;
  border-radius: 14px !important;

  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;

  text-decoration: none !important;

  box-shadow: none !important;

  transition:
    color .2s ease,
    background .2s ease,
    border-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease !important;
}

.sc-dashboard__header sc-tab::part(base):hover{
  color: #0F172A !important;
  background: rgba(255,255,255,.78) !important;

  border-color: rgba(15,23,42,.09) !important;

  transform: translateX(2px);
}

/* Onglet actif */
.sc-dashboard__header sc-tab[active]::part(base){
  color: #fff !important;
  background: #0F172A !important;

  border-color: #0F172A !important;

  box-shadow:
    0 10px 24px rgba(15,23,42,.15) !important;
}

/* Icônes */
.sc-dashboard__header sc-tab sc-icon{
  flex: 0 0 auto !important;

  color: currentColor !important;
  opacity: .65 !important;
}

.sc-dashboard__header sc-tab[active] sc-icon{
  color: #fff !important;
  opacity: 1 !important;
}

/* ==========================================================
   RETOUR AU SITE
========================================================== */

.sc-dashboard__back{
  flex: 0 0 auto !important;

  padding: 8px 20px 14px !important;
}

.sc-dashboard__back sc-button{
  display: block !important;
  width: 100% !important;
}

.sc-dashboard__back sc-button::part(base){
  display: flex !important;
  justify-content: flex-start !important;

  width: 100% !important;
  min-height: 44px !important;

  padding: 9px 12px !important;

  color: #64748B !important;
  background: transparent !important;

  border: 2px solid transparent !important;
  border-radius: 12px !important;

  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  font-weight: 650 !important;

  box-shadow: none !important;
}

.sc-dashboard__back sc-button::part(base):hover{
  color: #0F172A !important;
  background: rgba(15,23,42,.045) !important;

  border-color: rgba(15,23,42,.07) !important;
}

/* ==========================================================
   UTILISATEUR
========================================================== */

.sc-dashboard__user-menu{
  flex: 0 0 auto !important;

  padding: 16px 20px 20px !important;

  background: #fffdf9 !important;
  border-top: 1px solid rgba(15,23,42,.08) !important;
}

.sc-dashboard__user-menu > sc-dropdown{
  display: block !important;
  width: 100% !important;
}

.sc-dashboard__menu-trigger{
  width: 100% !important;
  min-height: 58px !important;

  padding: 9px 11px !important;

  color: #0F172A !important;
  background: #fff !important;

  border: 2px solid rgba(15,23,42,.11) !important;
  border-radius: 14px !important;

  box-shadow: none !important;

  cursor: pointer !important;

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease !important;
}

.sc-dashboard__menu-trigger:hover{
  border-color: rgba(15,23,42,.22) !important;

  box-shadow:
    0 8px 22px rgba(15,23,42,.065) !important;

  transform: translateY(-1px);
}

.sc-dashboard__menu-user{
  min-width: 0 !important;
  gap: 10px !important;
}

.sc-dashboard__user-menu-name{
  min-width: 0 !important;

  color: #0F172A !important;

  font-size: 13px !important;
  font-weight: 750 !important;

  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* ==========================================================
   CONTENU PRINCIPAL
========================================================== */

.sc-dashboard__column.dashboard-right{
  flex: 1 1 auto !important;

  min-width: 0 !important;
  min-height: 100dvh !important;

  padding:
    clamp(42px, 5vw, 70px)
    clamp(28px, 6vw, 78px)
    80px !important;

  background: #f3f4f6 !important;
}

.sc-customer-dashboard{
  display: block !important;

  width: min(100%, 1060px) !important;
  margin: 0 auto !important;

  color: #0F172A !important;

  font-family: 'Poppins', sans-serif !important;

  --spacing: 34px !important;
}

.sc-customer-dashboard > *{
  display: block !important;
  width: 100% !important;
}

/* ==========================================================
   TITRES DES MODULES
========================================================== */

sc-subscriptions-list > span[slot="heading"],
sc-orders-list > span[slot="heading"],
sc-invoices-list > span[slot="heading"],
sc-dashboard-downloads-list > span[slot="heading"]{
  color: #0F172A !important;

  font-family: 'Poppins', sans-serif !important;
  font-size: 19px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  letter-spacing: -.025em !important;
}

/* ==========================================================
   COMPOSANTS DU DASHBOARD
========================================================== */

sc-subscriptions-list,
sc-orders-list,
sc-invoices-list,
sc-dashboard-downloads-list{
  display: block !important;

  width: 100% !important;

  color: #0F172A !important;
}

/* ==========================================================
   HEADER MOBILE
========================================================== */

.sc-dashboard__header-mobile{
  display: none !important;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 900px){

  .sc-dashboard{
    display: block !important;
  }

  .sc-dashboard__column.dashboard-left{
    position: sticky !important;
    top: 0 !important;

    display: block !important;

    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;

    border-right: 0 !important;
    border-bottom: 3px solid rgba(15,23,42,.08) !important;

    box-shadow:
      0 10px 28px rgba(15,23,42,.055) !important;

    overflow: visible !important;
    z-index: 999 !important;
  }

  .sc-dashboard__header,
  .sc-dashboard__back,
  .sc-dashboard__user-menu{
    display: none !important;
  }

  .sc-dashboard__header-mobile{
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    min-height: 76px !important;
    padding: 12px 18px !important;

    background: #fffdf9 !important;
  }

  .sc-dashboard__header-mobile .sc-dashboard__logo{
    min-height: 0 !important;
    margin: 0 !important;
  }

  .sc-dashboard__header-mobile .bp-dashboard-brand__mark{
    flex-basis: 40px !important;

    width: 40px !important;
    height: 40px !important;

    border-radius: 12px !important;
  }

  .sc-dashboard__header-mobile .bp-dashboard-brand__subtitle{
    display: none !important;
  }

  .sc-dashboard__column.dashboard-right{
    min-height: calc(100dvh - 76px) !important;

    padding:
      34px
      20px
      70px !important;
  }

  .sc-customer-dashboard{
    width: 100% !important;
  }
}

@media (max-width: 560px){

  .sc-dashboard__header-mobile{
    min-height: 68px !important;
    padding: 10px 14px !important;
  }

  .bp-dashboard-brand__name{
    font-size: 15px !important;
  }

  .sc-dashboard__column.dashboard-right{
    padding:
      26px
      14px
      60px !important;
  }

  .sc-customer-dashboard{
    --spacing: 26px !important;
  }

  sc-subscriptions-list > span[slot="heading"],
  sc-orders-list > span[slot="heading"],
  sc-invoices-list > span[slot="heading"],
  sc-dashboard-downloads-list > span[slot="heading"]{
    font-size: 17px !important;
  }
}

/* ==========================================================
   BLOOPIN — AFFILIATE PAGE
========================================================== */

body{
  background:#fffdf9 !important;
}

/* Card centrale */

#form_affiliation_request{
  padding:40px !important;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.88),
      rgba(255,255,255,.96)
    ) !important;

  border:3px solid rgba(15,23,42,.10) !important;
  border-radius:28px !important;

  box-shadow:
    0 18px 46px rgba(15,23,42,.07),
    0 4px 14px rgba(15,23,42,.035) !important;
}

/* Labels */

#form_affiliation_request label{
  color:#0F172A !important;

  font-family:'Poppins',sans-serif !important;
  font-size:14px !important;
  font-weight:700 !important;
}

/* Inputs */

#form_affiliation_request input,
#form_affiliation_request textarea{

  min-height:54px !important;

  padding:0 16px !important;

  background:#ffffff !important;

  border:2px solid rgba(15,23,42,.12) !important;
  border-radius:14px !important;

  box-shadow:none !important;
  outline:none !important;

  color:#0F172A !important;

  font-family:'Poppins',sans-serif !important;
  font-size:15px !important;
  font-weight:500 !important;
}

/* textarea */

#form_affiliation_request textarea{
  min-height:140px !important;
  padding:16px !important;
}

/* Focus */

#form_affiliation_request input:focus,
#form_affiliation_request textarea:focus{

  border-color:#22A1EE !important;

  box-shadow:
    0 0 0 3px rgba(34,161,238,.12) !important;
}

/* Bouton */

#form_affiliation_request button[type="submit"]{

  width:100% !important;
  min-height:56px !important;

  background:#0F172A !important;
  color:#fff !important;

  border:3px solid #0F172A !important;
  border-radius:14px !important;

  font-family:'Poppins',sans-serif !important;
  font-size:15px !important;
  font-weight:800 !important;

  box-shadow:none !important;
}

#form_affiliation_request button[type="submit"]:hover{
  background:#020617 !important;
  border-color:#020617 !important;
}

/* ==========================================================
   CUSTOMER DASHBOARD — PASTILLE PROGRAMME PARTENAIRE
========================================================== */

/*
 * La colonne devient le repère de positionnement
 * de la pastille.
 */
.sc-dashboard__column.dashboard-right{
  position: relative !important;

}

.bp-dashboard-affiliate-pill{
  position: absolute !important;
  top: 10px !important;
  right: clamp(20px, 3vw, 46px) !important;
  left: auto !important;
  z-index: 10;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;

  width: auto !important;
  min-width: 0 !important;
  max-width: max-content !important;
  inline-size: max-content !important;

  min-height: 32px !important;
  padding: 5px 7px 5px 13px !important;

  color: #047857 !important;
  background: #DDF8EF !important;

  border: 1px solid rgba(16,185,129,.16) !important;
  border-radius: 8px !important;

  font-family: 'Poppins', sans-serif !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;

  text-decoration: none !important;
  white-space: nowrap !important;

  box-shadow:
    0 5px 14px rgba(15,23,42,.045) !important;

  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.bp-dashboard-affiliate-pill:hover{
  color: #065F46 !important;
  background: #CFF5E8;
  border-color: rgba(16,185,129,.28);

  box-shadow:
    0 8px 20px rgba(15,23,42,.08);

  transform: translateY(-1px);
}

.bp-dashboard-affiliate-pill:focus-visible{
  outline: none;

  box-shadow:
    0 0 0 3px rgba(34,161,238,.16),
    0 8px 20px rgba(15,23,42,.08);
}

.bp-dashboard-affiliate-pill__text{
  color: inherit !important;
  white-space: nowrap;
}

.bp-dashboard-affiliate-pill__coin{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 22px;
  width: 22px;
  height: 22px;

  color: #047857 !important;
  background: rgba(255,255,255,.72);

  border: 2px solid rgba(16,185,129,.18);
  border-radius: 7px;

  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

/* ==========================================================
   TABLETTE / MOBILE
========================================================== */

@media (max-width: 900px){

  .bp-dashboard-affiliate-pill{
    position: static !important;

    display: inline-flex !important;

    width: auto !important;
    max-width: max-content !important;
    inline-size: max-content !important;

    margin: 0 0 22px auto !important;
  }
}

@media (max-width: 560px){

  .bp-dashboard-affiliate-pill{
    width: auto !important;
    max-width: 100% !important;
    inline-size: auto !important;

    min-height: 38px !important;
    padding: 7px 8px 7px 12px !important;

    margin: 0 0 20px auto !important;

    border-radius: 10px !important;
  }

  .bp-dashboard-affiliate-pill__text{
    white-space: normal !important;
    text-align: left !important;
  }

  .bp-dashboard-affiliate-pill__coin{
    margin-left: 0 !important;
  }
}

/* ==========================================================
   BLOOPIN — PANIER FLOTTANT FINAL
   Structure relevée directement dans le DOM SureCart.
   Aucun visuel produit, aucune colonne fantôme.
========================================================== */

/* Toutes les lignes du panier utilisent toute la largeur. */
.sc-cart-drawer .bp-cart-card{
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  background: #fffdf9 !important;
  border: 3px solid rgba(15,23,42,.10) !important;
  border-radius: 16px !important;

  box-sizing: border-box !important;
  overflow: hidden !important;
}

.sc-cart-drawer .bp-cart-card *,
.sc-cart-drawer .bp-cart-content *{
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Les produits Bloopin sont digitaux : aucune image, sur aucun écran. */
.sc-cart-drawer .sc-product-line-item__image,
.sc-cart-drawer .wp-block-surecart-cart-line-item-image,
.sc-cart-drawer [class*="product-line-item__image"],
.sc-cart-drawer [class*="line-item__image"],
.sc-cart-drawer [class*="line-item-image"],
.sc-cart-drawer [class*="item__image"]{
  display: none !important;

  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;

  height: 0 !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;

  overflow: hidden !important;
}

/* Même respiration que le rendu mobile validé. */
.sc-cart-drawer .bp-cart-content{
  display: block !important;

  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  padding: 16px !important;
  margin: 0 !important;
}

/* Neutralise le wrapper qui réservait auparavant la place de l’image. */
.sc-cart-drawer .bp-cart-content >
.wp-block-group.is-nowrap.is-layout-flex{
  display: block !important;

  width: 100% !important;
  max-width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;
}

/* Ligne principale : nom à gauche, informations tarifaires à droite. */
.sc-cart-drawer .bp-cart-top{
  display: grid !important;
  grid-template-columns:
    minmax(0, .82fr)
    minmax(0, 1.18fr) !important;

  align-items: start !important;
  gap: 14px !important;

  width: 100% !important;
  max-width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;
}

.sc-cart-drawer .bp-cart-title-col{
  width: auto !important;
  max-width: 100% !important;

  flex: none !important;

  text-align: left !important;
}

.sc-cart-drawer .wp-block-surecart-cart-line-item-title{
  display: block !important;

  width: 100% !important;
  max-width: 100% !important;

  color: #0F172A !important;

  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;

  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.sc-cart-drawer
.wp-block-surecart-cart-line-item-description{
  margin-top: 2px !important;

  color: var(--text-soft, #64748B) !important;

  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

/* Colonne tarifaire */
.sc-cart-drawer .bp-cart-pricing{
  width: 100% !important;
  max-width: 100% !important;

  text-align: right !important;
}

.sc-cart-drawer .bp-cart-price-row{
  display: flex !important;
  flex-wrap: nowrap !important;

  align-items: baseline !important;
  justify-content: flex-end !important;

  gap: 4px !important;

  width: 100% !important;
  max-width: 100% !important;

  white-space: nowrap !important;
}

.sc-cart-drawer .bp-cart-price-row > *{
  flex: 0 0 auto !important;

  width: auto !important;
  max-width: none !important;

  margin: 0 !important;
}

.sc-cart-drawer .bp-cart-amount{
  color: #0F172A !important;

  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;

  text-align: right !important;
  white-space: nowrap !important;
}

.sc-cart-drawer .bp-cart-interval,
.sc-cart-drawer .bp-cart-interval *{
  color: #0F172A !important;

  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;

  white-space: nowrap !important;
}

.sc-cart-drawer .bp-cart-price-old{
  display: none !important;
  visibility: hidden !important;

  width: 0 !important;
  height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: hidden !important;
}

/* Essai et mise en service restent groupés sous le prix. */
.sc-cart-drawer .bp-cart-trial,
.sc-cart-drawer .bp-cart-fees{
  display: block !important;

  width: 100% !important;
  max-width: 100% !important;

  margin: 2px 0 0 !important;

  text-align: right !important;

  font-size: 14px !important;
  line-height: 1.45 !important;

  overflow: visible !important;
}

.sc-cart-drawer .bp-cart-trial{
  color: #0F172A !important;
  font-weight: 800 !important;
}

.sc-cart-drawer .bp-cart-fees{
  color: #0F172A !important;
  font-weight: 500 !important;
}

/* Bouton supprimer aligné proprement en bas à droite. */
.sc-cart-drawer .bp-cart-remove-row{
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;

  width: 100% !important;

  margin: 12px 0 0 !important;
  padding: 0 !important;
}

.sc-cart-drawer .bp-cart-remove{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  gap: 6px !important;

  width: fit-content !important;
  max-width: 100% !important;

  min-height: 36px !important;
  padding: 7px 12px !important;

  color: #ef4444 !important;
  background: rgba(239,68,68,.08) !important;

  border: 2px solid rgba(239,68,68,.18) !important;
  border-radius: 999px !important;

  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  white-space: nowrap !important;
  box-shadow: none !important;
}

.sc-cart-drawer .bp-cart-remove *,
.sc-cart-drawer .bp-cart-remove svg,
.sc-cart-drawer .bp-cart-remove path{
  color: #ef4444 !important;
  stroke: currentColor !important;
}

.sc-cart-drawer .bp-cart-remove:hover{
  background: rgba(239,68,68,.13) !important;
  border-color: rgba(239,68,68,.28) !important;
}

/* Le mode mensuel/annuel est choisi avant l’ouverture du panier. */
.sc-cart-drawer .sc-product-line-item__swap,
.sc-cart-drawer [data-wp-interactive="surecart/product-line-item-swap"],
.sc-cart-drawer [class*="product-line-item__swap"]{
  display: none !important;
  visibility: hidden !important;

  width: 0 !important;
  height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;

  overflow: hidden !important;
}

/* Tablette et ordinateur : davantage de largeur pour le détail tarifaire. */
@media (min-width: 768px){

  .sc-cart-drawer .bp-cart-top{
    grid-template-columns:
      minmax(118px, .70fr)
      minmax(0, 1.55fr) !important;

    gap: 16px !important;
  }

  .sc-cart-drawer .bp-cart-trial,
  .sc-cart-drawer .bp-cart-fees{
    white-space: nowrap !important;
  }
}

/* Très petits mobiles : garde la disposition validée sans débordement. */
@media (max-width: 380px){

  .sc-cart-drawer .bp-cart-top{
    grid-template-columns:
      minmax(0, .78fr)
      minmax(0, 1.22fr) !important;

    gap: 10px !important;
  }

  .sc-cart-drawer .bp-cart-trial,
  .sc-cart-drawer .bp-cart-fees{
    font-size: 13px !important;
  }
}

