/* ==========================================================
   TROCBUY — PAGE DE PAIEMENT SPONSORISÉE
========================================================== */

.trocbuy-payment-page,
.trocbuy-payment-page * {
    box-sizing: border-box;
}

.trocbuy-payment-page {
    width: 100%;
    min-height: 100vh;
    padding: 42px 24px 80px;

    background:
        radial-gradient(
            circle at 5% 5%,
            rgba(255, 122, 0, 0.11),
            transparent 28%
        ),
        radial-gradient(
            circle at 95% 95%,
            rgba(20, 38, 61, 0.07),
            transparent 30%
        ),
        #f7f9fc;

    color: #14263d;
}

.trocbuy-payment-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}


/* En-tête */

.trocbuy-payment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    margin-bottom: 38px;
}

.trocbuy-payment-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    color: #14263d !important;

    font-size: 25px;
    font-weight: 900;
    text-decoration: none !important;
}

.trocbuy-payment-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 43px;
    height: 43px;

    border-radius: 14px;

    background: linear-gradient(
        135deg,
        #ff7200,
        #ff941f
    );

    color: #ffffff;

    box-shadow:
        0 12px 28px rgba(255, 122, 0, 0.26);

    font-size: 25px;
    font-weight: 900;
}

.trocbuy-payment-security {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: #526176;

    font-size: 13px;
    font-weight: 800;
}

.trocbuy-payment-security span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: #e9f8ee;
    color: #16833c;
}


/* Mise en page */

.trocbuy-payment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    align-items: start;
    gap: 34px;
}

.trocbuy-payment-main,
.trocbuy-payment-summary {
    border: 1px solid #e2e8f0;
    border-radius: 30px;

    background: #ffffff;

    box-shadow:
        0 24px 65px rgba(20, 38, 61, 0.09);
}

.trocbuy-payment-main {
    padding: 48px;
}

.trocbuy-payment-eyebrow {
    display: inline-flex;

    margin-bottom: 17px;
    padding: 9px 15px;

    border-radius: 999px;

    background: #fff1e5;
    color: #e96f00;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.trocbuy-payment-main > h1 {
    max-width: 680px;
    margin: 0 0 18px;

    color: #14263d;

    font-size: clamp(39px, 5vw, 59px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.trocbuy-payment-intro {
    max-width: 650px;
    margin: 0 0 34px;

    color: #667085;

    font-size: 17px;
    line-height: 1.75;
}


/* Projet */

.trocbuy-payment-project {
    display: flex;
    align-items: center;
    gap: 20px;

    margin-bottom: 31px;
    padding: 23px;

    border: 1px solid #e6eaf0;
    border-radius: 20px;

    background: #f8fafc;
}

.trocbuy-payment-project-icon {
    display: flex;
    flex: 0 0 62px;
    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;

    border-radius: 18px;

    background: linear-gradient(
        135deg,
        #ff7200,
        #ff941f
    );

    color: #ffffff;

    box-shadow:
        0 13px 28px rgba(255, 122, 0, 0.24);

    font-size: 27px;
}

.trocbuy-payment-project span {
    color: #e96f00;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.trocbuy-payment-project h2 {
    margin: 5px 0;

    color: #14263d;

    font-size: 22px;
    font-weight: 900;
    line-height: 1.25;
}

.trocbuy-payment-project p {
    margin: 0;

    color: #667085;
}


/* Avantages */

.trocbuy-payment-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;

    margin-bottom: 37px;
}

.trocbuy-payment-benefits div {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #526176;

    font-size: 14px;
    font-weight: 750;
}

.trocbuy-payment-benefits span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 25px;
    height: 25px;

    border-radius: 50%;

    background: #e9f8ee;
    color: #16833c;

    font-size: 12px;
    font-weight: 900;
}


/* Moyens de paiement */

.trocbuy-payment-methods {
    padding-top: 31px;

    border-top: 1px solid #edf1f5;
}

.trocbuy-payment-methods h2 {
    margin: 0 0 9px;

    color: #14263d;

    font-size: 25px;
    font-weight: 900;
}

.trocbuy-payment-methods > p {
    margin: 0 0 22px;

    color: #667085;
}

.trocbuy-payment-method {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 16px;

    width: 100%;
    margin-bottom: 14px;
    padding: 17px 19px;

    border: 1px solid #dfe5ec;
    border-radius: 17px;

    background: #ffffff;
    color: #14263d;

    text-align: left;

    opacity: 0.65;
    cursor: not-allowed;
}

.trocbuy-payment-method-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 43px;

    border-radius: 11px;

    background: #14263d;
    color: #ffffff;

    font-size: 14px;
    font-weight: 900;
}

.trocbuy-payment-method--paypal
.trocbuy-payment-method-icon {
    background: #0879c9;
}

.trocbuy-payment-method-content strong,
.trocbuy-payment-method-content small {
    display: block;
}

.trocbuy-payment-method-content strong {
    margin-bottom: 4px;

    font-size: 15px;
    font-weight: 900;
}

.trocbuy-payment-method-content small {
    color: #667085;

    font-size: 12px;
}

.trocbuy-payment-method-arrow {
    font-size: 21px;
    font-weight: 900;
}

