/* The web gate's screens (js/web-gate.js). Uses the app shell's --bookido-* colors and "Bookido Lato" font. */

/* a gated page shows only the gate: the app container, its loader and anything else stay hidden */
.bookido-gate body > :not(#bookido-gate) {
    display: none !important;
}

#bookido-gate .bookido-gate-detail {
    margin: 0;
    color: var(--bookido-text);
    opacity: 0.6;
    font-size: 12px;
    line-height: 16px;
    overflow-wrap: anywhere;
}

#bookido-gate {
    position: fixed;
    inset: 0;
    display: flex;
    box-sizing: border-box;
    height: 100%;
    align-items: flex-start;
    justify-content: center;
    padding:
        max(16px, env(safe-area-inset-top))
        max(16px, env(safe-area-inset-right))
        max(16px, env(safe-area-inset-bottom))
        max(16px, env(safe-area-inset-left));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--bookido-background);
    color: var(--bookido-text);
    font-family: "Bookido Lato", Lato, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
    text-align: left;
}

.bookido-gate-content {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
    width: min(100%, 640px);
    min-height: 100%;
    min-width: 0;
    margin: 0;
    padding: 32px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bookido-card-background);
}

.bookido-gate-title {
    margin: 0;
    color: var(--bookido-text);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.24;
}

.bookido-gate-text,
.bookido-gate-step-heading {
    margin: 0;
}

.bookido-gate-step-heading {
    position: relative;
    box-sizing: border-box;
    min-height: 20px;
    padding-left: 22.5px;
}

.bookido-gate-step-heading[data-step]::before {
    position: absolute;
    left: 4px;
    content: attr(data-step) ".";
}

.bookido-gate-step-heading--second {
    width: min(306px, 100%);
    min-height: 40px;
}

.bookido-gate-picture {
    display: block;
    width: 100%;
    line-height: 0;
    text-align: center;
}

.bookido-gate-picture img {
    display: block;
    width: min(100%, 576px);
    height: auto;
    margin: 0 auto;
}

.bookido-telegram-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
}

.bookido-telegram-layout {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    margin-top: clamp(72px, 18vh, 260px);
    white-space: nowrap;
}

.bookido-telegram-title {
    z-index: 1;
    display: block;
    width: 49.589vw;
    flex: 0 0 auto;
    margin: 0;
    color: var(--bookido-text);
    font-size: 4.528vw;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

.bookido-telegram-title-line {
    display: block;
}

.bookido-telegram-title-first-line {
    display: block;
    white-space: nowrap;
}

.bookido-telegram-browser-icon {
    display: inline-block;
    width: 7vw;
    height: 7vw;
    margin-left: 0.8vw;
    vertical-align: middle;
}

.bookido-telegram-pointer {
    z-index: 0;
    display: block;
    width: auto;
    height: calc(100% - 18px - 2.83vw);
    flex: 0 0 auto;
    margin: 2.83vw 8px 18px 3.2vw;
    pointer-events: none;
}

@media (min-width: 500px) {
    .bookido-telegram-title {
        width: 247.945px;
        font-size: 22.64px;
    }

    .bookido-telegram-browser-icon {
        width: 35px;
        height: 35px;
        margin-left: 4px;
    }

    .bookido-telegram-pointer {
        height: calc(100% - 32.15px);
        margin: 14.15px 8px 18px 16px;
    }
}

.bookido-gate--telegram #bookido-gate {
    align-items: stretch;
    overflow: hidden;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
}
