/*
 * VORIK CLIENT VTC C2
 * Premium client action sheets
 */

body.is-client-vtc-action-open {
    overflow: hidden;
}


.client-vtc-action-overlay {
    position: fixed;
    inset: 0;

    z-index: 3500;
}


.client-vtc-action-overlay__backdrop {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    padding: 0;
    border: 0;

    background:
        rgba(7, 20, 38, 0.50);

    opacity: 0;

    transition:
        opacity 220ms ease;
}


.client-vtc-action-overlay.is-open
.client-vtc-action-overlay__backdrop {
    opacity: 1;
}


.client-vtc-action-sheet {
    position: absolute;

    left: 50%;
    bottom: 0;

    width:
        min(
            100%,
            560px
        );

    height:
        min(
            76vh,
            var(
                --client-action-max-height,
                760px
            )
        );

    max-height:
        var(
            --client-action-max-height,
            760px
        );

    display: flex;
    flex-direction: column;

    /*
     * IMPORTANT:
     * InformationSheet owns transform.
     * Do not define translateX here.
     */
    margin-left:
        calc(
            -1
            * min(
                50vw,
                280px
            )
        );

    border-radius:
        26px 26px 0 0;

    background: #ffffff;

    box-shadow:
        0 -18px 60px
        rgba(10, 27, 48, 0.20);

    overflow: hidden;
}


.client-vtc-action-sheet__header {
    position: relative;

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

    min-height: 88px;

    padding:
        24px 20px 14px;

    border-bottom:
        1px solid #e8edf3;
}


.client-vtc-action-sheet__handle {
    position: absolute;

    top: 9px;
    left: 50%;

    width: 44px;
    height: 5px;

    transform:
        translateX(-50%);

    border-radius: 99px;

    background: #ccd4dd;
}


.client-vtc-action-sheet__header small {
    display: block;

    margin-bottom: 3px;

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

    letter-spacing: 0.08em;

    color: #748094;
}


.client-vtc-action-sheet__header h2 {
    margin: 0;

    font-size: 32px;
    line-height: 1.1;

    color: #14243b;
}


.client-vtc-action-sheet__close {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    border: 0;
    border-radius: 50%;

    font-size: 27px;
    line-height: 1;

    color: #202d42;
    background: #f1f4f7;
}


.client-vtc-action-sheet__content {
    flex: 1;

    overflow-y: auto;

    padding:
        20px
        20px
        calc(
            28px
            + env(
                safe-area-inset-bottom
            )
        );

    font-size: 16px;
}


.client-vtc-action-hero {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    margin-bottom: 20px;
}


.client-vtc-action-hero > span {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    font-size: 20px;
    font-weight: 850;

    color: #1769d1;
    background: #edf5ff;
}


.client-vtc-action-hero h3 {
    margin:
        1px
        0
        5px;

    font-size: 17px;

    color: #14243b;
}


.client-vtc-action-hero p {
    margin: 0;

    font-size: 16px;
    line-height: 1.45;

    color: #687588;
}


.client-vtc-action-list {
    display: grid;

    gap: 10px;

    margin-bottom: 18px;
}


.client-vtc-action-list > div {
    display: flex;
    flex-direction: column;

    gap: 3px;

    padding: 14px 15px;

    border:
        1px solid #e5eaf0;

    border-radius: 15px;
}


.client-vtc-action-list strong {
    font-size: 16px;

    color: #17263e;
}


.client-vtc-action-list span {
    font-size: 14px;
    line-height: 1.4;

    color: #697588;
}


.client-vtc-action-primary,
.client-vtc-action-secondary {
    width: 100%;

    min-height: 50px;

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

    margin-top: 10px;

    padding: 12px 16px;

    border-radius: 14px;

    font-size: 16px;
    font-weight: 800;

    text-decoration: none;
}


.client-vtc-action-primary {
    border: 0;

    color: #ffffff;
    background: #1269df;
}


.client-vtc-action-secondary {
    border:
        1px solid #dce3eb;

    color: #27364d;
    background: #ffffff;
}


.client-vtc-payment-choice {
    margin-bottom: 16px;
}


.client-vtc-payment-choice button {
    width: 100%;

    display: grid;

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

    align-items: center;

    gap: 12px;

    padding: 14px;

    border:
        1px solid #dce4ed;

    border-radius: 16px;

    text-align: left;

    background: #ffffff;
}


.client-vtc-payment-choice
button.is-selected {
    border-color: #1269df;

    box-shadow:
        0 0 0 3px
        rgba(18, 105, 223, 0.10);
}


.client-vtc-payment-choice button > span {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: #f4f7fa;
}


.client-vtc-payment-choice button div {
    display: flex;
    flex-direction: column;

    gap: 3px;
}