.trocbuy-payment-coming-soon {
    margin-top: 18px;
    padding: 14px 16px;

    border: 1px solid rgba(255, 122, 0, 0.16);
    border-radius: 13px;

    background: #fff8f1;
    color: #9a5b00;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
}


/* Résumé */

.trocbuy-payment-summary {
    position: sticky;
    top: 40px;

    padding: 31px;
}

.trocbuy-payment-summary-label {
    display: block;
    margin-bottom: 8px;

    color: #98a2b3;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.trocbuy-payment-summary h2 {
    margin: 0 0 27px;

    color: #14263d;

    font-size: 26px;
    font-weight: 900;
}

.trocbuy-payment-summary-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;

    padding: 16px 0;

    border-top: 1px solid #edf1f5;
}

.trocbuy-payment-summary-line span {
    color: #7b8798;

    font-size: 13px;
}

.trocbuy-payment-summary-line strong {
    max-width: 190px;

    overflow-wrap: anywhere;

    color: #14263d;

    font-size: 13px;
    font-weight: 850;
    text-align: right;
}

.trocbuy-payment-total {
    margin-top: 13px;
    padding: 24px;

    border-radius: 19px;

    background: linear-gradient(
        135deg,
        #fff3e6,
        #fffaf5
    );
}

.trocbuy-payment-total span,
.trocbuy-payment-total strong,
.trocbuy-payment-total small {
    display: block;
}

.trocbuy-payment-total span {
    margin-bottom: 7px;

    color: #e96f00;

    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.trocbuy-payment-total strong {
    color: #14263d;

    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

.trocbuy-payment-total small {
    margin-top: 9px;

    color: #7b8798;

    font-size: 11px;
}

.trocbuy-payment-guarantee {
    display: flex;
    gap: 11px;

    margin-top: 21px;
}

.trocbuy-payment-guarantee > span {
    display: flex;
    flex: 0 0 27px;
    align-items: center;
    justify-content: center;

    width: 27px;
    height: 27px;

    border-radius: 50%;

    background: #e9f8ee;
    color: #16833c;

    font-size: 12px;
    font-weight: 900;
}

.trocbuy-payment-guarantee p {
    margin: 1px 0 0;

    color: #667085;

    font-size: 12px;
    line-height: 1.6;
}


/* Erreur et confirmation */

.trocbuy-payment-error,
.trocbuy-payment-success-state {
    max-width: 760px;
    margin: 80px auto;
    padding: 58px;

    border: 1px solid #e2e8f0;
    border-radius: 30px;

    background: #ffffff;

    box-shadow:
        0 24px 65px rgba(20, 38, 61, 0.09);

    text-align: center;
}

.trocbuy-payment-error-icon,
.trocbuy-payment-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 74px;
    height: 74px;
    margin: 0 auto 23px;

    border-radius: 23px;

    font-size: 31px;
    font-weight: 900;
}

.trocbuy-payment-error-icon {
    background: #feecec;
    color: #c62828;
}

.trocbuy-payment-success-icon {
    background: #e9f8ee;
    color: #16833c;
}

.trocbuy-payment-error h1,
.trocbuy-payment-success-state h1 {
    margin: 0 0 17px;

    color: #14263d;

    font-size: 39px;
    font-weight: 900;
    line-height: 1.12;
}

.trocbuy-payment-error p,
.trocbuy-payment-success-state > p {
    margin: 0 auto 25px;

    color: #667085;

    font-size: 17px;
    line-height: 1.7;
}

.trocbuy-payment-error a {
    display: inline-flex;
    padding: 14px 22px;

    border-radius: 14px;

    background: #ff7a00;
    color: #ffffff !important;

    font-weight: 900;
    text-decoration: none !important;
}

.trocbuy-payment-success-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;

    margin-top: 31px;
}

.trocbuy-payment-success-summary div {
    padding: 20px;

    border: 1px solid #e7ebf0;
    border-radius: 16px;

    background: #f8fafc;
}

.trocbuy-payment-success-summary span,
.trocbuy-payment-success-summary strong {
    display: block;
}

.trocbuy-payment-success-summary span {
    margin-bottom: 7px;

    color: #98a2b3;

    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.trocbuy-payment-success-summary strong {
    color: #14263d;

    font-size: 17px;
}


/* Responsive */

@media (max-width: 900px) {

    .trocbuy-payment-layout {
        grid-template-columns: 1fr;
    }

    .trocbuy-payment-summary {
        position: static;
    }
}

@media (max-width: 650px) {

    .trocbuy-payment-page {
        padding: 25px 15px 60px;
    }

    .trocbuy-payment-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .trocbuy-payment-main,
    .trocbuy-payment-summary {
        padding: 28px 21px;
        border-radius: 23px;
    }

    .trocbuy-payment-benefits {
        grid-template-columns: 1fr;
    }

    .trocbuy-payment-project {
        align-items: flex-start;
    }

    .trocbuy-payment-method {
        grid-template-columns: 47px minmax(0, 1fr);
    }

    .trocbuy-payment-method-arrow {
        display: none;
    }

    .trocbuy-payment-error,
    .trocbuy-payment-success-state {
        margin: 35px auto;
        padding: 37px 21px;
    }

    .trocbuy-payment-success-summary {
        grid-template-columns: 1fr;
    }
}