/* =====================================================================
   DriveOnly — Checkout v2
   Tunnel en 3 écrans (Panier > Livraison > Paiement), inspiré du modèle
   « étapes validées repliées en résumé compact + récap collant ».
   Chargé uniquement par templates/checkout/checkout.tpl.
   L'état de l'écran est déduit en pur CSS de l'étape PrestaShop courante
   (:has), il n'y a donc aucun JS nécessaire pour le stepper.
   ===================================================================== */

body:is(#checkout, #cart) {
    --co-bg: #f3f4f6;
    --co-card: #fff;
    --co-ink: #141414;
    --co-muted: #6b7280;
    --co-line: #e5e7eb;
    --co-line-strong: #d1d5db;
    --co-red: #e8202d;
    --co-green: #ff9600;
    --co-green-d: #db8e21;
    --co-green-l: #ff95001a;
    --co-r: 12px;
    --co-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 2px 8px rgba(16, 24, 40, .06);
    background: var(--co-bg) none !important;
    color: var(--co-ink);
    font-family: Poppins, Arial, Helvetica, sans-serif;
}

body:is(#checkout, #cart) #wrapper,
body:is(#checkout, #cart) .co-wrapper {
    flex: 1 0 auto;
    background: transparent;
    box-shadow: none;
    padding: 0 0 40px;
    margin: 0;
}

body:is(#checkout, #cart) .co-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

body:is(#checkout, #cart)>main,
body:is(#checkout, #cart) main#checkout-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* ------------------------------------------------------------------ */
/* Header : logo + stepper                                             */
/* ------------------------------------------------------------------ */
body:is(#checkout, #cart) .co-header {
    background: #fff;
    border-bottom: 1px solid var(--co-line);
    position: relative;
    z-index: 10;
}

body:is(#checkout, #cart) .co-header-inner {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 200px;
    align-items: center;
    gap: 24px;
    min-height: 76px;
}

body:is(#checkout, #cart) .co-logo img {
    display: block;
    height: 48px;
    width: auto;
}

body:is(#checkout, #cart) .co-stepper {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    max-width: 680px;
}

body:is(#checkout, #cart) .co-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
    margin: 0;
}

body:is(#checkout, #cart) .co-step a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

body:is(#checkout, #cart) .co-step:not(:last-child) {
    flex: 1;
}

body:is(#checkout, #cart) .co-step:not(:last-child)::after {
    content: "";
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: var(--co-line);
    margin: 0 14px;
}

body:is(#checkout, #cart) .co-dot {
    position: relative;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d1d5db;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

body:is(#checkout, #cart) .co-dot .co-ck {
    display: none;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* étape 1 (panier) : toujours faite */
body:is(#checkout, #cart) .co-step--cart {
    color: var(--co-green-d);
}

body:is(#checkout, #cart) .co-step--cart .co-dot {
    background: var(--co-green);
}

body:is(#checkout, #cart) .co-step--cart .co-ck {
    display: block;
}

body:is(#checkout, #cart) .co-step--cart .co-n {
    display: none;
}

body:is(#checkout, #cart) .co-step--cart::after {
    background: var(--co-green);
}

/* étape 2 (livraison) : courante par défaut */
body:is(#checkout, #cart) .co-step--delivery {
    color: var(--co-ink);
}

body:is(#checkout, #cart) .co-step--delivery .co-dot {
    background: var(--co-red);
}

/* écran paiement : livraison faite, paiement courant */
body:is(#checkout, #cart):has(#checkout-payment-step.-current) .co-step--delivery {
    color: var(--co-green-d);
}

body:is(#checkout, #cart):has(#checkout-payment-step.-current) .co-step--delivery .co-dot {
    background: var(--co-green);
}

body:is(#checkout, #cart):has(#checkout-payment-step.-current) .co-step--delivery .co-n {
    display: none;
}

body:is(#checkout, #cart):has(#checkout-payment-step.-current) .co-step--delivery .co-ck {
    display: block;
}

body:is(#checkout, #cart):has(#checkout-payment-step.-current) .co-step--delivery::after {
    background: var(--co-green);
}

body:is(#checkout, #cart):has(#checkout-payment-step.-current) .co-step--payment {
    color: var(--co-ink);
}

body:is(#checkout, #cart):has(#checkout-payment-step.-current) .co-step--payment .co-dot {
    background: var(--co-red);
}

body:is(#checkout, #cart) .co-secure {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 12px;
    color: var(--co-muted);
}

body:is(#checkout, #cart) .co-secure svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--co-green-d);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ------------------------------------------------------------------ */
/* Titre de l'écran + liens retour                                     */
/* ------------------------------------------------------------------ */
body:is(#checkout, #cart) .co-content {
    padding-top: 24px;
}

body:is(#checkout, #cart) .co-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px 0 8px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--co-shadow);
    color: var(--co-ink);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 16px;
}

body:is(#checkout, #cart) .co-back:hover {
    background: #fafafa;
}

body:is(#checkout, #cart) .co-back svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body:is(#checkout, #cart) .co-back--delivery {
    display: none;
}

body:is(#checkout, #cart):has(#checkout-payment-step.-current) .co-back--cart {
    display: none;
}

body:is(#checkout, #cart):has(#checkout-payment-step.-current) .co-back--delivery {
    display: inline-flex;
}

body:is(#checkout, #cart) .co-title {
    margin: 0 0 20px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: var(--co-ink);
}

body:is(#checkout, #cart) .co-title--payment {
    display: none;
}

body:is(#checkout, #cart):has(#checkout-payment-step.-current) .co-title--delivery {
    display: none;
}

body:is(#checkout, #cart):has(#checkout-payment-step.-current) .co-title--payment {
    display: block;
}

/* ------------------------------------------------------------------ */
/* Grille : colonne principale + récap collant                         */
/* ------------------------------------------------------------------ */
body:is(#checkout, #cart) .co-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
}

body:is(#checkout, #cart) .co-aside {
    position: sticky;
    top: 16px;
}

body:is(#checkout, #cart) .co-aside>*:not(#js-checkout-summary):not(.cart-summary) {
    display: none;
}

/* ------------------------------------------------------------------ */
/* Étapes = cartes                                                     */
/* ------------------------------------------------------------------ */
body:is(#checkout, #cart) section.checkout-step {
    background: var(--co-card);
    border: 0;
    border-radius: var(--co-r);
    box-shadow: var(--co-shadow);
    margin: 0 0 12px;
    padding: 0;
    overflow: visible;
}

body:is(#checkout, #cart) section.checkout-step:last-child {
    margin-bottom: 0;
}

body:is(#checkout, #cart) section.checkout-step h1.step-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 18px 20px;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--co-ink);
    cursor: default;
}

/* pastille de gauche : anneau (courante / à venir) ou coche verte (faite) */
body:is(#checkout, #cart) section.checkout-step h1.step-title .step-number {
    display: block;
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    font-size: 0;
    color: transparent;
    background: transparent;
    padding: 0;
    margin: 0 !important;
}

body:is(#checkout, #cart) section.checkout-step.-current h1.step-title .step-number {
    border-color: var(--co-red);
    background: radial-gradient(circle, var(--co-red) 0 38%, transparent 42%);
}

body:is(#checkout, #cart) section.checkout-step h1.step-title .done {
    display: none;
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--co-green);
    color: #fff;
    font-size: 15px;
    line-height: 22px;
    text-align: center;
    margin: 0 !important;
    padding: 0 !important;
}

body:is(#checkout, #cart) section.checkout-step.-complete:not(.-current) h1.step-title .done {
    display: block;
}

body:is(#checkout, #cart) section.checkout-step.-complete:not(.-current) h1.step-title .step-number {
    display: none;
}

body:is(#checkout, #cart) section.checkout-step.-unreachable h1.step-title {
    color: #9ca3af;
}

body:is(#checkout, #cart) section.checkout-step h1.step-title .step-title-text {
    flex: 1;
    min-width: 0;
}

/* lien « Modifier » */
body:is(#checkout, #cart) section.checkout-step h1.step-title .step-edit {
    display: none;
}

body:is(#checkout, #cart) section.checkout-step.-reachable.-complete:not(.-current) h1.step-title {
    cursor: pointer;
}

body:is(#checkout, #cart) section.checkout-step.-reachable.-complete:not(.-current) h1.step-title .step-edit {
    display: inline-flex;
    float: none;
    align-items: center;
    gap: 4px;
    margin: 0 0 0 auto;
    padding: 6px 12px;
    border-radius: 8px;
    background: #f3f4f6;
    color: var(--co-ink);
    font-size: 12px;
    font-weight: 600;
}

body:is(#checkout, #cart) section.checkout-step.-reachable.-complete:not(.-current) h1.step-title .step-edit:hover {
    background: var(--co-line);
}

body:is(#checkout, #cart) section.checkout-step h1.step-title .step-edit .edit {
    font-size: 15px;
    margin: 0;
}

/* contenu : uniquement pour l'étape courante */
body:is(#checkout, #cart) section.checkout-step .content {
    display: none;
    padding: 0 20px 22px;
}

body:is(#checkout, #cart) section.checkout-step.-current .content {
    display: block;
}

body:is(#checkout, #cart) section.checkout-step.-current.-reachable.-complete .content {
    display: block;
}

/* résumé compact : uniquement quand l'étape est validée et repliée */
body:is(#checkout, #cart) section.checkout-step .co-summary {
    display: none;
}

body:is(#checkout, #cart) section.checkout-step.-complete:not(.-current) .co-summary {
    display: block;
    padding: 0 20px 18px 54px;
    margin-top: -8px;
}

body:is(#checkout, #cart) .co-summary p {
    margin: 0;
}

body:is(#checkout, #cart) .co-summary-main {
    font-size: 13px;
    font-weight: 600;
}

body:is(#checkout, #cart) .co-summary-sub {
    font-size: 12.5px;
    color: var(--co-muted);
    margin-top: 2px !important;
}

body:is(#checkout, #cart) .co-summary-price {
    margin-left: 8px;
    color: var(--co-green-d);
    font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Formulaires (infos personnelles, adresses)                          */
/* ------------------------------------------------------------------ */
body:is(#checkout, #cart) section.checkout-step .nav-inline {
    display: flex;
    gap: 6px;
    margin: 0 0 18px;
    padding: 4px;
    background: #f3f4f6;
    border-radius: 10px;
    width: fit-content;
    align-items: center;
}

body:is(#checkout, #cart) section.checkout-step .nav-inline .nav-separator {
    display: none;
}

body:is(#checkout, #cart) section.checkout-step .nav-inline .nav-link {
    display: block;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    color: var(--co-muted);
}

body:is(#checkout, #cart) section.checkout-step .nav-inline .nav-link.active {
    background: #fff;
    color: var(--co-ink);
    box-shadow: var(--co-shadow);
}

body:is(#checkout, #cart) .form-group.row {
    display: block;
    margin: 0 0 14px;
}

body:is(#checkout, #cart) .form-group.row>[class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: none;
    float: none;
    padding: 0;
}

body:is(#checkout, #cart) .form-group.row>.form-control-comment {
    margin-top: 4px;
    font-size: 12px;
    color: var(--co-muted);
}

body:is(#checkout, #cart) .form-control-label {
    display: block;
    width: 100%;
    max-width: 100%;
    float: none;
    padding: 0;
    margin: 0 0 6px;
    text-align: left !important;
    font-size: 13px;
    font-weight: 600;
    color: var(--co-ink);
}

body:is(#checkout, #cart) .form-control-comment {
    font-size: 12px;
    color: var(--co-muted);
}

body:is(#checkout, #cart) .form-control,
body:is(#checkout, #cart) input.form-control,
body:is(#checkout, #cart) select.form-control {
    height: 46px;
    padding: 0 14px;
    border: 1.5px solid var(--co-line-strong);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}

body:is(#checkout, #cart) textarea.form-control {
    height: auto;
    padding: 12px 14px;
}

body:is(#checkout, #cart) .form-control:focus {
    border-color: var(--co-green);
    box-shadow: 0 0 0 3px rgba(67, 183, 84, .18);
    outline: 0;
}

body:is(#checkout, #cart) .input-group .btn {
    height: 46px;
    border-radius: 0 10px 10px 0;
    border: 1.5px solid var(--co-line-strong);
    border-left: 0;
    background: #f3f4f6;
    color: var(--co-ink);
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
}

body:is(#checkout, #cart) .input-group .form-control {
    border-radius: 10px 0 0 10px;
}

/* formulaire d'adresse : champs courts côte à côte */
@media (min-width: 768px) {
    body:is(#checkout, #cart) .js-address-form .form-fields {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
    }

    body:is(#checkout, #cart) .js-address-form .form-fields>.form-group.row {
        grid-column: 1 / -1;
    }

    body:is(#checkout, #cart) .js-address-form .form-fields>.form-group.row:has([name="firstname"]),
    body:is(#checkout, #cart) .js-address-form .form-fields>.form-group.row:has([name="lastname"]),
    body:is(#checkout, #cart) .js-address-form .form-fields>.form-group.row:has([name="company"]),
    body:is(#checkout, #cart) .js-address-form .form-fields>.form-group.row:has([name="vat_number"]),
    body:is(#checkout, #cart) .js-address-form .form-fields>.form-group.row:has([name="postcode"]),
    body:is(#checkout, #cart) .js-address-form .form-fields>.form-group.row:has([name="city"]),
    body:is(#checkout, #cart) .js-address-form .form-fields>.form-group.row:has([name="id_country"]),
    body:is(#checkout, #cart) .js-address-form .form-fields>.form-group.row:has([name="phone"]) {
        grid-column: auto;
    }

    body:is(#checkout, #cart) .js-address-form .form-footer {
        grid-column: 1 / -1;
    }
}

/* boutons « Continuer » */
body:is(#checkout, #cart) .btn.btn-primary,
body:is(#checkout, #cart) button.continue,
body:is(#checkout, #cart) .form-footer .btn {
    border-radius: 10px;
    border: 0;
    background: var(--co-green);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: .01em;
    padding: 12px 22px;
    min-height: 46px;
    box-shadow: none;
    transition: background .15s, transform .05s;
}

body:is(#checkout, #cart) .btn.btn-primary:hover:not(:disabled),
body:is(#checkout, #cart) button.continue:hover {
    background: var(--co-green-d);
}

body:is(#checkout, #cart) .btn.btn-primary:active:not(:disabled) {
    transform: translateY(1px);
}

body:is(#checkout, #cart) .btn.btn-primary:disabled,
body:is(#checkout, #cart) .btn.btn-primary.disabled {
    background: #b8dfbf;
    cursor: not-allowed;
    opacity: 1;
}

body:is(#checkout, #cart) button.continue {
    float: none !important;
    display: block;
    margin: 18px 0 0 auto;
    min-width: 260px;
}

body:is(#checkout, #cart) .form-footer {
    text-align: right;
}

/* ------------------------------------------------------------------ */
/* Cases à cocher / radios : rendu natif fiable (plus de double case)   */
/* ------------------------------------------------------------------ */
body:is(#checkout, #cart) .custom-checkbox,
body:is(#checkout, #cart) .custom-radio {
    position: relative;
    display: inline-block;
    flex: none;
    width: auto;
    height: auto;
    float: none;
    vertical-align: middle;
    margin: 0;
}

body:is(#checkout, #cart) .custom-checkbox input[type="checkbox"],
body:is(#checkout, #cart) .custom-radio input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    position: static;
    opacity: 1;
    display: block;
    flex: none;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 2px solid #9ca3af;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}

body:is(#checkout, #cart) .custom-checkbox input[type="checkbox"] {
    border-radius: 6px;
}

body:is(#checkout, #cart) .custom-radio input[type="radio"] {
    border-radius: 50%;
}

body:is(#checkout, #cart) .custom-checkbox input[type="checkbox"]:hover,
body:is(#checkout, #cart) .custom-radio input[type="radio"]:hover {
    border-color: var(--co-green);
}

body:is(#checkout, #cart) .custom-checkbox input[type="checkbox"]:checked {
    border-color: var(--co-green);
    background: var(--co-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}

body:is(#checkout, #cart) .custom-radio input[type="radio"]:checked {
    border-color: var(--co-green);
    background: radial-gradient(circle, var(--co-green) 0 42%, #fff 46%);
}

body:is(#checkout, #cart) .custom-checkbox input[type="checkbox"]:focus-visible,
body:is(#checkout, #cart) .custom-radio input[type="radio"]:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(67, 183, 84, .3);
}

/* le décor historique du thème (span/icone qui suit l'input) n'est plus utilisé */
body:is(#checkout, #cart) .custom-checkbox input+span,
body:is(#checkout, #cart) .custom-radio input+span {
    display: none !important;
}

body:is(#checkout, #cart) .custom-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
}

body:is(#checkout, #cart) .custom-checkbox label>span:not(:first-child),
body:is(#checkout, #cart) .custom-checkbox label>em {
    display: inline;
}

body:is(#checkout, #cart) .custom-checkbox label input[type="checkbox"] {
    margin-top: 1px;
}

body:is(#checkout, #cart) .form-group.row .custom-checkbox {
    display: flex;
}

body:is(#checkout, #cart) .custom-checkbox:has(> label) {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

body:is(#checkout, #cart) .custom-checkbox>label {
    flex: 1;
    min-width: 0;
}

body:is(#checkout, #cart) .custom-checkbox>label:not(:has(input)) {
    display: block;
}

body:is(#checkout, #cart) .custom-checkbox>label p {
    margin: 0;
}

/* cases à cocher natives des formulaires (ex. « utiliser aussi cette adresse pour la facturation ») */
body:is(#checkout, #cart) section.checkout-step .form-group input[type="checkbox"]:not(.custom-checkbox input) {
    -webkit-appearance: none;
    appearance: none;
    flex: none;
    width: 20px;
    height: 20px;
    margin: 0 8px 0 0;
    vertical-align: -5px;
    border: 2px solid #9ca3af;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

body:is(#checkout, #cart) section.checkout-step .form-group input[type="checkbox"]:not(.custom-checkbox input):checked {
    border-color: var(--co-green);
    background: var(--co-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ------------------------------------------------------------------ */
/* Adresses (sélecteur)                                                */
/* ------------------------------------------------------------------ */
body:is(#checkout, #cart) .address-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin: 0 0 12px;
}

body:is(#checkout, #cart) .address-item {
    border: 1.5px solid var(--co-line-strong);
    border-radius: var(--co-r);
    background: #fff;
    padding: 14px 16px;
    margin: 0;
    float: none;
    width: auto;
    transition: border-color .15s, background .15s;
}

body:is(#checkout, #cart) .address-item.selected {
    border-color: var(--co-green);
    background: var(--co-green-l);
}

body:is(#checkout, #cart) .address-item header {
    padding: 0;
}

body:is(#checkout, #cart) .address-item .radio-block {
    display: flex;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
}

body:is(#checkout, #cart) .address-item .radio-block .custom-radio {
    margin-top: 2px;
}

body:is(#checkout, #cart) .address-item .address-alias {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

body:is(#checkout, #cart) .address-item .address {
    display: block;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--co-muted);
    margin-top: 4px;
}

body:is(#checkout, #cart) .address-item hr {
    margin: 10px 0;
    border-color: var(--co-line);
}

body:is(#checkout, #cart) .address-item .address-footer {
    display: flex;
    gap: 14px;
    font-size: 12px;
}

body:is(#checkout, #cart) .address-item .address-footer a {
    color: var(--co-ink);
    text-decoration: underline;
}

body:is(#checkout, #cart) .add-address a {
    font-size: 13px;
    font-weight: 600;
    color: var(--co-ink);
}

body:is(#checkout, #cart) .address-item.is-deleting {
    opacity: .45;
    pointer-events: none;
}

/* messages éphémères (ex. adresse supprimée) */
body:is(#checkout, #cart) .co-flash {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

body:is(#checkout, #cart) .co-flash--ok {
    background: var(--co-green-l);
    border: 1px solid #b9dfc0;
    color: #256b32;
}

body:is(#checkout, #cart) .co-flash--ko {
    background: #fdecee;
    border: 1px solid #f5b8be;
    color: #9b1c25;
}

/* ------------------------------------------------------------------ */
/* Livraison : options en cartes                                       */
/* ------------------------------------------------------------------ */
body:is(#checkout, #cart) .delivery-options {
    display: block;
}

body:is(#checkout, #cart) section.checkout-step .delivery-options .delivery-option {
    padding: 16px 18px !important;
    margin: 0 0 10px !important;
}

body:is(#checkout, #cart) .delivery-options .delivery-option {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 10px;
    padding: 16px 18px;
    border: 1.5px solid var(--co-line-strong);
    border-radius: var(--co-r);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

body:is(#checkout, #cart) .delivery-options .delivery-option:hover {
    border-color: #9ca3af;
}

body:is(#checkout, #cart) .delivery-options .delivery-option:has(input:checked) {
    border-color: var(--co-green);
    background: var(--co-green-l);
}

body:is(#checkout, #cart) .delivery-options .delivery-option {
    flex-wrap: wrap;
}

body:is(#checkout, #cart) .delivery-options .delivery-option>[class*="col-"] {
    width: auto;
    max-width: none;
    float: none;
    padding: 0;
}

body:is(#checkout, #cart) .delivery-options .delivery-option>.col-sm-1 {
    flex: none;
}

body:is(#checkout, #cart) .delivery-options .delivery-option>label {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

body:is(#checkout, #cart) .delivery-options .delivery-option>.lp-extra-content {
    flex: 0 0 100%;
    width: 100%;
}

/* on aplatit la grille bootstrap interne en une vraie grille CSS */
body:is(#checkout, #cart) .delivery-option label>.row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 0;
    row-gap: 2px;
    align-items: center;
    margin: 0;
}

body:is(#checkout, #cart) .delivery-option label>.row>div,
body:is(#checkout, #cart) .delivery-option label>.row>div>.row {
    display: contents;
}

body:is(#checkout, #cart) .delivery-option label [class*="col-"] {
    width: auto;
    max-width: none;
    float: none;
    padding: 0;
}

body:is(#checkout, #cart) .delivery-option .carrier_logo {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-right: 14px;
}

body:is(#checkout, #cart) .delivery-option .carrier_logo img {
    display: block;
    width: 44px;
    height: auto;
    max-height: 34px;
    object-fit: contain;
}

body:is(#checkout, #cart) .delivery-option .carrier_name {
    grid-column: 2;
    grid-row: 1;
}

body:is(#checkout, #cart) .delivery-option .carrier-name {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    text-transform: none;
}

body:is(#checkout, #cart) .delivery-option .carrier-delay {
    grid-column: 2;
    grid-row: 2;
    font-size: 12.5px;
    color: var(--co-muted);
    padding: 0 !important;
}

body:is(#checkout, #cart) .delivery-option .carrier-delay::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    margin: 0 6px -2px 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23ff9600' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

body:is(#checkout, #cart) .delivery-option .carrier-price {
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-self: end;
    margin-left: 16px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    padding: 0 !important;
}

/* contenu additionnel d'un transporteur (ex. point relais choisi) */
body:is(#checkout, #cart) .carrier-extra-content {
    display: block;
    margin: -4px 0 12px;
    padding: 0;
}

body:is(#checkout, #cart) .carrier-extra-content:empty,
body:is(#checkout, #cart) .carrier-extra-content:not(:has(*)) {
    display: none;
}

body:is(#checkout, #cart) .carrier-extra-content>div {
    width: 100%;
    max-width: none;
    float: none;
    padding: 0;
}

body:is(#checkout, #cart) .lp-extra-content {
    margin: 4px 0 0;
    padding: 14px 0 0 36px;
    border: 0;
    border-top: 1px dashed #b9dfc0;
    background: transparent;
    font-size: 13px;
    line-height: 1.5;
}

body:is(#checkout, #cart) .lp-extra-content br {
    display: none;
}

body:is(#checkout, #cart) .lp-extra-content .lp-parcel-client {
    display: block;
}

body:is(#checkout, #cart) .lp-extra-content .lp-parcel-name {
    font-weight: 700;
}

body:is(#checkout, #cart) .lp-extra-content .lp-parcel-address {
    color: var(--co-muted);
}

body:is(#checkout, #cart) .lp-extra-content .lp-select-parcel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 14px;
    border: 1.5px solid var(--co-line-strong);
    border-radius: 9px;
    background: #fff;
    color: var(--co-ink);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

body:is(#checkout, #cart) .lp-extra-content .lp-select-parcel::before {
    content: "";
    width: 15px;
    height: 15px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11.5A7 7 0 0 0 5 9.5C5 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

body:is(#checkout, #cart) .lp-extra-content .lp-select-parcel:hover {
    border-color: var(--co-green);
    background: var(--co-green-l);
}

body:is(#checkout, #cart) .order-options {
    margin-top: 16px;
}

body:is(#checkout, #cart) .order-options label {
    font-size: 13px;
}

body:is(#checkout, #cart) .order-options textarea {
    width: 100%;
    margin-top: 6px;
    border: 1.5px solid var(--co-line-strong);
    border-radius: 10px;
    padding: 10px 12px;
    font-family: inherit;
}

/* ------------------------------------------------------------------ */
/* Paiement : moyens de paiement en cartes                             */
/* ------------------------------------------------------------------ */
body:is(#checkout, #cart) .payment-options {
    display: block;
}

body:is(#checkout, #cart) .payment-options>div {
    margin: 0 0 10px;
    border: 1.5px solid var(--co-line-strong);
    border-radius: var(--co-r);
    background: #fff;
    overflow: hidden;
    transition: border-color .15s, background .15s;
}

body:is(#checkout, #cart) .payment-options>div:has(input[name="payment-option"]:checked) {
    border-color: var(--co-green);
    background: var(--co-green-l);
}

body:is(#checkout, #cart) .payment-options .payment-option {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 16px 18px;
}

body:is(#checkout, #cart) .payment-options .payment-option .custom-radio {
    float: none;
}

body:is(#checkout, #cart) .payment-options .payment-option label {
    display: flex;
    flex: 1;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-transform: none;
}

body:is(#checkout, #cart) .payment-options .payment-option label img {
    height: 22px;
    width: auto;
}

body:is(#checkout, #cart) .payment-options .additional-information,
body:is(#checkout, #cart) .payment-options .js-payment-option-form {
    padding: 0 18px 16px 54px;
    font-size: 13px;
    color: var(--co-muted);
}

body:is(#checkout, #cart) .payment-options .additional-information p {
    margin: 0 0 8px;
}

body:is(#checkout, #cart) .payment-options .additional-information,
body:is(#checkout, #cart) .payment-options .js-payment-option-form {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

body:is(#checkout, #cart) .payment-options .js-payment-option-form {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body:is(#checkout, #cart) .payment-options .additional-information .alert {
    margin: 0 0 10px;
    padding: 8px 12px;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
}

body:is(#checkout, #cart) .payment-options .additional-information label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 400;
    color: var(--co-ink);
    cursor: pointer;
}

body:is(#checkout, #cart) .payment-options .additional-information input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    flex: none;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 2px solid #9ca3af;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

body:is(#checkout, #cart) .payment-options .additional-information input[type="checkbox"]:checked {
    border-color: var(--co-green);
    background: var(--co-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* cases CGV */
body:is(#checkout, #cart) #conditions-to-approve {
    margin: 16px 0 0;
}

body:is(#checkout, #cart) #conditions-to-approve ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

body:is(#checkout, #cart) #conditions-to-approve li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 8px;
    padding: 14px 16px;
    border: 1.5px solid var(--co-line-strong);
    border-radius: 10px;
    background: #fafafa;
}

body:is(#checkout, #cart) #conditions-to-approve li:has(input:checked) {
    border-color: var(--co-green);
    background: var(--co-green-l);
}

body:is(#checkout, #cart) #conditions-to-approve .float-xs-left {
    float: none;
    flex: none;
    margin-top: 1px;
}

body:is(#checkout, #cart) #conditions-to-approve .condition-label {
    flex: 1;
    min-width: 0;
}

body:is(#checkout, #cart) section.checkout-step #conditions-to-approve .condition-label label {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
}

body:is(#checkout, #cart) #conditions-to-approve .condition-label a {
    color: var(--co-ink);
    font-weight: 600;
    text-decoration: underline;
}

body:is(#checkout, #cart) .co-terms-note {
    margin: 16px 0 0;
    font-size: 12.5px;
    color: var(--co-muted);
    text-align: center;
}

body:is(#checkout, #cart) .co-terms-note a {
    color: var(--co-ink);
    text-decoration: underline;
}

/* bouton final */
body:is(#checkout, #cart) #payment-confirmation {
    margin-top: 16px;
}

body:is(#checkout, #cart) #payment-confirmation .co-pay-btn,
body:is(#checkout, #cart) #payment-confirmation .btn.btn-primary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 54px;
    margin: 0;
    font-size: 16px;
}

body:is(#checkout, #cart) #payment-confirmation .co-pay-amount {
    font-weight: 800;
}

body:is(#checkout, #cart) .co-pay-legal {
    margin: 8px 0 0;
    font-size: 11.5px;
    color: var(--co-muted);
    text-align: center;
    text-transform: none;
}

body:is(#checkout, #cart) .co-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
}

body:is(#checkout, #cart) .co-pay-btn.is-loading {
    pointer-events: none;
    background: var(--co-green-d) !important;
    cursor: progress;
}

body:is(#checkout, #cart) .co-pay-btn.is-loading .co-spinner {
    display: inline-block;
    animation: co-spin .7s linear infinite;
}

body:is(#checkout, #cart) .co-pay-btn.is-loading .co-pay-label::after {
    content: "…";
}

body:is(#checkout, #cart) .co-pay-btn.is-loading .co-pay-amount {
    display: none;
}

@keyframes co-spin {
    to {
        transform: rotate(360deg);
    }
}

/* iframe Up2pay : masquée tant que le noyau ne l'a pas affichée (moyen choisi + CGV cochées) */
body:is(#checkout, #cart) .js-payment-binary {
    display: none;
}

body:is(#checkout, #cart) .co-binary-notes p {
    display: none;
    margin: 14px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    text-align: center;
    color: var(--co-muted);
}

body:is(#checkout, #cart) #checkout-payment-step:has(input.binary:checked):not(:has(#conditions-to-approve input[type="checkbox"]:not(:checked))) .co-binary-legal {
    display: block;
}

/* moyen « binaire » : le bouton du noyau est masqué, on n'affiche pas son texte légal seul */
body:is(#checkout, #cart) #checkout-payment-step:has(input.binary:checked) #payment-confirmation {
    margin-top: 0;
}

body:is(#checkout, #cart) #checkout-payment-step:has(input.binary:checked) #payment-confirmation {
    display: none;
}

/* iframe Up2pay */
body:is(#checkout, #cart) .up2pay-iframe {
    margin-top: 14px;
    border-radius: 10px;
    overflow: hidden;
}

body:is(#checkout, #cart) .up2pay-iframe iframe {
    display: block;
    border-radius: 10px;
}

/* ------------------------------------------------------------------ */
/* Récapitulatif (colonne de droite)                                   */
/* ------------------------------------------------------------------ */
body:is(#checkout, #cart) #js-checkout-summary {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--co-r);
    background: #fff;
    box-shadow: var(--co-shadow);
}

body:is(#checkout, #cart) #js-checkout-summary .card-block {
    padding: 20px 20px 4px;
}

body:is(#checkout, #cart) #js-checkout-summary h4.show_cart {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
}

body:is(#checkout, #cart) #js-checkout-summary h4.show_cart a {
    color: var(--co-ink);
    text-decoration: none;
}

body:is(#checkout, #cart) #js-checkout-summary .cart-summary-products p {
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--co-muted);
}

body:is(#checkout, #cart) #js-checkout-summary .cart-summary-products .btn {
    padding: 0;
    min-height: 0;
    background: transparent;
    color: var(--co-ink);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
}

body:is(#checkout, #cart) #js-checkout-summary .cart-summary-products .btn:hover {
    background: transparent;
}

body:is(#checkout, #cart) #js-checkout-summary .media-list {
    list-style: none;
    margin: 8px 0 12px;
    padding: 0;
}

body:is(#checkout, #cart) #js-checkout-summary .media-list li {
    padding: 10px 0;
    border-top: 1px solid var(--co-line);
}

body:is(#checkout, #cart) #js-checkout-summary .media-body,
body:is(#checkout, #cart) #js-checkout-summary .product-name {
    font-size: 12.5px;
}

body:is(#checkout, #cart) .cart-summary-line::before,
body:is(#checkout, #cart) .cart-summary-line::after {
    display: none !important;
    content: none !important;
}

body:is(#checkout, #cart) .cart-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 10px 0;
    font-size: 13.5px;
}

body:is(#checkout, #cart) .cart-summary-line .label {
    font-weight: 400;
    color: var(--co-ink);
}

body:is(#checkout, #cart) .cart-summary-line .value {
    font-weight: 700;
    white-space: nowrap;
}

body:is(#checkout, #cart) .cart-summary-totals {
    padding: 4px 20px 20px !important;
}

body:is(#checkout, #cart) .cart-summary-totals .cart-total {
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--co-line);
}

body:is(#checkout, #cart) .cart-summary-totals .cart-total .label {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
}

body:is(#checkout, #cart) .cart-summary-totals .cart-total .value {
    font-size: 22px;
    font-weight: 800;
}

body:is(#checkout, #cart) .cart-summary-totals .sub {
    font-size: 12px;
    color: var(--co-muted);
    font-weight: 400;
}

body:is(#checkout, #cart) #js-checkout-summary hr.separator {
    display: none;
}

body:is(#checkout, #cart) #js-checkout-summary .cart-voucher {
    padding: 0 20px 4px;
    font-size: 13px;
}

body:is(#checkout, #cart) #js-checkout-summary .block-promo {
    padding: 0;
    font-size: 13px;
}

body:is(#checkout, #cart) #js-checkout-summary .promo-code-button {
    padding: 0;
    margin: 0 0 8px;
}

body:is(#checkout, #cart) #js-checkout-summary .promo-code-button a {
    color: var(--co-ink);
    font-weight: 600;
    text-decoration: underline;
    padding: 0;
}

body:is(#checkout, #cart) #js-checkout-summary .promo-code form {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

body:is(#checkout, #cart) #js-checkout-summary .promo-code input.promo-input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 1.5px solid var(--co-line-strong);
    border-radius: 10px;
    padding: 0 12px;
}

body:is(#checkout, #cart) #js-checkout-summary .promo-code .btn {
    min-height: 42px;
    padding: 0 16px;
}

/* ------------------------------------------------------------------ */
/* Footer : réassurance                                                */
/* ------------------------------------------------------------------ */
body:is(#checkout, #cart) .co-footer {
    background: #fff;
    border-top: 1px solid var(--co-line);
    padding: 28px 0 22px;
    margin-top: 8px;
}

body:is(#checkout, #cart) .co-trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

body:is(#checkout, #cart) .co-trust li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

body:is(#checkout, #cart) .co-trust svg {
    flex: none;
    width: 34px;
    height: 34px;
    padding: 7px;
    border-radius: 10px;
    background: #fdecee;
    fill: none;
    stroke: var(--co-red);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    box-sizing: border-box;
}

body:is(#checkout, #cart) .co-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid var(--co-line);
    font-size: 12px;
    color: var(--co-muted);
}

body:is(#checkout, #cart) .co-legal a {
    color: var(--co-muted);
    text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Point relais : le modal du module La Poste devient un offcanvas     */
/* ------------------------------------------------------------------ */
#lp-map {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    z-index: 100001 !important;
    display: none !important;
    flex-direction: column;
    width: min(980px, 100vw) !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border-radius: 0;
    box-shadow: -16px 0 48px rgba(0, 0, 0, .22) !important;
    font-family: Poppins, Arial, Helvetica, sans-serif;
}

#lp-map.lp-modal-show {
    display: flex !important;
    animation: co-offcanvas-in .32s cubic-bezier(.22, .61, .36, 1);
}

@keyframes co-offcanvas-in {
    from {
        transform: translateX(100%);
    }

    to {
        transform: none;
    }
}

body:has(#lp-map.lp-modal-show) {
    overflow: hidden;
}

body:has(#lp-map.lp-modal-show)::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(17, 24, 39, .5);
    animation: co-fade-in .25s ease;
}

@keyframes co-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#lp-map #lp-map-inner {
    position: relative;
    display: grid;
    grid-template-columns: 400px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    background: #fff;
}

#lp-map #lp-map-inner::before {
    content: "Choisissez votre point de retrait";
    grid-column: 1 / -1;
    padding: 22px 76px 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 18px;
    font-weight: 700;
    color: #141414;
}

#lp-map #lp-map-inner .lp-close {
    position: absolute !important;
    top: 14px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f3f4f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 3.5l9 9M12.5 3.5l-9 9' fill='none' stroke='%23141414' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat !important;
    z-index: 5;
    cursor: pointer;
    transition: background-color .15s;
}

#lp-map #lp-map-inner .lp-close:hover {
    background-color: #e5e7eb;
}

/* liste des points (colonne de gauche) */
#lp-map #lp-map-inner #lp-pp-container {
    grid-column: 1;
    grid-row: 2;
    float: none;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 16px 16px 24px 24px;
    overflow-y: auto;
    border-right: 1px solid #e5e7eb;
    font-family: inherit;
}

#lp-map #lp-map-inner #lp-pp-container table,
#lp-map #lp-map-inner #lp-pp-container tbody,
#lp-map #lp-map-inner #lp-pp-container tr {
    display: block;
    width: 100%;
    border: 0;
}

#lp-map #lp-map-inner #lp-pp-container table td {
    display: block;
    position: relative;
    margin: 0 0 10px;
    padding: 14px 16px 14px 56px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #6b7280;
    font-size: 12.5px;
    line-height: 1.55;
    transition: border-color .15s, box-shadow .15s;
}

#lp-map #lp-map-inner #lp-pp-container table td:hover {
    border-color: var(--co-green-d);
    box-shadow: 0 2px 10px rgba(16, 24, 40, .08);
}

#lp-map #lp-map-inner #lp-pp-container table td .lp-parcel-point-title {
    display: block;
    width: auto;
    margin-bottom: 2px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    cursor: default;
}

#lp-map #lp-map-inner #lp-pp-container .lp-parcel-point-title a {
    color: #141414;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
}

#lp-map #lp-map-inner #lp-pp-container .lp-marker,
#lp-map #lp-map-canvas .lp-marker {
    background: #e8202d none !important;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
}

#lp-map #lp-map-inner #lp-pp-container .lp-marker {
    position: absolute;
    left: 16px;
    top: 14px;
}

#lp-map #lp-map-canvas .lp-marker-recipient {
    width: 34px !important;
    height: 34px !important;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
    background: #141414 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8M5 10v10h5v-6h4v6h5V10'/%3E%3C/svg%3E") center / 18px no-repeat !important;
    padding: 0;
    box-sizing: border-box;
}

#lp-map #lp-map-inner .lp-parcel-point-button {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 9px 12px;
    border: 1.5px solid #ff9600;
    border-radius: 9px;
    background: transparent;
    color: #ff9600 !important;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: background .15s;
}

#lp-map #lp-map-inner .lp-parcel-point-button:hover {
    background: #ff9600;
    color: #fff !important;
}

/* carte (colonne de droite) */
#lp-map #lp-map-inner #lp-map-container {
    grid-column: 2;
    grid-row: 2;
    float: none;
    width: auto;
    height: 100%;
    min-height: 0;
    padding: 0;
}

#lp-map #lp-map-inner #lp-map-container #lp-map-canvas {
    height: 100% !important;
    min-height: 320px;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 1160px) {
    body:is(#checkout, #cart) .co-header-inner {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body:is(#checkout, #cart) .co-secure {
        display: none;
    }
}

@media (max-width: 991px) {
    body:is(#checkout, #cart) .co-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    body:is(#checkout, #cart) .co-aside {
        position: static;
    }

    body:is(#checkout, #cart) .co-trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    body:is(#checkout, #cart) .co-container {
        padding: 0 12px;
    }

    body:is(#checkout, #cart) .co-header-inner {
        grid-template-columns: 1fr;
        gap: 10px;
        min-height: 0;
        padding-top: 12px;
        padding-bottom: 12px;
        justify-items: center;
    }

    body:is(#checkout, #cart) .co-logo img {
        height: 38px;
    }

    body:is(#checkout, #cart) .co-stepper {
        max-width: 100%;
    }

    body:is(#checkout, #cart) .co-step-label {
        display: none;
    }

    body:is(#checkout, #cart) .co-step--delivery .co-step-label {
        display: inline;
    }

    body:is(#checkout, #cart):has(#checkout-payment-step.-current) .co-step--delivery .co-step-label {
        display: none;
    }

    body:is(#checkout, #cart):has(#checkout-payment-step.-current) .co-step--payment .co-step-label {
        display: inline;
    }

    body:is(#checkout, #cart) .co-step:not(:last-child)::after {
        margin: 0 8px;
    }

    body:is(#checkout, #cart) .co-content {
        padding-top: 16px;
    }

    body:is(#checkout, #cart) .co-title {
        font-size: 20px;
        margin-bottom: 14px;
    }

    body:is(#checkout, #cart) section.checkout-step h1.step-title {
        padding: 16px;
    }

    body:is(#checkout, #cart) section.checkout-step .content {
        padding: 0 16px 18px;
    }

    body:is(#checkout, #cart) section.checkout-step.-complete:not(.-current) .co-summary {
        padding: 0 16px 16px 50px;
    }

    body:is(#checkout, #cart) button.continue {
        width: 100%;
        min-width: 0;
    }

    body:is(#checkout, #cart) .delivery-options .delivery-option {
        padding: 14px;
        gap: 10px;
    }

    body:is(#checkout, #cart) .delivery-option .carrier_logo img {
        width: 36px;
    }

    body:is(#checkout, #cart) .payment-options .additional-information,
    body:is(#checkout, #cart) .payment-options .js-payment-option-form {
        padding-left: 18px;
    }

    body:is(#checkout, #cart) .co-trust {
        grid-template-columns: 1fr;
    }

    #lp-map {
        width: 100vw !important;
    }

    #lp-map #lp-map-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    #lp-map #lp-map-inner #lp-pp-container {
        grid-column: 1;
        border-right: 0;
        padding: 12px;
    }

    #lp-map #lp-map-inner #lp-map-container {
        grid-column: 1;
    }

    #lp-map #lp-map-inner.with-map #lp-pp-container {
        display: none;
    }

    #lp-map #lp-map-inner.without-map #lp-map-container {
        display: none;
    }

    #lp-map #lp-map-inner::before {
        font-size: 16px;
        padding: 18px 64px 16px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {

    #lp-map.lp-modal-show,
    body:has(#lp-map.lp-modal-show)::after {
        animation: none;
    }

    body:is(#checkout, #cart) .co-spinner {
        animation-duration: 1.6s !important;
    }
}