.abes-site-popup {
    --abes-visit-blue: #073f79;
    --abes-visit-blue-dark: #062e58;
    --abes-visit-ink: #152d48;
    --abes-visit-border: #d6e1eb;
    color: var(--abes-visit-ink);
}

.abes-site-popup,
.abes-site-popup * {
    box-sizing: border-box;
}

.abes-site-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.abes-site-popup .abes-site-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    min-height: 44px;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--abes-visit-border);
    border-radius: 0.5rem;
    color: var(--abes-visit-blue);
    background: #fff;
    font-size: 0.9375rem;
    font-weight: 650;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}

.abes-site-popup .abes-site-button:hover {
    color: var(--abes-visit-blue-dark);
    background: #edf5fb;
    text-decoration: none;
}

.abes-site-popup .abes-site-button-primary {
    color: #fff;
    background: var(--abes-visit-blue);
    border-color: transparent;
}

.abes-site-popup .abes-site-button-primary:hover {
    color: #fff;
    background: var(--abes-visit-blue-dark);
}

.abes-site-popup :focus-visible {
    outline: 2px solid #205d9b;
    outline-offset: 3px;
}

.abes-arrival-directions {
    font-size: 1rem;
    line-height: 1.5;
}

.abes-site-popup h2 {
    margin: 0;
    color: var(--abes-visit-ink);
    font-size: clamp(1.45rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
}

.ag-location .abes-arrival-directions {
    margin-top: 1rem;
}

.abes-site-popup {
    position: fixed;
    inset: 0;
    width: min(36rem, calc(100% - 2rem));
    max-width: none;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: clamp(1.125rem, 5vw, 2rem);
    overflow: auto;
    border: 1px solid var(--abes-visit-border);
    border-radius: 0.875rem;
    background: #fff;
    box-shadow: 0 1rem 3rem rgb(6 35 63 / 24%);
    overflow-wrap: anywhere;
}

.abes-site-popup:not([open]) {
    display: none;
}

.abes-site-popup::backdrop {
    background: rgb(8 25 45 / 64%);
}

html:has(.abes-site-popup[open]) {
    overflow: hidden;
}

.abes-site-popup h2 {
    padding-right: 2.5rem;
}

.abes-site-popup-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    margin: 0;
}

.abes-site-popup-close button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--abes-visit-border);
    border-radius: 50%;
    background: #fff;
    color: var(--abes-visit-blue-dark);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.abes-site-popup-close button:hover {
    background: #edf5fb;
    color: var(--abes-visit-blue-dark);
}

.abes-site-popup-copy {
    margin-top: 1rem;
    line-height: 1.55;
}

.abes-site-popup-copy p {
    margin: 0 0 0.875rem;
}

.abes-site-popup .abes-site-actions {
    margin-top: 1.125rem;
}

@media (max-width: 29rem) {
    .abes-site-popup .abes-site-button {
        flex: 1 1 100%;
    }
}