.client-vtc-payment-choice strong {
    font-size: 16px;

    color: #16253d;
}


.client-vtc-payment-choice small {
    font-size: 13px;

    color: #718095;
}


.client-vtc-payment-choice b {
    color: #1269df;
}


.client-vtc-action-help {
    margin:
        0
        2px
        18px;

    font-size: 13px;
    line-height: 1.45;

    color: #748094;
}


.client-vtc-options {
    display: grid;

    gap: 10px;

    margin-bottom: 18px;
}


.client-vtc-options label {
    min-height: 68px;

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

    gap: 16px;

    padding: 13px 15px;

    border:
        1px solid #e1e7ee;

    border-radius: 15px;
}


.client-vtc-options label > span {
    display: flex;
    flex-direction: column;

    gap: 3px;
}


.client-vtc-options strong {
    font-size: 16px;

    color: #16253d;
}


.client-vtc-options small {
    font-size: 13px;

    color: #748094;
}


.client-vtc-options input {
    width: 21px;
    height: 21px;
}


@media (
    min-width: 760px
) {

    .client-vtc-action-sheet {
        bottom: 24px;

        border-radius: 26px;
    }

}


/*
 * ============================================================
 * VORIK_CLIENT_VTC_C21
 * GEOMETRY + TEXT SAFETY
 * ============================================================
 */

.client-vtc-action-sheet {
    box-sizing: border-box;

    width:
        min(
            calc(100vw - 20px),
            560px
        );

    left: 50%;

    overflow-x: hidden;
}


.client-vtc-action-sheet *,
.client-vtc-action-sheet *::before,
.client-vtc-action-sheet *::after {
    box-sizing: border-box;
}


.client-vtc-action-sheet__content {
    width: 100%;
    min-width: 0;

    overflow-x: hidden;
}


.client-vtc-action-sheet__content
> section {
    width: 100%;
    min-width: 0;
}


.client-vtc-action-hero {
    min-width: 0;
}


.client-vtc-action-hero > div {
    min-width: 0;
}


.client-vtc-action-hero h3,
.client-vtc-action-hero p,
.client-vtc-action-list span,
.client-vtc-action-help {
    overflow-wrap: anywhere;
    word-break: normal;
}


.client-vtc-action-primary,
.client-vtc-action-secondary {
    max-width: 100%;

    white-space: normal;

    text-align: center;
}


@media (
    max-width: 600px
) {

    .client-vtc-action-sheet {
        width:
            calc(
                100vw
                - 16px
            );

        margin-left:
            calc(
                -50vw
                + 8px
            );

        border-radius:
            24px 24px 0 0;
    }


    .client-vtc-action-sheet__header {
        padding:
            24px 18px 14px;
    }


    .client-vtc-action-sheet__content {
        padding:
            18px
            18px
            calc(
                22px
                + env(
                    safe-area-inset-bottom
                )
            );
    }


    .client-vtc-action-sheet__header h2 {
        font-size: 32px;
    }

}


/*
 * ============================================================
 * VORIK_CLIENT_VTC_C22_FINAL
 * CLIENT NOTIFICATIONS
 * ============================================================
 */

.vorik-vtc-notifications {
    position: relative;

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


.vorik-vtc-notifications__badge {
    position: absolute;

    top: 5px;
    right: 5px;

    min-width: 17px;
    height: 17px;

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

    padding: 0 4px;

    border:
        2px solid #ffffff;

    border-radius: 999px;

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

    color: #ffffff;
    background: #e43f3f;
}


.vorik-vtc-notifications__badge[hidden] {
    display: none;
}


.client-vtc-notification-list {
    display: grid;
    gap: 10px;
}


.client-vtc-notification-empty {
    min-height: 210px;

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

    padding: 28px 22px;

    text-align: center;

    border:
        1px solid #e4eaf0;

    border-radius: 18px;

    background: #f8fafc;
}


.client-vtc-notification-empty > span {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    margin-bottom: 13px;

    border-radius: 16px;

    font-size: 22px;

    color: #1269df;
    background: #eaf3ff;
}


.client-vtc-notification-empty strong {
    margin-bottom: 6px;

    font-size: 17px;

    color: #14243b;
}


.client-vtc-notification-empty p {
    max-width: 360px;

    margin: 0;

    font-size: 14px;
    line-height: 1.45;

    color: #718095;
}



/*
 * ============================================================
 * VORIK_VTC_NOTIFICATION_NATIVE_SVG
 * Reliable notification icon for WebView / Capacitor
 * ============================================================
 */

.vorik-vtc-notifications {
    color: #0b2849;
}


.vorik-vtc-notifications__icon {
    width: 23px;
    height: 23px;

    display: block;
    flex: 0 0 23px;

    color: #0b2849;

    pointer-events: none;
}

