/* ==========================================================================
   TAIBA STATIONERY — CMD.CSS (PANIER ET COMMANDE)
   Pages : Mon Panier, Finalisation de commande, Suivi/Confirmation
   Support : FR (LTR) + AR (RTL) + Responsive + BiDi
   ========================================================================== */


/* --------------------------------------------------------------------------
   2. AGENCEMENT GÉNÉRAL (LAYOUT PANIER & RÉSUMÉ)
   -------------------------------------------------------------------------- */
.cart-layout,
.checkout-grid {
    display: flex;
    flex-direction: row;
    gap: 25px;
    align-items: flex-start;
    width: 100%;
}

.products-container,
.form-container-card {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* --------------------------------------------------------------------------
   3. CARTES PRODUITS DU PANIER (.product-card, .cart-card)
   -------------------------------------------------------------------------- */
.cart-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

/* Partie Supérieure : Image & Infos */
.cart-item-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-image {
    width: 75px;
    height: 75px;
    min-width: 75px;
    border-radius: 8px;
    border: 1px solid #faf8f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.cart-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-placeholder {
    color: #cbd5e1;
    font-size: 1.5rem;
}

.cart-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-category {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.cart-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

/* Partie Inférieure : Prix, Quantité, Total, Action */
.cart-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 12px;
    border-top: 1px solid #faf8f5;
    flex-wrap: wrap;
}

.cart-unit-price, 
.cart-line-total {
    display: flex;
    flex-direction: column;
}

.cart-unit-price-label, 
.cart-total-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.cart-unit-price-value, 
.cart-total-value {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cart-line-total .cart-total-value {
    color: #d32f2f;
    font-size: 1.05rem;
    font-weight: 800;
}

/* Sécurisation du sens d'affichage des prix & nombres */
.price-number,
.price-line,
.total-amount-wrapper {
    direction: ltr !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    unicode-bidi: isolate;
}

[dir="rtl"] .price-line,
[dir="rtl"] .total-amount-wrapper {
    flex-direction: row-reverse;
}

.cart-unit-price-value-em,
.cart-total-value-em {
    font-size: 0.85em;
    font-weight: 700;
    color: #d32f2f;
}
 
.cart-total-amount-em {
    font-size: 0.85em;
    font-weight: 700;
    color: #d32f2f;
}

/* Sélecteur de Quantité */
.cart-qty-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.cart-qty-btn {
    background: #f8fafc;
    border: none;
    width: 32px;
    height: 32px;
    color: #475569;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty-btn:hover {
    background: #d32f2f;
    color: #ffffff;
}

.cart-qty-input {
    width: 40px;
    height: 32px;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1e293b;
    background: transparent;
    outline: none;
}

/* Suppression du bord en mode RTL */
[dir="rtl"] .cart-qty-input {
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}

/* Bouton Supprimer */
.cart-delete-btn {
    background: #fff5f5;
    color: #d32f2f;
    border: 1px solid #fed7d7;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-delete-btn:hover {
    background: #d32f2f;
    color: #ffffff;
    border-color: #d32f2f;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.2);
}


/* --------------------------------------------------------------------------
   4. SIDEBAR RÉSUMÉ DE LA COMMANDE (.cart-summary, .info-sidebar)
   -------------------------------------------------------------------------- */
.cart-summary,
.info-sidebar {
    width: 340px;
    min-width: 340px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.products-header {
    margin-bottom: 16px;
}

.products-count-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 600;
    margin-bottom: 12px;
}

.cart-summary-row i {
    color: #d32f2f;
    margin-right: 6px;
}

[dir="rtl"] .cart-summary-row i {
    margin-right: 0;
    margin-left: 6px;
}

.cart-summary hr,
.summary-divider,
.summary-total-divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 16px 0;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cart-summary-total-label {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-summary-total-label i {
    color: #d32f2f;
}

.cart-total-amount {
    font-size: 1.1rem;
    font-weight: 800;
    color: #d32f2f;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-submit-login {
    width: 100%;
    background: #7b1113;
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
    transition: all 0.2s ease;
}

.btn-submit-login:hover {
    background: #d32f2f;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(183, 28, 28, 0.3);
}


/* --------------------------------------------------------------------------
   5. ÉTAT PANIER VIDE (.no-products-message)
   -------------------------------------------------------------------------- */
.no-products-message {
    background: #ffffff;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    border: 1px solid #faf8f5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    margin: 20px 0;
}

.no-products-message i.fa-box-open {
    font-size: 3.5rem;
    color: #cbd5e1;
    margin-bottom: 15px;
    display: block;
}

.no-products-message p {
    font-size: 1.1rem;
    font-weight: 700;
    color: #475569;
    margin: 0 0 24px;
}

.btn-voir-produits {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 26px;
    background: #d32f2f;
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
    transition: all 0.2s ease;
}

.btn-voir-produits:hover {
    background: #b71c1c;
    color: #ffffff;
}


/* --------------------------------------------------------------------------
   6. AJOUTS SPÉCIFIQUES POUR LA PAGE DE COMMANDE (FORMULAIRE & STEPPER)
   -------------------------------------------------------------------------- */
.form-container-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #d32f2f;
}

.form-group .required {
    color: #d32f2f;
}

.form-control {
    width: 100%;
    height: 46px;
    padding: 10px 14px !important; 
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e293b;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    outline: none;
}

textarea.form-control {
    height: auto;
    resize: vertical;
}

.form-control:focus {
    border-color: #7b1113;
    box-shadow: 0 0 0 3px rgba(123, 17, 19, 0.1);
}

h4 {
    font-size: 15px !important;
    font-weight: bold !important;
}

.btn-custom-confirm {
    width: 100%;
    height: 48px;
    background: #7b1113;
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(123, 17, 19, 0.25);
    transition: all 0.2s ease;
}

.btn-custom-confirm:hover {
    background: #5a0c0e;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(90, 12, 14, 0.3);
}

/* Stepper */
.stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
}

.stepper-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.stepper-item.active {
    opacity: 1;
}

.stepper-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.stepper-item.active .stepper-number {
    background-color: #7b1113;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(123, 17, 19, 0.15);
}

.stepper-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.stepper-description {
    font-size: 0.78rem;
    color: #64748b;
}


/* --------------------------------------------------------------------------
   8. PAGE DE CONFIRMATION / SUIVI DE COMMANDE
   -------------------------------------------------------------------------- */
.order-confirm-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.order-confirm-body {
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.order-confirm-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.order-confirm-text {
    font-size: 1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0;
    line-height: 1.5;
}

.order-number-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff5f5;
    border: 1px solid #7b1113;
    border-radius: 10px;
    padding: 15px 25px;
    min-width: 320px;
    text-align: left;
}

[dir="rtl"] .order-number-box {
    text-align: right;
}

.order-number-icon {
    font-size: 1.6rem;
    color: #7b1113; 
    width: 50px;  
    align-items: center;
    justify-content: center;
    flex-shrink: 0; 
}

.order-number-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.order-number-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
    direction: ltr;
    unicode-bidi: isolate;
}

