/**
 * Frontend Styles for WC Clock Numbers Configurator
 *
 * @package WC_Clock_Numbers_Configurator
 * @since 1.0.0
 */

.wc-clock-configurator {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header */
.configurator-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.configurator-header h3 {
    font-size: 2rem;
    color: #333;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.configurator-header p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Content Layout */
.configurator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .configurator-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Controls */
.configurator-controls {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-group:last-child {
    margin-bottom: 0;
}

/* Control group row for side-by-side layout */
.control-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.control-group-row .control-group {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .control-group-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Enhanced Select Styling - Modern and readable */
select {
    width: 100%;
    padding: 18px 50px 18px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 16px;
    color: #1a202c;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    min-height: 60px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
    position: relative;
}

select:hover {
    border-color: #007cba;
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.15);
}

select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.2);
    background-color: white;
    transform: translateY(0);
}

select option {
    background: white;
    color: #1a202c;
    font-size: 16px;
    padding: 16px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    min-height: 50px;
    line-height: 1.4;
}

select option:hover {
    background: #f7fafc;
    color: #007cba;
}

select option:checked {
    background: #007cba;
    color: white;
    font-weight: 600;
}

/* Dropdown arrow wrapper */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #007cba;
    font-size: 14px;
    font-weight: bold;
    z-index: 1;
}

.control-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.value-display {
    float: right;
    font-weight: normal;
    color: #007cba;
    background: #e7f3ff;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.85rem;
}

/* Radio Groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.radio-option:hover {
    background: #e9ecef;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.2s;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #007cba;
    background: #007cba;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Custom Select Styles */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.3s ease;
    appearance: none;
    cursor: pointer;
    font-weight: 500;
}

.custom-select:hover {
    border-color: #007cba;
    background-color: #f8f9fa;
}

.custom-select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
    background-color: white;
}

.custom-select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.custom-select:focus + .custom-select-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: #007cba;
}

/* Legacy Select Styles (fallback) */
select:not(.custom-select) {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 0.95rem;
    color: #333;
    transition: border-color 0.2s;
}

select:not(.custom-select):focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

/* Range Inputs */
input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    margin: 1rem 0 0.5rem 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007cba;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007cba;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Checkbox Groups */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.checkbox-option:hover {
    background: #e9ecef;
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 3px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.2s;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    border-color: #007cba;
    background: #007cba;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Font Upload */
.font-upload {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.font-upload-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.font-upload-btn:hover {
    background: #5a6268;
}

.font-upload-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e7f3ff;
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.font-name {
    font-weight: 500;
    color: #007cba;
}

.remove-font {
    background: #dc3545;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.remove-font:hover {
    background: #c82333;
}

/* Preview */
.configurator-preview {
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.preview-tabs {
    display: flex;
    background: #e9ecef;
    border-bottom: 1px solid #dee2e6;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.tab-btn.active {
    background: #f8f9fa;
    color: #007cba;
    border-bottom: 2px solid #007cba;
}

.preview-content {
    display: none;
    padding: 1.5rem;
    min-height: 500px;
}

.preview-content.active {
    display: block;
}

/* Configurator Preview */
.configurator-preview {
    position: relative;
}

.svg-container,
.webgl-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    width: 500px;
    height: 500px;
    margin: 0 auto;
    overflow: visible;
}

/* Preview Note */
.preview-note {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.preview-note p {
    margin: 0.5rem 0;
    color: #0c4a6e;
    font-size: 0.9rem;
    line-height: 1.5;
}

.preview-note p:first-child {
    margin-top: 0;
}

.preview-note p:last-child {
    margin-bottom: 0;
}

.preview-note strong {
    color: #0369a1;
    font-weight: 600;
}

/* Mise en évidence des informations sur l'échelle */
.preview-note .scale-info {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 0.75rem;
    margin: 0.75rem 0;
    position: relative;
}

.preview-note .scale-info::before {
    content: '📏';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 50%;
    padding: 4px;
    font-size: 0.8rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.preview-note .scale-info p {
    margin: 0;
    color: #92400e;
    font-size: 0.85rem;
    line-height: 1.4;
    padding-left: 1.5rem;
}

/* Options Recap */
.options-recap {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: transparent;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.options-recap h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

.recap-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
}

.recap-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recap-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.recap-label {
    font-weight: 500;
    color: #64748b;
    font-size: 0.9rem;
}

.recap-value {
    font-weight: 600;
    color: #1a202c;
    font-size: 0.9rem;
}

.recap-price {
    text-align: center;
    padding: 1rem;
    background: transparent;
    border-radius: 8px;
    border: none;
    min-width: 120px;
    background-color: transparent;
}

/* Price Highlight Box */
.price-highlight-box {
    margin-top: 1.5rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.price-highlight-content {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
    position: relative;
    overflow: hidden;
}

.price-highlight-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
}

.price-highlight-label {
    font-size: 1rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-highlight-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #92400e;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1;
}

.recap-price-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.recap-price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
}

@media (max-width: 768px) {
    .recap-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .recap-price {
        min-width: auto;
    }
}

#clock-svg {
    width: 500px;
    height: 500px;
    max-width: none;
}

#clock-3d {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.webgl-info {
    text-align: center;
    color: #666;
    padding: 2rem;
}

.3d-controls {
    padding: 1rem 1.5rem;
    background: #e9ecef;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 0.75rem;
}

/* Actions */
.configurator-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

@media (max-width: 768px) {
    .configurator-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
}

.configurator-info {
    display: flex;
    gap: 2rem;
}

@media (max-width: 768px) {
    .configurator-info {
        flex-direction: column;
        gap: 1rem;
    }
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }
}

