/* =============================================================
   MAISON CLÉMENCE — Certificat Entrupy — Styles v1.0.0
   Palette or #c8a96e / bleu doux #eef6fb / texte sombre #1a1a2e
   ============================================================= */

/* ---- Fiche produit : conteneur principal ---- */
.minty-entrupy-option {
    background: linear-gradient(135deg, #eef6fb 0%, #f7fbff 100%);
    border: 1px solid #cce0ef;
    border-left: 4px solid #c8a96e;
    border-radius: 10px;
    padding: 18px 20px 16px;
    margin: 18px 0 22px;
    font-family: inherit;
    box-shadow: 0 2px 12px rgba(200, 169, 110, 0.08);
}

/* ---- En-tête du bloc ---- */
.minty-option-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 11px;
    flex-wrap: wrap;
}

.minty-seal-icon {
    flex-shrink: 0;
    line-height: 0;
    filter: drop-shadow(0 1px 3px rgba(200, 169, 110, 0.35));
}

.minty-option-titles {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 160px;
}

.minty-option-label {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 0.25px;
}

/* Badge "Recommandé" */
.minty-badge {
    display: inline-block;
    background: #c8a96e;
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    padding: 2px 9px;
    border-radius: 20px;
    line-height: 1.6;
    white-space: nowrap;
}

/* Prix affiché à droite */
.minty-option-price {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
    margin-left: auto;
}

/* ---- Description ---- */
.minty-option-desc {
    font-size: 12.5px;
    color: #5a6b7a;
    line-height: 1.65;
    margin: 0 0 14px;
}

/* ---- Checkbox personnalisée ---- */
.minty-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

/* Masquer la checkbox native */
.minty-checkbox-input {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none;
}

/* Checkbox stylisée */
.minty-checkbox-ui {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #b8cfe0;
    border-radius: 5px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, border-color 0.18s ease;
    position: relative;
}

/* État coché */
.minty-checkbox-input:checked + .minty-checkbox-ui {
    background: #c8a96e;
    border-color: #c8a96e;
}

/* Coche SVG */
.minty-checkbox-input:checked + .minty-checkbox-ui::after {
    content: "";
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

/* Focus accessible */
.minty-checkbox-input:focus + .minty-checkbox-ui {
    outline: 2px solid #c8a96e;
    outline-offset: 2px;
}

.minty-checkbox-text {
    font-size: 13px;
    color: #1a1a2e;
    line-height: 1.45;
}

.minty-cert-plus {
    color: #c8a96e;
    font-style: normal;
    font-weight: 600;
}

/* ---- Panier : proposition d'ajout ---- */
.minty-cart-prompt {
    display: flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, #fdf8f0 0%, #fffcf5 100%);
    border: 1px solid #e8d5a3;
    border-radius: 7px;
    padding: 9px 13px;
    margin-top: 8px;
    flex-wrap: wrap;
    box-shadow: 0 1px 6px rgba(200, 169, 110, 0.07);
}

.minty-cart-prompt-icon {
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1;
}

.minty-cart-prompt-text {
    flex: 1;
    font-size: 12px;
    color: #5a4a2e;
    line-height: 1.5;
    min-width: 120px;
}

.minty-cart-prompt-text strong {
    color: #b8935a;
    font-weight: 700;
}

/* Bouton "Ajouter le certificat" dans le panier */
.minty-add-cert-btn {
    background: #c8a96e !important;
    color: #fff !important;
    border: none !important;
    border-radius: 5px !important;
    padding: 6px 15px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    cursor: pointer !important;
    transition: background 0.2s ease, transform 0.1s ease !important;
    white-space: nowrap;
    line-height: 1.5 !important;
}

.minty-add-cert-btn:hover:not(:disabled) {
    background: #b8935a !important;
    transform: translateY(-1px);
}

.minty-add-cert-btn:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* ---- Panier : badge "Certifié Entrupy" ---- */
.minty-cart-certified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: #3a7a50;
    background: #eaf6ee;
    border: 1px solid #aed8bc;
    border-radius: 5px;
    padding: 3px 10px;
    margin-left: 8px;
    font-weight: 600;
    vertical-align: middle;
}

/* ---- Panier : tag sur la ligne du certificat lui-même ---- */
.minty-cert-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: #8a6a30;
    background: #fdf5e6;
    border: 1px solid #e8d5a3;
    border-radius: 5px;
    padding: 3px 10px;
    margin-left: 6px;
    font-weight: 500;
    vertical-align: middle;
}

.minty-cert-for {
    color: #5a6b7a;
    font-weight: 400;
    font-style: italic;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .minty-option-header {
        gap: 8px;
    }

    .minty-option-price {
        width: 100%;
        margin-left: 0;
        font-size: 14px;
    }

    .minty-cart-prompt {
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
    }

    .minty-add-cert-btn {
        width: 100%;
        text-align: center;
    }
}
