.fmcs-registration-card{margin-top:20px;padding:22px;border:1px solid #c5dce2;border-radius:14px;background:#f7fbfb;color:#174353}.fmcs-registration-card[hidden]{display:none!important}.fmcs-registration-card h3{margin-top:0}.fmcs-registration-card-fields{display:grid;gap:12px;max-width:630px}.fmcs-registration-card-fields label{display:block;font-weight:700}.fmcs-registration-card-names{display:grid;grid-template-columns:1fr 1fr;gap:14px}.fmcs-registration-card input{display:block;width:100%;box-sizing:border-box;min-height:45px;margin-top:6px}.fmcs-registration-card-field{margin-top:6px;min-height:50px;border:1px solid #9bb4bd;border-radius:8px;background:white;padding:4px}.fmcs-registration-card-submit{margin-top:18px;background:#087e8b;color:white;border:0;border-radius:9px;padding:13px 18px;font-weight:700;cursor:pointer}.fmcs-registration-paypal-option{display:block;margin-top:14px;background:transparent;border:1px solid #738f99;border-radius:9px;padding:11px 15px;cursor:pointer}.fmcs-registration-card-message{font-weight:650;min-height:1.5em}@media(max-width:620px){.fmcs-registration-card-names{grid-template-columns:1fr}}
.fmcs-registration-show-card{display:block;margin:12px 0 0;padding:11px 15px;border:1px solid #267387;border-radius:8px;background:#fff;color:#164c61;font-weight:650;cursor:pointer}.fmcs-registration-show-card[hidden],.fmcs-registration-paypal-option[hidden]{display:none!important}

/* v0.13.143 : the card section is a direct child of the two-column registration form. */
.fmcs-live-form > .fmcs-registration-card {grid-column:1 / -1; width:100%; min-width:0; box-sizing:border-box;}
.fmcs-live-form > .fmcs-registration-card .fmcs-registration-card-fields {width:100%; min-width:0; box-sizing:border-box;}
.fmcs-registration-card-names {grid-template-columns:repeat(2,minmax(0,1fr));}
.fmcs-registration-card-field,.fmcs-registration-card-names label {min-width:0;box-sizing:border-box;}
@media(max-width:620px){.fmcs-live-form > .fmcs-registration-card {padding:16px;}.fmcs-registration-card-names {grid-template-columns:minmax(0,1fr);}}

/* 0.13.144 — présentation historique validée (fenêtre centrée, montant, bouton noir).
   Seule l’interface change ; les champs sont fournis par PayPal Card Fields. */
.fmcs-live-form>.fmcs-restored-checkout,
.fmcs-restored-checkout{
  position:fixed!important;left:0!important;top:0!important;inset:0!important;
  width:min(620px,calc(100vw - 28px))!important;max-width:620px!important;
  max-height:min(90vh,850px)!important;margin:auto!important;padding:0!important;
  border:1px solid #cbdced!important;border-radius:16px!important;
  background:#fff!important;color:#173b54!important;box-sizing:border-box!important;
  overflow:auto!important;box-shadow:0 20px 65px rgba(0,25,55,.27)!important;
}
.fmcs-restored-checkout:not([open]){display:none!important}
.fmcs-restored-checkout::backdrop{background:rgba(4,22,48,.58)}
.fmcs-restored-checkout .fmcs-checkout-heading{
 display:flex;align-items:center;gap:16px;position:relative;padding:20px 54px 19px 22px;
 background:#edf5ff;border-bottom:1px solid #cbdced;box-sizing:border-box;
}
.fmcs-restored-checkout .fmcs-checkout-heading h2{font-size:clamp(19px,2.3vw,24px);margin:0 0 4px;color:#153c63;line-height:1.2}
.fmcs-restored-checkout .fmcs-checkout-subtitle{display:block;font-size:13px;color:#45657c;font-weight:650}
.fmcs-restored-checkout .fmcs-checkout-amount{font-size:clamp(23px,3vw,30px);color:#14395c;white-space:nowrap;margin-left:auto}
.fmcs-restored-checkout .fmcs-checkout-dismiss{
 position:absolute;right:10px;top:10px;min-width:34px;min-height:34px;padding:0!important;
 color:#526473!important;background:transparent!important;border:none!important;
 font-size:28px;line-height:1;cursor:pointer;
}
.fmcs-restored-checkout .fmcs-checkout-content{padding:22px;box-sizing:border-box}
.fmcs-restored-checkout .fmcs-checkout-intro{line-height:1.65;margin:0 0 18px}
.fmcs-restored-checkout .fmcs-registration-choice-card,
.fmcs-restored-checkout .fmcs-registration-paypal-option,
.fmcs-restored-checkout .fmcs-registration-card-submit{
 display:block;width:100%;box-sizing:border-box;min-height:48px;padding:13px 18px!important;
 border-radius:7px!important;font-size:17px;font-weight:750;line-height:1.35;text-align:center;cursor:pointer;
}
.fmcs-restored-checkout .fmcs-registration-choice-card{background:#2c2e2f!important;color:#fff!important;border:1px solid #2c2e2f!important}
.fmcs-restored-checkout .fmcs-registration-choice-card[hidden],
.fmcs-restored-checkout .fmcs-registration-paypal-option[hidden],
.fmcs-restored-checkout .fmcs-registration-card-fields-panel[hidden]{display:none!important}
.fmcs-restored-checkout .fmcs-registration-paypal-option{margin:14px 0 0;background:#fff!important;color:#14395c!important;border:1px solid #9daeba!important}
.fmcs-restored-checkout .fmcs-registration-card-fields-panel{margin-top:19px;border:1px solid #cbdced;border-radius:10px;padding:16px;background:#f7fbff;box-sizing:border-box}
.fmcs-restored-checkout .fmcs-registration-card-fields-panel h3{margin:0 0 8px;font-size:19px}
.fmcs-restored-checkout .fmcs-registration-card-fields{width:100%;max-width:none;min-width:0;box-sizing:border-box}
.fmcs-restored-checkout .fmcs-registration-card-names{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
.fmcs-restored-checkout .fmcs-registration-card input,.fmcs-restored-checkout input{min-width:0;max-width:100%;box-sizing:border-box}
.fmcs-restored-checkout .fmcs-registration-card-field{min-width:0;box-sizing:border-box}
.fmcs-restored-checkout .fmcs-registration-card-submit{background:#0070ba!important;color:#fff!important;border:0!important;margin-top:18px}
.fmcs-restored-checkout .fmcs-checkout-security{margin:19px 0 9px;text-align:center;font-size:13px;color:#536b7c;font-weight:650}
.fmcs-restored-checkout .fmcs-checkout-return{display:block;min-height:36px;margin:7px auto 0;padding:7px 12px!important;background:transparent!important;color:#205782!important;border:0!important;text-decoration:underline;font-weight:500!important}
.fmcs-restored-checkout :is(button,input):focus-visible{outline:3px solid #2788b1;outline-offset:2px}
@media(max-width:560px){
 .fmcs-restored-checkout .fmcs-checkout-heading{padding:18px 48px 15px 14px;gap:9px;flex-wrap:wrap}
 .fmcs-restored-checkout .fmcs-checkout-content{padding:15px}
 .fmcs-restored-checkout .fmcs-registration-card-names{grid-template-columns:minmax(0,1fr)}
 .fmcs-restored-checkout .fmcs-registration-card-fields-panel{padding:12px}
}

/* 0.13.145 — Show asynchronous PayPal failures and temporary busy state inside the open checkout. */
.fmcs-restored-checkout .fmcs-checkout-notice:not(:empty){margin:0 0 12px;padding:11px 13px;background:#fff7e6;border-left:4px solid #d69a00;color:#5c3d00;border-radius:4px;font-weight:650}
.fmcs-restored-checkout .fmcs-registration-card-message:not(:empty){margin:12px 0 0;overflow-wrap:anywhere}


/* v0.13.146 — compact and accessible checkout; only presentational, no change to payment security.
   Keep the header/close button visible while scrolling the PayPal-hosted card fields. */
.fmcs-restored-checkout{
 width:min(560px,calc(100vw - 24px))!important;max-width:560px!important;
 max-height:min(70vh,620px)!important;
 overflow:hidden!important;
}
.fmcs-restored-checkout[open]{display:flex!important;flex-direction:column;}
.fmcs-restored-checkout .fmcs-checkout-heading{
 flex:0 0 auto;padding:14px 42px 12px 18px;gap:12px;align-items:flex-start;
}
.fmcs-restored-checkout .fmcs-checkout-heading>div:first-child{min-width:0;flex:1 1 auto;}
.fmcs-restored-checkout .fmcs-checkout-heading h2{font-size:20px;line-height:1.24;margin:0 0 2px;}
.fmcs-restored-checkout .fmcs-checkout-subtitle{font-size:12px;}
.fmcs-restored-checkout .fmcs-checkout-amount{font-size:24px;margin-top:2px;}
.fmcs-restored-checkout .fmcs-checkout-content{
 overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1 1 auto;
 padding:14px 18px 16px;scrollbar-width:thin;
}
.fmcs-restored-checkout .fmcs-checkout-intro{font-size:14px;line-height:1.5;margin:0 0 10px;}
.fmcs-restored-checkout .fmcs-registration-choice-card,
.fmcs-restored-checkout .fmcs-registration-paypal-option,
.fmcs-restored-checkout .fmcs-registration-card-submit{min-height:42px;padding:10px 12px!important;font-size:15px;}
.fmcs-restored-checkout .fmcs-registration-paypal-option{margin-top:10px;}
.fmcs-restored-checkout .fmcs-checkout-security{margin:12px 0 5px;font-size:12px;}
.fmcs-restored-checkout .fmcs-checkout-return{margin:4px auto 0;padding:5px 10px!important;}
.fmcs-restored-checkout .fmcs-registration-card-fields-panel{margin-top:10px;padding:11px 12px;}
.fmcs-restored-checkout .fmcs-registration-card-fields-panel h3{font-size:16px;margin:0 0 4px;}
.fmcs-restored-checkout .fmcs-registration-card-fields-panel>p{font-size:13px;line-height:1.4;margin:0 0 10px;}
.fmcs-restored-checkout .fmcs-registration-card-fields{gap:8px;}
.fmcs-restored-checkout .fmcs-registration-card-names{gap:10px;}
.fmcs-restored-checkout .fmcs-registration-card-fields label{font-size:13px;line-height:1.3;}
.fmcs-restored-checkout .fmcs-registration-card-fields input{min-height:40px;margin-top:4px;padding:8px;}
.fmcs-restored-checkout .fmcs-registration-card-field{min-height:47px;margin-top:4px;padding:2px 6px;}
.fmcs-restored-checkout .fmcs-registration-card-field iframe{height:44px!important;min-height:44px!important;width:100%!important;max-width:100%;border:0;}
.fmcs-restored-checkout .fmcs-registration-card-field>div{width:100%;max-width:100%;}
.fmcs-restored-checkout .fmcs-registration-card-submit{margin-top:10px;}
.fmcs-restored-checkout .fmcs-registration-card-message:not(:empty){font-size:13px;margin-top:7px;}
/* Recognizable payment marks. They describe offered choices, not a security certification. */
.fmcs-restored-checkout .fmcs-checkout-brand-marks{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin-top:7px;}
.fmcs-restored-checkout .fmcs-checkout-brand{
 height:23px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
 gap:4px;background:#fff;border:1px solid #cad7e4;border-radius:5px;
 color:#123962;padding:2px 8px;font-size:11px;line-height:1;font-weight:800;white-space:nowrap;
}
.fmcs-restored-checkout .fmcs-brand-visa{font-size:15px;font-style:italic;letter-spacing:-.7px;color:#164a98;}
.fmcs-restored-checkout .fmcs-brand-mastercard{font-size:10px;letter-spacing:-.3px;color:#283a48;}
.fmcs-restored-checkout .fmcs-mastercard-symbol{position:relative;display:inline-flex;width:26px;height:15px;align-items:center;}
.fmcs-restored-checkout .fmcs-mastercard-symbol span{width:16px;height:16px;display:block;border-radius:50%;position:absolute;left:0;background:#eb001b;}
.fmcs-restored-checkout .fmcs-mastercard-symbol span+span{left:10px;background:#f79e1b;opacity:.94;}
.fmcs-restored-checkout .fmcs-brand-paypal{color:#0070ba;font-size:12px;letter-spacing:-.3px;}
.fmcs-restored-checkout .fmcs-brand-paypal img{display:block;object-fit:contain;width:18px;height:18px;}
@media(max-width:560px){
 .fmcs-restored-checkout{max-height:78vh!important;}
 .fmcs-restored-checkout .fmcs-checkout-heading{padding:12px 38px 10px 12px;gap:6px;flex-wrap:nowrap;}
 .fmcs-restored-checkout .fmcs-checkout-heading h2{font-size:17px;}
 .fmcs-restored-checkout .fmcs-checkout-amount{font-size:20px;}
 .fmcs-restored-checkout .fmcs-checkout-content{padding:12px;}
 .fmcs-restored-checkout .fmcs-registration-card-names{grid-template-columns:minmax(0,1fr);}
 .fmcs-restored-checkout .fmcs-checkout-brand{height:21px;padding:2px 6px;}
}


/* v0.13.147 — PayPal Web SDK v6 mounts a web component into each field.
   Its container MUST have explicit dimensions; min-height alone allowed
   the SDK component's default intrinsic height to expand to ~150px. */
.fmcs-restored-checkout .fmcs-registration-card-fields .fmcs-registration-card-field{
  display:block!important;
  position:relative!important;
  height:50px!important;
  min-height:50px!important;
  max-height:50px!important;
  padding:3px 6px!important;
  margin-top:4px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.fmcs-restored-checkout .fmcs-registration-card-field > *{
  display:block!important;
  width:100%!important;
  height:42px!important;
  min-height:0!important;
  max-height:42px!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:0!important;
}
.fmcs-restored-checkout .fmcs-registration-card-field iframe{
  display:block!important;
  width:100%!important;
  height:42px!important;
  min-height:0!important;
  max-height:42px!important;
  margin:0!important;
  padding:0!important;
}
