/**
 * WCPC - Styles Front
 * Styles pour l'affichage du configurateur côté public
 */

/* === Conteneur principal === */
.wcpc-shortcode.front-wcpc {
    margin: 12px 0;
}

/* === SVG === */
#wcpc_front_visual {
    width: 100%;
    margin-bottom: 24px;
}

#wcpc_front_svg_container {
    width: 100%;
    height: auto;
    max-width: 100%;
    padding: 0;
    background: transparent;
    box-sizing: border-box;
}

#wcpc_front_svg_container svg {
    width: 100%;
    height: auto;
    display: block;
}

#wcpc_front_svg_container svg text {
    fill: #333 !important;
}

#wcpc_front_svg_container svg rect:has(+ text) {
    stroke: none;
}

/* === Fieldsets sans encadrement === */
.wcpc-fieldset {
    border: none;
    padding: 0;
    margin-top: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.wcpc-fieldset > legend {
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
    padding: 0;
    margin-bottom: 16px;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Icône d'information dans les légendes */
.wcpc-fieldset > legend .wcpc-static-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #405FF2;
    color: white;
    font-size: 14px;
    font-weight: bold;
    font-style: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.wcpc-fieldset > legend .wcpc-static-info-icon:hover {
    transform: scale(1.1);
}

/* Forcer la largeur maximale pour tous les fieldsets */
#wcpc_client_info_fieldset {
    max-width: 100%;
    overflow: hidden;
}

#wcpc_client_info_fieldset .wcpc-options-grid {
    max-width: 100%;
}

/* === Faces grid === */
.wcpc-faces-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch;
}

.wcpc-face-item {
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.wcpc-face-label {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 10px;
    flex: 0 0 auto;
    min-width: 120px;
    height: 100%;
    margin: 0;
}

.wcpc-face-select {
    flex: 1 1 auto;
    border: none;
    border-radius: 0;
    font-size: 14px;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
    padding: 10px 40px 10px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
}

.wcpc-face-select:hover {
    background-color: #f9f9f9;
}

.wcpc-face-select:focus {
    outline: none;
    background-color: #fff;
}

/* === Dimensions grid === */
.wcpc-dimensions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch;
    overflow: visible;
}

.wcpc-dimension-item {
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
    position: relative;
}

.wcpc-dimension-label {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 10px;
    flex: 0 0 auto;
    min-width: 120px;
    height: 100%;
    margin: 0;
}

.wcpc-dimension-input, .wcpc-ceiling-height-input {
    flex: 1 1 auto;
    border: none;
    border-radius: 0;
    font-size: 14px;
    color: #333;
    padding: 10px;
    background: #fff;
    transition: all 0.2s ease;
    height: 100%;
    box-sizing: border-box;
}

.wcpc-dimension-input:hover, .wcpc-ceiling-height-input:hover {
    background-color: #f9f9f9;
}

.wcpc-dimension-input:focus, .wcpc-ceiling-height-input:focus {
    outline: none;
    background-color: #fff;
    box-shadow: inset 0 0 0 2px #405FF2;
}

.wcpc-dimension-input.wcpc-input-error {
    background-color: #fff5f5;
    box-shadow: inset 0 0 0 2px #ff4d4f;
}

.wcpc-dimension-input.wcpc-input-error:focus {
    box-shadow: inset 0 0 0 2px #ff4d4f;
}

.wcpc-dimension-input.wcpc-dimension-linked {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.wcpc-dimension-input.wcpc-dimension-linked:hover {
    background-color: #f5f5f5;
}

.wcpc-dimension-input::placeholder, .wcpc-ceiling-height-input::placeholder {
    color: #999;
}

.wcpc-dimension-unit {
    font-size: 14px;
    color: #666;
    padding: 10px 12px;
    background: #f8f9fa;
    border-left: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    height: 100%;
    flex: 0 0 auto;
}

.wcpc-dimension-error {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4d4f;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: wcpc-tooltip-slide-in 0.2s ease-out;
    pointer-events: none;
}

.wcpc-dimension-error::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #ff4d4f;
}

