/* Design Press, external link consent dialog. Sits above the lookup menu
   (z 80) and the info dialog (z 90). */

.ext-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.ext-overlay[hidden] {
    display: none;
}

.ext-card {
    width: min(440px, 100%);
    background: var(--dark);
    border: 1px solid var(--accentTransparent);
    border-radius: var(--fp-radius);
    box-shadow: 0 0 14px var(--glow), 0 18px 50px rgba(0, 0, 0, .5);
    padding: 20px;
    animation: fp-ext-in .2s cubic-bezier(.2, .85, .3, 1.1) both;
}

@keyframes fp-ext-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.ext-title {
    margin: 0 0 12px;
    font-family: var(--fp-display);
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accentColor);
}

.ext-text {
    margin: 0 0 14px;
    font-family: var(--fp-ui);
    font-size: .8rem;
    line-height: 1.65;
    color: var(--textColor);
}

.ext-text b {
    font-weight: 500;
    color: var(--accentColor);
}

.ext-dest {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 14px;
    padding: 8px 10px;
    border: 1px solid var(--fp-edge);
    border-radius: var(--fp-radius);
    background: var(--backgroundColor-Transparent);
    font-family: var(--fp-ui);
    font-size: .74rem;
}

.ext-dest-label {
    flex: 0 0 auto;
    font-size: .62rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--fp-muted);
}

.ext-host {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--textColor);
}

.ext-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    cursor: pointer;
    font-family: var(--fp-ui);
    font-size: .72rem;
    color: var(--fp-muted);
}

.ext-remember input {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    accent-color: var(--accentColor);
    cursor: pointer;
}

.ext-actions {
    display: flex;
    gap: 8px;
}

.ext-actions .btn {
    font-size: .7rem;
}

/* The continue control is an anchor so the new tab opens from a real user
   gesture, it needs the button's centering that a link does not get. */
.ext-actions a.btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.ext-actions a.btn:hover {
    text-decoration: none;
}

@media (max-width: 420px) {
    .ext-actions {
        flex-direction: column-reverse;
    }

    .ext-actions .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
