/**
 * PrestaLoop - Copyright (c) 2026 MAGED.
 * SPDX-License-Identifier: LicenseRef-PrestaLoop-Proprietary-1.0
 * Proprietary commercial licence. See LICENSE.txt and THIRD_PARTY_NOTICES.md.
 * No unauthorized copying, redistribution or reuse of protected code.
 */

.fw-bold {
    font-weight: bold;
}

#cardholder-input-container, #pan-input-container, #cvv-input-container, #exp-input-container {
    height: 35px;
    border: 1px solid grey;
    color: black;
    margin-bottom: 16px;
    padding-left: 5px;
}

#_desktop_cart:first {
    display: none;
}

.align {
    display: flex;
    flex-direction: row;
    align-content: center;
    gap: 8px;
}

.psrecurrence-product-buttons,
.psrecurrence-product-buttons *,
.psrecurrence-product-buttons .option-card,
.psrecurrence-product-buttons .option-card1 {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

#add_to_cart_custom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    color: var(--psr-text-color, #232323);
    background-color: var(--psr-block-background, transparent);
}

#normal, #recurring_options {
    width: 100%;
    background-color: white;
    border-radius: 30px;
    padding: 16px;
}

#subscription {
    padding: 1rem;
    background: #fff;
    font-size: smaller;
    color: #7a7a7a;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

#subscription .psr-subscriptions-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#subscription .psr-subscriptions-table {
    width: 100%;
    min-width: 1500px;
    margin-bottom: 0;
    table-layout: auto;
}

#subscription .psr-subscriptions-table th,
#subscription .psr-subscriptions-table td {
    vertical-align: top;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

#subscription .psr-subscriptions-table th {
    white-space: normal;
}

#subscription .psr-subscriptions-table th:nth-child(2),
#subscription .psr-subscriptions-table td:nth-child(2) {
    min-width: 220px;
}

#subscription .psr-subscriptions-table th:nth-child(3),
#subscription .psr-subscriptions-table td:nth-child(3) {
    min-width: 90px;
}

#subscription .psr-subscriptions-table th:nth-child(4),
#subscription .psr-subscriptions-table td:nth-child(4),
#subscription .psr-subscriptions-table th:nth-child(6),
#subscription .psr-subscriptions-table td:nth-child(6) {
    min-width: 90px;
}

#subscription .psr-subscriptions-table th:nth-child(5),
#subscription .psr-subscriptions-table td:nth-child(5),
#subscription .psr-subscriptions-table th:nth-child(8),
#subscription .psr-subscriptions-table td:nth-child(8) {
    min-width: 120px;
}

#subscription .psr-subscriptions-table th:nth-child(7),
#subscription .psr-subscriptions-table td:nth-child(7),
#subscription .psr-subscriptions-table th:nth-child(9),
#subscription .psr-subscriptions-table td:nth-child(9) {
    min-width: 140px;
}

#subscription .psr-subscriptions-table th:nth-child(10),
#subscription .psr-subscriptions-table td:nth-child(10) {
    min-width: 220px;
    line-height: 1.45;
}

#subscription .psr-subscriptions-table th:nth-child(11),
#subscription .psr-subscriptions-table td:nth-child(11) {
    min-width: 150px;
}

#subscription .psr-subscriptions-table th:last-child,
#subscription .psr-subscriptions-table td:last-child {
    min-width: 175px;
}

#subscription .psr-subscriptions-table td.action .btn {
    width: 100%;
    max-width: 170px;
    white-space: normal;
}

#subscription .recu-popup,
#subscription .recu-popup-edit-qty,
#subscription .recu-popup-edit-recurence {
    display: none;
}

.psrecurrence-product-buttons .psr-rental-recurrence-value {
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background: #f7f7f7;
    font-weight: 600;
    text-align: center;
}

.subscription-item {
    padding: 1rem;
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.bold {
    font-weight: bold;
}

.recu-product-name {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.recu-product-qty {
    justify-content: end;
}

.recu-recap li {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.recu-opt {
    display: flex
;
    flex-direction: row;
    width: 500px;
    position: absolute;
    left: -477px;
    top: 115px;
    margin: 0;
    font-size: 10px !important;
    gap: 16px;
}
body#cart .product-line__actions .recu-opt {
    position: static;
    align-items: center;
}

body#cart .product-line__actions{
    flex-direction: column-reverse;
}

body#cart .product-line__actions .recu-opt .badge.recu{
    color: inherit;
}

.product-line-grid-right .cart-line-product-actions .recu-opt{
    line-height: 24px;
}

.recu-opt span {
    margin: 0;
    font-size: 10px !important;
}

.recu-select-option {
    display: none;
}

.recu-popup {
    position: absolute;
    width: 300px;
    height: 250px;
    background-color: white;
    padding: 16px;
    display: none;
}

.recu-popup-btns {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.recu-popup-edit-qty {
    display: none;
    width: 300px;
    /* height: 2450px; */
    position: fixed;
    background-color: white;
    top: calc(50% - 150px);
    left: calc(50% - 150px);
    padding: 32px;
    z-index: 999;
}

.recu-popup-edit-recurence {
    display: none;
    width: 300px;
    /* height: 2450px; */
    position: fixed;
    background-color: white;
    top: calc(50% - 150px);
    left: calc(50% - 150px);
    padding: 32px;
    z-index: 999;
}

.recu-popup-edit-btns {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 24px;
}

.recu-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.recu-popup {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    text-align: center;
    /*box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);*/
}

.recu-popup-btns {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}

.recu-popup-btns .btn {
    padding: 10px 20px;
    cursor: pointer;
}

body.psr-contract-modal-open {
    overflow: hidden;
}

.psr-contract-modal-backdrop {
    background: rgba(18, 28, 38, .48);
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    backdrop-filter: blur(1px);
    z-index: 2147483000;
}

.psr-contract-modal.psr-contract-modal--active,
body#module-psrecurrence-Subscription .psr-contract-modal,
body#module-psrecurrence-subscription .psr-contract-modal,
#subscription .psr-contract-modal {
    background: #fff !important;
    border: 3px solid #455a64 !important;
    border-radius: 14px !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 24px 70px rgba(18, 28, 38, .42) !important;
    box-sizing: border-box;
    height: auto !important;
    left: 50% !important;
    margin: 0 !important;
    max-height: calc(100vh - 40px);
    max-width: 440px;
    overflow: auto;
    outline: 2px solid rgba(255, 255, 255, .96);
    padding: 30px !important;
    position: fixed !important;
    text-align: left;
    top: 50% !important;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px) !important;
    z-index: 2147483001 !important;
}

