/* ── FFVE Stripe - Formulaire multi-produits ────────────────── */

.ffve-stripe-wrapper {
    max-width: 560px;
    margin: 0 auto;
}

.ffve-stripe-section-title {
    margin: 0 0 1rem;
    color: #333;
    font-size: 1.4rem;
    font-weight: 700;
    
}

.ffve-stripe-section-title.livraison{
margin-top:50px !important;
}

/* ── Erreurs ─────────────────────────────────────────────────── */

.ffve-stripe-errors {
    background: #fee;
    border: 1px solid #fcc;
    color: #c00;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.ffve-stripe-errors ul {
    margin: 0;
    padding-left: 1.2rem;
    list-style: disc;
}

/* ── Séparateur ──────────────────────────────────────────────── */

.ffve-stripe-separator {
    border: none;
    border-top: 1px solid #eee;
    margin: 1.25rem 0;
}

/* ── Section produits ────────────────────────────────────────── */

.ffve-stripe-products {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 0.5rem;
}

.ffve-stripe-product {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 14px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
    border-left: 3px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: default;
}

.ffve-stripe-product:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.11), 0 2px 8px rgba(0, 0, 0, 0.07);
    border-left-color: rgb(226, 0, 0);
}

.ffve-stripe-product-image {
    flex: 0 0 116px;
}

.ffve-stripe-product-image img {
    width: 116px;
    height: auto;
    max-height: 130px;
    object-fit: contain;
    border-radius: 0;
    display: block;
}

.ffve-stripe-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.ffve-stripe-product-label {
    text-align: left;
    color: var(--e-global-color-0f20475, #2a3a5c);
    font-family: "Roboto", Sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    line-height: 1.4em;
    letter-spacing: 0px;
}

.ffve-stripe-product-price {
    color: rgb(226, 0, 0);
    font-family: "Roboto", sans-serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.9px;
    line-height: 24px;
}

.ffve-stripe-product-desc {
    color: #888;
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    line-height: 1.4;
}

/* ── Contrôle quantité ───────────────────────────────────────── */

.ffve-stripe-product-qty {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    margin-left: auto;
}

.ffve-qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background: #f7f7f7;
    color: #444;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    flex-shrink: 0;
}

.ffve-qty-btn:hover:not(:disabled) {
    background: #ececec;
    border-color: #aaa;
}

.ffve-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ffve-qty-input {
    width: 52px;
    height: 36px;
    text-align: center;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background: #f7f7f7;
    font-size: 16px !important;
    color: #333 !important;
    padding: 0;
    -moz-appearance: textfield;
}

.ffve-qty-input::-webkit-outer-spin-button,
.ffve-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ffve-qty-unit {
    font-size: 0.78rem;
    color: #aaa;
    white-space: nowrap;
    margin-left: 0.15rem;
}

/* ── Formulaire livraison ────────────────────────────────────── */

.ffve-stripe-row {
    display: flex;
    gap: 0.75rem;
}

.ffve-stripe-row .ffve-stripe-field {
    flex: 1;
}

.ffve-stripe-field {
    margin-bottom: 0.75rem;
}

.ffve-stripe-field--postal {
    flex: 0 0 35% !important;
}

.ffve-stripe-field--city {
    flex: 1 !important;
}

.ffve-stripe-field label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.25rem;
}

.ffve-required {
    color: #c00;
}

.ffve-stripe-field input,
.ffve-stripe-field select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.ffve-stripe-field input:focus,
.ffve-stripe-field select:focus {
    outline: none;
    border-color: #d40011;
    box-shadow: 0 0 0 2px rgba(212, 0, 17, 0.12);
}

/* ── Info livraison ──────────────────────────────────────────── */

.ffve-stripe-shipping-info {
    background: #f0f0ff;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    color: #444;
    display: none;
}

.ffve-stripe-shipping-info.visible {
    display: block;
}

.ffve-stripe-shipping-info strong {
    color: #d40011;
}

/* ── Bouton ──────────────────────────────────────────────────── */

.ffve-stripe-submit {
    width: 100%;
    padding: 0.85rem;
    font-weight: 600;
    background: #d40011;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s, opacity 0.2s;
}

.ffve-stripe-submit:hover {
    background: #b0000e;
}

.ffve-stripe-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 540px) {
    .ffve-stripe-row {
        flex-direction: column;
        gap: 0;
    }

    .ffve-stripe-field--postal {
        flex: 1 !important;
    }

    .ffve-stripe-product {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .ffve-stripe-product-image {
        flex: 0 0 80px;
    }

    .ffve-stripe-product-image img {
        width: 80px;
        height: auto;
        max-height: 90px;
    }

    .ffve-stripe-product-qty {
        width: 100%;
        justify-content: flex-end;
        padding-top: 0.25rem;
    }
}
