/*
 * Language suggestion popup styles.
 *
 * Colours and font sizes pull from the theme's CSS custom properties emitted
 * by theme.json (e.g. --wp--preset--color--primary). That way the popup
 * automatically tracks the theme's visual identity and requires no SCSS
 * rebuild when theme tokens change.
 */
.eb-lang-suggest {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: min(560px, calc(100vw - 32px));
    width: 100%;
    margin: auto;
}

.eb-lang-suggest::backdrop {
    background: rgba(0, 0, 0, 0.35);
}

.eb-lang-suggest__inner {
    position: relative;
    background: var(--wp--preset--color--base, #fff);
    color: var(--wp--preset--color--contrast, #1a1a1a);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    padding: 28px 32px 24px;
    font-family: var(--wp--preset--font-family--body, inherit);
    font-size: var(--wp--preset--font-size--base, 16px);
    line-height: 1.5;
}

.eb-lang-suggest__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eb-lang-suggest__close:hover,
.eb-lang-suggest__close:focus-visible {
    background: rgba(0, 0, 0, 0.06);
    outline: none;
}

.eb-lang-suggest__heading {
    margin: 0 32px 8px 0;
    font-size: var(--wp--preset--font-size--medium, 20px);
    line-height: 1.3;
    color: inherit;
    font-weight: 700;
}

.eb-lang-suggest__body {
    margin: 0 0 20px;
    color: inherit;
}

.eb-lang-suggest__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.eb-lang-suggest__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    min-height: 44px;
    border-radius: 6px;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.eb-lang-suggest__cta:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary, #1c2b66);
    outline-offset: 2px;
}

.eb-lang-suggest__cta--primary {
    background: var(--wp--preset--color--primary, #1c2b66);
    color: var(--wp--preset--color--base, #fff);
    border-color: var(--wp--preset--color--primary, #1c2b66);
}

.eb-lang-suggest__cta--primary:hover,
.eb-lang-suggest__cta--primary:focus-visible {
    filter: brightness(1.08);
    color: var(--wp--preset--color--base, #fff);
}

.eb-lang-suggest__cta--secondary {
    background: transparent;
    color: var(--wp--preset--color--contrast, #1a1a1a);
    border-color: var(--wp--preset--color--contrast, #1a1a1a);
}

.eb-lang-suggest__cta--secondary:hover,
.eb-lang-suggest__cta--secondary:focus-visible {
    background: rgba(0, 0, 0, 0.05);
}

.eb-lang-suggest--closing {
    opacity: 0;
    transition: opacity 0.15s ease;
}

@media (max-width: 480px) {
    .eb-lang-suggest__inner {
        padding: 24px 20px 20px;
    }
    .eb-lang-suggest__actions {
        flex-direction: column;
        align-items: stretch;
    }
}