.wcpc-dimension-error-fade {
    animation: wcpc-tooltip-fade-out 0.3s ease-out forwards;
}

@keyframes wcpc-tooltip-slide-in {
    from {
        opacity: 0;
        bottom: -35px;
    }
    to {
        opacity: 1;
        bottom: -40px;
    }
}

@keyframes wcpc-tooltip-fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* === Options grid (Coloris et Options) === */
.wcpc-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch;
}

.wcpc-option-item {
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.wcpc-option-label {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 10px;
    flex: 0 0 auto;
    min-width: 120px;
    max-width: 200px;
    height: 100%;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.wcpc-option-select {
    flex: 1 1 auto;
    border: none;
    border-radius: 0;
    font-size: 14px;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
    padding: 10px 40px 10px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
}

.wcpc-option-select:hover {
    background-color: #f9f9f9;
}

.wcpc-option-select:focus {
    outline: none;
    background-color: #fff;
}

/* === Input text pour les encarts de devis === */
.wcpc-option-input {
    flex: 1 1 auto;
    border: none !important;
    border-radius: 0;
    font-size: 14px;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff;
    padding: 10px;
    cursor: text;
    transition: all 0.2s ease;
    height: 100%;
}

.wcpc-option-input:hover {
    background-color: #f9f9f9;
}

.wcpc-option-input:focus {
    outline: none;
    background-color: #fff;
}

/* === Textarea === */
.wcpc-option-textarea {
    flex: 1 1 auto;
    border: none;
    border-radius: 0;
    font-size: 14px;
    color: #333;
    background: #fff;
    padding: 10px;
    resize: vertical;
    transition: all 0.2s ease;
    min-height: 80px;
}

.wcpc-option-textarea:hover {
    background-color: #f9f9f9;
}

.wcpc-option-textarea:focus {
    outline: none;
    background-color: #fff;
    box-shadow: inset 0 0 0 2px #405FF2;
}

/* === Option pleine largeur (2 colonnes) === */
.wcpc-option-full-width {
    grid-column: 1 / -1;
}

/* Contraintes pour les éléments non-grid qui peuvent déborder */
#wcpc_client_info_fieldset .wcpc-option-item:not(.wcpc-option-full-width) {
    max-width: 100%;
}

/* Spécifique pour les items qui ne sont pas dans la grille */
.wcpc-forklift-option,
#wcpc_client_info_fieldset > .wcpc-option-item {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* === Bouton de demande de devis === */
.wcpc-btn-quote {
    background: #405FF2;
    border: none;
    color: #fff;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(64, 95, 242, 0.2);
}

.wcpc-btn-quote:hover {
    background: #2e4dd7;
    box-shadow: 0 4px 12px rgba(64, 95, 242, 0.3);
    transform: translateY(-1px);
}

.wcpc-btn-quote:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(64, 95, 242, 0.2);
}

/* === Bouton d'envoi final === */
.wcpc-btn-submit {
    background: #28a745;
    border: none;
    color: #fff;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.wcpc-btn-submit:hover {
    background: #218838;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transform: translateY(-1px);
}

.wcpc-btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2);
}

.wcpc-btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.wcpc-btn-submit.wcpc-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.wcpc-btn-submit.wcpc-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wcpc-spinner 0.8s linear infinite;
}

@keyframes wcpc-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* === Messages de résultat === */
#wcpc_quote_message {
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    animation: wcpc-message-slide-in 0.3s ease-out;
}

#wcpc_quote_message.wcpc-message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

#wcpc_quote_message.wcpc-message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

@keyframes wcpc-message-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Fieldset encarts de devis === */
.wcpc-quote-fieldset {
    animation: wcpc-fieldset-slide-in 0.3s ease-out;
}

@keyframes wcpc-fieldset-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Doors list === */
#wcpc_front_doors,
#wcpc_front_doors .wcpc-door-row,
#wcpc_front_doors_list .wcpc-door-row {
    width: 100%;
}

#wcpc_front_doors_list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.wcpc-door-row {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 16px;
    box-sizing: border-box;
}

