/**
 * 2008-2025 Prestaworld
 *
 * NOTICE OF LICENSE
 *
 * The source code of this module is under a commercial license.
 * Each license is unique and can be installed and used on only one website.
 * Any reproduction or representation total or partial of the module, one or more of its components,
 * by any means whatsoever, without express permission from us is prohibited.
 *
 * DISCLAIMER
 *
 * Do not alter or add/update to this file if you wish to upgrade this module to newer
 * versions in the future.
 *
 * @author    prestaworld
 * @copyright 2008-2025 Prestaworld
 * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
 */

/* ========================= */
/* Toggle inscription B2B */
/* ========================= */

.presta-b2b-toggle {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 920px;
    margin: 0 0 20px;
    padding: 4px;
    border: 1px solid #d9e0e7;
    border-radius: 999px;
    background: #eef2f6;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.presta-b2b-toggle input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.presta-b2b-toggle label {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin: 0;
    padding: 0 20px;
    border-radius: 999px;
    background: transparent;
    color: #445468;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.12s ease;
    user-select: none;
}

.presta-b2b-toggle label:hover {
    background: rgba(255, 255, 255, 0.55);
    color: #28384a;
}

.presta-b2b-toggle input[type="radio"]:checked + label {
    background: #f26a00 !important;
    color: #ffffff !important;
    box-shadow:
        0 8px 18px rgba(242, 106, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.presta-b2b-toggle input[type="radio"]:focus + label {
    box-shadow:
        0 0 0 3px rgba(242, 106, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

@media (max-width: 767px) {
    .presta-b2b-toggle {
        max-width: 100%;
    }

    .presta-b2b-toggle label {
        min-height: 44px;
        padding: 0 12px;
        font-size: 14px;
    }
}

/* ========================= */
/* Existing module CSS */
/* ========================= */

#presta_custom_field .Checkbox {
    display: flex;
    row-gap: -3px;
    column-gap: 7px;
    padding: 9px;
    align-items: center;
}

#presta_custom_field .radio_button {
    display: flex;
    row-gap: -3px;
    column-gap: 7px;
    padding: 9px;
    align-items: center;
}

#presta_custom_field .dropdown_values,
#presta_custom_field .col-md-6.presta_notice_messages,
#presta_custom_field .presta_yes-no {
    margin-top: 10px;
}

#presta_custom_field select.presta_rf_selected {
    width: 66%;
    margin-left: -14px;
}

#presta_custom_field .required {
    color: red;
}

#presta_custom_field span.ps-shown-by-js {
    margin: 6px;
}

#presta_custom_field .col-md-9.presta_yes_no {
    margin-top: 10px;
}

#presta_custom_field span.custom-checkbox {
    display: block !important;
}

#presta_custom_field input.form-control {
    margin-top: 9px;
}

#presta_custom_field .form-group.row.presta_multipleSelected {
    margin-left: 4px;
}

#presta_custom_field p.presta_custom_error_msg {
    color: red;
    margin: 0 auto;
    width: 47%;
}

#presta_custom_field select#presta-dropdown,
#presta_custom_field .form-group.row.presta_field-dependant {
    margin-top: 11px;
}

#presta_custom_field select.form-control.dependent.presta_rf_selected {
    margin-left: 0px;
    width: 65%;
}

.presta-custom-field-errors {
    color: #ff0000;
}

.top-link-btn {
    color: white;
    display: flex;
    justify-content: center;
    text-align: center;
    margin-left: 3px;
    padding-top: 12px;
}

.top-link-text {
    color: white;
    font-size: 16px;
    font-weight: 400;
}