[dir="rtl"] .order-number-value {
    text-align: right;
}

.order-confirm-body .btn-primary {
    background: #7b1113;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(123, 17, 19, 0.25);
    transition: all 0.2s ease;
    margin-top: 10px;
}

.order-confirm-body .btn-primary:hover {
    background: #5a0c0e;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(90, 12, 14, 0.3);
}


/* --------------------------------------------------------------------------
   9. SIDEBAR RÉSUMÉ DE LA COMMANDE (AUTRES ÉLÉMENTS DE SUPPORT)
   -------------------------------------------------------------------------- */
.contact-info-card h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info-card h3 i {
    color: #d32f2f;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-item .info-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: #fff5f5;
    border: 1px solid #fff5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7b1113;
}

.summary-item .info-content h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.summary-total-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff5f5;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #fff5f5;
    margin-top: 30px;
}

.total-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #7b1113;
    color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* --------------------------------------------------------------------------
   10. RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .cart-layout,
    .checkout-grid {
        flex-direction: column;
    }

    .cart-summary,
    .info-sidebar {
        width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .form-row-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .stepper {
        flex-direction: column;
        gap: 15px;
    }

    .order-number-box {
        min-width: 100%;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .page-title-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 14px 20px;
        gap: 6px;
    }

    [dir="rtl"] .page-title-card {
        align-items: flex-start !important;
    }

    .cart-line {
        gap: 10px;
    }

    .cart-unit-price {
        display: none; /* Masqué sur très petits écrans pour alléger */
    }

    .cart-summary-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    [dir="rtl"] .cart-summary-total {
        align-items: flex-start;
    }
}

/* ==========================================================================
   TAIBA STATIONERY — SUIVI DE COMMANDE (ADDON CSS)
   Page : Suivi de commande (Formulaire de recherche + Résultats)
   ========================================================================== */

/* Wrapper principal en grille (Formulaire + Sidebar de résultats) */
.contact-wrapper {
    display: flex;
    flex-direction: row;
    gap: 25px;
    align-items: flex-start;
    width: 100%;
}

/* Formulaire de recherche de commande */
.contact-wrapper .form-container {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.contact-form-header {
    margin-bottom: 20px;
}

.contact-form-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 6px 0;
}

.contact-form-header p {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
}

/* Bouton de soumission du formulaire de suivi */
.contact-form .btn-submit {
    width: 100%;
    height: 46px;
    background: #7b1113;
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(123, 17, 19, 0.25);
    transition: all 0.2s ease;
    margin-top: 5px;
}