.psr-contract-modal-frame {
    border: 3px solid #455a64 !important;
    border-radius: 11px;
    box-shadow: inset 0 0 0 1px #fff, 0 0 0 1px rgba(29, 44, 56, .2);
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.psr-contract-modal.psr-contract-modal--active {
    display: block !important;
}

.psr-contract-modal h2 {
    font-size: 24px;
    line-height: 1.2;
    margin: 0 36px 20px 0;
}

.psr-contract-modal-close {
    -webkit-appearance: none !important;
    appearance: none !important;
    align-items: center;
    background: #263b49 !important;
    border: 2px solid #fff !important;
    border-radius: 50%;
    color: #fff !important;
    cursor: pointer;
    display: flex;
    box-shadow: 0 2px 7px rgba(18, 28, 38, .12);
    height: 42px !important;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 14px !important;
    top: 14px !important;
    transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
    width: 42px !important;
    z-index: 4;
}

.psr-contract-modal-close__icon {
    color: inherit !important;
    display: block !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 30px !important;
    font-style: normal !important;
    font-weight: 300 !important;
    height: 34px !important;
    line-height: 31px !important;
    position: relative;
    text-align: center;
    width: 34px !important;
}

.psr-contract-modal-close__icon::before,
.psr-contract-modal-close__icon::after {
    content: none !important;
    display: none !important;
}

.psr-contract-modal-close:hover,
.psr-contract-modal-close:focus {
    background: #132731 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(18, 28, 38, .18);
    outline: 2px solid #25b9d7;
    outline-offset: 1px;
    transform: rotate(5deg) scale(1.04);
}

.psr-contract-modal input[type="number"],
.psr-contract-modal select {
    box-sizing: border-box;
    min-height: 38px;
    width: 100%;
}

.psr-contract-modal .recu-popup-btns,
.psr-contract-modal .recu-popup-edit-btns,
.psr-contract-modal .recu-popup-recurence-btns {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 24px;
}

.psr-contract-modal .psr-cancel-subscription-actions {
    justify-content: center;
}

.psr-contract-modal .delete-subscription {
    white-space: normal;
}

@media (max-width: 480px) {
    .psr-contract-modal.psr-contract-modal--active,
    body#module-psrecurrence-Subscription .psr-contract-modal,
    body#module-psrecurrence-subscription .psr-contract-modal,
    #subscription .psr-contract-modal {
        padding: 24px 20px !important;
    }

    .psr-contract-modal .recu-popup-edit-btns,
    .psr-contract-modal .recu-popup-recurence-btns {
        align-items: stretch;
        flex-direction: column;
    }
}

#add_to_cart_custom .psr-featured-tag {
    background: var(--psr-featured-background, #28a745);
    color: var(--psr-featured-text, #fff);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    padding: 6px 10px;
    position: absolute;
    z-index: 4;
}

#add_to_cart_custom .psr-featured-position--top_left { left: 10px; top: 10px; }
#add_to_cart_custom .psr-featured-position--top_right { right: 10px; top: 10px; }
#add_to_cart_custom .psr-featured-position--bottom_left { bottom: 10px; left: 10px; }
#add_to_cart_custom .psr-featured-position--bottom_right { bottom: 10px; right: 10px; }
#add_to_cart_custom .psr-featured-style--pill { border-radius: 999px; }
#add_to_cart_custom .psr-featured-style--rounded { border-radius: 6px; }
#add_to_cart_custom .psr-featured-style--ribbon {
    clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%);
    padding-right: 17px;
}

#add_to_cart_custom .psr-discount-style--circle {
    align-items: center;
    border-radius: 50%;
    display: flex;
    height: 52px;
    justify-content: center;
    min-width: 52px;
    padding: 4px;
    text-align: center;
}

#add_to_cart_custom .psr-discount-style--rounded { border-radius: 9px; }
#add_to_cart_custom .psr-discount-style--ribbon {
    border-radius: 0;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 8px 100%, 0 50%);
    padding-left: 14px;
    padding-right: 14px;
}
#add_to_cart_custom .psr-discount-style--sticker {
    border: 2px dashed rgba(255, 255, 255, .82);
    border-radius: 45% 55% 48% 52%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .2);
    transform: rotate(-4deg);
}
#add_to_cart_custom .psr-discount-style--crossed {
    background: transparent;
    color: var(--psr-badge-background, #083700);
    font-weight: 800;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}
#add_to_cart_custom .psr-discount-style--bubble { border-radius: 14px 14px 14px 2px; }

#add_to_cart_custom .psr-original-price-crossed {
    color: var(--psr-text-color, #232323);
    display: inline-block;
    font-size: .9em;
    margin-right: 8px;
    opacity: .65;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

#add_to_cart_custom .psr-marketing-information {
    border-top: 1px dashed var(--psr-border-color, #ccc);
    color: var(--psr-accent-color, #083700);
    font-size: 12px;
    font-weight: 600;
    list-style: none;
    margin: 10px 0 0;
    padding: 8px 0 0;
    text-align: left;
}

#add_to_cart_custom .psr-marketing-information li {
    margin: 3px 0;
}

.recu-popup3 {
    background: white;
    padding: 2rem;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    text-align: center;
}
.autocomplete-results {
  position: absolute;
  z-index: 1000;
  background-color: #fff;
  border: 1px solid #ccc;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
}

.autocomplete-results div {
  padding: 8px;
  cursor: pointer;
}

.autocomplete-results div:hover {
  background-color: #f0f0f0;
}

ul.rec-reassurence {
    text-align: left;
}

ul.rec-reassurence li.rec-option::before {
    content: "✔";
    color: var(--psr-accent-color, #083700);
    font-weight: bold;
    margin-right: 8px;
}

/* Cache les inputs radio */
#add_to_cart_custom input[type="radio"] {
    display: none;
}
/* Style des cartes */
#add_to_cart_custom .option-card {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--psr-border-color, #ccc);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: var(--psr-card-background, #fff);
    color: var(--psr-text-color, #232323);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#add_to_cart_custom .content,
#add_to_cart_custom .content *,
#add_to_cart_custom .rec-option,
#add_to_cart_custom .psr-recurrence-selector {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}
/* Permet de cliquer sur toute la carte */
#add_to_cart_custom .option-card label {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0;
}
#add_to_cart_custom .option-card h4 {
    margin-bottom: 0;
}
#recurring_options .option-card h4 {
    text-align: left;
    margin-left: 26px;
}
/* Style du bouton radio personnalisé */
#add_to_cart_custom .option-card .custom-radio {
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: white;
}
#add_to_cart_custom .option-card .custom-radio::after {
    content: "";
    width: 14px;
    height: 14px;
    background: transparent;
    border-radius: 50%;
    display: flex;
}
/* Style de la pillule "Économisez -5%" */
#add_to_cart_custom .discount-badge {
    background: #083700;
    color: white;
    font-size: small;
    /* font-weight: bold; */
    padding: 2px 10px;
    border-radius: 20px;
    position: absolute;
    top: -10px;
    right: 11px;
    width: fit-content;
}
/* Appliquer le style quand l'option est sélectionnée */
#add_to_cart_custom input[type="radio"]:checked + .option-card {
    border-color: var(--psr-accent-color, #083700);
}
/* Bouton radio actif */
#add_to_cart_custom input[type="radio"]:checked + .option-card label .custom-radio {
    border-color: #ccc;
    background: var(--psr-accent-color, #083700);
}
#add_to_cart_custom input[type="radio"]:checked + .option-card label .custom-radio::after {
    content: "✔";
    font-size: 14px;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Effet au survol */
