/* Ajustements maquette Figma : checkout (panier, panier latéral, paiement, confirmation) */

/* --- Barre livraison offerte : pourcentage (panier latéral) --- */
.efena-freeship__meter{display:flex;align-items:center;gap:14px;margin-top:11px}
.efena-freeship__meter .efena-freeship__track{flex:1;margin-top:0}
.efena-freeship__percent{flex:none;min-width:34px;text-align:right;font-size:12.5px;font-weight:500;color:var(--ef-ink);font-variant-numeric:tabular-nums}

/* --- Panier : ligne « Livraison » calculée à l'étape suivante --- */
body .efena-cart-page .efena-cart .cart_totals tr.efena-shipping-later td{font-size:13px;color:var(--ef-muted);text-align:right}

/* --- Paiement : titre « Coordonnées » + « Déjà client ? Se connecter » --- */
.efena-checkout__head{display:flex;align-items:baseline;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin:0 0 18px}
.efena-checkout__head .efena-checkout__title{margin:0}
.efena-checkout__login{font-size:13px;color:var(--ef-accent);border-bottom:1px solid #C9C9C9;padding-bottom:2px;transition:color .2s,border-color .2s}
.efena-checkout__login:hover{color:var(--ef-ink);border-color:var(--ef-ink)}
.efena-checkout-page form.woocommerce-form-login .form-row{margin:0}
.efena-checkout-page form.woocommerce-form-login>p:not(.form-row){flex-basis:100%;margin:0;font-size:13.5px;color:#5A5A5A}
.efena-checkout-page form.woocommerce-form-login .form-row-first,.efena-checkout-page form.woocommerce-form-login .form-row-last{flex:1 1 200px;float:none;width:auto}
.efena-checkout-page form.woocommerce-form-login .form-row:has(.woocommerce-form-login__submit){flex-basis:100%;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.efena-checkout-page form.woocommerce-form-login .woocommerce-form-login__submit{padding:14px 28px;border:0;border-radius:var(--ef-pill);background:var(--ef-ink);color:var(--ef-paper);font:inherit;font-size:12.5px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;cursor:pointer}
.efena-checkout-page form.woocommerce-form-login .lost_password{margin:0;font-size:13px}
.efena-checkout-page form.woocommerce-form-login .lost_password a{color:var(--ef-accent);text-decoration:underline;text-underline-offset:3px}

/* Bouton afficher / masquer le mot de passe (connexion et création de compte), comme dans Mon compte */
.efena-checkout-page .password-input{display:block;position:relative}
.efena-checkout-page .password-input input{padding-right:48px!important}
.efena-checkout-page .show-password-input{position:absolute;top:50%;right:12px;transform:translateY(-50%);width:28px;height:28px;padding:0;border:0;border-radius:50%;cursor:pointer;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C8C8C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/20px no-repeat}
.efena-checkout-page .show-password-input.display-password{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E")}
.efena-checkout-page .show-password-input::after{display:none}

/* Case newsletter sous l'e-mail */
.efena-checkout .efena-checkout__optin label.checkbox{display:flex;align-items:center;gap:9px;margin:0;font-size:13.5px;letter-spacing:0;color:#5A5A5A;cursor:pointer}
.efena-checkout .efena-checkout__optin .optional{display:none}
.efena-checkout .efena-checkout__optin input{flex:none;margin:0}

/* Titre « Adresse de livraison » dans les champs (devient « de facturation » si une autre adresse d'expédition est cochée) */
body .efena-checkout-page .efena-checkout .efena-checkout__addr-title{margin-top:22px}
.efena-checkout__addr-title .efena-checkout__title{margin:0}
.efena-addr-title--bill{display:none}
.efena-checkout:has(#ship-to-different-address-checkbox:checked) .efena-addr-title--ship{display:none}
.efena-checkout:has(#ship-to-different-address-checkbox:checked) .efena-addr-title--bill{display:inline}

/* --- Mode de livraison (colonne de gauche) --- */
.efena-checkout__shipping{margin-top:34px}
.efena-shipping-choice__table{width:100%;margin:0;border:0;border-collapse:collapse}
.efena-shipping-choice__table th,.efena-shipping-choice__table td{padding:0;border:0;background:none}
.efena-checkout-page .efena-shipping-choice #shipping_method{margin:0;gap:12px}
.efena-checkout-page .efena-shipping-choice #shipping_method input{left:22px}
body .efena-checkout-page .efena-shipping-choice #shipping_method label{display:flex;justify-content:space-between;gap:12px;width:100%;margin:0;letter-spacing:0;line-height:1.4;align-items:center;min-height:70px;padding:18px 22px 18px 56px;background:var(--ef-surface);border-width:1px;font-size:15px}
body .efena-checkout-page .efena-shipping-choice #shipping_method li:only-child label{padding-left:22px}
.efena-checkout-page .efena-shipping-choice #shipping_method input[type=radio]{appearance:none;-webkit-appearance:none;width:20px;height:20px;border:1px solid #C9C9C9;border-radius:50%;background:var(--ef-surface);cursor:pointer}
.efena-checkout-page .efena-shipping-choice #shipping_method input[type=radio]:checked{border:6px solid var(--ef-ink)}
.efena-checkout-page .efena-shipping-choice #shipping_method input[type=radio]:focus-visible{outline:2px solid var(--ef-ink);outline-offset:2px}
.efena-ship__name{font-weight:500;color:var(--ef-ink)}
.efena-ship__price{flex:none;font-family:var(--ef-serif);font-size:19px;color:#5A5A5A;white-space:nowrap}
.efena-ship__price .woocommerce-Price-amount{font-family:inherit}
.efena-shipping-choice__note,.efena-shipping-choice td>p{margin:0;padding:18px 22px;background:var(--ef-surface);border:1px dashed var(--ef-line);border-radius:calc(16px*var(--ef-round));font-size:13.5px;color:var(--ef-muted)}

/* Récapitulatif : ligne Livraison simple */
body .efena-checkout-page table.woocommerce-checkout-review-order-table tr.efena-review-shipping td{text-align:right;color:var(--ef-ink)}

/* --- Mobile --- */
@media (max-width:560px){
  body .efena-checkout-page .efena-shipping-choice #shipping_method label{padding:16px 16px 16px 50px;min-height:62px;font-size:14.5px}
  .efena-checkout-page .efena-shipping-choice #shipping_method input{left:18px}
  .efena-freeship__meter{gap:10px}
}
