/* Shared accessibility, navigation and utility controls. */
[hidden] {
    display: none !important;
}

.skip-link {
    position: fixed;
    z-index: 3000;
    top: 10px;
    left: 10px;
    padding: 11px 16px;
    transform: translateY(-160%);
    border-radius: 8px;
    background: #173c35;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    transition: transform .15s ease;
}

    .skip-link:focus {
        transform: translateY(0);
        color: #fff;
        outline: 3px solid #9bbd84;
        outline-offset: 2px;
    }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid #6a9c76;
    outline-offset: 3px;
}

.store-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.scroll-progress {
    position: fixed;
    z-index: 2000;
    inset: 0 0 auto;
    height: 3px;
    pointer-events: none;
}

    .scroll-progress span {
        display: block;
        width: 100%;
        height: 100%;
        transform: scaleX(0);
        transform-origin: left center;
        background: #8eaa74;
        will-change: transform;
    }

.footer-business-detail {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 8px 0;
    color: var(--store-muted, #5d6b63);
    font-size: 1.1rem;
    overflow-wrap: anywhere;
}

    .footer-business-detail i {
        flex: 0 0 auto;
        margin-top: 2px;
        color: var(--store-green, #326a58);
    }

.footer-utility {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px 12px;
}

    .footer-utility time {
        color: var(--store-muted, #5d6b63);
        font-size: 1rem;
    }

.footer-utility-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 5px 9px;
    border: 1px solid var(--store-line, #dfe6df);
    border-radius: 8px;
    background: #fff;
    color: var(--store-forest, #173c35);
    font: inherit;
    font-size: 1rem;
    cursor: pointer;
}

    .footer-utility-button:hover {
        border-color: #8eaa74;
        background: #f1f6ef;
    }

.floating-contact {
    position: fixed;
    z-index: 48;
    bottom: 22px;
    left: 22px;
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border-radius: 24px;
    background: #326a58;
    color: #fff;
    box-shadow: 0 8px 24px rgba(20, 55, 44, .22);
    font-size: 1.15rem;
    font-weight: 600;
    transition: transform .18s ease, box-shadow .18s ease;
}

    .floating-contact:hover {
        transform: translateY(-2px);
        color: #fff;
        box-shadow: 0 11px 28px rgba(20, 55, 44, .28);
    }

.cookie-notice {
    position: fixed;
    z-index: 1200;
    bottom: 86px;
    left: 20px;
    display: flex;
    width: min(440px, calc(100vw - 32px));
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #dfe8df;
    border-radius: 14px;
    background: #fff;
    color: #273a31;
    box-shadow: 0 14px 40px rgba(22, 51, 40, .2);
    flex-wrap: wrap;
}

    .cookie-notice p {
        flex: 1 1 100%;
        margin: 0;
        font-size: 1.05rem;
        line-height: 1.45;
    }

.cookie-notice-actions {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    gap: 8px;
}

.cookie-notice button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 7px 13px;
    border: 0;
    border-radius: 8px;
    background: #173c35;
    color: #fff;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
}

.cookie-notice .cookie-notice-essential {
    border: 1px solid #9aaca0;
    background: #fff;
    color: #173c35;
}

.has-password-toggle {
    position: relative;
}

.password-toggle-input {
    padding-right: 58px !important;
}

.password-visibility-toggle {
    position: absolute;
    top: 70%;
    right: 10px;
    z-index: 2;
    min-width: 43px;
    min-height: 32px;
    padding: 4px 6px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #285b4f;
    font: inherit;
    font-size: .95em;
    font-weight: 600;
    cursor: pointer;
}

    .password-visibility-toggle:hover {
        background: #edf3ed;
    }

.error-page {
    width: min(760px, calc(100% - 32px));
    margin: clamp(40px, 9vw, 100px) auto;
    padding: clamp(26px, 6vw, 56px);
    border: 1px solid #e3eae2;
    border-radius: 22px;
    background: #f8faf7;
    text-align: center;
}

    .error-page h1 {
        margin: 0 0 12px;
        color: #173c35;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(3.2rem, 8vw, 5.5rem);
        line-height: 1.05;
    }

    .error-page p {
        max-width: 500px;
        margin: 0 auto 22px;
        color: #53675c;
        font-size: 1.35rem;
    }

.error-page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

    .error-page-actions a {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 10px 17px;
        border: 1px solid #173c35;
        border-radius: 9px;
        background: #173c35;
        color: #fff;
        font-weight: 600;
    }

        .error-page-actions a + a {
            background: #fff;
            color: #173c35;
        }

@media (max-width: 767px) {
    .store-header .store-nav {
        z-index: 102;
        max-height: min(75vh, 620px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .cookie-notice {
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        left: 10px;
        width: calc(100vw - 20px);
        gap: 10px;
        padding: 11px 12px;
    }

        .cookie-notice p {
            font-size: 1rem;
        }

    .floating-contact {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        left: 12px;
        min-height: 44px;
        padding: 0 12px;
    }

    .footer-utility {
        width: 100%;
    }
}

@media print {
    .announcement,
    .store-header,
    .store-footer,
    .site-bot-panel,
    .site-bot-toggle,
    .floating-contact,
    .cookie-notice,
    #scroll-top,
    .scroll-progress,
    .store-toast-wrap,
    .skip-link,
    .footer-utility,
    button,
    .no-print {
        display: none !important;
    }

    html,
    body,
    #main-content {
        width: 100% !important;
        overflow: visible !important;
        background: #fff !important;
        color: #000 !important;
    }

    a {
        color: inherit !important;
        text-decoration: none !important;
    }

    img,
    figure,
    table,
    tr {
        break-inside: avoid;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skip-link,
    .floating-contact,
    .password-visibility-toggle {
        transition: none;
    }
}