#add_to_cart_custom .option-card:hover {
    border-color: var(--psr-accent-color, #aaa);
    background: var(--psr-option-hover-background, #f5f7f5);
}
#add_to_cart_custom input[type="radio"] + fieldset .content .toHide {
    display: none;
}
#add_to_cart_custom input[type="radio"]:checked + fieldset .content .toHide {
    display: block !important;
}

/* The configured periodicity selector is rendered inline in the recurring card. */
#add_to_cart_custom #recur:not(:checked) + fieldset .psr-recurrence-panel {
    display: none;
}

#add_to_cart_custom #recur:checked + fieldset .psr-recurrence-panel {
    display: block !important;
}

#add_to_cart_custom .psr-recurrence-panel {
    margin: 0 16px 16px;
    padding: 14px;
    border-top: 1px solid var(--psr-border-color, #d7d7d7);
}

#add_to_cart_custom .psr-recurrence-selector__header h3 {
    margin: 0 0 4px;
    color: var(--psr-text-color, #232323);
    font-size: 1rem;
}

#add_to_cart_custom .psr-recurrence-selector__header p {
    margin: 0 0 12px;
}

#add_to_cart_custom .psr-recurrence-choices-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 10px;
}

#add_to_cart_custom .psr-recurrence-choices-buttons .option-card1 {
    width: auto;
    min-width: 0;
    border: 1px solid var(--psr-border-color, #d7d7d7);
    border-radius: 5px;
    background: var(--psr-card-background, #fff);
}

#add_to_cart_custom .psr-recurrence-choices-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#add_to_cart_custom .psr-recurrence-choices-vertical .option-card1 {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--psr-border-color, #d7d7d7);
    border-radius: 5px;
    background: var(--psr-card-background, #fff);
}

#add_to_cart_custom .psr-recurrence-choices-buttons input[type="radio"]:focus + .option-card1,
#add_to_cart_custom .psr-recurrence-choices-vertical input[type="radio"]:focus + .option-card1 {
    outline: 3px solid rgba(8, 55, 0, .22);
    outline-offset: 2px;
}

@media (max-width: 599px) {
    #add_to_cart_custom .psr-recurrence-choices-buttons {
        grid-template-columns: 1fr;
    }
}

#add_to_cart_custom .psr-rental-periodicity-information {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--psr-border-color, #d7d7d7);
    border-radius: 5px;
    background: var(--psr-card-background, #fff);
}
/*.product-actions.js-product-actions .product-prices.js-product-prices{
   margin-top: 4.2rem;
}*/
#add_to_cart_custom #recurring_options {
     width: 100%;
     background-color: inherit;
     border-radius: inherit;
     padding: inherit;
}

@media (max-width: 599px) {
    body#product .product-actions .card {
        flex-direction: column !important;
    }
}
.recurence_summary .media-body {
  display: block !important;
}
.card.recurence_summary {
  width: calc(100% + 30px);
  left: -15px;
}

body#cart .recu-select-link a {
    border-radius: 0px;
    color: #b08f40;
    font-size : 14px;
    font-weight : 400;
}

body#checkout #js-checkout-summary + .card.recurence_summary {
    display: none;
}

/* Styles du dialog */
#dialog {
    position: fixed;
    top: 0;
    right: -25vw; /* Caché par défaut */
    width: 25vw;
    height: 100vh;
    background: var(--psr-card-background, #fff);
    color: var(--psr-text-color, #232323);
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    overflow-y: auto;
    transition: right 0.3s ease-in-out;
    z-index: 99999;
    text-align: left;
    cursor: default;
}
/* Classe pour afficher le dialog */
#dialog.open1 {
    right: 0;
}
/* Style du bouton de fermeture */
#closeDialog {
   background: var(--psr-button-background, #083600);
   color: var(--psr-button-text, #fff);
   border: none;
   padding: 10px;
   width: 100%;
   margin-top: 10px;
   position: absolute;
   bottom: 10px;
}
#add_to_cart_custom1 {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

#add_to_cart_custom1 .option-card1 {
    flex: 1 1 9rem;
    width: auto;
    max-width: 100%;
}

#add_to_cart_custom1 input[type="radio"] {
    display: none;
}

#add_to_cart_custom1 .option-card1 {
    position: relative;
}

#add_to_cart_custom1 .option-card1 label {
    width: 100%;
    height: 100%;
    display: flex;
    cursor: pointer;
    margin-bottom: 0;
    align-items: start;
    margin-left: 15px;
}

#add_to_cart_custom1 .option-card1 h4 {
    margin-bottom: 0;
    margin-left: 30px;
}

#add_to_cart_custom1 .option-card1 .custom-radio1 {
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: absolute;
    top: -2px;
    display: flex;
    justify-content: center;
    transition: all 0.3s ease;
    background: #fff
}

#add_to_cart_custom .option-card1 .custom-radio1::after {
    content: "";
    width: 14px;
    height: 14px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    padding-top: 5px;
}

#add_to_cart_custom1 input[type="radio"]:checked+.option-card1 label .custom-radio1 {
    border-color: #ccc;
    background: var(--psr-accent-color, #083700)
}

#add_to_cart_custom1 input[type="radio"]:checked+.option-card1 label .custom-radio1::after {
    content: "✔";
    font-size: 14px;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center
}

#add_to_cart_custom1 .option-card:hover {
    border-color: #aaa
}

