/**
 * Global shell polish (all site-ui pages)
 */
@media (min-width: 768px) {
    .site-ui .site-footer-inner {
        grid-template-columns: 1.2fr 1fr;
        align-items: start;
    }
}

.site-ui .site-footer-nav a:focus-visible,
.site-ui header .nav-btn:focus-visible,
.site-ui .mobile-nav-link:focus-visible,
.site-ui .mb-btn:focus-visible,
.site-ui .nav-login-link:focus-visible,
.site-ui #mobile-menu-btn:focus-visible,
.site-ui .map-filter-btn:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.site-ui #mobile-menu a.rounded-xl.bg-\[\#79ad87\],
.site-ui #mobile-menu a[class*="79ad87"] {
    background: var(--mb-green, #79ad87) !important;
    color: #fff !important;
    font-weight: 700;
}

.site-ui #lang-menu {
    border-radius: 12px;
    border-color: var(--mb-line, #d8e6f7);
    box-shadow: var(--mb-shadow-md);
    overflow: hidden;
}

.site-ui #lang-menu a {
    font-weight: 600;
}

.site-ui #lang-menu a:hover {
    background: #f0f9ff;
    color: var(--mb-blue-deep, #1e3a8a);
}

.site-ui #lang-toggle {
    min-height: 40px;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--mb-line, #d8e6f7);
    background: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--mb-navy, #172033);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.site-ui #lang-toggle:hover {
    background: #f8fafc;
    border-color: #bfdbfe;
    color: var(--mb-blue, #2563eb);
}

.site-ui #lang-toggle[aria-expanded="true"] {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.site-ui .mb-btn-soft {
    background: #f8fafc;
    border: 1px solid var(--mb-line, #d8e6f7);
    color: var(--mb-navy, #172033);
}

.site-ui .mb-btn-soft:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: var(--mb-blue, #2563eb);
}

.site-ui .launch-actions,
.site-ui .guide-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.site-ui .launch-hero .launch-actions {
    margin-top: 1rem;
}

.site-ui .skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.site-ui .skip-link:focus {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 100001;
    width: auto;
    height: auto;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    background: var(--mb-navy, #172033);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--mb-shadow-md);
}

.site-ui header.sticky {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.96) !important;
}

.site-ui #mobile-menu:not(.hidden) {
    border-radius: 0 0 16px 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.site-ui #mobile-menu a {
    border-radius: 10px;
    font-weight: 600;
    min-height: 44px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-ui #mobile-menu a:active,
.site-ui #mobile-menu a:focus-visible {
    background: #eff6ff;
    color: #1d4ed8;
}