.wcpc-door-position,
.wcpc-door-mode {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wcpc-door-position {
    min-width: 150px;
    flex: 0 0 auto;
}

.wcpc-door-mode {
    flex: 1 1 auto;
}

.wcpc-door-position:hover,
.wcpc-door-mode:hover {
    border-color: #c0c0c0;
}

.wcpc-door-position:focus,
.wcpc-door-mode:focus {
    outline: none;
    border-color: #405FF2;
    box-shadow: 0 0 0 3px rgba(64, 95, 242, 0.1);
}

/* === Boutons === */
.wcpc-btn-add,
.wcpc-door-remove {
    padding: 12px 24px;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    box-sizing: border-box;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.wcpc-btn-add {
    background: transparent;
    border: 2px solid #405FF2;
    color: #405FF2;
}

.wcpc-btn-add:hover {
    background: #405FF2;
    color: #fff;
}

.wcpc-btn-add:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #ccc;
    color: #999;
}

.wcpc-btn-add:disabled:hover {
    background: transparent;
    color: #999;
}

.wcpc-door-remove {
    background: transparent;
    border: 2px solid #ff4d4f;
    color: #ff4d4f;
    padding: 8px 16px;
    flex: 0 0 auto;
}

.wcpc-door-remove:hover {
    background: #ff4d4f;
    color: #fff;
}

#wcpc_front_doors .wcpc-btn-add {
    margin-top: 0;
}

/* ============================================================
   === Responsive Mobile (<768px) ===
   ============================================================ */