/* Amélioration de la disposition des boutons */
.action-buttons {
    flex-wrap: wrap;
    justify-content: center;
}

.action-buttons .download-btn {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
}

.action-buttons .add-to-cart-btn {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

/* Masquer les sélecteurs de quantité WooCommerce */
.woocommerce .quantity,
.woocommerce .quantity input[type="number"],
.woocommerce .quantity .qty,
.woocommerce .quantity .quantity-input,
.woocommerce .quantity .quantity-selector,
.woocommerce .quantity .wc-block-components-quantity-selector,
.woocommerce .quantity .wc-block-components-quantity-selector__input,
.woocommerce .quantity .wc-block-components-quantity-selector__button,
.woocommerce .quantity .wc-block-components-quantity-selector__decrease,
.woocommerce .quantity .wc-block-components-quantity-selector__increase {
    display: none !important;
}

/* Masquer aussi les labels de quantité */
.woocommerce .quantity label,
.woocommerce .quantity .quantity-label {
    display: none !important;
}

/* Masquer les conteneurs de quantité entiers */
.woocommerce .quantity-wrapper,
.woocommerce .quantity-container {
    display: none !important;
}

/* Masquer les sélecteurs de quantité sur les pages avec configurateur */
.single-product .woocommerce .quantity,
.single-product .woocommerce .quantity input[type="number"],
.single-product .woocommerce .quantity .qty,
.single-product .woocommerce .quantity .quantity-input,
.single-product .woocommerce .quantity .quantity-selector,
.single-product .woocommerce .quantity .wc-block-components-quantity-selector,
.single-product .woocommerce .quantity .wc-block-components-quantity-selector__input,
.single-product .woocommerce .quantity .wc-block-components-quantity-selector__button,
.single-product .woocommerce .quantity .wc-block-components-quantity-selector__decrease,
.single-product .woocommerce .quantity .wc-block-components-quantity-selector__increase {
    display: none !important;
}

/* Masquer aussi les labels de quantité sur les pages produit */
.single-product .woocommerce .quantity label,
.single-product .woocommerce .quantity .quantity-label {
    display: none !important;
}

/* Masquer les conteneurs de quantité entiers sur les pages produit */
.single-product .woocommerce .quantity-wrapper,
.single-product .woocommerce .quantity-container {
    display: none !important;
}

.button {
    padding: 0.75rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #333;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.button:hover {
    background: #f8f9fa;
    border-color: #007cba;
    color: #007cba;
}

.button.primary {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.button.primary:hover {
    background: #005a87;
    border-color: #005a87;
}

/* Messages */
.configurator-messages {
    margin-top: 1rem;
}

.message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

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

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

.message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background: #f8f9fa;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    margin: 0 0 1rem 0;
    color: #666;
    line-height: 1.5;
}

.font-file-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    cursor: pointer;
    transition: border-color 0.2s;
}