#add_to_cart_custom .psr-recurrence-select {
    width: 100%;
    margin-top: 16px;
    color: var(--psr-text-color, #232323);
    background: var(--psr-card-background, #fff);
    border-color: var(--psr-border-color, #ccc);
}

#add_to_cart_custom .psr-recurrence-choices-list {
    display: block;
}

#add_to_cart_custom .psr-recurrence-choices-list .option-card1 {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid var(--psr-border-color, #ccc);
    border-radius: 5px;
    background: var(--psr-card-background, #fff);
}

#add_to_cart_custom .psr-recurrence-choices-list .option-card1:hover {
    background: var(--psr-option-hover-background, #f5f7f5);
}

#add_to_cart_custom #closeDialog:hover,
#add_to_cart_custom .add-to-cart-btn .add-to-cart:hover {
    color: var(--psr-button-hover-text, #fff);
    background: var(--psr-button-hover-background, #0b4d00);
}

#add_to_cart_custom .add-to-cart-btn .add-to-cart {
    color: var(--psr-button-text, #fff);
    background: var(--psr-button-background, #083700);
    border-color: var(--psr-button-background, #083700);
}

#add_to_cart_custom .discount-badge {
    color: var(--psr-badge-text, #fff);
    background: var(--psr-badge-background, #083700);
}

#add_to_cart_custom h4,
#add_to_cart_custom .rec-option,
#add_to_cart_custom #dialog p {
    color: var(--psr-text-color, #232323);
}
#dialog .action {
    position: relative;
    cursor: pointer;
}
#dialog span.annuler:after {
    content: '<';
    font-weight: bold;
    font-size: xx-large;
    position: absolute;
    left: -13px;
    top: 0;
}
#dialog span.annuler {
    margin-left: 10px;
}

@media (max-width: 768px) {
#dialog.open1 {
    width: 100vw;
    height: 100%;
    right: 0;
    z-index: 999;
}
#closeDialog {
    background: #083600;
    color: #fff;
    border: none;
    padding: 30px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}
#dialog{
right: -25vw;
z-index:0;
}
body#product .row.product-container.js-product-container {
    margin: 2px;
    padding: 5px;
}

}

@media (max-width: 767px) {
body#module-psrecurrence-Subscription #subscription .psr-subscriptions-table-wrap {
        overflow: visible !important;
    }
body#module-psrecurrence-Subscription #subscription .psr-subscriptions-table {
        min-width: 0;
    }
body#module-psrecurrence-Subscription #subscription .psr-subscriptions-table thead {
        display: none; /* Cache l'en-tête */
    }
body#module-psrecurrence-Subscription #subscription .psr-subscriptions-table tbody,
body#module-psrecurrence-Subscription #subscription .psr-subscriptions-table tr {
        display: block;
        width: 100%;
    }
body#module-psrecurrence-Subscription #subscription .psr-subscriptions-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        padding: 10px;
        background: #f9f9f9;
    }
body#module-psrecurrence-Subscription #subscription .psr-subscriptions-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px;
        border-bottom: 1px solid #ddd;
    }
body#module-psrecurrence-Subscription #subscription .psr-subscriptions-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #333;
    }
body#module-psrecurrence-Subscription td.action{
    flex-direction:column;
}
body#module-psrecurrence-Subscription td.address{
    flex-direction: column;
}
body#module-psrecurrence-Subscription td.address p {
    text-align: right;
}
}

@media (max-width: 599px) {
    #add_to_cart_custom1 {
        flex-direction: column;
    }

    #add_to_cart_custom1 .option-card1 {
        flex-basis: auto;
        width: 100%;
    }
}
#module-psrecurrence-Subscription table td.action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

#module-psrecurrence-Subscription table td.action > .btn {
    margin: 0 !important;
}
#module-psrecurrence-Subscription table p {
    margin-bottom: 0;
    color: inherit;
}

body#product div#dialog button {
    cursor: pointer;
}
body#product .abonnement_price {
  position: absolute;
  right: 5px;
  top: 15px;
  font-family: 'Manrope',arial,helvetica,sans-serif !important;
  font-size: large;
  font-weight: bold;
}

select[name="reccurence"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #f8f9fa;
    border: 2px solid #083700;
    border-radius: 25px;
    padding: 4px 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease-in-out;
    width: 150px;
    text-align: center;
    display: none;
}

/* Ajouter une icône de flèche personnalisée */
select[name="reccurence"] {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="black"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}

/* Effet au survol */
select[name="reccurence"]:hover {
    background-color: #e9ecef;
}

/* Effet au focus */
select[name="reccurence"]:focus {
    border-color: #083700;
    box-shadow: 0 0 5px rgb(3 57 0 / 50%);
}

/* Styles pour les options */
select[name="reccurence"] option {
    background: #fff;
    color: #333;
    font-size: 14px;
    padding: 5px;
}

/* Couleur au survol dans la liste déroulante (uniquement pour certains navigateurs) */
select[name="reccurence"] option:hover {
    background: #083700;
    color: #fff;
}

/* Style pour l'option sélectionnée */
select[name="reccurence"] option:checked {
    background-color: #083700;
    color: #fff;
    font-weight: bold;
}

body#cart .recu-opt span.recu-option-name:before {
    content: "📅";
    font-weight: 900;
    font-size: 20px;
    color: #ffff;
    margin-right: 6px;
}

body#cart .recu-opt span {
    font-size: 15px !important;
}

body#cart .recu-select-link a {
    background: inherit !important;
}

#add_to_cart_custom1 input[type="radio"] { display: none; } /* si tu veux masquer les radios */
#add_to_cart_custom1 .option-card1 { cursor: pointer; }

#add_to_cart_custom1 input[type="radio"]:checked + fieldset .custom-radio1 {
  outline: 2px solid currentColor; /* exemple visuel */
}
#add_to_cart_custom1 input[type="radio"]:checked + fieldset {
  border-color: var(--primary); /* autre exemple visuel */
}

.user-info.pm_subscription {
    float: right;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
}

.pm_subscription .psr-subscriptions-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none;
}

.pm_subscription .psr-subscriptions-button .material-icons {
    font-size: 20px;
}

body#module-psrecurrence-Subscription .btn{
    font-size: smaller;
}
body#module-psrecurrence-Subscription th{
    text-align: center;
}
#content_payment_error{
    margin-top: 1rem;
}
body#module-psrecurrence-Subscription #payment_error {
    padding: 1rem;
    background: #fff;
    font-size: smaller;
    color: #7a7a7a;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body#module-psrecurrence-Subscription #payment_error td{
    text-align: center;
}
.hidden {
  display: none !important;
}
.psr-payment-alert{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;

  border:1px solid #efd6b0;     /* bordure douce */
  border-radius:4px;
  padding:14px 16px;

  box-shadow:0 10px 22px rgba(0,0,0,.12);
}

.psr-payment-alert__left{
  display:flex;
  align-items:flex-start;
  gap:12px;
  min-width:0;
}

.psr-payment-alert__icon{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-top:2px;
}

.psr-payment-alert__content{
  min-width:0;
}

.psr-payment-alert__title{
  font-weight:700;
  color:#1f2937;
  line-height:1.2;
  margin-bottom:2px;
}

.psr-payment-alert__text{
  color:#374151;
  font-size:14px;
  line-height:1.35;
  white-space:normal;
}

.psr-payment-alert__btn{
  flex:0 0 auto;
  background:#214c34;          /* vert foncé */
  color:#fff !important;
  text-decoration:none;
  font-weight:600;

  border-radius:9px;
  transition:transform .05s ease, background .15s ease;
  text-transform: none;
  font-size: smaller;
}

body#cart .edit_recu {
    display: contents !important;
}

.psr-payment-alert__btn:hover{
  cursor: pointer;
}

.psr-payment-alert__btn:active{
  transform:translateY(1px);
}