@media (max-width: 768px) {

    /* --- Conteneur principal --- */
    .wcpc-shortcode.front-wcpc {
        margin: 8px 0;
        padding: 0 4px;
    }

    /* --- SVG --- */
    #wcpc_front_visual {
        margin-bottom: 16px;
    }

    /* --- Fieldsets --- */
    .wcpc-fieldset {
        margin-top: 18px;
    }

    .wcpc-fieldset > legend {
        font-size: 20px;
        margin-bottom: 12px;
        gap: 6px;
    }

    .wcpc-fieldset > legend .wcpc-static-info-icon {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    /* --- Grilles : tout en 1 colonne --- */
    .wcpc-faces-grid,
    .wcpc-dimensions-grid,
    .wcpc-options-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* --- Items (faces, dimensions, options) : stack vertical --- */
    .wcpc-face-item,
    .wcpc-dimension-item,
    .wcpc-option-item {
        border-radius: 6px;
    }

    /* --- Labels : pleine largeur, pas de contrainte de taille --- */
    .wcpc-face-label,
    .wcpc-dimension-label,
    .wcpc-option-label {
        min-width: 90px !important;
        max-width: none !important;
        border-radius: 6px 6px 0 0;
        padding: 8px 10px;
        font-size: 13px;
    }

    /* --- Selects : pleine largeur --- */
    .wcpc-face-select,
    .wcpc-option-select {
        width: 100%;
        padding: 10px 40px 10px 10px;
        font-size: 13px;
        border-radius: 0 0 6px 6px;
    }

    /* --- Inputs text : pleine largeur --- */
    .wcpc-option-input {
        width: 100%;
        padding: 10px;
        font-size: 13px;
    }

    /* --- Textarea --- */
    .wcpc-option-textarea {
        width: 100%;
        min-height: 70px;
        font-size: 13px;
        padding: 10px;
    }

    /* --- Dimensions : input + unité en stack --- */
    .wcpc-dimension-input,
    .wcpc-ceiling-height-input {
        width: 100%;
        padding: 10px;
        font-size: 13px;
    }

    .wcpc-dimension-unit {
        border-left: none;
        border-top: 1px solid #e0e0e0;
        justify-content: center;
        padding: 6px 10px;
        font-size: 13px;
    }

    /* --- Tooltip erreur dimension --- */
    .wcpc-dimension-error {
        font-size: 12px;
        padding: 6px 10px;
        max-width: 90%;
        white-space: normal;
        text-align: center;
        left: 50%;
    }

    /* --- Portes : stack vertical --- */
    .wcpc-door-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 6px;
    }

    .wcpc-door-position,
    .wcpc-door-mode {
        width: 100%;
        min-width: 0;
        padding: 10px 40px 10px 12px;
        font-size: 13px;
        border-radius: 6px;
    }

    .wcpc-door-remove {
        width: 100%;
        padding: 10px 16px;
        font-size: 13px;
    }

    #wcpc_front_doors_list {
        gap: 10px;
        margin-bottom: 12px;
    }

    /* --- Boutons principaux : pleine largeur --- */
    .wcpc-btn-add {
        width: 100%;
        padding: 10px 20px;
        font-size: 13px;
    }

    .wcpc-btn-quote {
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
    }

    .wcpc-btn-submit {
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
    }

    /* --- Prix --- */
    #wcpc_product_price_wrapper {
        margin-top: 20px !important;
    }

    .wcpc-product-price {
        font-size: 22px;
        padding: 12px;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .wcpc-product-price .woocommerce-Price-amount {
        font-size: 26px;
    }

    .wcpc-product-price .woocommerce-Price-currencySymbol {
        font-size: 22px;
    }

    /* --- Case pose professionnelle --- */
    .wcpc-professional-install-option {
        margin-top: 18px !important;
    }

    .wcpc-professional-install-option label {
        font-size: 14px !important;
        text-align: left !important;
    }

    /* --- Bouton demande de devis wrapper --- */
    #wcpc_quote_button_wrapper {
        margin-top: 20px !important;
    }

    /* --- Encarts entreprise / client --- */
    #wcpc_client_info_fieldset,
    #wcpc_delivery_info_fieldset {
        overflow: visible;
    }

    /* Chariot élévateur : label non contraint */
    .wcpc-forklift-option .wcpc-option-label {
        min-width: 0 !important;
    }

    /* Option pleine largeur (pas de spanning nécessaire en 1 colonne) */
    .wcpc-option-full-width {
        grid-column: auto;
    }

    /* --- Checkbox adresse de livraison --- */
    #wcpc_client_info_fieldset .wcpc-option-full-width label {
        font-size: 13px;
    }

    /* --- RGPD consent --- */
    #wcpc_submit_wrapper label {
        max-width: 100% !important;
        width: 100%;
    }

    #wcpc_submit_wrapper label span {
        font-size: 12px !important;
    }

    /* --- Message réservé professionnels --- */
    #wcpc_submit_wrapper > div:first-child p {
        font-size: 13px !important;
    }

    /* --- Message résultat --- */
    #wcpc_quote_message {
        padding: 12px 14px;
        font-size: 14px;
    }

    /* --- Livraison fieldset (sur devis) --- */
    #wcpc_delivery_fieldset div[style*="text-align:center"] {
        padding: 12px !important;
    }

    /* --- Icône d'information --- */
    .wcpc-info-icon {
        width: 18px;
        height: 18px;
        font-size: 12px !important;
        margin-left: 6px;
    }

    /* --- Modal --- */
    .wcpc-modal-content {
        width: 95%;
        max-height: 85vh;
        overflow: scroll;
    }

    .wcpc-modal-header {
        padding: 15px 18px;
    }

    .wcpc-modal-header h3 {
        font-size: 18px;
    }

    .wcpc-modal-close {
        font-size: 28px;
    }

    .wcpc-modal-body {
        padding: 18px;
    }

    .wcpc-modal-body img {
        margin-bottom: 14px;
    }

    .wcpc-modal-body p {
        font-size: 14px;
    }
}

/* ============================================================
   === Responsive Petit mobile (<480px) ===
   ============================================================ */
