/**
 * Prestaloop – Abonnement Produit Pro
 *
 * This file is licensed under the Academic Free License 3.0 (AFL-3.0).
 * See LICENSE.txt distributed with this module.
 *
 * @author    Prestaloop <contact@prestaloop.com>
 * @copyright Copyright (c) 2026 MAGED / Prestaloop
 * @license   https://opensource.org/licenses/AFL-3.0
*/

.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;
}

#add_to_cart_custom {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#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-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;
}
.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: #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: 300px;
    padding: 15px;
    border: 2px solid #ccc;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* 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: #083700;
}
/* Bouton radio actif */
#add_to_cart_custom input[type="radio"]:checked + .option-card label .custom-radio {
    border-color: #ccc;
    background: #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: #aaa;
}
#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;
}
/*.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;
}
body#product #add_to_cart_custom.psr-subscription-layout input[type="radio"]:checked+.option-card {
    border-color: #fe76b5 !important;
}
body#product #add_to_cart_custom.psr-subscription-layout #one-time:checked+.option-card {
    background: linear-gradient(180deg, rgb(245 0 118 / .07), rgb(245 0 118 / .025));
}

@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: white;
    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: #083600;
   color: white;
   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 {
    width: 16rem;
}

#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: #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
}
#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 thead {
        display: none; /* Cache l'en-tête */
    }
body#module-psrecurrence-Subscription tbody, body#module-psrecurrence-Subscription tr {
        display: block;
        width: 100%;
    }
body#module-psrecurrence-Subscription tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        padding: 10px;
        background: #f9f9f9;
    }
body#module-psrecurrence-Subscription td {
        display: flex;
        justify-content: space-between;
        padding: 8px;
        border-bottom: 1px solid #ddd;
    }
body#module-psrecurrence-Subscription 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: 555px) {
#add_to_cart_custom .option-card {
    width: 280px !important;
}
}
#module-psrecurrence-Subscription table td.action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
#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: 9px 15px 5px 5px;
    display: contents;
}

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;
}
/* ==========================================================
 * Présentation compacte achat unique / abonnement recommandé
 * ========================================================== */
body#product #add_to_cart_custom.psr-subscription-layout {
    display: block;
    width: 100%;
    max-width: 760px;
    margin-top: 1rem;
}

body#product #add_to_cart_custom.psr-subscription-layout .psr-offer-grid {
    display: grid;
    grid-template-columns: minmax(185px, .85fr) minmax(360px, 1.65fr);
    gap: 18px;
    align-items: stretch;
    width: 100%;
}

body#product #add_to_cart_custom.psr-subscription-layout #recurring_options,
body#product #add_to_cart_custom.psr-subscription-layout .psr-recurring-column {
    width: 100%;
    height: 100%;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

body#product #add_to_cart_custom.psr-subscription-layout .option-card {
    position: relative;
    display: block;
    width: 100% !important;
    height: 100%;
    min-width: 0;
    min-height: 176px;
    margin: 0;
    padding: 20px 18px 16px;
    text-align: left;
    border: 2px solid #e1e1e1;
    border-radius: 11px;
    background: #fff;
    box-shadow: none;
    transition: border-color .2s ease, background-color .2s ease;
}

body#product #add_to_cart_custom.psr-subscription-layout .option-card--subscription {
    padding-top: 24px;
}

body#product #add_to_cart_custom.psr-subscription-layout .psr-main-option-label {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding-left: 35px;
    text-align: left;
    cursor: pointer;
}

body#product #add_to_cart_custom.psr-subscription-layout .psr-main-option-label .content {
    display: block;
    width: 100%;
}

body#product #add_to_cart_custom.psr-subscription-layout .psr-offer-title {
    display: block;
    color: #101828;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

body#product #add_to_cart_custom.psr-subscription-layout .psr-offer-price,
body#product #add_to_cart_custom.psr-subscription-layout .abonnement_price {
    position: static;
    display: inline-block;
    margin-top: 7px;
    color: #101828;
    font-family: inherit !important;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.05;
}

body#product #add_to_cart_custom.psr-subscription-layout .psr-price-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

body#product #add_to_cart_custom.psr-subscription-layout .psr-price-line .abonnement_price {
    margin-top: 6px;
}

body#product #add_to_cart_custom.psr-subscription-layout .psr-price-suffix {
    color: #667085;
    font-size: .78rem;
    font-weight: 600;
}

