.list-attribute-custom .ets_input_group {
    display: inline-flex;
    vertical-align: middle;
    margin-right: 9px;
    position: relative;
    margin-top: -2px;
    height: 16px;
}

.list-attribute-custom label {
    text-align: left;
    cursor: pointer;
    font-size: 13px;
}

.block-product-attribute-custom {
    display: flex;
    display: -webkit-flex;
    width: 100%;
    margin-bottom: 25px;
}

.ets-eto-product-price label {
    display: unset;
    margin: 0;
}

.ets_notification_ex {
    margin: 10px 0 0;
    font-size: 85%;
}

.ets-eto-product-extra {
    margin-bottom: 15px;
}

.ets-eto-product-price {
    font-size: 0.875rem;
    margin-bottom: 5px;
}

.block-product-attribute-custom .col-md-12 {
    padding-left: 0;
    padding-right: 0;
}

.list-attribute-custom span.desc svg {
    width: 16px;
    vertical-align: middle;
    height: 16px;
    fill: #777;
    margin: 0 auto;
    display: inline-block;
    line-height: 16px;
    float: left;
}

.list-attribute-custom select.form-control {
    font-size: 13px;
    cursor: pointer;
}

.block-product-attribute-custom span.required:after {
    display: none !important;
}

.list-attribute-custom h5 {
    margin-top: 15px;
    white-space: normal;
}

.block-product-attribute-custom span.required:before {
    content: "*";
    color: #d70909;
}

.list-attribute-custom .ets_input_group input {
    cursor: pointer;
    min-width: 15px;
    min-height: 15px;
    vertical-align: -2px;
}

.list-attribute-custom .ets_input_group input:disabled,
.list-attribute-custom .ets_input_group input[disabled="disabled"] {
    cursor: not-allowed;
}

.list-attribute-custom span.desc {
    position: relative;
    text-align: center;
    margin-left: 1px;
    height: 16px;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
}

.ets_input_group ~ span.required {
    margin-left: -9px;
    margin-right: -2px;
}

.list-attribute-custom span.desc.hover .content,
.list-attribute-custom span.desc.hover:before,
.list-attribute-custom span.desc.hover:after {
    display: block;
    opacity: 1;
    visibility: visible;
}

span.attribute_price_save {
    color: #999;
    font-style: italic;
    margin-left: 2px;
}

.attribute-custom-price span.price {
    font-weight: 600;
}

.block-product-attribute-custom .list-attribute-custom .checkbox {
    display: block;
    margin-bottom: 8px;
}

.block-product-attribute-custom .list-attribute-custom .checkbox > label {
    padding-left: 4px;
    margin-left: -4px;
    display: inline-flex;
    align-items: center;
    width: auto;
    padding-right: 5px;
    gap: 6px;
}

.block-product-attribute-custom .list-attribute-custom .checkbox.required.error > label span,
.block-product-attribute-custom .list-attribute-custom .checkbox.required.error > label {
    color: #d70909;
}

.checkbox.required.error .ets_input_check {
    border-color: #d70909;
}

.radio.required.error .ets_input_radio {
    border-color: #d70909;
}

input[type="checkbox"]:checked + .ets_input_check {
    background: #2fb5d2;
    border-color: #2fb5d2;
}

input[type="radio"]:checked + .ets_input_radio {
    background: #2fb5d2;
    border-color: #2fb5d2;
}

.ets_input_check,
.ets_input_radio {
    border: 2px solid #777;
    width: 16px;
    height: 16px;
    background: #fff;
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #fff;
    justify-content: center;
    vertical-align: middle;
    fill: #fff;
    padding: 0;
    transition: all 0.1s;
    -webkit-transition: all 0.1s;
    border-radius: 2px;
    flex: 0 0 16px;
}

.ets_input_radio {
    border-radius: 16px;
}

.list-attribute-custom .ets_input_group input[type="checkbox"],
.list-attribute-custom .ets_input_group input[type="radio"] {
    position: absolute;
    left: 0;
    width: 100%;
    opacity: 0 !important;
    margin: 0 !important;
}