@media (max-width: 480px) {

    .wcpc-shortcode.front-wcpc {
        padding: 0 2px;
    }

    .wcpc-fieldset {
        margin-top: 14px;
    }

    .wcpc-fieldset > legend {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .wcpc-fieldset > legend .wcpc-static-info-icon {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .wcpc-faces-grid,
    .wcpc-dimensions-grid,
    .wcpc-options-grid {
        gap: 8px;
    }

    .wcpc-face-label,
    .wcpc-dimension-label,
    .wcpc-option-label {
        padding: 7px 8px;
        font-size: 12px;
    }

    .wcpc-face-select,
    .wcpc-option-select {
        padding: 8px 36px 8px 8px;
        font-size: 12px;
    }

    .wcpc-option-input {
        padding: 8px;
        font-size: 12px;
    }

    .wcpc-option-textarea {
        padding: 8px;
        font-size: 12px;
        min-height: 60px;
    }

    .wcpc-dimension-input,
    .wcpc-ceiling-height-input {
        padding: 8px;
        font-size: 12px;
    }

    .wcpc-dimension-unit {
        padding: 5px 8px;
        font-size: 12px;
    }

    .wcpc-dimension-error {
        font-size: 11px;
        padding: 5px 8px;
    }

    .wcpc-door-row {
        gap: 8px;
        padding: 8px 10px;
    }

    .wcpc-door-position,
    .wcpc-door-mode {
        padding: 8px 36px 8px 10px;
        font-size: 12px;
    }

    .wcpc-door-remove {
        padding: 8px 14px;
        font-size: 12px;
    }

    .wcpc-btn-add {
        padding: 8px 16px;
        font-size: 12px;
    }

    .wcpc-btn-quote {
        padding: 12px 20px;
        font-size: 14px;
    }

    .wcpc-btn-submit {
        padding: 12px 20px;
        font-size: 14px;
    }

    .wcpc-product-price {
        font-size: 20px;
        padding: 10px;
    }

    .wcpc-product-price .woocommerce-Price-amount {
        font-size: 22px;
    }

    .wcpc-product-price .woocommerce-Price-currencySymbol {
        font-size: 20px;
    }

    .wcpc-professional-install-option label {
        font-size: 13px !important;
        gap: 6px !important;
    }

    #wcpc_submit_wrapper label span {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }

    .wcpc-info-icon {
        width: 16px;
        height: 16px;
        font-size: 11px !important;
        margin-left: 4px;
    }

    .wcpc-modal-content {
        width: 98%;
        border-radius: 6px;
    }

    .wcpc-modal-header {
        padding: 12px 14px;
    }

    .wcpc-modal-header h3 {
        font-size: 16px;
    }

    .wcpc-modal-close {
        font-size: 26px;
    }

    .wcpc-modal-body {
        padding: 14px;
    }

    .wcpc-modal-body p {
        font-size: 13px;
    }
}

/* === Affichage du prix === */
#wcpc_product_price_wrapper {
    margin-top: 32px;
    text-align: center;
}

.wcpc-product-price {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    display: inline-block;
    min-width: 200px;
}

.wcpc-product-price .woocommerce-Price-amount {
    font-size: 32px;
    color: #27ae60;
}

.wcpc-product-price .woocommerce-Price-currencySymbol {
    font-size: 28px;
}

/* === Icône d'information === */
.wcpc-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #405FF2;
    color: white !important;
    font-size: 14px !important;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    margin-left: 10px;
}

.wcpc-info-icon:hover {
    transform: scale(1.1);
}

/* === Modal d'information === */
.wcpc-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    animation: wcpc-modal-fadein 0.3s;
}

@keyframes wcpc-modal-fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wcpc-modal-content {
    background-color: #fefefe;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: wcpc-modal-slideup 0.3s;
}

@keyframes wcpc-modal-slideup {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wcpc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #405FF2;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.wcpc-modal-header h3 {
    margin: 0;
    font-size: 22px;
    color: #2c3e50;
    font-weight: 600;
}

.wcpc-modal-close {
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    user-select: none;
}

.wcpc-modal-close:hover,
.wcpc-modal-close:focus {
    color: #e74c3c;
}

.wcpc-modal-body {
    padding: 25px;
}

.wcpc-modal-body img {
    display: block;
    margin: 0 auto 20px;
    border: 1px solid #ddd;
}

.wcpc-modal-body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* Responsive modal : intégré dans les media queries principales ci-dessus */
