.fos {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    color: var(--c-primary);
    transition: .3s;
    visibility: hidden;
    opacity: 0;
    display: flex;
    justify-content: center;
}

.fos-body {
    pointer-events: none;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}

.inn_fos-body {
    pointer-events: none;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding: 40px 0;
}

.fos-bg {
    background-color: #151515B8;
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.fb_content {
    width: calc(100% - var(--cont-p) * 2);
    max-width: 592px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    border-radius: 28px;
    padding: 48px;
    background-color: #F5F5F5;
    touch-action: pan-y;
    will-change: transform;
}

.fbc_swipe {
    display: none;
    height: 16px;
    /*display: flex;*/
    align-items: center;
    justify-content: center;
}

.fbc_swipe_line {
    width: 48px;
    border-radius: 10px;
    height: 4px;
    background-color: #D7D7D7;
}

/*.fbc_info {*/
/*    margin-top: 20px;*/
/*}*/

.fos .mini_title:before,
.fos .mini_title:after {
    opacity: 1;
    background-image: linear-gradient(90deg, rgba(135, 135, 135, 0.16) 80%, #F5F5F5 100%);
}

.fos .mini_title:before {
    background-image: linear-gradient(90deg, #F5F5F5 0%, rgba(135, 135, 135, 0.16) 20%);
}

.fos-krest {
    position: absolute;
    top: 0;
    right: 0;
    padding: 24px;
    cursor: pointer;
    z-index: 2;
}

@media (min-width: 721px) {
    .fos-krest:hover .fos-krest-icon {
        background-color: #D0A972;
    }
}

.fos-krest-icon {
    transition: background-color .3s;
}

.fos-krest-icon,
.fos-krest-icon svg {
    --s: 20px;
    width: var(--s);
    min-width: var(--s);
    height: var(--s);
}

.fos-krest-icon {
    display: flex;
    background-color: #D7D7D7;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    --s: 44px;
}

.fb_content[data-type="options"] {
    display: none;
}


@media (max-width: 720px) {
    .fos-body {
        align-items: flex-end;
    }

    .inn_fos-body {
        position: relative;
        pointer-events: none;
        width: 100%;
        height: 100%;
        max-height: 100%;
        display: flex;
        align-items: flex-end;
        /*overflow-y: auto;*/
        padding: var(--cont-p) 0;
        overflow: clip;
    }

    .fbc_info {
        margin-top: 32px;
    }

    .fb_content[data-type="form"] .fbc_info {
        overflow-y: auto;
        margin-right: calc(-1 * var(--cont-p));
        padding-right: var(--cont-p);
        width: calc(100% + var(--cont-p));
    }

    .fb_content {
        transition: visibility .3s, opacity .3s, transform .3s;
        visibility: visible;
        opacity: 1;
        padding: 0 24px 16px;
        max-height: calc(100% - 48px);
    }

    .fb_content[data-type="form"] {
        display: grid;
        grid-template-rows: auto 1fr auto;
    }

    .fb_content[data-type="options"].hide,
    .fb_content[data-type="form"].hide {
        visibility: hidden;
        opacity: 0;
        transform: translateY(200px);
    }

    .fb_content[data-type="options"] {
        display: block;
        position: absolute;
        bottom: var(--cont-p);
        left: var(--cont-p);
        right: var(--cont-p);
    }

    .fos .mini_title span {
        padding-top: 2px;
    }

    .fos-krest {
        display: none;
    }

    .fbc_swipe {
        display: flex;
        height: 20px;
    }
}