/**
 * Styles pour le shortcode prix produit
 * Shortcode: [prix_produit fond1="..." fond2="..." fond3="..."]
 * 
 * @package HelloElementorChild
 */

/* ==========================================
   CONTENEUR PRINCIPAL
   ========================================== */
.prix-produit-container {
    margin: 20px 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: white;
}

/* .prix-produit-container.indisponible {
    border: 3px solid #f59e0b;
} */

/* ==========================================
   BLOC PRIX - CAS AVEC PRIX
   ========================================== */
.prix-bloc {
    background: var(--fond);
    padding: 30px;
    color: white;
    text-align: center;
}

.prix-ht-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.prix-ht-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
}

.prix-ttc-bloc {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prix-ttc-label {
    font-size: 15px;
    opacity: 0.95;
}

.prix-ttc-value {
    font-size: 20px;
    font-weight: 700;
}

/* ==========================================
   BLOC PRIX - CAS SANS PRIX
   ========================================== */
.prix-demande-titre {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.prix-demande-subtitle {
    font-size: 15px;
    opacity: 0.95;
    text-align: center;
    margin-bottom: 20px;
}

.delais-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.delais-badge svg {
    width: 16px;
    height: 16px;
}

/* ==========================================
   BLOC INDISPONIBLE
   ========================================== */
.indisponible-bloc {
    background: var(--fond);
    padding: 10px 10px;
    color: white;
    text-align: center;
    margin-bottom: 15px;
}

.indisponible-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.indisponible-titre {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
    color: white !important;
}

.indisponible-subtitle {
    font-size: 15px;
    opacity: 0.95;
    margin: 0;
    line-height: 1.5;
    color: white;
}

/* ==========================================
   ALTERNATIVES INFO
   ========================================== */
.alternatives-info {
    background: #fffbf0;
    margin: 15px;
    padding: 10px 0px;
    border-radius: 15px;
    border-left: 4px solid #f59e0b;
}

.alternatives-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    /* border-left: 4px solid #f59e0b; */
    padding-left: 16px;
}

.alternatives-icon {
    color: #d97706;
    flex-shrink: 0;
    margin-top: 2px;
    width: 20px;
    height: 20px;
}

.alternatives-titre {
    font-size: 14px;
    font-weight: 700;
    color: #b45309;
    margin: 0 0 6px 0;
}

.alternatives-texte {
    font-size: 13px;
    color: #92400e;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    padding: 20px 30px;
    background: white;
}

.btn-devis,
.btn-alternatives {
    display: block;
    width: 100%;
    padding: 16px 24px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    cursor: pointer;
    background: var(--fond-cta);
    color: white;
}

.btn-devis:hover,
.btn-alternatives:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-devis:active,
.btn-alternatives:active {
    transform: translateY(0);
}

/* ==========================================
   SECTION VENDEUR
   ========================================== */
.vendeur-section {
    padding: 16px;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #e2e8f0;
}

.vendeur-ligne {
    display: flex;
    align-items: center;
    gap: 10px;
    /* margin-bottom: 12px; */
}

.vendeur-logo {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 6px;
    overflow: hidden;
}

.vendeur-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.vendeur-infos {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
}

.vendeur-label {
    font-size: 12px;
    color: #6b7280;
    /* margin-bottom: 4px;
    line-height: 1.3; */
}

.vendeur-nom {
    font-size: 15px;
    font-weight: 700;
    color: #4f46e5;
    line-height: 1.3;
}

.prix-produit-container.indisponible .vendeur-nom {
    color: #d97706;
}

.delais-reponse {
    display: flex;
    align-items: center;
    gap: 6px;
    /* margin-top: 12px; */
    font-size: 13px;
    color: #64748b;
}

.delais-reponse svg {
    flex-shrink: 0;
    color: #64748b;
}
    color: #6b7280;
}

.delais-reponse svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .prix-bloc,
    .indisponible-bloc {
        padding: 25px 20px;
    }
    
    .prix-ht-value {
        font-size: 38px;
    }
    
    .prix-demande-titre {
        font-size: 26px;
    }
    
    .indisponible-titre {
        font-size: 20px;
    }
    
    .cta-section {
        padding: 18px 20px;
    }
    
    .vendeur-section {
        padding: 18px 20px;
    }
    
    .vendeur-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .vendeur-logos {
        align-self: flex-start;
    }
    
    .alternatives-info {
        padding: 16px;
    }
    
    .alternatives-content {
        flex-direction: column;
    }
    
    .btn-devis,
    .btn-alternatives {
        padding: 14px 20px;
        font-size: 15px;
    }
}
