/**
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * @author    Captain Film
 * @copyright Since 2007 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 */

/* Styles pour les attributs techniques */
.def-customization-attributes-wrapper {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.def-customization-attributes-wrapper h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #363a41;
}

.def-attributes-content {
    margin-top: 10px;
}

.def-attribute-item {
    text-align: center;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 10px;
}

.def-attribute-label {
    display: block;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
    font-size: 12px;
    text-transform: uppercase;
}

.def-attribute-value {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #25b9d7;
}

.def-customization-wrapper {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.def-customization-title {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.def-customization-form .form-group {
    margin-bottom: 15px;
}

.def-customization-form label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.def-customization-form label .required {
    color: #d9534f;
}

.customization-format-fields {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.def-customization-price-wrapper {
    margin-top: 20px;
    padding: 15px;
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
}

.def-customization-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.def-surface-info,
.def-price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.def-surface-info .label,
.def-price-info .label {
    font-weight: 600;
    color: #333;
}

.def-surface-info .value,
.def-price-info .value {
    font-weight: bold;
    color: #2c3e50;
}

.def-price-info .value.price {
    font-size: 1.2em;
    color: #27ae60;
}

.def-customization-error {
    margin-top: 15px;
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

.def-customization-form .form-control.has-error {
    border-color: #f5c6cb;
    background-color: #fff5f5;
}

/* Styles pour les onglets */
.def-customization-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

.def-tab-button {
    flex: 1;
    padding: 12px 20px;
    background: #f5f5f5;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    text-align: center;
}

.def-tab-button:hover {
    background: #e9e9e9;
    color: #333;
}

.def-tab-button.active {
    background: #fff;
    color: #2c3e50;
    border-bottom-color: #2c3e50;
    font-weight: 700;
}

.def-tab-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.2);
}

/* Styles pour les inputs radio */
.def-radio-group {
    display: flex;
    gap: 0 1rem;
    flex-wrap: wrap;
}

.def-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    transition: all 0.3s ease;
    margin-bottom: 0!important;
    font-weight: normal;
}

.def-radio-input {
    margin: 0 8px 0 0;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #2c3e50;
}

.def-radio-input:checked + .def-radio-text {
    font-weight: 600;
    color: #2c3e50;
}

.def-radio-input:checked {
    position: relative;
}

/* .def-radio-input:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #2c3e50;
    border-radius: 50%;
} */

/* Fallback pour les navigateurs qui ne supportent pas :has() */
@supports not selector(:has(*)) {
    .def-radio-label.checked {
        border-color: #2c3e50;
        background: #f0f8ff;
        box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
    }
}

.def-radio-text {
    cursor: pointer;
    user-select: none;
    color: #333;
    font-size: 16px;
}

@media (min-width: 768px) {
    .def-customization-info {
        flex-direction: row;
        justify-content: space-around;
    }
}

.def-unit-price-info {
    font-size: 14px;
    color: #333;
    padding: 10px 0;
}

.def-unit-price-label {
    font-weight: normal;
}

.def-unit-price-value {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
}

.def-unit-price-currency {
    font-weight: 600;
    margin-right: 5px;
}

.def-unit-price-unit {
    color: #666;
}

.def-quantity-group {
    margin-top: 15px;
}

/* Styles pour les conteneurs flex des inputs */
.flex {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flex .form-control {
    flex: 1;
    min-width: 0;
    width: auto;
}

.flex .def-inch-display {
    flex-shrink: 0;
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