body#product #add_to_cart_custom.psr-subscription-layout .psr-subscription-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body#product #add_to_cart_custom.psr-subscription-layout .psr-saving-text,
body#product #add_to_cart_custom.psr-subscription-layout .psr-engagement-text {
    display: block;
    margin-top: 8px;
    color: #e6006d;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.2;
}

body#product #add_to_cart_custom.psr-subscription-layout .psr-engagement-text {
    margin-top: 5px;
    color: #667085;
    font-size: .78rem;
    font-weight: 500;
}

body#product #add_to_cart_custom.psr-subscription-layout .psr-recommended-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 16px;
    border-radius: 5px;
    background: #f50076;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

body#product #add_to_cart_custom.psr-subscription-layout .discount-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f50076;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1;
}

body#product #add_to_cart_custom.psr-subscription-layout .custom-radio {
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    border: 2px solid #d0d5dd;
    border-radius: 50%;
    background: #fff;
}

body#product #add_to_cart_custom.psr-subscription-layout .custom-radio::after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
}

body#product #add_to_cart_custom.psr-subscription-layout input[type="radio"]:checked + .option-card {
    border-color: #f50076;
}

body#product #add_to_cart_custom.psr-subscription-layout #recur:checked + .option-card--subscription {
    background: linear-gradient(180deg, rgba(245, 0, 118, .07), rgba(245, 0, 118, .025));
}

body#product #add_to_cart_custom.psr-subscription-layout input[type="radio"]:checked + .option-card .custom-radio {
    border-color: #f50076;
    background: #fff;
}

body#product #add_to_cart_custom.psr-subscription-layout input[type="radio"]:checked + .option-card .custom-radio::after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f50076;
}

body#product #add_to_cart_custom.psr-subscription-layout .psr-frequency-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 13px;
    padding-left: 35px;
}

body#product #add_to_cart_custom.psr-subscription-layout .psr-frequency-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 34px;
    margin: 0;
    padding: 6px 7px;
    border: 1px solid #e1e5ea;
    border-radius: 6px;
    background: #fff;
    color: #475467;
    font-size: .74rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

body#product #add_to_cart_custom.psr-subscription-layout .psr-frequency-list input[type="radio"]:checked + .psr-frequency-option {
    border-color: #f50076;
    background: #fff;
    color: #f50076;
}

body#product #add_to_cart_custom.psr-subscription-layout .psr-frequency-option:hover {
    border-color: #f50076;
    color: #f50076;
}

body#product #add_to_cart_custom.psr-subscription-layout .add-to-cart-btn {
    margin-top: 14px;
}

@media (max-width: 767px) {
    body#product #add_to_cart_custom.psr-subscription-layout {
        max-width: none;
    }

    body#product #add_to_cart_custom.psr-subscription-layout .psr-offer-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body#product #add_to_cart_custom.psr-subscription-layout .option-card {
        min-height: 0;
    }

    body#product #add_to_cart_custom.psr-subscription-layout .option-card--subscription {
        margin-top: 10px;
    }
}

@media (max-width: 520px) {
    body#product #add_to_cart_custom.psr-subscription-layout .psr-frequency-list {
        grid-template-columns: 1fr;
        padding-left: 0;
    }

    body#product #add_to_cart_custom.psr-subscription-layout .psr-main-option-label {
        padding-left: 34px;
    }

    body#product #add_to_cart_custom.psr-subscription-layout .psr-subscription-heading {
        align-items: flex-start;
    }
}

/* ==========================================================
 * Ajustement final selon la maquette de référence
 * ========================================================== */

body#product #add_to_cart_custom.psr-subscription-layout .option-card {
    min-height: 166px;
    padding-right: 18px;
    padding-bottom: 14px;
    padding-left: 18px;
}

/* ----------------------------------------------------------
 * Carte achat unique
 * ---------------------------------------------------------- */

body#product #add_to_cart_custom.psr-subscription-layout
.option-card--one-time {
    padding-top: 25px;
}

body#product #add_to_cart_custom.psr-subscription-layout
.option-card--one-time .psr-main-option-label {
    padding-top: 6px;
    padding-left: 42px;
}

body#product #add_to_cart_custom.psr-subscription-layout
.option-card--one-time .psr-offer-price {
    margin-top: 6px;
}

body#product #add_to_cart_custom.psr-subscription-layout .option-card--one-time .custom-radio {
    top: 6px;
    left: 0;
}

/* ----------------------------------------------------------
 * Carte abonnement
 * ---------------------------------------------------------- */

body#product #add_to_cart_custom.psr-subscription-layout
.option-card--subscription {
    position: relative;
    overflow: visible;
    padding-top: 28px;
}