.next-shipment-text{ cursor:pointer; }
.next-shipment-loader{
  display:inline-block;
  width:12px; height:12px;
  border:2px solid rgba(0,0,0,.2);
  border-top-color: rgba(0,0,0,.7);
  border-radius:50%;
  animation: nsSpin .7s linear infinite;
}
@keyframes nsSpin { to { transform: rotate(360deg); } }

/* Responsive: bouton passe en dessous si besoin */
@media (max-width:576px){
  .psr-payment-alert{
    flex-direction:column;
    align-items:stretch;
  }
  .psr-payment-alert__btn{
    text-align:center;
    width:100%;
  }
}
.pm_subscription .pm-subscription-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 4px;
}

/* Subscription delivery journey (2.1.6). */
.psr-delivery-settings,
.psr-relay-selector-page {
    max-width: 840px;
    margin: 0 auto;
    padding: 16px 0 40px;
}

.psr-selector-intro {
    margin: 0 0 24px;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.55;
}

.psr-delivery-notice {
    display: flex;
    gap: 14px;
    margin: 0 0 24px;
    padding: 18px 20px;
    border: 1px solid #b7dceb;
    border-radius: 8px;
    background: #f2fbfd;
    color: #25364a;
    line-height: 1.5;
}

.psr-delivery-notice-warning {
    border-color: #edc77e;
    background: #fff8e6;
    color: #684515;
}

.psr-delivery-notice-neutral {
    border-color: #c9d7e5;
    background: #f7fafc;
}

.psr-delivery-notice strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}

.psr-delivery-notice p {
    margin: 0;
}

.psr-notice-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-weight: 700;
}

.psr-delivery-card {
    margin: 0 0 24px;
    padding: 24px;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(31, 41, 55, .05);
}

.psr-delivery-card h2 {
    margin: 0 0 20px;
    color: #1f2937;
    font-size: 1.25rem;
    line-height: 1.3;
}

.psr-subscription-summary h2 {
    margin-bottom: 14px;
    color: #6b7280;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.psr-delivery-card h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 1.08rem;
}

.psr-subscription-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 6px;
    color: #4b5563;
}

.psr-subscription-next {
    margin: 0 0 12px;
    color: #374151;
    font-weight: 600;
}

.psr-subscription-summary .psr-secondary-link {
    color: #667085;
    font-size: .92rem;
}

.psr-secondary-link,
.psr-back-link,
.psr-link-button {
    color: #2563eb;
    text-decoration: none;
}

.psr-secondary-link:hover,
.psr-back-link:hover,
.psr-link-button:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.psr-back-link,
.psr-link-button {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

#psr-relay-return-form {
    margin: 24px 0 0;
}

.psr-location-card {
    display: flex;
    gap: 14px;
    padding: 18px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #f8fafc;
}

.psr-location-card-new {
    margin-bottom: 20px;
    border-color: #9fd8bd;
    background: #f1fbf6;
}

.psr-location-card-current {
    border-color: #ead8b5;
    background: #fff8e8;
}

.psr-location-icon {
    flex: 0 0 auto;
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    flex-basis: 44px;
    color: #2563eb;
}

.psr-location-icon svg {
    display: block;
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.psr-location-card > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    line-height: 1.45;
}

.psr-location-carrier {
    color: #4b5563;
    font-size: .9rem;
}

.psr-delivery-settings .form-group {
    margin-bottom: 22px;
}

.psr-delivery-settings label {
    display: block;
    margin-bottom: 8px;
    color: #1f2937;
    font-weight: 600;
}

.psr-delivery-settings select.form-control {
    width: 100%;
    min-height: 48px;
    padding: 8px 16px;
    border: 1px solid #aeb7c2;
    border-radius: 6px;
    background-color: #fff;
    color: #111827;
}

.psr-delivery-settings select.form-control:focus {
    border-color: #2563eb;
    outline: 3px solid rgba(37, 99, 235, .18);
    box-shadow: none;
}

.psr-selected-carrier {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #aeb7c2;
    border-radius: 6px;
    background: #f8fafc;
}

.psr-selected-carrier-dot {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border: 3px solid #2563eb;
    border-radius: 50%;
    background: #fff;
}

.psr-selected-carrier strong,
.psr-selected-carrier small {
    display: block;
}

.psr-selected-carrier small,
.psr-field-help {
    color: #667085;
    font-size: .9rem;
}

.psr-field-help {
    margin: -2px 0 10px;
    line-height: 1.45;
}

.psr-address-add {
    margin: 9px 0 0;
    color: #4b5563;
    font-size: .92rem;
}

.psr-address-add a {
    margin-left: 4px;
}

.psr-relay-help {
    margin: -8px 0 22px;
    color: #6b7280;
    font-size: .9rem;
}

.psr-delivery-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.psr-delivery-settings .btn,
.psr-relay-selector-page .btn {
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 6px;
}

.psr-delivery-settings .psr-primary-action,
.psr-relay-selector-page .psr-primary-action {
    padding-right: 24px;
    padding-left: 24px;
    font-size: 1rem;
    font-weight: 600;
}

.psr-delivery-success {
    display: flex;
    gap: 18px;
    padding: 24px;
    border: 1px solid #9fd8bd;
    border-radius: 10px;
    background: #f1fbf6;
}

.psr-delivery-success-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #238f54;
    color: #fff;
    font-size: 1.2rem;
}

.psr-delivery-success h2 {
    margin: 3px 0 8px;
    font-size: 1.3rem;
}

.psr-delivery-success p {
    margin: 0 0 18px;
}

.psr-search-address-card address {
    margin: 0;
    color: #374151;
    font-style: normal;
    line-height: 1.55;
}

.psr-search-address {
    display: flex;
    gap: 14px;
    margin: 14px 0 16px;
    padding: 16px;
    border-radius: 8px;
    background: #f8fafc;
}

.psr-selector-launch,
.psr-friendly-carrier-error {
    margin: 0 0 24px;
}

.psr-selector-launch h2 {
    margin: 0 0 14px;
    color: #1f2937;
    font-size: 1.2rem;
}

.psr-selector-state {
    margin: 0 0 24px;
    padding: 14px 16px;
    border-radius: 6px;
    background: #eef6ff;
    color: #1f4f82;
}

.psr-selector-state-error {
    background: #fff1f2;
    color: #9f1239;
}

.psr-selector-state-empty {
    background: #fff8e6;
    color: #7c5200;
}

.psr-selector-state-loading::before {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 9px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    content: "";
    vertical-align: -2px;
    animation: psrRelaySpin .7s linear infinite;
}

.psr-selector-state-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
}

.psr-carrier-widget-card.psr-is-loading .carrier-extra-content {
    opacity: .45;
    pointer-events: none;
}

@keyframes psrRelaySpin {
    to { transform: rotate(360deg); }
}

