/**
 * WC Product Configurator - Frontend CSS
 */

/* Reset et base */
.wcpc-configurator {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
}

.wcpc-configurator *,
.wcpc-configurator *:before,
.wcpc-configurator *:after {
    box-sizing: border-box;
}

/* Header */
.wcpc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.wcpc-header-content {
    flex: 1;
    text-align: center;
}

.wcpc-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #333;
}

.wcpc-description {
    color: #666;
    font-size: 15px;
    max-width: 700px;
    margin: 0 auto;
}

/* Bouton d'aide */
.wcpc-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.wcpc-help-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.wcpc-help-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
}

@media (max-width: 600px) {
    .wcpc-header {
        flex-direction: column;
        align-items: center;
    }
    
    .wcpc-help-btn {
        order: -1;
        align-self: flex-end;
        margin-bottom: 10px;
    }
    
    .wcpc-help-btn-text {
        display: none;
    }
    
    .wcpc-help-btn {
        padding: 10px;
        border-radius: 50%;
    }
}

/* Progress Bar */
.wcpc-progress {
    margin-bottom: 30px;
}

.wcpc-progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
}

.wcpc-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.wcpc-steps-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.wcpc-step-nav-item {
    flex: 1;
    min-width: 120px;
    padding: 15px 10px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.wcpc-step-nav-item:hover {
    background: #e9ecef;
}

.wcpc-step-nav-item.active {
    background: #667eea;
    color: #fff;
}

.wcpc-step-nav-item.completed {
    background: #28a745;
    color: #fff;
}

.wcpc-step-nav-item.completed::after {
    content: '✓';
    margin-left: 5px;
}

/* Masquer les items de nav pour les étapes conditionnelles non visibles */
.wcpc-step-nav-item.hidden-by-condition {
    display: none !important;
}

.wcpc-step-nav-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.wcpc-step-nav-title {
    display: block;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Layout */
.wcpc-main {
    display: flex;
    gap: 30px;
}

.wcpc-main.layout-vertical {
    flex-direction: row;
}

.wcpc-main.layout-horizontal {
    flex-direction: column;
}

.wcpc-steps-container {
    flex: 1;
}

/* Step Panels - Accordéon */
.wcpc-step-panel {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wcpc-step-panel.active {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.wcpc-step-panel.completed:not(.active) {
    border-color: #28a745;
}

.wcpc-step-panel.completed:not(.active) .wcpc-step-number {
    background: #28a745;
}

/* Step Header - Cliquable */
.wcpc-step-header {
    padding: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wcpc-step-header:hover {
    background: #f8f9fa;
}

.wcpc-step-panel.active .wcpc-step-header {
    cursor: default;
    background: transparent;
}

.wcpc-step-header-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wcpc-step-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.wcpc-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #dee2e6;
    color: #666;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.wcpc-required {
    color: #e74c3c;
    margin-left: 3px;
}

/* Résumé de la sélection */
.wcpc-step-selection-summary {
    display: none;
    flex: 1;
    text-align: right;
    color: #28a745;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 12px;
    background: #e8f5e9;
    border-radius: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.wcpc-step-panel.completed:not(.active) .wcpc-step-selection-summary {
    display: block;
}

/* Toggle Icon */
.wcpc-step-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.wcpc-toggle-icon {
    width: 12px;
    height: 12px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.wcpc-step-panel.active .wcpc-toggle-icon {
    transform: rotate(-135deg);
}

.wcpc-step-panel.completed:not(.active) .wcpc-toggle-icon {
    border-color: #28a745;
}

/* Description */
.wcpc-step-description {
    color: #666;
    font-size: 14px;
    margin: 10px 0 0;
    padding-left: 50px;
}

.wcpc-step-panel:not(.active) .wcpc-step-description {
    display: none;
}

/* Contenu de l'étape */
.wcpc-step-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 20px;
}

.wcpc-step-panel.active .wcpc-step-content {
    max-height: 2000px;
    padding: 0 20px 20px;
}

/* Filtres par sous-catégories */
.wcpc-subcategory-filters {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.wcpc-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.wcpc-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wcpc-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wcpc-filter-btn:hover {
    border-color: var(--wcpc-primary, #667eea);
    color: var(--wcpc-primary, #667eea);
    background: #f0f4ff;
}

.wcpc-filter-btn.active {
    background: var(--wcpc-primary, #667eea);
    border-color: var(--wcpc-primary, #667eea);
    color: #fff;
}

.wcpc-filter-btn.active:hover {
    background: var(--wcpc-primary-hover, #5a67d8);
    border-color: var(--wcpc-primary-hover, #5a67d8);
    color: #fff;
}

.wcpc-filter-count {
    font-size: 11px;
    opacity: 0.8;
}

.wcpc-filter-btn.active .wcpc-filter-count {
    opacity: 0.9;
}

/* Animation de filtrage */
.wcpc-options-grid.wcpc-filtering {
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.wcpc-option-card.wcpc-filtered-out {
    display: none !important;
}

/* Options Grid */
.wcpc-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding-top: 5px; /* Espace pour l'effet hover translateY */
}

/* Option Card */
.wcpc-option-card {
    position: relative;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wcpc-option-card:hover {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.wcpc-option-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.wcpc-option-card.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
}

.wcpc-option-card.out-of-stock:hover {
    transform: none;
    box-shadow: none;
}

.wcpc-option-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.wcpc-option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wcpc-option-card:hover .wcpc-option-image img {
    transform: scale(1.05);
}

/* Overlay avec boutons sur l'image */
.wcpc-image-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.wcpc-option-card:hover .wcpc-image-overlay {
    opacity: 1;
}

.wcpc-zoom-btn,
.wcpc-product-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    text-decoration: none;
}

.wcpc-zoom-btn:hover,
.wcpc-product-link-btn:hover {
    background: #667eea;
    color: #fff;
    transform: scale(1.1);
}

.wcpc-zoom-btn svg,
.wcpc-product-link-btn svg {
    width: 18px;
    height: 18px;
}

/* Lightbox */
.wcpc-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcpc-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.wcpc-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
}

.wcpc-lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.wcpc-lightbox-title {
    text-align: center;
    color: #fff;
    font-size: 16px;
    margin-top: 15px;
    font-weight: 500;
}

.wcpc-lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
}

.wcpc-lightbox-close:hover {
    opacity: 1;
}

.wcpc-option-content {
    padding: 15px;
}

.wcpc-option-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #333;
}

.wcpc-option-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px;
    line-height: 1.4;
}

.wcpc-option-price {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

.wcpc-option-price .wcpc-price-range {
    font-size: 14px;
}

.wcpc-option-price .wcpc-price-selected {
    font-size: 18px;
}

/* Variation Selectors */
.wcpc-variation-selectors {
    margin: 12px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.wcpc-variation-selector {
    margin-bottom: 10px;
}

.wcpc-variation-selector:last-of-type {
    margin-bottom: 0;
}

.wcpc-variation-selector label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wcpc-variation-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.wcpc-variation-select:hover,
.wcpc-variation-select:focus {
    border-color: #667eea;
    outline: none;
}

.wcpc-option-card.is-variable:not(.variation-selected) {
    border-style: dashed;
}

.wcpc-option-card.is-variable.variation-selected {
    border-style: solid;
}

.wcpc-option-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.wcpc-option-check .dashicons {
    color: #fff;
    font-size: 18px;
}

.wcpc-option-card.selected .wcpc-option-check {
    opacity: 1;
    transform: scale(1);
}

.wcpc-out-of-stock-label {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 5px;
}

/* Summary */
.wcpc-summary {
    width: 350px;
    flex-shrink: 0;
}

.layout-horizontal .wcpc-summary {
    width: 100%;
    margin-top: 30px;
}

/* Summary en mobile - force 100% pour tous les layouts */
@media (max-width: 992px) {
    .wcpc-summary,
    .layout-vertical .wcpc-summary,
    .layout-horizontal .wcpc-summary {
        width: 100% !important;
        flex-shrink: 1;
        margin-top: 20px;
    }
}

.wcpc-summary-inner {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    position: sticky;
    top: 30px;
}

/* Masquer le titre et les items quand le récapitulatif est vide */
.wcpc-summary.wcpc-summary-empty .wcpc-summary-title,
.wcpc-summary.wcpc-summary-empty .wcpc-summary-items,
.wcpc-summary.wcpc-summary-empty .wcpc-summary-weight {
    display: none;
}

.wcpc-summary-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.wcpc-summary-items {
    margin-bottom: 20px;
}

.wcpc-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.wcpc-summary-item:last-child {
    border-bottom: none;
}

.wcpc-summary-item-step {
    font-size: 12px;
    color: #666;
    display: block;
}

.wcpc-summary-item-option {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.wcpc-summary-item-price {
    font-weight: 600;
    color: #667eea;
    white-space: nowrap;
    margin-left: 15px;
}

/* Frais de montage */
.wcpc-summary-montage {
    background: #f0f4ff;
    border-radius: 6px;
    padding: 10px 12px !important;
    margin-top: 10px;
    border: 1px dashed #667eea;
}

.wcpc-summary-montage .wcpc-summary-item-step {
    color: #667eea;
    font-weight: 600;
}

.wcpc-item-weight {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

.wcpc-item-quantity {
    font-size: 12px;
    color: #8c5cbd;
    font-weight: 600;
    background: #f0e6f6;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
}

.wcpc-item-variation {
    font-size: 11px;
    color: #667eea;
    display: block;
    margin-top: 2px;
}

.wcpc-summary-weight {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-top: 10px;
    border-top: 1px dashed #ddd;
    background: #f8f9fa;
    margin: 10px -15px;
    padding: 12px 15px;
}

.wcpc-weight-label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.wcpc-weight-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.wcpc-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin: 15px 0;
    border-top: 2px solid #333;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Masquer le total tant que toutes les étapes ne sont pas remplies */
.wcpc-summary-total.wcpc-total-hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
    overflow: hidden;
}

.wcpc-total-label {
    font-size: 16px;
    font-weight: 600;
}

.wcpc-total-price {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.wcpc-summary-actions {
    margin-top: 20px;
}

.wcpc-add-to-cart {
    width: 100%;
    padding: 15px 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: #fff !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
}

.wcpc-add-to-cart:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.wcpc-add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wcpc-summary-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.wcpc-summary-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
}

.wcpc-summary-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
}

/* Validation Error */
.wcpc-validation-error {
    display: none;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
    animation: shake 0.5s ease-in-out;
}

.wcpc-validation-error ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.wcpc-validation-error li {
    margin: 5px 0;
    font-weight: 500;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Boutons d'action - style disabled mais cliquable */
.wcpc-add-to-cart.wcpc-disabled,
.wcpc-inquiry-btn.wcpc-disabled {
    opacity: 0.6;
    cursor: pointer;
    filter: grayscale(20%);
    pointer-events: auto !important;
}

.wcpc-add-to-cart.wcpc-disabled:hover,
.wcpc-inquiry-btn.wcpc-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Loading */
.wcpc-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 12px;
}

.wcpc-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 992px) {
    .wcpc-main {
        flex-direction: column;
    }
    
    .wcpc-main.layout-vertical {
        flex-direction: column;
    }
    
    .wcpc-steps-container {
        width: 100%;
    }
    
    .wcpc-summary {
        width: 100%;
    }
    
    .wcpc-summary-inner {
        position: static;
    }
}

@media (max-width: 768px) {
    .wcpc-title {
        font-size: 22px;
    }
    
    .wcpc-main {
        gap: 20px;
    }
    
    .wcpc-steps-nav {
        flex-direction: column;
    }
    
    .wcpc-step-nav-item {
        min-width: 100%;
    }
    
    .wcpc-step-header {
        padding: 15px;
    }
    
    .wcpc-step-content {
        padding: 15px;
    }
    
    .wcpc-options-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .wcpc-option-content {
        padding: 12px;
    }
    
    .wcpc-option-title {
        font-size: 14px;
    }
    
    .wcpc-option-price {
        font-size: 16px;
    }
    
    .wcpc-subcategory-filters {
        padding: 12px;
    }
    
    .wcpc-filter-buttons {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .wcpc-filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .wcpc-summary-inner {
        padding: 20px;
    }
    
    .wcpc-summary-actions {
        flex-direction: column;
    }
    
    .wcpc-summary-actions .button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .wcpc-configurator {
        padding: 0 10px;
    }
    
    .wcpc-header {
        padding-bottom: 15px;
        margin-bottom: 20px;
    }
    
    .wcpc-title {
        font-size: 20px;
    }
    
    .wcpc-main {
        gap: 15px;
    }
    
    .wcpc-step-panel {
        margin-bottom: 10px;
    }
    
    .wcpc-step-header {
        padding: 12px;
    }
    
    .wcpc-step-title {
        font-size: 16px;
    }
    
    .wcpc-step-content {
        padding: 12px;
    }
    
    .wcpc-options-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .wcpc-option-image {
        height: 80px;
    }
    
    .wcpc-option-content {
        padding: 10px;
    }
    
    .wcpc-option-title {
        font-size: 13px;
    }
    
    .wcpc-option-price {
        font-size: 14px;
    }
    
    .wcpc-summary-inner {
        padding: 15px;
        border-radius: 8px;
    }
    
    .wcpc-summary-title {
        font-size: 16px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .wcpc-summary-item {
        padding: 8px 0;
        font-size: 13px;
    }
    
    .wcpc-summary-total {
        padding: 12px;
        font-size: 16px;
    }
}

/* No options */
.wcpc-no-options {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

/* Error state */
.wcpc-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
}

/* Liste des configurateurs */
.wcpc-configurators-list {
    display: grid;
    gap: 30px;
}

.wcpc-configurators-list.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.wcpc-configurators-list.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.wcpc-configurators-list.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.wcpc-configurator-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.wcpc-configurator-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.wcpc-item-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.wcpc-item-title {
    font-size: 18px;
    margin: 15px 20px 10px;
}

.wcpc-item-excerpt {
    font-size: 14px;
    color: #666;
    margin: 0 20px 15px;
    line-height: 1.5;
}

.wcpc-item-button {
    display: block;
    text-align: center;
    margin: 0 20px 20px;
    padding: 10px 20px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 6px !important;
}

@media (max-width: 768px) {
    .wcpc-configurators-list.columns-2,
    .wcpc-configurators-list.columns-3,
    .wcpc-configurators-list.columns-4 {
        grid-template-columns: 1fr;
    }
}

/* Styles pour le panier WooCommerce */
.woocommerce-cart-form .wcpc-variation-details,
.woocommerce-checkout .wcpc-variation-details {
    color: #666;
    font-style: italic;
    font-size: 0.9em;
}

.woocommerce-cart-form .wcpc-price-detail,
.woocommerce-checkout .wcpc-price-detail {
    display: block;
    color: #667eea;
    font-size: 0.95em;
    margin-top: 3px;
}

.woocommerce-cart-form dl.variation dt,
.woocommerce-checkout dl.variation dt {
    font-weight: 600;
    color: #333;
}

.woocommerce-cart-form dl.variation dd,
.woocommerce-checkout dl.variation dd {
    margin-bottom: 8px;
}

.woocommerce-cart-form dl.variation dd p,
.woocommerce-checkout dl.variation dd p {
    margin: 0;
    line-height: 1.5;
}

/* Boutons actions */
.wcpc-summary-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.wcpc-summary-actions .button {
    width: 100%;
    text-align: center;
    padding: 12px 20px !important;
    font-size: 16px !important;
}

.wcpc-inquiry-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border-color: #28a745 !important;
}

.wcpc-inquiry-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%) !important;
}

/* Modal demande d'info */
.wcpc-inquiry-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.wcpc-inquiry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.wcpc-inquiry-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.wcpc-inquiry-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.wcpc-inquiry-close:hover {
    color: #333;
}

.wcpc-inquiry-content h3 {
    margin: 0 0 25px;
    font-size: 22px;
    color: #333;
}

.wcpc-inquiry-field {
    margin-bottom: 18px;
}

.wcpc-inquiry-row {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
}

.wcpc-inquiry-row .wcpc-inquiry-field {
    margin-bottom: 0;
}

.wcpc-inquiry-half {
    flex: 1;
}

.wcpc-inquiry-third {
    flex: 0 0 35%;
}

.wcpc-inquiry-twothird {
    flex: 1;
}

.wcpc-inquiry-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.wcpc-inquiry-field label .required {
    color: #e74c3c;
}

.wcpc-inquiry-field input,
.wcpc-inquiry-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.wcpc-inquiry-field input:focus,
.wcpc-inquiry-field textarea:focus {
    outline: none;
    border-color: #667eea;
}

.wcpc-inquiry-summary {
    margin: 25px 0;
    padding: 0;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.wcpc-inquiry-summary h4 {
    margin: 0;
    padding: 12px 15px;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--wcpc-primary, #667eea) 0%, var(--wcpc-primary-hover, #764ba2) 100%);
    font-weight: 600;
}

.wcpc-inquiry-summary-content {
    font-size: 14px;
    line-height: 1.6;
}

.wcpc-inquiry-summary-table {
    width: 100%;
    border-collapse: collapse;
}

.wcpc-inquiry-summary-table thead th {
    padding: 10px 15px;
    text-align: left;
    font-weight: 600;
    color: #555;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    font-size: 12px;
    text-transform: uppercase;
}

.wcpc-inquiry-summary-table thead th:last-child {
    text-align: right;
}

.wcpc-inquiry-summary-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.wcpc-inquiry-summary-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.wcpc-inquiry-summary-table tbody td {
    padding: 12px 15px;
    vertical-align: top;
}

.wcpc-inquiry-summary-table tbody td:last-child {
    text-align: right;
    white-space: nowrap;
    font-weight: 500;
    color: var(--wcpc-primary, #667eea);
}

.wcpc-inquiry-summary-step {
    font-weight: 600;
    color: #333;
    display: block;
}

.wcpc-inquiry-summary-option {
    color: #666;
    font-size: 13px;
}

.wcpc-inquiry-summary-attrs {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

.wcpc-inquiry-summary-qty {
    color: var(--wcpc-primary, #667eea);
    font-weight: 600;
}

.wcpc-inquiry-summary-weight {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    font-weight: 500;
    font-size: 14px;
    color: #555;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.wcpc-inquiry-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--wcpc-primary, #667eea) 0%, var(--wcpc-primary-hover, #764ba2) 100%);
}

.wcpc-inquiry-summary-total span:last-child {
    font-size: 18px;
}

.wcpc-inquiry-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.wcpc-inquiry-submit {
    flex: 2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: #fff !important;
    padding: 14px 25px !important;
    font-size: 16px !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wcpc-inquiry-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.wcpc-inquiry-cancel {
    flex: 1;
    background: #f8f9fa !important;
    border: 1px solid #ddd !important;
    color: #666 !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
    border-radius: 6px !important;
    cursor: pointer;
}

.wcpc-inquiry-cancel:hover {
    background: #e9ecef !important;
}

.wcpc-inquiry-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    display: none;
}

.wcpc-inquiry-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wcpc-inquiry-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 480px) {
    .wcpc-inquiry-content {
        padding: 20px;
    }
    
    .wcpc-inquiry-actions {
        flex-direction: column;
    }
    
    .wcpc-inquiry-submit,
    .wcpc-inquiry-cancel {
        flex: none;
    }
}

/* ========================================
   BOUTONS SECONDAIRES
======================================== */

.wcpc-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e0e0e0;
}

.wcpc-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.wcpc-action-hint {
    font-size: 10px;
    color: #888;
    text-align: center;
    max-width: 100px;
    line-height: 1.2;
}

/* Styles renforcés pour tous les boutons secondaires */
.wcpc-secondary-actions .button,
.wcpc-configurator .wcpc-secondary-actions .button,
.wcpc-secondary-actions button.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    background: #f8f9fa !important;
    border: 1px solid #ddd !important;
    color: #555 !important;
    transition: all 0.2s ease !important;
    min-height: 38px !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    border-radius: 4px !important;
}

.wcpc-secondary-actions .button:hover,
.wcpc-configurator .wcpc-secondary-actions .button:hover {
    background: #e9ecef !important;
    border-color: #ccc !important;
    color: #333 !important;
}

.wcpc-secondary-actions .button .dashicons,
.wcpc-configurator .wcpc-secondary-actions .button .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    line-height: 1 !important;
    margin: 0 !important;
}

/* Badge compteur comparateur - rond */
.wcpc-compare-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 20px !important;
    width: 20px !important;
    height: 20px !important;
    padding: 0 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    background: rgba(255,255,255,0.3) !important;
    color: #fff !important;
    border-radius: 50% !important;
    margin-left: 2px !important;
    line-height: 1 !important;
}

/* Bouton Voir le comparatif - style orange/primaire */
.wcpc-view-compare-btn,
.wcpc-configurator .wcpc-view-compare-btn,
.wcpc-secondary-actions .wcpc-view-compare-btn {
    background: var(--wcpc-primary, #667eea) !important;
    color: #fff !important;
    border-color: var(--wcpc-primary, #667eea) !important;
    min-height: 38px !important;
}

.wcpc-view-compare-btn:hover,
.wcpc-configurator .wcpc-view-compare-btn:hover {
    background: var(--wcpc-primary-dark, #5a67d8) !important;
    border-color: var(--wcpc-primary-dark, #5a67d8) !important;
    color: #fff !important;
}

/* Badge compteur Mes configs - rond */
.wcpc-saved-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 20px !important;
    width: 20px !important;
    height: 20px !important;
    padding: 0 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    background: #f59e0b !important;
    color: #fff !important;
    border-radius: 50% !important;
    margin-left: 5px !important;
    line-height: 1 !important;
}
}

@media (max-width: 768px) {
    .wcpc-action-hint {
        font-size: 9px;
        max-width: 80px;
    }
}

@media (max-width: 600px) {
    .wcpc-secondary-actions .wcpc-btn-text {
        display: none;
    }
    
    .wcpc-secondary-actions .button {
        padding: 8px 10px;
    }
    
    .wcpc-action-hint {
        display: none;
    }
    
    .wcpc-secondary-actions {
        gap: 10px;
    }
}

/* ========================================
   MODALS GÉNÉRIQUES
======================================== */

.wcpc-save-modal,
.wcpc-saved-modal,
.wcpc-share-modal,
.wcpc-compare-modal,
.wcpc-compare-name-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wcpc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.wcpc-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.wcpc-modal-content.wcpc-modal-large {
    max-width: 700px;
}

.wcpc-modal-content.wcpc-modal-xlarge {
    max-width: 95%;
    width: 1100px;
}

.wcpc-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.wcpc-modal-close:hover {
    color: #333;
}

.wcpc-modal-content h3 {
    margin: 0 0 25px;
    font-size: 22px;
    color: #333;
}

.wcpc-modal-field {
    margin-bottom: 20px;
}

.wcpc-modal-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.wcpc-modal-field input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}

.wcpc-modal-field input[type="text"]:focus {
    border-color: var(--wcpc-primary, #667eea);
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.wcpc-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.wcpc-modal-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wcpc-modal-actions .button.alt {
    background: linear-gradient(135deg, var(--wcpc-primary, #667eea) 0%, var(--wcpc-primary-hover, #764ba2) 100%);
    color: #fff;
    border: none;
}

.wcpc-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.wcpc-modal-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.wcpc-modal-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wcpc-modal-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wcpc-loading-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 30px;
    color: #666;
}

.wcpc-spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-top-color: var(--wcpc-primary, #667eea);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ========================================
   CONFIGURATIONS SAUVEGARDÉES
======================================== */

.wcpc-no-configs {
    text-align: center;
    color: #666;
    padding: 30px;
}

.wcpc-configs-grid {
    display: grid;
    gap: 15px;
}

.wcpc-config-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s ease;
}

.wcpc-config-card:hover {
    border-color: var(--wcpc-primary, #667eea);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wcpc-config-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.wcpc-config-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.wcpc-config-date {
    font-size: 12px;
    color: #888;
}

.wcpc-config-summary {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.wcpc-config-total {
    font-weight: 700;
    color: var(--wcpc-primary, #667eea);
    margin-bottom: 12px;
}

.wcpc-config-actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.wcpc-config-actions .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    min-height: 36px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    border-radius: 6px !important;
}

.wcpc-config-actions .button .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    line-height: 1 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Boutons icônes seuls (partager, supprimer) */
.wcpc-config-actions .button:not(:first-child) {
    padding: 8px 10px !important;
    min-width: 36px !important;
}

/* ========================================
   PARTAGE
======================================== */

.wcpc-share-content p {
    margin: 0 0 15px;
    color: #666;
}

.wcpc-share-url-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.wcpc-share-url {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: #f8f9fa;
}

.wcpc-copy-url {
    padding: 10px 15px;
}

.wcpc-share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 15px;
}

.wcpc-share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
}

.wcpc-share-buttons a:hover {
    transform: scale(1.1);
}

.wcpc-share-whatsapp:hover {
    background: #25D366;
    color: #fff !important;
}

.wcpc-share-email:hover {
    background: var(--wcpc-primary, #667eea);
    color: #fff !important;
}

.wcpc-share-facebook:hover {
    background: #1877F2;
    color: #fff !important;
}

.wcpc-share-buttons .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

/* ========================================
   COMPARATEUR
======================================== */

.wcpc-compare-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.wcpc-compare-table-wrapper {
    overflow-x: auto;
    margin: -10px;
    padding: 10px;
}

.wcpc-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.wcpc-compare-table th,
.wcpc-compare-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.wcpc-compare-table thead th {
    background: #f8f9fa;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.wcpc-compare-step-col {
    width: 180px;
    min-width: 150px;
}

.wcpc-compare-config-col {
    min-width: 200px;
}

.wcpc-compare-config-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wcpc-compare-config-name {
    font-weight: 600;
    color: #333;
}

.wcpc-compare-config-actions {
    display: flex;
    gap: 5px;
}

.wcpc-compare-config-actions button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #888;
    border-radius: 4px;
}

.wcpc-compare-config-actions button:hover {
    background: #e9ecef;
    color: #333;
}

.wcpc-compare-config-actions .wcpc-save-compare-config {
    color: #f0ad4e;
}

.wcpc-compare-config-actions .wcpc-save-compare-config:hover {
    color: #ec971f;
    background: #fff8e6;
}

.wcpc-compare-config-actions .wcpc-load-compare-config:hover {
    color: #28a745;
}

.wcpc-compare-config-actions .wcpc-remove-compare:hover {
    color: #dc3545;
}

.wcpc-compare-step-name {
    font-weight: 500;
    color: #333;
    background: #fafafa;
}

.wcpc-compare-cell {
    background: #fff;
}

.wcpc-compare-empty-cell {
    color: #ccc;
    text-align: center;
}

.wcpc-compare-option {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
}

.wcpc-compare-attrs {
    display: block;
    font-size: 12px;
    color: #888;
    font-style: italic;
}

.wcpc-compare-qty {
    display: inline-block;
    font-size: 12px;
    color: var(--wcpc-primary, #667eea);
    font-weight: 600;
    margin-left: 5px;
}

.wcpc-compare-price {
    display: block;
    font-size: 13px;
    color: var(--wcpc-primary, #667eea);
    margin-top: 4px;
}

.wcpc-compare-weight-row td {
    background: #f8f9fa;
    color: #555;
    font-size: 14px;
    border-top: 2px solid #dee2e6;
}

.wcpc-compare-weight-row .wcpc-compare-step-name {
    background: #f0f0f0;
}

.wcpc-compare-weight-cell {
    color: #666;
}

/* Ligne des frais de montage dans le comparateur */
.wcpc-compare-montage-row td {
    background: #f0f4ff;
    color: #667eea;
    font-size: 14px;
    border-top: 1px dashed #667eea;
}

.wcpc-compare-montage-row .wcpc-compare-step-name {
    background: #e8edff;
}

.wcpc-compare-montage-cell {
    color: #667eea;
}

.wcpc-compare-total-row td {
    background: linear-gradient(135deg, var(--wcpc-primary, #667eea) 0%, var(--wcpc-primary-hover, #764ba2) 100%);
    color: #fff;
    font-size: 16px;
}

.wcpc-compare-total-row .wcpc-compare-step-name {
    background: transparent;
    color: #fff;
}

.wcpc-compare-total-cell {
    font-size: 18px !important;
}

@media (max-width: 768px) {
    .wcpc-modal-content.wcpc-modal-xlarge {
        max-width: 100%;
        padding: 20px;
    }
    
    .wcpc-compare-step-col {
        width: 120px;
        min-width: 100px;
    }
    
    .wcpc-compare-config-col {
        min-width: 150px;
    }
}

/* ===========================================
   POPUP AIDE
=========================================== */

.wcpc-help-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wcpc-help-modal .wcpc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.wcpc-help-modal .wcpc-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.wcpc-help-modal .wcpc-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.wcpc-help-modal .wcpc-modal-close:hover {
    color: #333;
}

.wcpc-help-modal-content {
    text-align: left;
}

.wcpc-help-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.wcpc-help-modal-header .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 8px;
    border-radius: 50%;
    box-sizing: content-box;
}

.wcpc-help-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.wcpc-help-modal-body {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.wcpc-help-modal-body p {
    margin: 0 0 15px;
}

.wcpc-help-modal-body p:last-child {
    margin-bottom: 0;
}

.wcpc-help-modal-body strong {
    color: #333;
}

.wcpc-help-modal-body ul,
.wcpc-help-modal-body ol {
    margin: 0 0 15px 20px;
    padding: 0;
}

.wcpc-help-modal-body li {
    margin-bottom: 8px;
}

.wcpc-help-modal-body h4,
.wcpc-help-modal-body h5 {
    margin: 20px 0 10px;
    color: #333;
}

.wcpc-help-modal-body h4:first-child,
.wcpc-help-modal-body h5:first-child {
    margin-top: 0;
}

.wcpc-help-modal-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.wcpc-help-modal-close {
    padding: 12px 30px !important;
    font-size: 15px !important;
}

/* Scrollbar personnalisée pour le contenu aide */
.wcpc-help-modal-body::-webkit-scrollbar {
    width: 6px;
}

.wcpc-help-modal-body::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.wcpc-help-modal-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.wcpc-help-modal-body::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

@media (max-width: 600px) {
    .wcpc-help-modal .wcpc-modal-content {
        max-width: 95%;
        padding: 20px;
    }
    
    .wcpc-help-modal-header .dashicons {
        font-size: 24px;
        width: 24px;
        height: 24px;
        padding: 6px;
    }
    
    .wcpc-help-modal-header h3 {
        font-size: 18px;
    }
    
    .wcpc-help-modal-body {
        max-height: 300px;
        font-size: 14px;
    }
}