.font-file-input:hover {
    border-color: #007cba;
}

.font-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.font-preview h5 {
    margin: 0 0 0.75rem 0;
    color: #333;
    font-size: 1rem;
}

.font-sample {
    font-size: 1.5rem;
    color: #333;
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Loading Indicator */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator span {
    color: #666;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .wc-clock-configurator {
        margin: 1rem;
        padding: 1rem;
    }
    
    .configurator-content {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .wc-clock-configurator {
        margin: 0.5rem;
        padding: 0.75rem;
    }
    
    .configurator-header h3 {
        font-size: 1.5rem;
    }
    
    .configurator-header p {
        font-size: 1rem;
    }
    
    .control-group label {
        font-size: 0.9rem;
    }
    
    .button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.button:focus,
select:focus,
input[type="range"]:focus,
.radio-option:focus-within,
.checkbox-option:focus-within {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wc-clock-configurator {
        border: 2px solid #000;
    }
    
    .button {
        border: 2px solid #000;
    }
    
    .radio-custom,
    .checkbox-custom {
        border: 2px solid #000;
    }
}

/* Custom Select Styles - Simplified for better compatibility */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #ccc;
    border-radius: 6px;
    background: white;
    font-size: 16px;
    color: #333;
    font-weight: normal;
    line-height: 1.2;
    cursor: pointer;
    font-family: Arial, sans-serif;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.custom-select:hover {
    border-color: #007cba;
    background-color: #f9f9f9;
}

.custom-select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.custom-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
    font-size: 16px;
}

/* Enhanced Control Group Styles */
.control-group label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #0f172a;
    font-size: 1.1rem;
    letter-spacing: 0.025em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.control-group:last-child {
    margin-bottom: 0;
}

/* Price Recap Styles */
.price-recap {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.price-recap-content h4 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.recap-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .recap-details {
        grid-template-columns: 1fr;
    }
}

.recap-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.recap-label {
    font-weight: 500;
    color: #64748b;
    font-size: 0.9rem;
}

.recap-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
    text-align: right;
}

.recap-price {
    background: transparent;
    color: #1e293b;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
}

.recap-price-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #64748b;
}

.recap-price-amount {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Price Display Styles */
.price-amount {
    font-weight: 700;
    color: #007cba;
    font-size: 1.1rem;
}

/* Enhanced Checkbox Styles */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* Custom Color Selector */
.color-selector-wrapper {
    position: relative;
}

.color-selector {
    position: relative;
    cursor: pointer;
}

.selected-color-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.selected-color-display:hover {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

.selected-color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    background-color: var(--swatch-color, #000000);
}

.selected-color-name {
    font-weight: 500;
    color: #1a202c;
    flex-grow: 1;
}

.color-arrow {
    color: #64748b;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.color-selector.open .color-arrow {
    transform: rotate(180deg);
}

.color-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.color-category {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.color-category:last-child {
    border-bottom: none;
}

.color-category h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.color-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.color-option:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.color-option .color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    min-height: 40px;
    display: block;
    position: relative;
    /* S'assurer que les couleurs sont visibles */
    background-color: var(--swatch-color, #cccccc);
    flex-shrink: 0;
}

.color-option .color-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.3;
    flex-grow: 1;
}

.color-option .color-surcharge {
    font-size: 0.7rem;
    font-weight: 600;
    color: #059669;
    background: #d1fae5;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Background Color Control in Preview */
.preview-background-control {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    z-index: 10;
}

.background-color-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.35rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 1;
}

.background-color-picker:hover {
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    border-color: #007cba;
}

.background-color-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    text-align: center;
    line-height: 1;
}

.color-icon {
    font-size: 0.9rem;
    line-height: 1;
    opacity: 1;
}

.background-color-picker input[type="color"] {
    width: 30px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    background: none;
    padding: 0;
    transition: all 0.2s ease;
}

.background-color-picker input[type="color"]:hover {
    border-color: #007cba;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.2);
}

.background-color-picker input[type="color"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.2);
}

.checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.checkbox-option:hover {
    border-color: #007cba;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.15);
}

.checkbox-option:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 124, 186, 0.1);
}

.checkbox-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    position: relative;
    height: 24px;
    width: 24px;
    background: white;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    margin-right: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkbox-option:hover .checkbox-custom {
    border-color: #007cba;
    background: #f0f9ff;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    animation: checkboxCheck 0.2s ease-in-out;
}

.checkbox-option input[type="checkbox"]:focus + .checkbox-custom {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.checkbox-option input[type="checkbox"]:focus:not(:focus-visible) + .checkbox-custom {
    outline: none;
}

/* Checkbox label text */
.checkbox-option {
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.4;
    user-select: none;
}

/* Animation for checkbox check */
@keyframes checkboxCheck {
    0% {
        opacity: 0;
        transform: rotate(45deg) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: rotate(45deg) scale(1);
    }
}

/* Focus styles for accessibility */
.checkbox-option:focus-within {
    outline: 2px solid #007cba;
    outline-offset: 2px;
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .checkbox-option {
        padding: 0.6rem;
    }
    
    .checkbox-custom {
        height: 20px;
        width: 20px;
        margin-right: 0.75rem;
    }
    
    .checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
        left: 6px;
        top: 3px;
        width: 5px;
        height: 10px;
    }
}

/* Enhanced Select Dropdown Styles */
select optgroup {
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
}

select optgroup option {
    font-weight: 400;
    color: #374151;
    background: white;
    padding: 8px 16px;
    margin-left: 8px;
}

select optgroup option:hover {
    background: #f0f9ff;
    color: #007cba;
}

/* Color-specific styling for different categories */
select optgroup[label="Couleurs de base"] {
    color: #059669;
    background: #f0fdf4;
}

select optgroup[label="Couleurs métalliques"] {
    color: #7c3aed;
    background: #faf5ff;
}

select optgroup[label="Couleurs spéciales"] {
    color: #dc2626;
    background: #fef2f2;
}

select optgroup[label="Couleurs bois"] {
    color: #92400e;
    background: #fefce8;
}

/* Prix au centre du cadran */
.preview-price-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    pointer-events: none;
    min-width: 120px;
    margin: 0;
    padding: 0;
}

.preview-price-display:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #007cba;
}

.preview-price-display .price-label {
    font-size: 0.75rem;
    font-weight: 400;
    color: #94a3b8;
    margin: 0 0 0.2rem 0;
    text-transform: none;
    letter-spacing: 0.01em;
    text-shadow: none;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    display: inline-block;
}

.preview-price-display .price-amount {
    font-size: 1.4rem;
    font-weight: 500;
    color: #047857;
    text-shadow: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    display: inline-block;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 0;
}

.preview-price-display .price-amount .woocommerce-Price-amount {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .preview-price-display {
        margin: 0.4rem auto;
        padding: 0.6rem;
        max-width: 280px;
    }
    
    .preview-price-display .price-label {
        font-size: 0.85rem;
    }
    
    .preview-price-display .price-amount {
        font-size: 1.3rem;
    }
}

/* Boutons d'action améliorés avec icônes */
.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

.action-buttons .button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 140px;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #475569;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.action-buttons .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #cbd5e1;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.action-buttons .button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.action-buttons .button:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Boutons de téléchargement */
.action-buttons .download-btn {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0369a1;
    border-color: #bae6fd;
}

.action-buttons .download-btn:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-color: #7dd3fc;
    color: #075985;
}

.action-buttons .download-btn:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

/* Bouton ajouter au panier */
.action-buttons .add-to-cart-btn {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border-color: #86efac;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    min-width: 200px;
    position: relative;
}

