/* LinKnote Guest Welcome v1.0.1: namespaced to avoid Global Header / Store clashes. */
.linknote-gw-backdrop,
.linknote-gw-backdrop * {
    box-sizing: border-box;
}

.linknote-gw-backdrop[hidden] {
    display: none !important;
}

body.linknote-gw-dialog-open {
    overflow: hidden !important;
}

.linknote-gw-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(24, 32, 43, .32);
}

.linknote-gw-dialog {
    position: relative;
    width: min(100%, 440px);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 30px 27px 23px;
    border: 1px solid rgba(30, 45, 60, .07);
    border-radius: 20px;
    background: #fff;
    color: #26313d;
    text-align: left;
    line-height: 1.65;
    box-shadow: 0 16px 64px rgba(10, 24, 35, .2);
    -webkit-overflow-scrolling: touch;
}

.linknote-gw-dialog:focus {
    outline: none;
}

.linknote-gw-eyebrow {
    margin: 0 0 12px !important;
    color: #637a87;
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: .08em;
}

.linknote-gw-title {
    margin: 0 32px 12px 0 !important;
    color: #24394b !important;
    font-size: clamp(20px, 4.5vw, 24px) !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
}

.linknote-gw-description {
    margin: 0 0 20px !important;
    color: #4b5b68;
    font-size: 15px !important;
    line-height: 1.8;
}

.linknote-gw-close {
    position: absolute;
    top: 14px;
    right: 15px;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50%;
    background: transparent !important;
    color: #62707c !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    line-height: 32px !important;
    cursor: pointer;
}

.linknote-gw-close:hover,
.linknote-gw-close:focus-visible {
    background: #edf2f4 !important;
}

.linknote-gw-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.linknote-gw-action {
    display: inline-flex !important;
    flex: 1 1 150px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 18px !important;
    border: 1px solid #607c8a !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: 1.4 !important;
    text-align: center;
    text-decoration: none !important;
    transition: background-color .15s ease, border-color .15s ease;
}

.linknote-gw-login,
.linknote-gw-login:visited {
    background: #385e70 !important;
    border-color: #385e70 !important;
    color: #fff !important;
}

.linknote-gw-login:hover {
    background: #294958 !important;
    border-color: #294958 !important;
    color: #fff !important;
}

.linknote-gw-register,
.linknote-gw-register:visited {
    background: #fff !important;
    color: #385e70 !important;
}

.linknote-gw-register:hover {
    background: #eef5f6 !important;
    color: #385e70 !important;
}

.linknote-gw-continue {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 8px !important;
    border: 0 !important;
    background: transparent !important;
    color: #476674 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

.linknote-gw-continue:hover {
    color: #23424d !important;
}

.linknote-gw-dialog :is(button, a):focus-visible {
    outline: 3px solid #90b9cf !important;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    /* A small, softly shaded bottom card rather than a full-height mobile dialog. */
    .linknote-gw-backdrop {
        align-items: flex-end;
        padding: 12px 12px max(12px, env(safe-area-inset-bottom));
        background: rgba(24, 32, 43, .18);
    }

    .linknote-gw-dialog {
        width: min(100%, 420px);
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px - env(safe-area-inset-bottom));
        padding: 21px 18px 14px;
        border: 1px solid rgba(30, 45, 60, .1);
        border-radius: 18px;
        box-shadow: 0 10px 36px rgba(10, 24, 35, .18);
    }

    .linknote-gw-close {
        top: 8px;
        right: 9px;
        width: 32px;
        height: 32px;
        line-height: 28px !important;
    }

    .linknote-gw-eyebrow {
        margin-bottom: 6px !important;
        font-size: 11px !important;
    }

    .linknote-gw-title {
        margin-bottom: 7px !important;
        font-size: 18px !important;
        line-height: 1.45 !important;
    }

    .linknote-gw-description {
        margin-bottom: 13px !important;
        font-size: 13.5px !important;
        line-height: 1.65;
    }

    .linknote-gw-actions {
        flex-wrap: nowrap;
        gap: 8px;
        margin-bottom: 5px;
    }

    .linknote-gw-action {
        flex-basis: 0;
        min-height: 44px;
        padding: 9px 10px !important;
        font-size: 14px !important;
    }

    .linknote-gw-continue {
        min-height: 36px;
        padding: 6px !important;
        font-size: 13px !important;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .linknote-gw-backdrop:not([hidden]) .linknote-gw-dialog {
        animation: linknote-gw-appear .18s ease-out both;
    }
    @keyframes linknote-gw-appear {
        from { opacity: .7; transform: translateY(8px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