.psr-carrier-technical-option {
    position: absolute !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

.psr-carrier-widget-card .carrier-extra-content {
    display: block !important;
    min-height: 120px;
}

.psr-carrier-widget-card.psr-direct-widget-mode {
    min-height: 0;
    margin-bottom: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.psr-carrier-widget-card.psr-direct-widget-mode > h2,
.psr-carrier-widget-card.psr-direct-widget-mode #pl-dropoff {
    position: absolute !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

.psr-carrier-widget-card.psr-direct-widget-mode .carrier-extra-content {
    min-height: 0;
}

.psr-carrier-widget-card #pl-dropoff-button,
.psr-carrier-widget-card .mondialrelay_save-relay {
    width: auto;
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 6px;
    text-transform: none;
    white-space: normal;
}

.psr-carrier-widget-card #mondialrelay_widget .MRW-Title,
.psr-carrier-widget-card #mondialrelay_widget .MRW-Header {
    border: 1px solid #dfe3e8 !important;
    background: #f8fafc !important;
    color: #25364a !important;
}

.psr-selected-point-card form {
    margin: 0;
}

.psr-selected-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.psr-relay-selector-page [hidden],
.psr-delivery-settings [hidden] {
    display: none !important;
}

@media (max-width: 767px) {
    .psr-delivery-settings,
    .psr-relay-selector-page {
        padding-top: 8px;
    }

    .psr-delivery-card {
        padding: 18px;
    }

    .psr-delivery-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .psr-delivery-actions .btn,
    .psr-selector-launch .btn,
    .psr-selected-point-card .btn,
    .psr-carrier-widget-card #pl-dropoff-button,
    .psr-carrier-widget-card .mondialrelay_save-relay {
        width: 100%;
        text-align: center;
    }

    .psr-selected-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Structured delivery journey refinements. */
body#module-psrecurrence-Subscription .page-header h1,
body#module-psrecurrence-Subscription .page-title-section {
    font-size: clamp(1.875rem, 4vw, 2.125rem);
    line-height: 1.2;
}

.psr-delivery-settings,
.psr-relay-selector-page {
    padding-top: 8px;
    font-size: 15px;
    line-height: 1.5;
}

.psr-delivery-steps {
    display: flex;
    margin: 0 0 28px;
    color: #7b8491;
}

.psr-delivery-step {
    position: relative;
    display: flex;
    min-width: 0;
    flex: 1 1 0;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.psr-delivery-step:not(:last-child)::after {
    height: 1px;
    flex: 1 1 auto;
    margin: 0 10px;
    background: #d9dee5;
    content: "";
}

.psr-delivery-step b {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd2da;
    border-radius: 50%;
    background: #fff;
    color: #667085;
    font-weight: 600;
}

.psr-delivery-step.is-active {
    color: #202833;
    font-weight: 600;
}

.psr-delivery-step.is-active b,
.psr-delivery-step.is-complete b {
    border-color: var(--psr-accent, #e91e63);
    background: var(--psr-accent, #e91e63);
    color: #fff;
}

.psr-delivery-notice {
    margin-bottom: 30px;
    padding: 18px 20px;
}

.psr-delivery-notice p span {
    display: block;
}

.psr-notice-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    border-width: 1.5px;
    font-size: 14px;
}

.psr-delivery-card {
    margin-bottom: 30px;
    padding: 20px;
    border-color: #e1e5ea;
    border-radius: 9px;
    box-shadow: none;
}

.psr-delivery-card h2,
.psr-delivery-section > h2 {
    margin: 0 0 14px;
    color: #202833;
    font-size: 23px;
    line-height: 1.25;
}

.psr-subscription-summary h2,
.psr-search-address-card h2 {
    margin-bottom: 14px;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .065em;
    text-transform: uppercase;
}

.psr-subscription-summary h3,
.psr-location-card strong {
    font-size: 18px;
    line-height: 1.35;
}

.psr-subscription-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    column-gap: 38px;
    row-gap: 5px;
    margin: 0 0 5px;
}

.psr-subscription-meta b,
.psr-subscription-next b {
    color: #374151;
    font-weight: 600;
}

.psr-subscription-next {
    margin-bottom: 12px;
    font-weight: 400;
}

.psr-summary-link {
    display: inline-block;
    margin-top: 3px;
}

.psr-delivery-section {
    margin: 0 0 30px;
}

.psr-delivery-section .psr-delivery-card {
    margin-bottom: 0;
}

.psr-current-delivery-card {
    border-color: #ead8b5;
    background: #fff9ec;
}

.psr-location-card,
.psr-location-card-current,
.psr-current-delivery-card .psr-location-card {
    padding: 0;
    border: 0;
    background: transparent;
}

.psr-location-card-new {
    padding: 18px;
    border: 1px solid #b9dfca;
    background: #f2faf6;
}

.psr-location-icon,
.psr-location-icon svg {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
}

.psr-location-icon {
    flex: 0 0 28px !important;
}

.psr-location-card > div {
    gap: 4px;
}

.psr-location-card .psr-location-carrier {
    margin-bottom: 7px;
    color: #667085;
    font-size: 14px;
}

.psr-new-delivery-card .form-group:last-of-type {
    margin-bottom: 20px;
}

.psr-address-field label {
    margin-bottom: 3px;
}

.psr-address-field .psr-field-help {
    margin: 0 0 12px;
}

.psr-address-select-card {
    position: relative;
    display: flex;
    min-height: 64px;
    align-items: center;
    padding: 9px 46px 9px 15px;
    border: 1px solid #aeb7c2;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.psr-address-select-card:focus-within {
    border-color: var(--psr-accent, #e91e63);
    outline: 3px solid rgba(233, 30, 99, .14);
}

.psr-address-select-card select {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

.psr-address-choice-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    color: #384250;
    font-size: 14px;
    line-height: 1.35;
}

.psr-address-choice-copy strong {
    overflow: hidden;
    margin-bottom: 2px;
    color: #161d27;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.psr-address-choice-chevron {
    position: absolute;
    top: 50%;
    right: 17px;
    color: #667085;
    font-size: 18px;
    transform: translateY(-50%);
}

.psr-address-add,
.psr-address-add a {
    margin-left: 0;
}

.psr-delivery-actions {
    display: block;
}

.psr-delivery-actions .psr-primary-action {
    display: block;
}

.psr-delivery-actions .psr-link-button,
.psr-delivery-actions .psr-return-subscription {
    display: block;
    width: fit-content;
    margin-top: 14px;
}

.psr-top-return-form {
    margin: 0 0 18px;
}

.psr-selector-intro {
    margin-bottom: 20px;
}

.psr-search-address-card {
    background: #fafbfc;
}

.psr-search-address {
    margin: 0 0 14px;
    padding: 0;
    background: transparent;
}

.psr-search-address address {
    font-size: 15px;
    line-height: 1.5;
}

.psr-search-address address strong {
    font-size: 17px;
}

.psr-selector-launch {
    margin-bottom: 28px;
}

.psr-relay-selector-page #psr-carrier-widget-content {
    display: block !important;
    overflow: visible;
    width: 100%;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.psr-relay-selector-page .psr-carrier-technical-option,
.psr-relay-selector-page .pl-drop-off-inserted,
.psr-relay-selector-page #psr-carrier-widget-content #pl-dropoff,
.psr-relay-selector-page #psr-carrier-widget-content #pl-cod {
    display: none !important;
}

.psr-relay-selector-page #psr-carrier-widget-content #pl-dropoff {
    position: absolute !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

.psr-relay-selector-page #psr-carrier-widget-content #mondialrelay_widget .MRW-Title,
.psr-relay-selector-page #psr-carrier-widget-content #mondialrelay_widget .MRW-Header {
    border: 1px solid #e1e5ea !important;
    background: #f8fafc !important;
    color: #25364a !important;
}

.psr-selected-actions {
    align-items: flex-start;
    flex-direction: column-reverse;
}

.psr-selected-actions .psr-link-button {
    margin-top: 3px;
}

@media (max-width: 767px) {
    .psr-delivery-step {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        font-size: 12px;
    }

    .psr-delivery-step:not(:last-child)::after {
        position: absolute;
        top: 14px;
        left: 34px;
        width: calc(100% - 42px);
        margin: 0;
    }

    .psr-subscription-meta {
        grid-template-columns: 1fr;
    }

    .psr-delivery-card h2,
    .psr-delivery-section > h2 {
        font-size: 21px;
    }

    .psr-new-delivery-card .psr-primary-action,
    .psr-selector-launch .psr-primary-action,
    .psr-selected-actions .psr-primary-action {
        width: 100%;
    }
}

/* Delivery journey: resilient visual hierarchy and coloured information cards. */
.psr-delivery-step:not(:last-child)::after {
    display: none;
}

.psr-step-separator {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    color: #a3abb6;
    font-size: 18px;
}

.psr-delivery-notice {
    border-width: 1px 1px 1px 4px;
    border-color: #9fcfe3;
    background: #eef8fc;
    box-shadow: 0 1px 2px rgba(31, 41, 55, .04);
}

.psr-delivery-notice-warning {
    border-color: #e7b95d;
    background: #fff7df;
}

.psr-delivery-notice-neutral {
    border-color: #b9c8d8;
    background: #f5f8fb;
}

.psr-delivery-notice-cancelled {
    border-color: #edb45d;
    background: #fff1dc;
    color: #654216;
}

.psr-notice-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    border: 0;
    font-size: 24px;
    line-height: 1;
}

