/* Small-screen header slots and screenshot enlarge. Loaded after the shell and home CSS. */

@media (max-width: 767px) {
    .mp-header {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        grid-template-areas:
            "logo logo lang"
            "menu tools tools";
        align-items: center;
        column-gap: 8px;
        row-gap: 0;
        padding: 8px 16px;
    }

    .mp-header .mp-logo {
        position: static;
        justify-self: start;
        min-width: 0;
        max-width: 100%;
        gap: 8px;
        overflow: visible;
        font-size: 18px;
    }

    .mp-header .mp-logo-word {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: nowrap;
    }

    .mp-header .mp-logo img {
        width: 33px;
        height: 33px;
    }

    .mp-menu {
        display: inline-flex;
        grid-area: menu;
        position: static;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 0;
        justify-self: start;
    }

    .mp-tools {
        flex-wrap: nowrap;
        justify-content: flex-end;
        justify-self: end;
    }

    .mp-header .mp-lang {
        justify-self: end;
    }

    .mp-nav {
        grid-area: auto;
        grid-column: 1 / -1;
        grid-row: 3;
        width: 100%;
        background: #fff;
    }

    .mp-showcase {
        padding-right: 0;
    }

    .mp-showcase .mp-phone {
        display: none;
    }
}

@media (max-width: 359px) {
    .mp-header .mp-logo {
        font-size: 16px;
        letter-spacing: -0.4px;
    }
}

#mp-nav a.mp-button.mp-nav-cta,
#mp-nav a.mp-button.mp-nav-cta:hover,
#mp-nav a.mp-button.mp-nav-cta:focus {
    background: #6556ed;
    color: #fff;
}

.mp-preview-open,
.mp-preview-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 7px;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
}

.mp-preview-open {
    margin: 8px;
    padding: 8px 14px;
    background: #6556ed;
    color: #fff;
}

.mp-preview-open:hover,
.mp-preview-close:hover {
    filter: brightness(1.07);
}

.mp-preview-dialog {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: #10182c;
    color: #fff;
}

.mp-preview-dialog::backdrop {
    background: #10182ccc;
}

.mp-preview-dialog[open] {
    display: flex;
    flex-direction: column;
}

.mp-preview-bar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
}

.column.main .mp-preview-dialog .mp-preview-bar p,
.mp-preview-dialog .mp-preview-bar p {
    color: #fff;
    margin: 0;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.3;
}

.mp-preview-close {
    flex: 0 0 auto;
    padding: 8px 14px;
    background: #fff;
    color: #10182c;
}

.mp-preview-stage {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y pinch-zoom;
}

.mp-preview-stage figure {
    margin: 0;
}

.mp-preview-stage figcaption {
    padding: 12px 16px 0;
    color: #dbe0eb;
    font-size: 14px;
    font-weight: 650;
}

.mp-preview-dialog .mp-preview-stage img {
    display: block;
    width: auto;
    max-width: none;
    height: auto;
}

@media (max-width: 767px) {
    .mp-preview-open {
        width: calc(100% - 16px);
    }
}
