.store-header__links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.store-header__links .navlink {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    white-space: nowrap;
}

.store-header__links .navlink:hover,
.store-header__links .navlink[aria-current='page'] {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.contact-page.wrap,
.contact-page + .store-footer {
    width: min(1440px, 94%);
}

.store-contact {
    scroll-margin-top: 92px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: stretch;
    gap: clamp(20px, 4vw, 52px);
    margin-top: 46px;
    padding: clamp(20px, 3vw, 36px);
    background: #edf0e8;
    border: 1px solid #dddcd0;
    border-radius: 16px;
}

.store-contact__details {
    align-self: center;
    display: grid;
    justify-items: start;
    gap: 18px;
    overflow-wrap: anywhere;
}

.store-contact h1 {
    margin: 0;
    line-height: 1.1;
    font-size: clamp(32px, 3.4vw, 48px);
    font-weight: 500;
    letter-spacing: -1.6px;
}

.store-contact h2 {
    font:
        600 0.875rem Arial,
        sans-serif;
}

.store-contact p {
    margin: 5px 0 0;
    line-height: 1.5;
}

.store-contact__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.store-contact__actions a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 5px 11px;
    border: 1px solid #264737;
    border-radius: 24px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.store-contact__actions a[href^='tel:'] {
    background: #264737;
    color: #fff;
}

.store-contact__actions a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.store-contact__map {
    display: block;
    width: 100%;
    height: 100%;
    min-height: clamp(360px, 58vh, 620px);
    border: 0;
    border-radius: 12px;
    background: #fffdf8;
}

.store-contact-shortcuts {
    position: fixed;
    z-index: 8;
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    display: grid;
    gap: 8px;
}

/* Keep shortcuts out of the way for both storefront dialogs. */
#root:has(dialog:modal) .store-contact-shortcuts {
    display: none;
}

.store-contact-shortcuts a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #ffffff80;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 2px 8px #17291e40;
}

.store-contact-shortcuts a:hover {
    box-shadow: 0 2px 10px #17291e80;
}

.store-contact-shortcuts svg {
    width: 24px;
    height: 24px;
}

.store-contact-shortcuts__phone {
    --contact-shortcut-color: #287443;
    background: var(--contact-shortcut-color);
}

.store-contact-shortcuts__zalo {
    --contact-shortcut-color: #0065df;
    background: var(--contact-shortcut-color);
}

@media (prefers-reduced-motion: no-preference) {
    :is(.store-contact-shortcuts__phone, .store-contact-shortcuts__zalo) {
        position: relative;
    }

    :is(
        .store-contact-shortcuts__phone,
        .store-contact-shortcuts__zalo
    )::before {
        position: absolute;
        inset: -1px;
        border: 2px solid var(--contact-shortcut-color);
        border-radius: inherit;
        opacity: 0;
        pointer-events: none;
        content: '';
        animation: contact-shortcut-pulse 2s ease-out infinite;
    }

    .store-contact-shortcuts__zalo::before {
        animation-delay: 1s;
    }
}

@keyframes contact-shortcut-pulse {
    from {
        opacity: 0.55;
        transform: scale(1);
    }

    45%,
    to {
        opacity: 0;
        transform: scale(1.34);
    }
}

.store-contact-shortcuts__zalo span {
    position: relative;
    border-radius: 6px;
    background: #fff;
    color: #0065df;
    padding: 3px 2px;
    font-size: 11px;
    font-weight: 700;
}

.store-contact-shortcuts__zalo span::after {
    position: absolute;
    bottom: -3px;
    left: 3px;
    width: 0;
    height: 0;
    border-top: 4px solid #fff;
    border-right: 4px solid transparent;
    content: '';
}

.store-contact-shortcuts__tiktok {
    background: #151515;
}

.store-contact:focus-visible,
.store-contact a:focus-visible,
.store-header__links a:focus-visible,
.store-contact-shortcuts a:focus-visible {
    outline: 2px solid #a9481b;
    outline-offset: 3px;
}

@media (max-width: 850px) {
    .contact-page.wrap,
    .contact-page + .store-footer {
        width: calc(100% - 24px);
    }

    .store-contact {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: clamp(16px, 4vw, 24px);
        margin-top: 28px;
    }

    .store-contact__map {
        min-height: clamp(250px, 38vh, 340px);
    }
}

@media (max-width: 700px) {
    .store-header .store-header__inner,
    .store-header__links {
        gap: 9px;
    }

    .store-header__links .navlink {
        font-size: 0.875rem;
    }

    .store-contact {
        scroll-margin-top: 80px;
    }
}

@media (max-width: 360px) {
    .store-header .brand {
        gap: 5px;
        font-size: 23px;
    }
}
