/* ================================
   SB Liens de paiement - Page paiement
   ================================ */

.sbp-payment-page {
    min-height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 28px 16px;
    background: transparent;
    position: relative;
    overflow: visible;
}

.sbp-payment-page::before,
.sbp-payment-page::after {
    display: none;
}

.sbp-payment-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border: 1px solid #dce2ee;
    border-radius: 16px;
    box-shadow: 0 14px 38px rgba(24, 39, 75, 0.10);
    padding: 28px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #111827;
}

.sbp-payment-card .sbp-title {
    margin: 0 0 14px;
    text-align: center;
    font-size: 23px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f1f3d;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.sbp-subtitle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 12px 0 20px;
    color: #4b587c;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .04em;
}

.sbp-check {
    display: inline-flex;
    width: 21px;
    height: 21px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ecfdf3;
    color: #16a34a;
    font-size: 13px;
    font-weight: 800;
}

.sbp-customer-box {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #f8fafc;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.sbp-avatar {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 16px;
}

.sbp-hello {
    margin: 0 0 3px;
    font-size: 17px;
    font-weight: 700;
    color: #10182f;
}

.sbp-text {
    margin: 0;
    color: #4b587c;
    font-size: 14px;
    line-height: 1.45;
}

.sbp-summary-box {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.sbp-summary-title {
    margin-bottom: 14px;
    color: #5b6685;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.sbp-product-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 13px;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.sbp-santa-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff7ed;
    font-size: 24px;
}

.sbp-product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    max-width: none;
    line-height: 1.45;
}

.sbp-product-info strong {
    font-size: 15px;
    font-weight: 400;
    color: #1f2937;
}

.sbp-product-info span {
    color: #64748b;
    font-size: 13px;
    font-weight: 400;
}

.sbp-total-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: baseline;
    padding-top: 16px;
}

.sbp-total-row span {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.sbp-total-row strong {
    font-size: 26px;
    font-weight: 800;
    color: #4f46e5;
    white-space: nowrap;
}

.sbp-validity-warning {
    color: #d97706;
    font-weight: 600;
    text-align: left;
    line-height: 1.5;
    margin: 18px 6px;
}

.sbp-payment-form {
    margin: 0 0 14px;
}

.sbp-pay-button {
    position: relative;
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5 0%, #635bff 100%);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    padding: 0 22px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.26);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.sbp-pay-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.32);
    filter: brightness(1.03);
}

.sbp-pay-button:active {
    transform: translateY(0);
}

.sbp-pay-button-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    text-align: center;
}

.sbp-pay-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 16px;
    line-height: 1;
}

.sbp-redirect-info {
    margin: 0 0 20px;
    text-align: center;
    color: #5b6685;
    font-size: 13px;
    line-height: 1.45;
}

.sbp-stripe-zone {
    border-top: 1px solid #e5e7eb;
    padding-top: 18px;
    text-align: center;
}

.sbp-payment-logos-image {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    margin: 0 auto 18px auto;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    background: transparent !important;
}

.sbp-security-text {
    margin: 0;
    color: #5b6685;
    font-size: 13px;
    line-height: 1.45;
}

.lpc-confirmation-paiement {
    max-width: 520px;
    margin: 28px auto;
    padding: 24px;
    border: 1px solid #dce2ee;
    border-radius: 14px;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    box-shadow: 0 10px 28px rgba(24, 39, 75, 0.08);
}

@media (max-width: 700px) {
    .sbp-payment-page {
        padding: 18px 10px;
    }

    .sbp-payment-card {
        max-width: 100%;
        padding: 20px 16px;
        border-radius: 14px;
    }

    .sbp-payment-card .sbp-title {
        font-size: 21px;
    }

    .sbp-subtitle {
        font-size: 13px;
    }

    .sbp-customer-box {
        align-items: flex-start;
    }

    .sbp-total-row {
        flex-direction: column;
        gap: 6px;
    }

    .sbp-total-row strong {
        font-size: 25px;
    }

    .sbp-pay-button {
        font-size: 14px;
        padding: 0 16px;
    }
}

/* Bloc unique identité + récapitulatif */

.sbp-summary-single-box {
    margin-top: 22px;
}

.sbp-summary-single-box .sbp-product-row {
    align-items: flex-start;
}

.sbp-summary-title {
    display: none;
}

/* L'ancien bloc client ne doit plus prendre de place s'il reste ailleurs */
.sbp-customer-box {
    display: none;
}

/* Texte d'introduction commande */
.sbp-payment-card .sbp-product-info .sbp-order-intro,
.sbp-payment-card .sbp-product-info .sbp-order-intro span,
.sbp-payment-card .sbp-product-info .sbp-order-hello,
.sbp-payment-card .sbp-product-info .sbp-order-name {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    color: #111827;
    font-weight: 400;
}

.sbp-payment-card .sbp-product-info .sbp-order-intro {
    margin: 0 0 14px;
}

/* Article */
.sbp-payment-card .sbp-product-info .sbp-article-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    color: #111827;
    font-weight: 400;
}

/* Neutralise l'effet de .sbp-product-info span sur les spans du texte Bonjour */
.sbp-payment-card .sbp-product-info .sbp-order-intro span {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    font-weight: inherit;
}