.psr-subscription-summary {
    background: #f7f9fc;
}

.psr-new-delivery-card {
    background: #f5faff;
}

.psr-search-address-card {
    border-color: #e5d7b9;
    background: #fffaf0;
}

.psr-selected-point-card {
    background: #f2faf6;
}

.psr-relay-selector-page .psr-selector-launch {
    margin-bottom: 0;
}

.psr-relay-return-form {
    margin: 14px 0 28px;
}

@media (max-width: 767px) {
    .psr-step-separator {
        flex-basis: 18px;
        padding-top: 3px;
        font-size: 15px;
    }
}
.psr-express-checkout,
.psr-express-checkout * {
    box-sizing: border-box;
}

.psr-express-checkout__terms { margin: 1rem 0; }
.psr-express-checkout__terms label { align-items: flex-start; display: flex; gap: .65rem; margin: 0; }
.psr-express-checkout__terms input[type="checkbox"] { flex: 0 0 auto; margin-top: .2rem; }
.psr-terms-error { margin: .75rem 0 0; }
.psr-supplement-flash h2 { margin-bottom: .5rem; }
.psr-supplement-flash p, .psr-supplement-flash ul { margin-bottom: .5rem; }
.psr-supplement-flash ul { padding-left: 1.25rem; }
.psr-contract-row--highlighted { animation: psr-contract-highlight 3s ease-out; }
@keyframes psr-contract-highlight { 0%, 55% { background-color: #dff0d8; } 100% { background-color: transparent; } }
.psr-stored-payment { margin-bottom: 1.5rem; }
.psr-stored-payment__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.psr-stored-payment__method { border: 1px solid #d9d9d9; border-left-width: .35rem; border-radius: .25rem; padding: 1rem; }
.psr-stored-payment__method--success { border-left-color: #28a745; }
.psr-stored-payment__method--warning { border-left-color: #f0ad4e; }
.psr-stored-payment__method--danger { border-left-color: #d9534f; }
.psr-stored-payment dl, .psr-stored-payment dd { margin: 0; }
.psr-stored-payment dl > div { display: grid; gap: .75rem; grid-template-columns: minmax(7rem, .45fr) 1fr; margin-bottom: .4rem; }
.psr-stored-payment dt { font-weight: 600; }
.psr-stored-payment__contracts span { background: #eef2f5; border-radius: 999px; display: inline-block; margin-right: .35rem; padding: .2rem .55rem; }
#conditions-to-approve.psr-terms-block--invalid, .psr-terms-block--invalid { border: 2px solid #d9534f; border-radius: .25rem; padding: .75rem; }

.psr-express-checkout__title {
    display: block;
    margin-bottom: 1rem;
}

.psr-express-checkout .card,
.psr-express-checkout-cta.card {
    margin-bottom: 1rem;
}

.psr-express-checkout__actions {
    border: 2px solid currentColor;
}

.psr-express-checkout__choice {
    align-items: flex-start;
    cursor: pointer;
    display: flex;
    font-weight: 600;
    gap: .75rem;
    margin: 0;
    padding: .75rem 0;
}

.psr-express-checkout__choice + .psr-express-checkout__choice {
    border-top: 1px solid rgba(0, 0, 0, .12);
}

.psr-express-checkout__choice input {
    flex: 0 0 auto;
    margin-top: .25rem;
}

.psr-express-checkout__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.psr-express-checkout__panel-heading,
.psr-express-checkout__totals .card-block > div {
    align-items: baseline;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.psr-express-checkout__panel-heading h2 {
    margin-bottom: 1rem;
}

.psr-express-checkout__address,
.psr-express-checkout__relay {
    display: flex;
    flex-direction: column;
    font-style: normal;
    gap: .2rem;
    margin: 0;
}

.psr-express-checkout__relay {
    border-top: 1px solid rgba(0, 0, 0, .12);
    margin-top: .75rem;
    padding-top: .75rem;
}

.psr-express-checkout__product {
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, .12);
    display: grid;
    gap: 1rem;
    grid-template-columns: 72px minmax(12rem, 1fr) auto auto auto;
    padding: 1rem 0;
}

.psr-express-checkout__product:first-child {
    border-top: 0;
}

.psr-express-checkout__product img {
    height: 72px;
    object-fit: contain;
    width: 72px;
}

.psr-express-checkout__product-name {
    display: flex;
    flex-direction: column;
}

.psr-express-checkout__totals {
    margin-left: auto;
    max-width: 34rem;
}

.psr-express-checkout__totals .card-block > div {
    padding: .35rem 0;
}

.psr-express-checkout__totals .psr-express-checkout__grand-total {
    border-top: 2px solid currentColor;
    font-size: 1.15rem;
    margin-top: .5rem;
    padding-top: .85rem;
}

.psr-express-checkout__submit {
    display: block;
    margin-left: auto;
    min-width: 15rem;
}

.psr-express-checkout__submit[disabled] {
    cursor: wait;
    opacity: .65;
}

.psr-express-checkout-cta .card-block {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
}

.psr-express-checkout-cta p {
    flex: 1 1 22rem;
    margin: 0;
}

@media (max-width: 767px) {
    .psr-express-checkout__grid {
        grid-template-columns: 1fr;
    }

    .psr-express-checkout__product {
        align-items: start;
        grid-template-columns: 64px 1fr;
    }

    .psr-express-checkout__product img {
        grid-row: 1 / span 4;
        height: 64px;
        width: 64px;
    }

    .psr-express-checkout__totals,
    .psr-express-checkout__submit {
        max-width: none;
        width: 100%;
    }
}

/* Express checkout 2.5.1: exclusive, clearly separated purchase choices. */
.psr-express-checkout__actions {
    border: 1px solid #dbe4ee;
    border-radius: 1rem;
    box-shadow: 0 .75rem 2rem rgba(31, 45, 61, .08);
}

.psr-express-checkout__choice {
    align-items: center;
    background: #fff;
    border: 1px solid #dbe4ee;
    border-radius: .75rem;
    cursor: pointer;
    display: flex;
    font-weight: 400;
    gap: .75rem;
    margin: 0 0 .75rem;
    padding: 1rem;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.psr-express-checkout__choice + .psr-express-checkout__choice {
    border-top: 1px solid #dbe4ee;
}

.psr-express-checkout__choice:hover,
.psr-express-checkout__choice.is-selected {
    background: #f3fcfd;
    border-color: #1cb8bd;
    box-shadow: 0 0 0 2px rgba(28, 184, 189, .14);
}

.psr-express-checkout__choice--prestaloop {
    background: #f6f9fc;
    border-color: #a8bdd2;
}

.psr-express-checkout__choice input {
    flex: 0 0 auto;
    margin: 0;
}

.psr-express-checkout__choice-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: .2rem;
}

.psr-express-checkout__choice-copy small {
    color: #687385;
}

.psr-express-checkout__provider-logo {
    height: 2rem;
    max-width: 7.5rem;
    object-fit: contain;
    width: auto;
}

.psr-express-checkout__group-title {
    color: #334155;
    margin: 1.25rem 0 .75rem;
}

.psr-express-checkout__group-title:first-of-type {
    margin-top: .5rem;
}

.psr-express-checkout__other-payment {
    display: inline-block;
    margin: 0 0 .5rem 2rem;
}

.psr-express-checkout__terms {
    background: #fff6fa;
    border: 2px solid #f0bdd7;
    border-radius: .75rem;
    margin: 1.25rem 0;
}

body#checkout #conditions-to-approve {
    background: #fff9fc;
    border: 1px solid #ecc6dc;
    border-radius: .5rem;
    margin-top: 1rem;
    padding: .85rem;
}

body#checkout .psr-payment-option-card {
    border: 1px solid #dbe4ee;
    border-radius: .65rem;
    margin-bottom: .65rem;
    padding: .35rem .65rem;
}

body#checkout .psr-payment-option-card.is-selected {
    background: #f3fcfd;
    border-color: #1cb8bd;
    box-shadow: 0 0 0 2px rgba(28, 184, 189, .12);
}

body#checkout .psr-payment-option-card--prestaloop {
    background: #fff8fc;
    border-color: #f0c8df;
}

@media (max-width: 767px) {
    .psr-express-checkout__provider-logo {
        max-width: 5.5rem;
    }
}

/* Safe visual summary of the reusable payment method. */
.psr-stored-payment__method {
    background: transparent;
    border: 0;
    border-radius: .9rem;
    overflow: visible;
    padding: 0;
}

.psr-stored-payment__card-face {
    background: linear-gradient(135deg, #202834, #111722);
    border-radius: .9rem;
    box-shadow: 0 .8rem 1.8rem rgba(15, 23, 42, .24);
    color: #fff;
    min-height: 15.5rem;
    padding: 1.5rem;
}

.psr-stored-payment__method--warning .psr-stored-payment__card-face {
    background: linear-gradient(135deg, #55411f, #282116);
}

.psr-stored-payment__method--danger .psr-stored-payment__card-face {
    background: linear-gradient(135deg, #5a2630, #26161a);
}

.psr-stored-payment__header,
.psr-stored-payment__number,
.psr-stored-payment__details {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.psr-stored-payment__header {
    gap: 1rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.psr-stored-payment__header img {
    height: 2.25rem;
    max-width: 8rem;
    object-fit: contain;
    object-position: left center;
    width: auto;
}

.psr-stored-payment__chip {
    background:
        linear-gradient(90deg, transparent 46%, rgba(71, 61, 36, .35) 47%, rgba(71, 61, 36, .35) 53%, transparent 54%),
        linear-gradient(#ecd998, #bfa45b);
    border-radius: .45rem;
    height: 2.7rem;
    margin: 2rem 0 1.1rem;
    width: 3.5rem;
}

.psr-stored-payment__number {
    font-size: 1.25rem;
    gap: 1rem;
    margin: 0 0 1.5rem;
}

.psr-stored-payment__details {
    gap: 1.5rem;
    margin: 0;
}

.psr-stored-payment__details > div {
    display: block;
    margin: 0;
}

.psr-stored-payment__details dt {
    color: rgba(255, 255, 255, .72);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.psr-stored-payment__details dd {
    margin: .25rem 0 0;
}

.psr-stored-payment__status {
    background: #218739;
    border-radius: 999px;
    padding: .3rem .65rem;
}

.psr-stored-payment__method--warning .psr-stored-payment__status {
    background: #c27609;
}

.psr-stored-payment__method--danger .psr-stored-payment__status {
    background: #bf2f3e;
}

.psr-stored-payment__contracts,
.psr-stored-payment__method > .alert,
.psr-stored-payment__method > form {
    margin: 1rem .25rem 0;
}

@media (max-width: 575px) {
    .psr-stored-payment__card-face {
        min-height: 0;
        padding: 1.15rem;
    }

    .psr-stored-payment__header,
    .psr-stored-payment__number,
    .psr-stored-payment__details {
        align-items: flex-start;
    }

    .psr-stored-payment__header span {
        font-size: .75rem;
    }

    .psr-stored-payment__number {
        flex-direction: column;
    }
}