.contact-form .btn-submit:hover {
    background: #5a0c0e;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(90, 12, 14, 0.3);
}

/* Messages d'alerte (Erreurs / Sessions) */
.alert-danger {
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-danger i {
    font-size: 1.1rem;
    margin-top: 1px;
}

.alert-danger ul {
    margin: 0;
    padding-left: 15px;
}

[dir="rtl"] .alert-danger ul {
    padding-left: 0;
    padding-right: 15px;
}

.alert-danger li {
    list-style-type: disc;
}

/* Éléments de la carte de résultats (.info-sidebar / .contact-info-card) */
.contact-info-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f8fafc;
}

.contact-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-info-item .info-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #fdf2f2;
    border: 1px solid #f9d8d8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7b1113;
    font-size: 1rem;
}

.contact-info-item .info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-info-item .info-content h4 {
    font-size: 0.78rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.contact-info-item .info-content span {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

/* Responsive pour la page de suivi */
@media (max-width: 992px) {
    .contact-wrapper {
        flex-direction: column;
    }

    .contact-wrapper .form-container,
    .contact-wrapper .info-sidebar {
        width: 100%;
        min-width: 100%;
    }
}


/* ==========================================================================
   STYLE UNIFIÉ DES PRIX (GESTION PROPRE FR & AR SANS CASSER LE RTL)
   ========================================================================== */

/* Conteneur global des prix */
.cart-unit-price-value,
.cart-total-value,
.summary-total-amount,
.cart-total-amount {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 0.3rem !important;
    font-family: inherit;
    
}

/* En français (LTR) : Le conteneur s'assure que le nombre est à gauche et la devise à droite */
.cart-unit-price-value,
.cart-total-value,
.summary-total-amount,
.cart-total-amount {
    flex-direction: row !important;
}

/* En arabe (RTL) : On inverse l'ordre en flex pour que la devise (دج) se retrouve du bon côté du chiffre */
[dir="rtl"] .cart-unit-price-value,
[dir="rtl"] .cart-total-value,
[dir="rtl"] .summary-total-amount,
[dir="rtl"] .cart-total-amount {
    flex-direction: row-reverse !important;
    direction: ltr !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    unicode-bidi: isolate;
}

/* Le chiffre garde une isolation textuelle propre pour éviter qu'il ne soit inversé par la ponctuation */
.price-num {
    unicode-bidi: isolate;
}

/* Rappels des tailles et couleurs pour conserver votre charte graphique */
.cart-unit-price-value {
    font-size: 0.9rem !important;
    color: #475569 !important;
    font-weight: 600 !important;
}

.cart-unit-price-value-em {
    font-size: 0.8em !important;
    color: #64748b !important;
    font-weight: 600 !important;
}

.cart-line-total .cart-total-value {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #7b1113 !important;
}

.cart-line-total .cart-total-value-em {
    font-size: 0.85em !important;
    font-weight: 700 !important;
    color: #7b1113 !important;
}

.summary-total-box .cart-total-amount,
.cart-summary .cart-total-amount {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #7b1113 !important;
}

.cart-total-amount-em {
    font-size: 0.85em !important;
    font-weight: 700 !important;
    color: #7b1113 !important;
}

/* --- Grille principale du Checkout --- */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

@media (max-width: 992px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Grille des champs de formulaire --- */
.contact-form .form-row-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 600px) {
    .contact-form .form-row-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Cartes d'adresses dynamiques --- */
.address-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.address-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    background-color: #fff;
    transition: all 0.2s ease;
}

.address-card:hover {
    border-color: #d99b26;
    background-color: #fef3c7;
}

.address-card.selected {
    border-color: #d99b26;
    background-color: #fef3c7;
}

.address-card input[type="radio"] {
    margin-top: 4px;
    accent-color: #d99b26;
}

.address-content {
    flex: 1;
}

.badge-default {
    background-color: #fef3c7;
    color: #d99b26;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}

/* ==========================================================================
   ADAPTATION RESPONSIVE POUR LES TRÈS PETITS ÉCRANS (<= 360px)
   ========================================================================== */
@media (max-width: 360px) {
    /* 1. Titre et bouton d'ajout d'adresse l'un au-dessus de l'autre */
    #step-2-content .d-flex.justify-content-between {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    #step-2-content .d-flex.justify-content-between .btn {
        width: 100% !important;
    }

    /* 2. Les deux boutons du bas (Précédent / Confirmer) l'un au-dessus de l'autre */
    #step-2-content .d-flex.gap-2.mt-4 {
        flex-direction: column !important;
        gap: 10px !important;
    }

    #step-2-content .d-flex.gap-2.mt-4 .btn {
        width: 100% !important;
    }
}


