.edl-cart{max-width:1100px;margin:30px auto;padding:0 20px 50px}.edl-cart h1{margin:20px 0}.edl-cart-line{display:grid;grid-template-columns:85px minmax(0,1fr) auto;gap:20px;align-items:start;padding:20px 0;border-bottom:1px solid #ddd}.edl-cart-line img{max-width:85px;height:auto}.edl-cart-line h2{font-size:1.15rem;margin:0 0 10px}.edl-cart-line form{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.edl-cart-line input{width:65px;padding:6px}.edl-cart-line button,.edl-add-cart button{cursor:pointer;padding:9px 15px}.edl-cart-total{text-align:right;font-size:1.3rem;margin-top:24px}.edl-cart-notice{font-style:italic}.edl-add-cart{margin:18px 0}.edl-add-cart input{width:65px;padding:7px}.edl-add-cart button{margin-left:8px}@media(max-width:600px){.edl-cart-line{grid-template-columns:65px 1fr}.edl-cart-line>strong{grid-column:2}.edl-cart-line img{max-width:65px}}

/* Commande : présentation fidèle au site EDL, limitée au formulaire produit */
.edl-product-page .edl-add-cart{display:block;margin:22px 0 28px;padding:20px 0 24px;border-top:1px dashed #ccc;border-bottom:1px dashed #ccc}
.edl-product-page .edl-cart-quantity{display:flex;align-items:center;gap:7px;margin-bottom:24px}
.edl-product-page .edl-cart-quantity label{font-size:13px;font-weight:400;margin-right:12px}
.edl-product-page .edl-cart-quantity input{box-sizing:border-box;width:38px;height:38px;text-align:center;border:1px solid #eee;background:#fff;padding:0;appearance:textfield;-moz-appearance:textfield}
.edl-product-page .edl-cart-quantity input::-webkit-inner-spin-button,.edl-product-page .edl-cart-quantity input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.edl-product-page .edl-add-cart .edl-qty-step{margin:0;padding:0;width:36px;height:38px;background:#fff;color:#111;border:0;box-shadow:0 2px 5px #0002;font-size:20px;font-weight:400}
.edl-product-page .edl-add-cart .edl-cart-submit{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:53px;padding:0 30px;margin:0;background:#b90000;color:white;border:0;border-radius:3px;box-shadow:0 4px 8px #0002;font-weight:700;font-size:14px;letter-spacing:.02em}
.edl-product-page .edl-add-cart .edl-cart-submit:hover{background:#970000}

/* Fiche livre : panier dans la colonne d'informations, style EDL */
.edl-product-page .edl-product-info .edl-add-cart{display:block!important;width:100%;max-width:100%;margin:26px 0 22px!important;padding:24px 0!important;border-top:1px dashed #bbb!important;border-bottom:1px dashed #bbb!important;box-sizing:border-box}
.edl-product-page .edl-product-info .edl-cart-quantity{display:flex!important;align-items:center!important;gap:8px!important;margin:0 0 26px!important}
.edl-product-page .edl-product-info .edl-cart-quantity label{font-size:13px!important;font-weight:400!important;margin:0 12px 0 0!important}
.edl-product-page .edl-product-info .edl-cart-quantity input{width:38px!important;height:38px!important;text-align:center!important;border:1px solid #eee!important;background:#fff!important;padding:0!important;font-size:14px!important}
.edl-product-page .edl-product-info .edl-add-cart button.edl-qty-step{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:36px!important;height:38px!important;padding:0!important;margin:0!important;background:#fff!important;color:#111!important;border:0!important;box-shadow:0 2px 5px #0002!important;font-size:20px!important}
.edl-product-page .edl-product-info .edl-add-cart button.edl-cart-submit{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;min-height:53px!important;padding:0 30px!important;margin:0!important;background:#b90000!important;color:#fff!important;border:0!important;border-radius:3px!important;box-shadow:0 4px 8px #0002!important;font-weight:700!important;font-size:14px!important;letter-spacing:.02em!important;cursor:pointer!important}
.edl-product-page .edl-product-info .edl-add-cart button.edl-cart-submit:hover{background:#970000!important}

.edl-checkout-button,.edl-primary{background:#b90000;color:white!important;padding:13px 22px;border-radius:3px;font-weight:700}.edl-checkout{margin:32px auto;padding:0 22px 60px}.edl-checkout input,.edl-checkout select{box-sizing:border-box;max-width:100%;width:420px;padding:10px;border:1px solid #ccc}.edl-checkout .summary{margin:22px 0}.edl-checkout textarea{max-width:100%;width:500px;min-height:75px}

.edl-checkout-button,.edl-primary{display:inline-block;background:#bb0000;color:#fff!important;padding:12px 20px;text-decoration:none;border:0;cursor:pointer}.edl-checkout{max-width:1050px;margin:30px auto;padding:0 20px 55px}.edl-checkout label{display:block;margin:12px 0}.edl-checkout input:not([type=radio]),.edl-checkout select{display:block;width:min(100%,430px);padding:10px}.edl-checkout .summary{background:#f6f6f6;padding:16px}.edl-error{color:#a00000}

/* Harmonisation des pages panier et commande avec l'identité EDL */
.edl-cart,.edl-checkout{font-family:Montserrat,Arial,sans-serif!important;color:#222;max-width:1100px!important;margin:36px auto 65px!important;padding:0 22px!important;line-height:1.6}
.edl-cart h1,.edl-checkout h1{font-family:Montserrat,Arial,sans-serif!important;font-size:30px!important;font-weight:500!important;line-height:1.25;margin:15px 0 30px!important}
.edl-checkout h2,.edl-cart h2{font-family:Montserrat,Arial,sans-serif!important;font-size:20px!important;font-weight:600!important;line-height:1.4}
.edl-cart a,.edl-checkout a{color:#b90000;text-decoration:none}
.edl-cart a:hover,.edl-checkout a:hover{text-decoration:underline}
.edl-cart .edl-cart-line{display:grid;grid-template-columns:110px minmax(0,1fr) auto;gap:22px;padding:24px 0;align-items:start;border-bottom:1px solid #ddd}
.edl-cart .edl-cart-line img{max-width:105px}
.edl-cart .edl-cart-line form{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:15px}
.edl-cart .edl-cart-line label{display:inline-flex;align-items:center;gap:8px}
.edl-cart .edl-cart-line input{width:70px;border:1px solid #d5d5d5;border-radius:2px;font:inherit;padding:8px}
.edl-cart .edl-cart-line button{font:inherit;border:1px solid #bbb;background:#fff;padding:9px 15px;cursor:pointer;border-radius:2px}
.edl-cart .edl-cart-line button:hover{border-color:#b90000;color:#b90000}
.edl-cart .edl-cart-total{font-size:20px;text-align:right;margin:28px 0}
.edl-cart .edl-checkout-button,.edl-checkout .edl-primary{display:inline-flex!important;align-items:center;justify-content:center;background:#bd0000!important;color:#fff!important;font:700 14px Montserrat,Arial,sans-serif!important;text-transform:uppercase;letter-spacing:.02em;padding:15px 26px!important;border:0!important;border-radius:3px!important;text-decoration:none!important;box-shadow:0 3px 7px #0002;cursor:pointer}
.edl-cart .edl-checkout-button:hover,.edl-checkout .edl-primary:hover{background:#940000!important}
.edl-checkout .summary{background:#f7f7f7!important;padding:24px 28px!important;margin:20px 0 32px!important;border:1px solid #ececec;border-radius:2px}
.edl-checkout .summary h2{margin-top:0}
.edl-checkout form{max-width:820px}
.edl-checkout form>label{display:flex!important;flex-direction:column;align-items:flex-start;gap:5px;margin:16px 0!important;font-size:14px;font-weight:500}
.edl-checkout input:not([type=radio]),.edl-checkout select,.edl-checkout textarea{display:block!important;box-sizing:border-box;width:min(100%,620px)!important;max-width:100%!important;padding:12px 14px!important;border:1px solid #d3d3d3!important;background:#fff!important;border-radius:2px!important;font:15px Montserrat,Arial,sans-serif!important;color:#222}
.edl-checkout form>label:has(input[type=radio]){display:flex!important;flex-direction:row!important;align-items:center!important;gap:9px!important;margin:10px 0!important}
.edl-checkout input[type=radio]{width:auto!important;accent-color:#b90000}
.edl-checkout textarea{min-height:90px;resize:vertical}
.edl-checkout input:focus,.edl-checkout select:focus,.edl-checkout textarea:focus{outline:2px solid #c77;outline-offset:1px}
.edl-checkout form>h2{margin:32px 0 16px}
.edl-checkout .edl-primary{margin-top:18px!important}
@media(max-width:640px){.edl-cart,.edl-checkout{padding:0 16px!important;margin-top:22px!important}.edl-cart .edl-cart-line{grid-template-columns:75px minmax(0,1fr);gap:12px}.edl-cart .edl-cart-line img{max-width:75px}.edl-cart .edl-cart-line>strong{grid-column:2}.edl-checkout .summary{padding:18px!important}}

/* Panier EDL : disposition historique en deux colonnes */
.edl-cart-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(290px,1fr);gap:24px;align-items:start;margin-top:28px}
.edl-cart-products,.edl-cart-summary,.edl-cart-assurances{background:#fff;border:1px solid #ededed}
.edl-cart-panel-title{font-size:16px!important;font-weight:500!important;margin:0!important;padding:14px 18px;border-bottom:1px solid #e6e6e6}
.edl-cart .edl-cart-line{padding:22px!important;grid-template-columns:120px minmax(0,1fr) auto!important;gap:18px!important}
.edl-cart .edl-cart-line img{max-width:110px!important}
.edl-cart .edl-cart-line h2{font-size:15px!important;font-weight:500!important}
.edl-cart .edl-cart-line h2 a{color:#222!important}
.edl-cart .edl-cart-line>strong{font-size:14px}
.edl-cart .edl-cart-line button{font-size:13px;padding:7px 10px}
.edl-cart-products>.edl-cart-line:last-of-type{border-bottom:0}
.edl-cart-products>.edl-cart-line+p{margin:20px 0 0}
.edl-cart-summary{padding:18px 20px;text-align:left}
.edl-cart-summary p{display:flex;justify-content:space-between;gap:12px;font-size:14px;margin:0;padding:10px 0;border-bottom:1px solid #eee}
.edl-cart-summary p span{font-size:12px;color:#666;text-align:right}
.edl-cart-summary .edl-cart-total{display:flex!important;text-align:left!important;font-size:15px!important;margin:0!important}
.edl-cart-summary .edl-checkout-button{display:flex!important;margin:20px auto 0;max-width:240px;text-align:center}
.edl-cart-assurances{margin-top:20px;padding:10px 18px;color:#777;font-size:13px}
.edl-cart-assurances p+p{border-top:1px solid #ddd;padding-top:12px}
.edl-cart .edl-continue-button{display:inline-block;background:#b90000;color:#fff!important;padding:12px 20px;font-size:12px;font-weight:700;text-decoration:none!important}
.edl-cart-modal[hidden]{display:none!important}.edl-cart-modal{position:fixed;inset:0;background:#0009;z-index:9999;display:flex;align-items:center;justify-content:center;padding:18px}
.edl-modal-open{overflow:hidden}.edl-cart-modal-box{background:#fff;width:min(1100px,100%);font-family:Montserrat,Arial,sans-serif;color:#222;box-shadow:0 12px 50px #0003}
.edl-cart-modal-head{background:#eee;display:flex;justify-content:center;align-items:center;position:relative;padding:25px 50px;font-size:18px;font-weight:500}
.edl-modal-close{position:absolute;right:16px;top:8px;background:none;border:0;font-size:32px;cursor:pointer}
.edl-cart-modal-content{display:grid;grid-template-columns:1fr 1fr;gap:30px;padding:25px 45px 35px}
.edl-modal-book{display:flex;gap:25px;align-items:flex-start}.edl-modal-book img{width:130px;max-height:210px;object-fit:contain}.edl-modal-book p{margin:12px 0}
.edl-modal-actions{border-left:1px solid #ddd;padding-left:30px}.edl-modal-actions p{font-size:14px;color:#666}
.edl-modal-actions a,.edl-modal-continue{display:inline-block;background:#b90000;color:#fff!important;border:0;text-decoration:none;padding:14px 18px;font:700 12px Montserrat,Arial,sans-serif;cursor:pointer;margin:12px 5px 0 0}
@media(max-width:750px){.edl-cart-layout,.edl-cart-modal-content{grid-template-columns:1fr}.edl-modal-actions{border-left:0;border-top:1px solid #ddd;padding:20px 0 0}.edl-cart-modal-content{padding:20px}.edl-cart .edl-cart-line{grid-template-columns:75px 1fr!important}.edl-cart .edl-cart-line>strong{grid-column:2}.edl-cart .edl-cart-line img{max-width:75px!important}}

/* EDL : largeur du panier uniquement, sans effet sur les autres pages. */
@media (min-width: 751px) {
  main.edl-cart { width: calc(100% - 44px) !important; max-width: 1100px !important; box-sizing: border-box !important; }
}

/* Confirmations de commande EDL/LRV : largeur du contenu, sans modifier le panier ni le paiement. */
body main.edl-checkout.order-confirmation {
  box-sizing:border-box;
  width:calc(100% - 80px) !important;
  max-width:1600px !important;
  min-width:0;
  margin:38px auto 60px !important;
  padding:0 0 30px !important;
}
body main.edl-checkout.order-confirmation > .customer-card {
  width:100%;
  max-width:none;
  box-sizing:border-box;
}
@media(max-width:1099px){
  body main.edl-checkout.order-confirmation{width:calc(100% - 36px) !important;}
}
@media(max-width:650px){
  body main.edl-checkout.order-confirmation{
    width:calc(100% - 30px) !important;
    margin:22px auto 35px !important;
  }
}

/* Panier EDL uniquement : largeur, extraite de panier.php.
   Exclure la page LRV qui partage les classes wrap/edl-cart. */
/* Panier EDL : largeur propre a cette page, sans toucher au reste du site. */
@media(min-width:751px){body main.wrap.edl-cart:not(.lrv-cart-page){width:calc(100% - 48px)!important;max-width:1500px!important;box-sizing:border-box!important;margin-left:auto!important;margin-right:auto!important}}