/*
 * Descend légèrement le titre, le prix et le texte d'économie.
 */
body#product #add_to_cart_custom.psr-subscription-layout
.option-card--subscription .psr-main-option-label {
    padding-top: 6px;
    padding-left: 42px;
}

/* Position du bouton radio */
body#product #add_to_cart_custom.psr-subscription-layout
.option-card--subscription .custom-radio {
    top: 6px;
    left: 0;
}

/* Titre et badge -10 % */
body#product #add_to_cart_custom.psr-subscription-layout
.psr-subscription-heading {
    position: relative;
    display: block;
    padding-right: 70px;
}

/* Badge réduction à droite */
body#product #add_to_cart_custom.psr-subscription-layout
.discount-badge {
    position: absolute;
    top: -3px;
    right: 0;
    min-width: 46px;
    min-height: 28px;
    padding: 4px 9px;
}

/* Prix abonnement */
body#product #add_to_cart_custom.psr-subscription-layout
.psr-price-line {
    margin-top: 1px;
    gap: 4px;
}

body#product #add_to_cart_custom.psr-subscription-layout
.psr-price-line .abonnement_price {
    margin-top: 0;
    font-size: 1.45rem;
    line-height: 1.05;
}

body#product #add_to_cart_custom.psr-subscription-layout
.psr-price-suffix {
    font-size: 0.72rem;
    line-height: 1;
}

/* Texte Économisez */
body#product #add_to_cart_custom.psr-subscription-layout
.psr-saving-text {
    margin-top: 4px;
    font-size: 0.82rem;
}

/* ----------------------------------------------------------
 * Légende RECOMMANDÉ
 * ---------------------------------------------------------- */

body#product #add_to_cart_custom.psr-subscription-layout
.psr-recommended-badge {
    position: absolute;
    top: 0;
    left: 60%;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 122px;
    height: 29px;
    min-height: 29px;
    padding: 0 15px;

    transform: translateX(-50%);

    border-radius: 0 0 4px 4px;
    background: #f50076;
    color: #fff;

    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;

    box-shadow: none;
}

/* ----------------------------------------------------------
 * Fréquences
 * ---------------------------------------------------------- */

body#product #add_to_cart_custom.psr-subscription-layout
.psr-frequency-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;

    margin-top: 9px;
    padding-left: 0;
}

body#product #add_to_cart_custom.psr-subscription-layout
.psr-frequency-option {
    min-height: 35px;
    padding: 5px 6px;

    font-size: 0.72rem;
    line-height: 1.1;
}

/* Remplace "edit" par un crayon et l’aligne avec le texte */
.recu-opt span.material-icons,
.edit_recu span.material-icons {
    position: relative;
    display: inline-block;

    width: 18px;
    height: 18px;
    margin-left: 3px;

    overflow: hidden;
    white-space: nowrap;
    text-indent: -9999px;

    line-height: 18px;
    vertical-align: -3px;
}

/* Icône crayon */
.recu-opt span.material-icons::before,
.edit_recu span.material-icons::before {
    content: "\270E"; /* ✎ */

    position: absolute;
    top: 50%;
    left: 50%;

    font-family: Arial, sans-serif !important;
    font-size: 17px !important;
    font-weight: normal;
    font-style: normal;
    line-height: 1;

    color: #b08f40;

    text-indent: 0;
    transform: translate(-50%, -50%);
}

/* ----------------------------------------------------------
 * Mobile
 * ---------------------------------------------------------- */

@media (max-width: 520px) {
    body#product #add_to_cart_custom.psr-subscription-layout
    .option-card--one-time .psr-main-option-label,
    body#product #add_to_cart_custom.psr-subscription-layout
    .option-card--subscription .psr-main-option-label {
        padding-top: 6px;
        padding-left: 38px;
    }

    body#product #add_to_cart_custom.psr-subscription-layout
    .option-card--subscription .custom-radio {
        top: 6px;
    }

    body#product #add_to_cart_custom.psr-subscription-layout
    .psr-frequency-list {
        grid-template-columns: 1fr;
        padding-left: 0;
    }

    body#product #add_to_cart_custom.psr-subscription-layout
    .psr-recommended-badge {
        left: 60%;
        min-width: 116px;
        padding-right: 12px;
        padding-left: 12px;
    }
}

@media (min-width: 768px) {
body#product #add_to_cart_custom.psr-subscription-layout #recurring_options,
body#product #add_to_cart_custom.psr-subscription-layout .psr-recurring-column {
    width: fit-content;
}
}