.list-attribute-custom .product-discount {
    margin-left: 2px;
    display: inline-block;
    font-size: 10px;
}

span.desc .content {
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 3px;
    bottom: 100%;
    position: absolute;
    min-width: 250px;
    transform: translateX(-50%);
    left: 50%;
    opacity: 0;
    z-index: 100;
    margin-bottom: 8px;
    visibility: hidden;
    pointer-events: none;
    display: none;
}

.list-attribute-custom .has-discount .discount {
    font-size: inherit;
    padding: 1px 5px;
    font-weight: normal;
    text-transform: capitalize;
    margin-left: 5px;
}

.list-attribute-custom .current-price {
    display: inline-block;
}

.list-attribute-custom .product-discount .regular-price {
    margin-right: 5px;
}

.list-attribute-custom span.desc:after,
.list-attribute-custom span.desc:before {
    content: "";
    bottom: 100%;
    position: absolute;
    left: 50%;
    visibility: hidden;
    pointer-events: none;
    display: none;
    margin-left: -4px;
    margin-bottom: 4px;
    width: 8px;
    height: 8px;
    background: #333;
    transform: rotate(45deg);
}

.list-attribute-custom span.desc:hover svg {
    fill: #333;
}

.block-product-attribute-custom h2 {
    text-transform: uppercase;
}

.block-product-attribute-custom .attribute-custom-price {
    font-size: 13px;
    margin-top: 10px;
}

.list-attribute-custom .ets_input_group input[type="checkbox"]:checked + .ets_input_check svg {
    display: inline-block;
    fill: #ffffff;
}

.ets_input_check svg {
    display: none;
}

.btn.ets_disabled.add-to-cart {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.5;
}

/* =========================
   OPTIONS PRODUIT
========================= */

.list-attribute-custom {
    width: 100%;
}

/* Ligne générale : label gauche / champ droite */
.list-attribute-custom .from-group-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin-bottom: 14px;
}

.list-attribute-custom .control-label {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    line-height: 1.35;
    white-space: normal;
}

/* Selects */
.list-attribute-custom select.form-control {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
}

/* Radios / checkbox */
.list-attribute-custom .option {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    width: auto;
}

.list-attribute-custom .checkbox,
.list-attribute-custom .radio {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.list-attribute-custom .checkbox label,
.list-attribute-custom .radio label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    line-height: 1.2;
    white-space: normal;
}

/* Prix entre parenthèses */
.list-attribute-custom .product-discount,
.list-attribute-custom .attribute-custom-price,
.list-attribute-custom .price {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1;
    margin-left: 4px;
}

/* Ligne couleur ballon chiffre - version correcte */

.list-attribute-custom .from-group-option:has(.radio) {
    display: grid !important;
    grid-template-columns: 135px repeat(3, 1fr) !important;
    column-gap: 14px !important;
    row-gap: 10px !important;
    align-items: center !important;
    width: 100% !important;
}

.list-attribute-custom .from-group-option:has(.radio) > .control-label {
    grid-column: 1 !important;
    grid-row: 1 / span 3 !important;
    width: 135px !important;
    max-width: 135px !important;
    line-height: 1.25 !important;
}

.list-attribute-custom .from-group-option:has(.radio) > .required {
    grid-column: 1 !important;
}

.list-attribute-custom .from-group-option:has(.radio) > .radio {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    min-width: 0 !important;
    width: auto !important;
}

.list-attribute-custom .from-group-option:has(.radio) > .radio label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    line-height: 1.15 !important;
    white-space: normal !important;
}

/* Mobile */
@media (max-width: 767px) {
    .list-attribute-custom .from-group-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .list-attribute-custom select.form-control {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .list-attribute-custom .from-group-option:has(.radio) .control-label,
    .list-attribute-custom .from-group-option:has(.radio) .option {
        max-width: 100%;
        width: 100%;
    }

    .list-attribute-custom .from-group-option:has(.radio) .radio {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }

    span.desc .content {
        max-width: 200px;
        min-width: 200px;
    }
}