.action-buttons .add-to-cart-btn:hover {
    background: linear-gradient(135deg, #bbf7d0 0%, #86efac 100%);
    border-color: #4ade80;
    color: #15803d;
}

.action-buttons .add-to-cart-btn:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Icônes des boutons */
.button-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Prix intégré dans le bouton */
.price-inline {
    font-size: 1.1rem;
    font-weight: 700;
    color: white !important;
    margin-left: 0.75rem;
    padding-left: 0.75rem;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    display: inline-block;
}

/* S'assurer que le prix est blanc dans le bouton vert */
.action-buttons .add-to-cart-btn .price-inline {
    color: white !important;
}

/* Règle ultra-spécifique pour forcer le prix en blanc */
.action-buttons .add-to-cart-btn button .price-inline,
.action-buttons .add-to-cart-btn .price-inline,
.price-inline {
    color: white !important;
    color: white !important;
}

/* Règles ultra-agressives pour forcer le prix en blanc */
#add-to-cart .price-inline,
button#add-to-cart .price-inline,
.add-to-cart-btn .price-inline,
#configurator-price,
span#configurator-price {
    color: white !important;
    color: white !important;
    color: white !important;
}

/* Utiliser des propriétés CSS personnalisées pour forcer la couleur */
:root {
    --force-white-color: white !important;
}

.price-inline,
#configurator-price,
.add-to-cart-btn .price-inline {
    color: var(--force-white-color) !important;
    color: white !important;
    color: white !important;
}

.action-buttons .button:hover .button-icon {
    transform: scale(1.1);
}

/* Animation de téléchargement */
.action-buttons .download-btn:active .button-icon {
    animation: download-bounce 0.6s ease;
}

@keyframes download-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Responsive pour les boutons */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .action-buttons .button {
        min-width: auto;
        width: 100%;
        justify-content: center;
        padding: 1rem 1.25rem;
    }
    
    .action-buttons .add-to-cart-btn {
        order: -1; /* Mettre le bouton panier en premier sur mobile */
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .action-buttons .button {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .button-icon {
        width: 18px;
        height: 18px;
    }
}



/* Amélioration du bouton Ajouter au panier */
.action-buttons .add-to-cart-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    border-color: #047857;
    font-size: 1.1rem;
    padding: 1.25rem 2.5rem;
    min-width: 220px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.action-buttons .add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-buttons .add-to-cart-btn:hover::before {
    left: 100%;
}

.action-buttons .add-to-cart-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: #065f46;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.action-buttons .add-to-cart-btn:focus {
    border-color: #065f46;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.action-buttons .add-to-cart-btn .button-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
}

/* Icône de loading */
.action-buttons .add-to-cart-btn .loading-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    animation: spin 1s linear infinite;
}

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

/* État de loading du bouton */
.action-buttons .add-to-cart-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.action-buttons .add-to-cart-btn.loading .button-icon,
.action-buttons .add-to-cart-btn.loading .button-text {
    display: none;
}

.action-buttons .add-to-cart-btn.loading .loading-icon {
    display: inline-block !important;
}

/* Responsive pour la section prix */
@media (max-width: 768px) {
    .price-highlight-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .price-label {
        font-size: 1rem;
    }
}

/* Styles pour les sliders avec valeurs affichées */
.slider-with-value {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.slider-with-value input[type="range"] {
    flex: 1;
    min-width: 200px;
}

.current-value-display {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    min-width: 80px;
    justify-content: center;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.current-value-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.value-number {
    font-size: 1.25rem;
    font-weight: 700;
    margin-right: 0.25rem;
}

.value-unit {
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animation lors du changement de valeur */
.current-value-display.value-changed {
    animation: value-update 0.3s ease;
    transform: scale(1.05);
}

@keyframes value-update {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1.05); }
}

/* Responsive pour les sliders avec valeurs */
@media (max-width: 768px) {
    .slider-with-value {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .slider-with-value input[type="range"] {
        min-width: auto;
        width: 100%;
    }
    
    .current-value-display {
        min-width: auto;
        width: 100%;
        justify-content: center;
    }
}

/* Message de succès après ajout au panier */
.configurator-success-message {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    animation: slideInFromTop 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.configurator-success-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

.success-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.success-content i {
    font-size: 1.5rem;
    color: #fff;
}

.success-content span {
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
}

.close-message {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-message:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}
