/* WEBEGE PAYMENT ERROR UI V2.66 SHARED START */

.webege-payment-error {
    box-sizing: border-box;
    width: 100%;

    margin: 12px 0 0;
    padding: 14px;

    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: start;

    border:
        1px solid rgba(214, 71, 71, .16);

    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 247, 247, .98),
            rgba(255, 252, 250, .98)
        );

    box-shadow:
        0 8px 24px rgba(55, 25, 25, .045);
}


.webege-payment-error-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        rgba(221, 66, 66, .10);

    color: #d84848;

    font-size: 19px;
    line-height: 1;
    font-weight: 900;
}


.webege-payment-error-body {
    min-width: 0;
}


.webege-payment-error-title {
    margin: 1px 0 4px;

    color: #2b1f1f;

    font-size: 14.5px;
    line-height: 1.25;
    font-weight: 850;
    letter-spacing: -.015em;
}


.webege-payment-error-text {
    max-width: 390px;

    color: #786969;

    font-size: 12.8px;
    line-height: 1.45;
    font-weight: 600;
}


.webege-payment-error-support,
.webege-payment-error-support:visited {
    box-sizing: border-box;

    width: max-content;
    max-width: 100%;
    min-height: 36px;

    margin-top: 10px;
    padding: 0 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 0;
    border-radius: 11px;

    background: var(--primary, #1bcf56);
    color: #fff !important;

    text-decoration: none !important;

    font-size: 12.5px;
    line-height: 1;
    font-weight: 800;

    box-shadow:
        0 7px 17px rgba(27, 207, 86, .17);

    transition:
        transform .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}


.webege-payment-error-support:hover {
    background: var(--primary-dark, #18b94d);

    transform: translateY(-1px);

    box-shadow:
        0 9px 20px rgba(27, 207, 86, .22);
}


.webege-payment-error-arrow {
    font-size: 15px;
    line-height: 1;
    opacity: .9;
}


/*
 * Profile и guest раньше использовали свои status-карточки.
 * При ошибке превращаем wrapper в прозрачный host,
 * чтобы не было "карточки внутри карточки".
 */

.guest-checkout-status.webege-payment-error-host,
.topup-result.webege-payment-error-host {
    display: block !important;

    padding: 0 !important;
    margin-top: 12px !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;
}


.guest-checkout-status.webege-payment-error-host
.webege-payment-error,
.topup-result.webege-payment-error-host
.webege-payment-error {
    margin-top: 0;
}


/*
 * Auth cart:
 * оставляем существующий блок пополнения,
 * error располагается аккуратно под CTA.
 */

#cart-modal
.cart-inline-topup
.webege-payment-error {
    margin-top: 12px;
}


@media (max-width: 700px) {

    .webege-payment-error {
        margin-top: 10px;
        padding: 12px;

        grid-template-columns:
            34px minmax(0, 1fr);

        gap: 10px;

        border-radius: 15px;
    }


    .webege-payment-error-icon {
        width: 34px;
        height: 34px;

        border-radius: 11px;

        font-size: 17px;
    }


    .webege-payment-error-title {
        font-size: 13.5px;
    }


    .webege-payment-error-text {
        font-size: 12px;
        line-height: 1.42;
    }


    .webege-payment-error-support,
    .webege-payment-error-support:visited {
        min-height: 36px;

        margin-top: 9px;
        padding: 0 12px;

        border-radius: 10px;

        font-size: 12px;
    }
}


@media (max-width: 380px) {

    .webege-payment-error {
        grid-template-columns:
            32px minmax(0, 1fr);

        padding: 11px;
    }


    .webege-payment-error-icon {
        width: 32px;
        height: 32px;
    }
}


@media (prefers-reduced-motion: reduce) {

    .webege-payment-error-support {
        transition: none;
    }
}

/* WEBEGE PAYMENT ERROR UI V2.66 SHARED END */
