/* ========================================
   Tiered Pricing Pack Selector
   ======================================== */

.lcp-text div{
    font-weight : 400 !important;
    text-shadow: none !important;
}

.price{
    display: none;
}

.tiered-pricing-pack-selector {
    margin: 25px 0 30px 0;
    padding: 0;
    background: transparent;
}

.pack-selector-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pack-selector-label {
    font-family: "Jost", Sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #2c2722;
    margin-bottom: 0;
    display: block;
    letter-spacing: -0.02em;
}

.pack-selector-label strong {
    font-weight: 600;
}

/* Select personnalisé avec design moderne */
.pack-quantity-select {
    width: 100%;
    padding: 14px 18px;
    font-family: "Jost", Sans-serif;
    font-size: 15px;
    color: #2c2722;
    background-color: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%232c2722' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;
    padding-right: 45px;
    font-weight: 500;
    line-height: 1.4;
}

.pack-quantity-select:hover {
    border-color: #2c2722;
    box-shadow: 0 2px 8px rgba(44, 39, 34, 0.08);
}

.pack-quantity-select:focus {
    outline: none;
    border-color: #2c2722;
    box-shadow: 0 0 0 3px rgba(44, 39, 34, 0.1), 0 2px 8px rgba(44, 39, 34, 0.08);
}

.pack-quantity-select option {
    padding: 12px;
    font-size: 15px;
    color: #2c2722;
}

.pack-quantity-select option:disabled {
    color: #999;
    background-color: #f9f9f9;
    font-style: italic;
}

/* Résumé du prix total */
.pack-price-summary {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    border: 2px solid #2c2722;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(44, 39, 34, 0.08);
    margin-bottom: 20px;
}

.pack-total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-family: "Jost", Sans-serif;
    gap: 12px;
}

.pack-total-label {
    font-size: 16px;
    font-weight: 500;
    color: #2c2722;
    letter-spacing: -0.02em;
}

.total-price-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c2722;
    letter-spacing: -0.03em;
    line-height: 1;
}

/* Masquer le champ quantité WooCommerce standard */
form.cart .quantity {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .tiered-pricing-pack-selector {
        margin: 20px 0 25px 0;
    }

    .pack-selector-label {
        font-size: 16px;
    }

    .pack-quantity-select {
        padding: 12px 16px;
        font-size: 14px;
        background-position: right 16px center;
        padding-right: 40px;
    }

    .pack-price-summary {
        padding: 16px 18px;
    }

    .pack-total-label {
        font-size: 15px;
    }

    .total-price-value {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .pack-quantity-select {
        font-size: 14px;
        padding: 11px 14px;
    }

    .pack-price-summary {
        padding: 14px 16px;
    }

    .pack-total-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .pack-total-label {
        font-size: 14px;
    }

    .total-price-value {
        font-size: 20px;
    }
}

/* États hover et actif */
.pack-quantity-select:not(:disabled):hover {
    background-color: #fafafa;
}

.pack-quantity-select:not(:disabled):active {
    transform: scale(0.99);
}

/* Style pour les options désactivées */
.pack-quantity-select option:disabled {
    font-style: italic;
}

/* Indicateur de chargement (si nécessaire) */
.tiered-pricing-pack-selector.loading {
    opacity: 0.6;
    pointer-events: none;
}

.tiered-pricing-pack-selector.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2C2722;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
