/**
* 2007-2024 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2024 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/

/* Wrapper pour aligner le titre et les icônes */
.snt-address-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
}

/* Conteneur des indicateurs d'adresse par défaut */
.snt-default-address-indicators {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Icônes d'adresse par défaut */
.snt-default-address-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
}

.snt-default-address-icon .material-icons {
    font-size: 20px;
    vertical-align: middle;
}

/* Icône de livraison */
.snt-delivery-icon .material-icons {
    color: #007bff;
}

/* Icône de facturation */
.snt-invoice-icon .material-icons {
    color: #28a745;
}

/* Style pour la page de checkout */
.snt-checkout-indicators {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
}

/* Adaptation pour les adresses dans les cartes */
.address-item .snt-default-address-indicators,
.address .snt-default-address-indicators {
    margin-left: 0;
    margin-top: 5px;
}

/* Style pour les titres dans le wrapper */
.snt-address-header-wrapper h3,
.snt-address-header-wrapper h4,
.snt-address-header-wrapper h5,
.snt-address-header-wrapper strong,
.snt-address-header-wrapper .address-alias {
    margin: 0;
    flex: 1;
}

/* Responsive - petits écrans */
@media (max-width: 768px) {
    .snt-default-address-indicators {
        margin-left: 5px;
        gap: 5px;
    }

    .snt-default-address-icon .material-icons {
        font-size: 18px;
    }

    .snt-checkout-indicators {
        top: 5px;
        right: 5px;
    }
}

/* Animation au survol */
.snt-default-address-icon {
    transition: transform 0.2s ease;
}

.snt-default-address-icon:hover {
    transform: scale(1.1);
}

/* Style pour les checkboxes dans le formulaire d'adresse */
.default-address-checkboxes {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.default-address-checkboxes .form-group {
    margin-bottom: 10px;
}

.default-address-checkboxes .custom-control-label {
    font-weight: normal;
    cursor: pointer;
}

/* Force l'affichage visuel du radio button sélectionné */
.address-item.selected .check-wrap .check-shape,
.address-item.selected .check-shape,
article.selected .check-wrap .check-shape,
article.selected .check-shape,
.address-item.selected input[type="radio"]:checked + .check-shape,
article.selected input[type="radio"]:checked + .check-shape,
input[type="radio"][name="id_address_delivery"]:checked + .check-shape,
input[type="radio"][name="id_address_invoice"]:checked + .check-shape {
    background-color: #2fb5d2 !important;
    border-color: #2fb5d2 !important;
}

.address-item.selected .check-wrap .check-shape .check-icon,
.address-item.selected .check-shape .check-icon,
article.selected .check-wrap .check-shape .check-icon,
article.selected .check-shape .check-icon,
.address-item.selected input[type="radio"]:checked + .check-shape .check-icon,
article.selected input[type="radio"]:checked + .check-shape .check-icon,
input[type="radio"][name="id_address_delivery"]:checked + .check-shape .check-icon,
input[type="radio"][name="id_address_invoice"]:checked + .check-shape .check-icon,
.address-item.selected .check-icon,
article.selected .check-icon {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Force aussi la bordure de l'article sélectionné */
#checkout-addresses-step .address-item.selected,
#delivery-addresses .address-item.selected,
#invoice-addresses .address-item.selected {
    border-color: #007ad1 !important;
    opacity: 1 !important;
}