.site-ui header a.flex.items-center.gap-2:hover .font-bold {
    color: var(--mb-blue, #2563eb) !important;
}

.site-ui header .site-brand {
    text-decoration: none !important;
    color: inherit;
}

.site-ui header .site-brand:hover,
.site-ui header .site-brand:focus-visible {
    text-decoration: none !important;
}

.site-ui header .site-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mb-blue, #2563eb) !important;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.site-ui header .site-brand:hover .site-brand-name,
.site-ui header .site-brand:focus-visible .site-brand-name {
    color: var(--mb-blue-deep, #1d4ed8) !important;
}

.site-ui header .site-brand-mark {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.site-ui header .site-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.site-ui header a.flex.items-center.gap-2 .w-10 {
    box-shadow: 0 0 0 2px rgba(121, 173, 135, 0.25);
    transition: box-shadow 0.15s ease;
}

.site-ui header a.flex.items-center.gap-2:hover .w-10 {
    box-shadow: 0 0 0 3px rgba(121, 173, 135, 0.45);
}

.site-ui header a[aria-label="Kurv"],
.site-ui header a[aria-label="Cart"],
.site-ui header a[aria-label="Varukorg"] {
    background: var(--mb-green, #79ad87) !important;
    color: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(121, 173, 135, 0.35);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.site-ui header a[aria-label="Kurv"]:hover,
.site-ui header a[aria-label="Cart"]:hover,
.site-ui header a[aria-label="Varukorg"]:hover {
    background: var(--mb-green-hover, #6a9d79) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(121, 173, 135, 0.4);
}

.site-ui header a[aria-label="Kurv"] .cart-count,
.site-ui header a[aria-label="Cart"] .cart-count,
.site-ui header a[aria-label="Varukorg"] .cart-count {
    border: 2px solid var(--mb-green, #79ad87);
    font-weight: 800;
    line-height: 1;
}

.site-ui header a[aria-label="Kurv"] .cart-count:not(.hidden),
.site-ui header a[aria-label="Cart"] .cart-count:not(.hidden),
.site-ui header a[aria-label="Varukorg"] .cart-count:not(.hidden) {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

/* Nav section marks (favorites, notifications) */
.site-ui header .nav-btn.nav-btn--badged {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
}

.site-ui header .nav-btn .nav-btn-label {
    white-space: nowrap;
    line-height: 1.2;
}

.site-ui header .nav-btn .nav-badge,
.site-ui .mobile-nav-link .nav-badge {
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.35rem;
    border-radius: 9999px;
    background: var(--mb-green, #79ad87);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 800;
    line-height: 1.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.site-ui header .nav-btn .nav-badge {
    position: static;
    margin: 0;
    box-shadow: none;
}

.site-ui header .nav-btn.active .nav-badge {
    background: #fff;
    color: var(--mb-green, #79ad87);
    box-shadow: 0 0 0 2px var(--mb-green, #79ad87);
}

.site-ui .mobile-nav-link .nav-badge.hidden {
    display: none;
}

.site-ui .mobile-nav-link .nav-badge:not(.hidden) {
    margin-left: auto;
}

.site-ui .site-footer {
    border-top: 1px solid var(--mb-line, #d8e6f7);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.site-ui .site-footer-brand strong {
    font-size: 1.05rem;
    color: var(--mb-navy, #172033);
}

.site-ui .site-footer-brand p {
    margin-top: 0.35rem;
    color: #64748b;
    line-height: 1.6;
    font-size: 0.9rem;
}

.site-ui .site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.site-ui .site-footer-nav a {
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
}

.site-ui .site-footer-nav a:hover {
    color: var(--mb-blue, #2563eb);
}

.site-ui .site-footer-legal {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.5;
}

.site-ui .site-footer-legal a {
    color: #64748b;
    font-weight: 600;
    text-decoration: none;
}

.site-ui .site-footer-legal a:hover {
    color: var(--mb-blue, #2563eb);
    text-decoration: underline;
}

.site-ui.cart-page.bg-gray-50,
.site-ui.checkout-page.bg-gray-50 {
    background: #f8fafc !important;
}

.site-ui footer.site-footer .site-footer-inner {
    padding-top: 0.25rem;
}

.site-ui footer.site-footer.simple-footer {
    padding: 2rem 1rem 2.5rem;
}

.site-ui footer.site-footer.simple-footer .site-footer-inner {
    max-width: 72rem;
    margin: 0 auto;
}

.site-ui .mobile-sticky-cta {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    z-index: 9000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 1.25rem;
    border-radius: 999px;
    background: var(--mb-green, #79ad87);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(49, 91, 61, 0.35);
    transition: background 150ms ease, transform 150ms ease;
}

.site-ui .mobile-sticky-cta:hover {
    background: var(--mb-green-hover, #6a9d79);
    transform: translateX(-50%) translateY(-1px);
}

@media (min-width: 768px) {
    .site-ui .mobile-sticky-cta {
        display: none;
    }
}

.site-ui:has(.mobile-sticky-cta) main {
    padding-bottom: max(4.5rem, calc(3rem + env(safe-area-inset-bottom, 0px)));
}

@media (min-width: 768px) {
    .site-ui:has(.mobile-sticky-cta) main {
        padding-bottom: 0;
    }
}

.site-ui footer.site-footer .site-footer-nav a:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
    border-radius: 4px;
}

@media (max-width: 640px) {
    .site-ui footer.site-footer .site-footer-inner {
        text-align: center;
    }

    .site-ui footer.site-footer .site-footer-nav {
        justify-content: center;
    }
}

.site-ui #saved-toast,
.site-ui .mb-saved-toast {
    position: fixed;
    left: 50%;
    bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    z-index: 100000;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: min(92vw, 28rem);
    padding: 0.75rem 1.15rem;
    border-radius: 999px;
    background: var(--mb-navy, #172033);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
    animation: mb-toast-in 0.22s ease;
}

@keyframes mb-toast-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.site-ui #cookie-consent-overlay .mb-cookie-banner {
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.14);
    border-top: 1px solid var(--mb-line, #d8e6f7);
}

.site-ui #cookie-consent-overlay .mb-cookie-banner p,
.site-ui #cookie-consent-overlay .mb-cookie-banner h2 {
    color: var(--mb-navy, #172033);
    line-height: 1.55;
}

.site-ui #cookie-consent-overlay .mb-cookie-banner h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.site-ui #cookie-consent-overlay .mb-cookie-banner a {
    color: var(--mb-blue, #2563eb);
    font-weight: 700;
}

.site-ui .launch-page main {
    min-height: 50vh;
}

.site-ui.app-page main#account-app,
.site-ui.favorites-page main,
.site-ui.notifications-page main {
    min-height: auto;
}

.site-ui #cookie-consent-overlay .cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.site-ui #cookie-consent-overlay .cookie-actions .mb-btn {
    min-height: 44px;
    flex: 1 1 auto;
}

@media (min-width: 640px) {
    .site-ui #cookie-consent-overlay .cookie-actions .mb-btn {
        flex: 0 1 auto;
    }
}

.site-ui #cookie-consent-overlay .cookie-cat-grid {
    display: grid;
    gap: 0.65rem;
}

.site-ui #cookie-consent-overlay .cookie-cat-grid label {
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

@media (max-width: 640px) {
    .site-ui #cookie-consent-overlay .mb-cookie-banner {
        padding: 1.15rem 1rem 1.25rem;
        max-height: 85vh;
        overflow-y: auto;
    }

    .site-ui #cookie-consent-overlay .cookie-actions {
        flex-direction: column;
    }

    .site-ui #cookie-consent-overlay .cookie-actions .mb-btn {
        width: 100%;
    }
}

.site-ui header .nav-btn {
    border-radius: 999px;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.site-ui header .nav-btn.active {
    background: var(--mb-green, #79ad87);
    color: #fff;
    box-shadow: 0 4px 14px rgba(121, 173, 135, 0.3);
}

.site-ui header .nav-btn.nav-btn-cta {
    background: var(--mb-green, #79ad87);
    color: #fff;
    box-shadow: 0 6px 18px rgba(121, 173, 135, 0.28);
}

.site-ui header .nav-btn:not(.active):not(.nav-btn-cta):hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.site-ui header .nav-btn.nav-btn-cta:hover {
    background: var(--mb-green-hover, #6a9d79);
}

.site-ui header > .max-w-7xl > .flex.justify-between.items-center.h-16 {
    gap: 0.75rem;
    min-width: 0;
}

.site-ui header .site-brand {
    flex-shrink: 0;
    min-width: 0;
}

.site-ui header > .max-w-7xl > .flex.justify-between.items-center.h-16 > .flex.items-center.gap-2 {
    flex-shrink: 0;
}

/* Six nav items need ~720px; hamburger below xl avoids overlap with brand + utilities */
@media (min-width: 768px) and (max-width: 1279px) {
    .site-ui.app-page header nav[aria-label="Hovednavigation"],
    .site-ui.app-page header nav[aria-label="Main navigation"],
    .site-ui.app-page header nav[aria-label="Hauptnavigation"],
    .site-ui.app-page header nav[aria-label="Huvudnavigation"] {
        display: none !important;
    }

    .site-ui.app-page header #mobile-menu-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .site-ui.app-page header .nav-login-link.hidden.md\:inline-flex {
        display: none !important;
    }
}

@media (min-width: 1280px) {
    .site-ui header > .max-w-7xl > .flex.justify-between.items-center.h-16 {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 1rem;
    }

    .site-ui header nav[aria-label="Hovednavigation"],
    .site-ui header nav[aria-label="Main navigation"],
    .site-ui header nav[aria-label="Hauptnavigation"],
    .site-ui header nav[aria-label="Huvudnavigation"] {
        justify-self: center;
        justify-content: center;
        flex-wrap: nowrap;
        min-width: 0;
        max-width: 100%;
    }

    .site-ui header .nav-btn {
        padding: 0.45rem 0.85rem !important;
        font-size: 0.875rem !important;
    }

    .site-ui header .nav-btn.active {
        padding: 0.45rem 1rem !important;
    }

    .site-ui header .nav-btn.nav-btn--badged {
        padding-right: 0.75rem !important;
    }
}

.site-ui header .font-bold.text-xl {
    color: var(--mb-navy, #172033) !important;
    letter-spacing: -0.02em;
}

.site-ui #mobile-menu-btn {
    border-radius: 10px;
    transition: background 0.15s ease;
}

.site-ui #mobile-menu-btn:hover {
    background: #f1f5f9;
}

.site-ui #mobile-menu-btn[aria-expanded="true"] {
    background: #eff6ff;
    color: #1d4ed8;
}

.site-ui .mb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 44px;
    padding: 0.55rem 1.15rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.site-ui .mb-btn:active {
    transform: translateY(1px);
}

.site-ui .mb-btn-primary {
    background: var(--mb-green, #79ad87);
    color: #fff;
    border: 1px solid var(--mb-green, #79ad87);
}

.site-ui .mb-btn-primary:hover {
    background: var(--mb-green-hover, #6a9d79);
    border-color: var(--mb-green-hover, #6a9d79);
}

.site-ui .mb-btn-secondary {
    background: #fff;
    color: var(--mb-navy, #172033);
    border: 1px solid var(--mb-line, #d8e6f7);
}

.site-ui .mb-btn-secondary:hover {
    background: #f8fafc;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.site-ui footer.site-footer .site-footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.15rem 0.35rem;
    border-radius: 6px;
    font-weight: 600;
    transition: color 0.15s ease, background 0.15s ease;
}

.site-ui footer.site-footer .site-footer-nav a:hover {
    color: var(--mb-blue, #2563eb);
    background: #f1f5f9;
}

.site-ui footer.site-footer .site-footer-brand strong {
    color: var(--mb-navy, #172033);
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.site-ui header .nav-login-link {
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-ui header .nav-login-link:hover {
    background: #f1f5f9;
    color: #1d4ed8;
}

.site-ui header .nav-login-link--active {
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: inset 0 0 0 1px #bfdbfe;
}

.site-ui #mobile-menu .mobile-nav-link.mobile-nav-active {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    box-shadow: inset 0 0 0 1px #bfdbfe;
}

.site-ui #mobile-menu .mobile-nav-link.mobile-nav-active:hover {
    background: #dbeafe !important;
}

.site-ui header a[aria-label="Kurv"]:focus-visible,
.site-ui header a[aria-label="Cart"]:focus-visible {
    outline: 2px solid var(--mb-green, #79ad87);
    outline-offset: 2px;
}

.site-ui .skip-link {
    z-index: 100001;
}

.site-ui #cookie-consent-overlay:not([hidden]) {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.site-ui .mobile-sticky-cta {
    box-shadow: 0 12px 32px rgba(121, 173, 135, 0.35);
    letter-spacing: 0.02em;
}

.site-ui footer.site-footer .site-footer-legal {
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.5;
    margin-top: 0.75rem;
}

.site-ui footer.site-footer.simple-footer {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
    border-top: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
