/* Snabb Egenkontroll launcher overlay. */
html.t0k-ek-modal-open,
body.t0k-ek-modal-open {
    overflow: hidden !important;
}

.t0k-ek-launcher[hidden] {
    display: none !important;
}

.t0k-ek-launcher {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: grid;
    place-items: center;
    padding: 16px;
}

.t0k-ek-launcher__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgb(15 23 42 / 72%);
    backdrop-filter: blur(6px);
    cursor: default;
}

.t0k-ek-launcher__panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: 48px minmax(0, 1fr);
    width: min(1680px, calc(100vw - 32px));
    height: calc(100dvh - 32px);
    max-height: 1120px;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 16px;
    background: #f3f4f6;
    box-shadow: 0 28px 90px rgb(0 0 0 / 38%);
}

.t0k-ek-launcher__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    padding: 0 10px 0 16px;
    border-bottom: 1px solid #dfe3e8;
    background: #fff;
    color: #1f2937;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.t0k-ek-launcher__header strong {
    overflow: hidden;
    font-size: 14px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.t0k-ek-launcher__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 5px 10px;
    border: 1px solid #d6d9de;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    font: 650 13px/1 Inter, ui-sans-serif, system-ui, sans-serif;
    cursor: pointer;
}

.t0k-ek-launcher__close:hover {
    background: #f8fafc;
    border-color: #b8c1cd;
}

.t0k-ek-launcher__close:focus-visible {
    outline: 2px solid #255fc8;
    outline-offset: 2px;
}

.t0k-ek-launcher__close span:last-child {
    font-size: 21px;
    font-weight: 400;
    line-height: 0.8;
}

.t0k-ek-launcher__frame {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    border: 0;
    background: #f3f4f6;
}

@media (max-width: 820px) {
    .t0k-ek-launcher {
        padding: 0;
    }

    .t0k-ek-launcher__backdrop {
        backdrop-filter: none;
    }

    .t0k-ek-launcher__panel {
        width: 100vw;
        height: 100dvh;
        max-height: none;
        border: 0;
        border-radius: 0;
    }

    .t0k-ek-launcher__header {
        padding-left: 12px;
    }

    .t0k-ek-launcher__close span:first-child {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .t0k-ek-launcher__close {
        width: 36px;
        min-width: 36px;
        padding: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .t0k-ek-launcher__backdrop {
        backdrop-filter: none;
    }
}
