:root {
    /* Fallback storefront brand tokens; overridden per-request by ThemeVariables.razor
       from admin Utseende settings (see redis-cache.mdc / architecture.mdc). */
    --theme-primary: #660E46;
    --theme-primary-dark: #520B38;
    --theme-accent: #F7C6E0;
    --theme-page-background: #FFFFFF;
    --theme-header-background: #FFFFFF;
    --theme-text: #4A4A4A;
    --theme-text-muted: #777777;
    --theme-footer-background: #F5F1F7;
    --theme-footer-text: #777777;
    --theme-cta-text: #FFFFFF;
    --theme-error: #F44336;
    --storefront-content-max: 1200px;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.storefront-content {
    max-width: var(--storefront-content-max);
    margin-inline: auto;
    width: 100%;
}

.storefront-shell a {
    color: var(--theme-primary);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid var(--theme-error);
}

.validation-message {
    color: var(--theme-error);
}

.mud-error-text {
    color: var(--theme-error);
}

.account-form-panel {
    max-width: 28rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.square-card-media.mud-card-media,
.square-card-media.mud-image {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    aspect-ratio: 1 / 1;
}

.product-detail-image-preload {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.product-card-media-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-name-link {
    display: inline;
    color: inherit;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card .product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.product-card-footer {
    margin-top: auto;
    width: 100%;
}

.product-card-meta {
    flex: 1 1 auto;
    min-width: 0;
}

.product-card-actions {
    flex: 0 0 auto;
    width: max-content;
}

.product-card-actions--compact .mud-icon-button .mud-icon-size-small {
    font-size: 1.4rem;
}

@media (hover: hover) and (pointer: fine) {
    .product-card-actions {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.15s ease;
    }

    .product-card:hover .product-card-actions,
    .product-card:focus-within .product-card-actions {
        opacity: 1;
        pointer-events: auto;
    }
}

.product-pager {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

/* Square page-number buttons so border-radius:50% is a circle (not an oval). */
.product-pager .mud-pagination-item .mud-button:not(:disabled),
.product-pager .product-pager__page-link {
    min-width: 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.product-pager .product-pager__icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.product-pager .product-pager__ellipsis {
    min-width: 2.5rem;
    pointer-events: none;
}

.product-pager__trailing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.product-pager--desktop {
    justify-content: space-between;
}

.product-pager--desktop .product-pager__trailing {
    margin-inline-start: auto;
}

.product-pager--desktop .product-pager__pages {
    order: 2;
}

.product-pager--desktop .product-pager__controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    order: 1;
}

.product-pager--mobile {
    flex-direction: column;
    align-items: stretch;
}

.product-pager--mobile .product-pager__summary {
    width: 100%;
}

.product-pager--mobile .product-pager__trailing {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
}

.product-pager--mobile .product-pager__pages {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

.product-pager--mobile .product-pager__pages .mud-pagination {
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    gap: 0; /* MudBlazor default: 6px */
}

.product-pager--mobile .mud-pagination .mud-pagination-item > * {
    margin: 0; /* MudBlazor medium default: 0 3px */
}

.product-pager--mobile .product-pager__controls {
    order: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.product-list-layout-toggle__buttons .mud-icon-button {
    border-radius: 0.25rem;
}

.product-list-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.product-list-clear-filters {
    flex: 0 0 auto;
    align-self: flex-start;
    white-space: nowrap;
}

.product-list-sort-and-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.product-list-sort-select {
    flex: 1 1 auto;
    max-width: 16rem;
    min-width: 10rem;
}

@media (min-width: 960px) {
    .product-list-toolbar {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    .product-list-sort-and-layout {
        flex: 1 1 auto;
        justify-content: flex-start;
    }
}

.global-search-box {
    position: relative;
    flex: 1;
    max-width: 560px;
}

.global-search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1200;
    max-height: 420px;
    overflow-y: auto;
}

.global-search-section-title {
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--theme-text-muted, #5c5c5c);
    padding: 0.25rem 0.5rem;
}

.global-search-item {
    border-radius: 4px;
}

.global-search-footer {
    border-top: 1px solid var(--mud-palette-lines-default, rgba(0, 0, 0, 0.12));
    margin-top: 0.25rem;
    padding-top: 0.25rem;
}

.global-search-show-all {
    justify-content: center;
    text-transform: none;
}

.search-category-link {
    cursor: pointer;
    display: block;
    width: fit-content;
}

.category-detail-header-image {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1;
}

.category-detail-header-text {
    min-width: 0;
    overflow-wrap: break-word;
}

.category-section-toggle {
    min-width: 0;
    justify-content: flex-start;
    text-transform: none;
}

.category-facet-toggle {
    width: 100%;
}

.category-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-range-input {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--mud-palette-lines-inputs, #cfcfcf);
    border-radius: 4px;
    background: var(--mud-palette-surface, #fff);
    color: var(--mud-palette-text-primary, #212121);
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.25;
}

.category-range-input:focus {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 1px;
}

.category-range-separator {
    flex: 0 0 auto;
    color: var(--mud-palette-text-secondary, #666);
    user-select: none;
}

.category-dual-range {
    --range-start: 0%;
    --range-end: 100%;
    position: relative;
    height: 1.75rem;
    margin-inline: 0.35rem;
    display: flex;
    align-items: center;
}

.category-dual-range::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 2px;
    background: var(--mud-palette-lines-inputs, #cfcfcf);
}

.category-dual-range::after {
    content: "";
    position: absolute;
    left: var(--range-start);
    width: calc(var(--range-end) - var(--range-start));
    height: 4px;
    border-radius: 2px;
    background: var(--mud-palette-primary);
    pointer-events: none;
}

.category-dual-range-thumb {
    position: absolute;
    inset-inline: 0;
    width: 100%;
    margin: 0;
    appearance: none;
    background: transparent;
    pointer-events: none;
    height: 1.75rem;
}

.category-dual-range-thumb::-webkit-slider-runnable-track {
    height: 3px;
    background: transparent;
}

.category-dual-range-thumb::-moz-range-track {
    height: 3px;
    background: transparent;
    border: none;
}

.category-dual-range-thumb::-webkit-slider-thumb {
    appearance: none;
    pointer-events: auto;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: -0.4rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--mud-palette-primary);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.category-dual-range-thumb::-moz-range-thumb {
    pointer-events: auto;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--mud-palette-primary);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.category-dual-range-thumb-lower {
    z-index: 3;
}

.category-dual-range-thumb-upper {
    z-index: 4;
}

.category-subcategories-body {
    display: block;
}

.category-subcategories-body.is-open {
    display: block;
}

.category-subcategories-body.is-collapsed {
    display: none;
}

.category-filter-body {
    display: none;
}

.category-filter-body.is-open {
    display: block;
}

.category-filter-heading-static {
    display: none;
}

@media (min-width: 960px) {
    .category-filter-toggle {
        display: none !important;
    }

    .category-filter-heading-static {
        display: block;
    }

    .category-filter-body {
        display: block;
    }
}

.product-picture-thumbnails {
    gap: 0.5rem;
}

.product-picture-thumbnail {
    width: 72px;
    height: 72px;
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-picture-thumbnail:hover {
    border-color: #c4c4c4;
}

.product-picture-thumbnail.selected {
    border-color: var(--mud-palette-primary);
}

.product-picture-thumbnail .mud-image {
    width: 100%;
    height: 100%;
}

/* MudDatePicker calendar uses flex-wrap; keep room for all 7 weekday columns. */
.mud-picker-calendar,
.mud-picker-calendar-header {
    min-width: 310px;
}

.cart-ship-date-picker {
    max-width: 280px;
}

.plant-weather-forecast {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
}

.plant-weather-day {
    flex: 1 1 0;
    min-width: 5.5rem;
    max-width: 7.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.75rem 0.4rem 0.65rem;
    border: 1px solid #d9dee6;
    border-radius: 0.5rem;
    background: #fff;
    color: #1b3a5c;
    box-sizing: border-box;
}

.plant-weather-day-name {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1b3a5c;
}

.plant-weather-day-date {
    margin-top: 0.15rem;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.2;
    color: #8a93a0;
}

.plant-weather-temp-max {
    margin-top: 0.65rem;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: #1b3a5c;
}

.plant-weather-temp-min {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.2;
    color: #8a93a0;
}

.plant-weather-icon {
    margin-top: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
}

.plant-weather-icon svg {
    display: block;
}

.plant-weather-panel {
    position: relative;
}

.plant-weather-source {
    align-self: flex-start;
    margin-top: 0.15rem;
    font-size: 0.7rem !important;
    line-height: 1.2;
    opacity: 0.75;
}

.market-selector .market-flag-img {
    display: inline-block;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: middle;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.shipping-option-logo {
    display: inline-block;
    height: 24px;
    width: auto;
    max-width: 72px;
    object-fit: contain;
    vertical-align: middle;
}

.market-selector .market-flag-prefetch {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
}

.market-selector .market-flag-menu {
    position: relative;
}

.market-selector .market-flag-button {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-width: auto;
    padding: 4px;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    list-style: none;
    color: inherit;
    border-radius: 4px;
}

.market-selector .market-flag-button::-webkit-details-marker {
    display: none;
}

.market-selector .market-flag-button::marker {
    content: "";
}

.market-selector .market-flag-button:hover,
.market-selector .market-flag-menu[open] > .market-flag-button {
    background: rgba(0, 0, 0, 0.04);
}

.market-selector .market-flag-caret {
    opacity: 0.7;
}

.market-selector .market-flag-menu-list {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: max-content;
    min-width: 0;
    padding: 4px 0;
    margin: 0;
    text-align: left;
    background: var(--mud-palette-surface, #fff);
    color: var(--mud-palette-text-primary, inherit);
    border-radius: 4px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.market-selector .market-flag-menu-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    padding: 6px 16px 6px 12px;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
}

.market-selector .market-flag-menu-item:hover,
.market-selector .market-flag-menu-item:focus-visible {
    background: rgba(0, 0, 0, 0.06);
    outline: none;
}

.market-selector .market-flag-menu-item-selected {
    background: rgba(0, 0, 0, 0.04);
    font-weight: 600;
}

.market-selector .market-currency-select {
    min-width: 88px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid rgba(0, 0, 0, 0.23);
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.875rem;
    cursor: pointer;
}

.market-selector .market-currency-select:disabled {
    opacity: 0.7;
    cursor: default;
}

.market-selector .market-currency-select:focus-visible {
    outline: 2px solid var(--mud-palette-primary, #594ae2);
    outline-offset: 1px;
}

/* Nets Embedded Checkout — full width; page scrolls vertically; no sideways scroll. */
.nets-checkout-host {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

.nets-checkout-host #checkout-container,
.dibs-checkout-wrapper,
.nets-checkout-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

#nets-checkout-iframe {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 680px;
    border: 0;
    display: block;
    max-height: none !important;
    box-sizing: border-box;
}

.page-checkout,
.page-checkout main,
.page-checkout .content-checkout {
    overflow-x: hidden;
    max-width: 100%;
}

/* Checkout uses MainLayout without sidebar for usable width on narrow screens. */
.page-checkout {
    --checkout-summary-max-width: 600px;
    flex-direction: column !important;
}

.page-checkout main {
    width: 100%;
    max-width: 100%;
}

.page-checkout .top-row-checkout {
    position: sticky;
    top: 0;
    z-index: 100;
    justify-content: space-between;
    gap: 0.75rem;
    max-width: var(--checkout-summary-max-width);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Constrain order-summary chrome only — Nets iframe host stays full content width. */
.checkout-summary-column {
    max-width: var(--checkout-summary-max-width);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Deferred / gift-card confirm: keep order button clear of the browser bottom edge. */
.checkout-confirm-column {
    padding-bottom: 3rem;
}

.checkout-confirm-submit {
    margin-bottom: 2rem;
}

.checkout-scroll-top-btn {
    min-width: 12.5rem; /* ~5× medium icon button */
}

.page-checkout .content-checkout {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    padding-top: 0.75rem;
    max-width: 100%;
}

.checkout-summary-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 1rem;
    align-items: baseline;
}

.checkout-summary-product-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 520px) {
    .checkout-summary-product {
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: 0.15rem;
    }

    .checkout-summary-product-qty {
        grid-column: 1;
    }

    .checkout-summary-product-total {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
    }
}

@media (min-width: 641px) {
    .page-checkout .content-checkout {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

.site-footer {
    width: 100%;
    background: var(--theme-footer-background, #F5F1F7);
    color: var(--theme-footer-text, #777777);
    margin-top: 2.5rem;
    border-top: 1px solid var(--theme-accent, #F7C6E0);
}

.site-footer-inner {
    max-width: var(--storefront-content-max);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.site-footer-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

@media (min-width: 641px) {
    .site-footer-columns {
        grid-template-columns: repeat(var(--footer-cols, 3), minmax(0, 1fr));
        gap: 2rem;
    }
}

.site-footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.site-footer-link {
    font-size: 0.95rem;
    opacity: 0.9;
}

.site-footer-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.site-footer-social-link {
    display: inline-flex;
    line-height: 0;
    background: transparent;
}

.site-footer-social-link:hover {
    text-decoration: none;
    opacity: 0.85;
}

.site-footer-social-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: transparent;
}

.site-footer-copyright {
    margin: 1.75rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid color-mix(in srgb, var(--theme-footer-text, #777777) 18%, transparent);
    font-size: 0.85rem;
    opacity: 0.85;
    text-align: center;
}

.content-page-title {
    text-align: center;
}

.content-page-body {
    line-height: 1.6;
}

.homepage-text-column {
    min-width: 0;
}

.homepage-text-column .content-page-body {
    overflow-wrap: anywhere;
}

/* Sticky site-header clearance for in-page legal anchors (#kopvillkar, #integritetspolicy, …). */
.legal-page-section {
    scroll-margin-top: 7rem;
}

.content-page-body img {
    max-width: 100%;
    height: auto;
}

/* Quill editor formats (snow theme) — needed outside admin where quill.snow.css is not loaded */
.content-page-body .ql-align-center {
    text-align: center;
}

.content-page-body .ql-align-right {
    text-align: right;
}

.content-page-body .ql-align-justify {
    text-align: justify;
}

.content-page-body .ql-align-left {
    text-align: left;
}

.content-page-body .ql-direction-rtl {
    direction: rtl;
    text-align: inherit;
}

.content-page-body .ql-indent-1:not(.ql-direction-rtl) { padding-left: 3em; }
.content-page-body .ql-indent-2:not(.ql-direction-rtl) { padding-left: 6em; }
.content-page-body .ql-indent-3:not(.ql-direction-rtl) { padding-left: 9em; }
.content-page-body .ql-indent-4:not(.ql-direction-rtl) { padding-left: 12em; }
.content-page-body .ql-indent-5:not(.ql-direction-rtl) { padding-left: 15em; }
.content-page-body .ql-indent-6:not(.ql-direction-rtl) { padding-left: 18em; }
.content-page-body .ql-indent-7:not(.ql-direction-rtl) { padding-left: 21em; }
.content-page-body .ql-indent-8:not(.ql-direction-rtl) { padding-left: 24em; }
.content-page-body .ql-indent-1.ql-direction-rtl { padding-right: 3em; }
.content-page-body .ql-indent-2.ql-direction-rtl { padding-right: 6em; }
.content-page-body .ql-indent-3.ql-direction-rtl { padding-right: 9em; }
.content-page-body .ql-indent-4.ql-direction-rtl { padding-right: 12em; }
.content-page-body .ql-indent-5.ql-direction-rtl { padding-right: 15em; }
.content-page-body .ql-indent-6.ql-direction-rtl { padding-right: 18em; }
.content-page-body .ql-indent-7.ql-direction-rtl { padding-right: 21em; }
.content-page-body .ql-indent-8.ql-direction-rtl { padding-right: 24em; }

.content-page-body .ql-size-small { font-size: 0.75em; }
.content-page-body .ql-size-large { font-size: 1.5em; }
.content-page-body .ql-size-huge { font-size: 2.5em; }

.content-page-body .ql-font-serif {
    font-family: Georgia, "Times New Roman", serif;
}

.content-page-body .ql-font-monospace {
    font-family: Monaco, "Courier New", monospace;
}

.content-page-body blockquote {
    border-left: 4px solid #ccc;
    margin-bottom: 5px;
    margin-top: 5px;
    padding-left: 16px;
}

.content-page-body pre.ql-syntax {
    background-color: #23241f;
    color: #f8f8f2;
    overflow: visible;
    border-radius: 3px;
    white-space: pre-wrap;
    margin-bottom: 5px;
    margin-top: 5px;
    padding: 5px 10px;
}

/* MudBlazor snackbar: mobile-like max width, side gaps, used with TopCenter position. */
.mud-snackbar {
    max-width: min(24rem, calc(100vw - 2rem));
    box-sizing: border-box;
    touch-action: pan-y;
    cursor: grab;
}

.mud-snackbar.mud-snackbar-swipe-dragging {
    cursor: grabbing;
    will-change: transform, opacity;
    transition: none;
    user-select: none;
}

.mud-snackbar.mud-snackbar-swipe-settle {
    transition: transform 0.28s ease-out, opacity 0.28s ease-out;
}

.mud-snackbar.mud-snackbar-swipe-leaving {
    cursor: default;
    transition: none !important;
    pointer-events: none !important;
}

/* MudBlazor snackbar close button is Size.Small by default; enlarge hit target + icon. */
.mud-snackbar-close-button.mud-button-root {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
}

.mud-snackbar-close-button .mud-icon-root {
    font-size: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
}

/* Category nav dropdown (Webbutik) — name navigates, caret toggles <details> */
.category-nav,
.category-nav-branch {
    position: relative;
}

.category-nav-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--theme-primary, #660E46);
}

.category-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.category-nav-caret-hit {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    min-height: 2.5rem;
    margin: 0;
    padding: 0;
    cursor: pointer;
    list-style: none;
    color: inherit;
    background: none;
    border: none;
}

.category-nav-caret-hit::-webkit-details-marker {
    display: none;
}

.category-nav-caret-hit::marker {
    content: "";
}

.category-nav-caret-hit:focus-visible {
    outline: 2px solid var(--theme-primary, #660E46);
    outline-offset: -2px;
}

.category-nav-caret {
    display: inline-block;
    flex-shrink: 0;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    opacity: 0.7;
    transition: transform 0.15s ease;
}

.category-nav-branch .category-nav-caret {
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid currentColor;
    border-right: none;
}

.category-nav-details[open] > .category-nav-caret-hit > .category-nav-caret {
    transform: rotate(180deg);
}

.category-nav-branch .category-nav-details[open] > .category-nav-caret-hit > .category-nav-caret {
    transform: rotate(90deg);
}

.category-nav-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 12rem;
    max-width: min(20rem, 90vw);
    padding: 0.35rem 0;
    margin: 0;
    background: var(--theme-header-background, #FFFFFF);
    color: var(--theme-text, #4A4A4A);
    border: 1px solid var(--theme-accent, #F7C6E0);
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.category-nav-branch .category-nav-list {
    top: -0.25rem;
    left: 100%;
    margin-left: 2px;
}

.category-nav-item,
.category-nav-branch-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.9rem;
    box-sizing: border-box;
    color: var(--theme-primary, #660E46);
    text-decoration: none;
    font-size: 1rem;
    white-space: nowrap;
}

.category-nav-item:hover,
.category-nav-item:focus-visible,
.category-nav-branch-row:hover {
    background: rgba(194, 24, 122, 0.06);
    outline: none;
}

.category-nav-branch-row .category-nav-label {
    flex: 1;
}

/* Accordion: stacked hamburger nav. Web <900px, MAUI always (.maui-app).
   Keep UA display on <details> — display:grid overlays summary+list in WebView. */
@media (max-width: 899px) {
    .site-nav .category-nav,
    .site-nav .category-nav-branch {
        width: 100%;
    }

    .site-nav .category-nav-row.site-nav-link,
    .site-nav .category-nav-branch-row {
        display: grid;
        grid-template-columns: 1fr 2.75rem;
        width: 100%;
        box-sizing: border-box;
    }

    .site-nav .category-nav-label {
        grid-column: 1;
        grid-row: 1;
        z-index: 1;
    }

    .site-nav .category-nav-details {
        grid-column: 1 / -1;
        grid-row: 1 / 3;
        pointer-events: none;
        min-height: 2.75rem;
    }

    .site-nav .category-nav-caret-hit {
        float: right;
        width: 2.75rem;
        min-height: 2.75rem;
        pointer-events: auto;
        z-index: 1;
    }

    .site-nav .category-nav-list,
    .site-nav .category-nav-branch .category-nav-list {
        clear: both;
        pointer-events: auto;
        position: static;
        left: auto;
        top: auto;
        z-index: auto;
        margin: 0;
        max-width: none;
        width: 100%;
        min-width: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0 0 0 1rem;
        background: transparent;
    }

    .site-nav .category-nav-item,
    .site-nav .category-nav-branch-row {
        min-height: 2.75rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        white-space: normal;
    }

    .site-nav .category-nav-branch .category-nav-caret {
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 6px solid currentColor;
        border-bottom: none;
    }

    .site-nav .category-nav-branch .category-nav-details[open] > .category-nav-caret-hit > .category-nav-caret {
        transform: rotate(180deg);
    }
}

html.maui-app .site-nav .category-nav,
html.maui-app .site-nav .category-nav-branch {
    width: 100%;
}

html.maui-app .site-nav .category-nav-row.site-nav-link,
html.maui-app .site-nav .category-nav-branch-row {
    display: grid;
    grid-template-columns: 1fr 2.75rem;
    width: 100%;
    box-sizing: border-box;
}

html.maui-app .site-nav .category-nav-label {
    grid-column: 1;
    grid-row: 1;
    z-index: 1;
}

html.maui-app .site-nav .category-nav-details {
    grid-column: 1 / -1;
    grid-row: 1 / 3;
    pointer-events: none;
    min-height: 2.75rem;
}

html.maui-app .site-nav .category-nav-caret-hit {
    float: right;
    width: 2.75rem;
    min-height: 2.75rem;
    pointer-events: auto;
    z-index: 1;
}

html.maui-app .site-nav .category-nav-list,
html.maui-app .site-nav .category-nav-branch .category-nav-list {
    clear: both;
    pointer-events: auto;
    position: static;
    left: auto;
    top: auto;
    z-index: auto;
    margin: 0;
    max-width: none;
    width: 100%;
    min-width: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0 1rem;
    background: transparent;
}

html.maui-app .site-nav .category-nav-item,
html.maui-app .site-nav .category-nav-branch-row {
    min-height: 2.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    white-space: normal;
}

html.maui-app .site-nav .category-nav-branch .category-nav-caret {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    border-bottom: none;
}

html.maui-app .site-nav .category-nav-branch .category-nav-details[open] > .category-nav-caret-hit > .category-nav-caret {
    transform: rotate(180deg);
}


