/* VERSION: 0.7.243 */
/* ==========================================================================
   HIGGINS CMS — Clean Minimalistic CSS Template
   Replaces custom.css / custom_wide.css.

   All visibility and behavior contracts required by the CMS JavaScript are
   preserved. See SPECIFICATION.md -> CSS Architecture for the full contract.

   Customize via CSS custom properties in :root — no need to edit rules.
   ========================================================================== */


/* ==========================================================================
   0. FONTS — Open Sans for the admin interface; the storefront uses the Urban
   Nation house fonts (Alternate Gothic No2 Pro for display headings, BentonSans
   for everything else), as un-mediaguide and un-freshair do.
   ========================================================================== */

@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300; src: url('fonts/open-sans-v17-latin-300.eot'); src: local('Open Sans Light'), local('OpenSans-Light'), url('fonts/open-sans-v17-latin-300.eot?#iefix') format('embedded-opentype'), url('fonts/open-sans-v17-latin-300.woff2') format('woff2'), url('fonts/open-sans-v17-latin-300.woff') format('woff'), url('fonts/open-sans-v17-latin-300.ttf') format('truetype'), url('fonts/open-sans-v17-latin-300.svg#OpenSans') format('svg'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; src: url('fonts/open-sans-v17-latin-regular.eot'); src: local('Open Sans Regular'), local('OpenSans-Regular'), url('fonts/open-sans-v17-latin-regular.eot?#iefix') format('embedded-opentype'), url('fonts/open-sans-v17-latin-regular.woff2') format('woff2'), url('fonts/open-sans-v17-latin-regular.woff') format('woff'), url('fonts/open-sans-v17-latin-regular.ttf') format('truetype'), url('fonts/open-sans-v17-latin-regular.svg#OpenSans') format('svg'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; src: url('fonts/open-sans-v17-latin-700.eot'); src: local('Open Sans Bold'), local('OpenSans-Bold'), url('fonts/open-sans-v17-latin-700.eot?#iefix') format('embedded-opentype'), url('fonts/open-sans-v17-latin-700.woff2') format('woff2'), url('fonts/open-sans-v17-latin-700.woff') format('woff'), url('fonts/open-sans-v17-latin-700.ttf') format('truetype'), url('fonts/open-sans-v17-latin-700.svg#OpenSans') format('svg'); }
@font-face { font-family: 'Alternate Gothic No2 Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/alt-gothic-no2pro-regular.woff2') format('woff2'), url('fonts/alt-gothic-no2pro-regular.woff') format('woff'); }
@font-face { font-family: 'BentonSans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/BentonSans.woff2') format('woff2'), url('fonts/BentonSans.woff') format('woff'); }
@font-face { font-family: 'BentonSans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/BentonSans-Bold.woff2') format('woff2'), url('fonts/BentonSans-Bold.woff') format('woff'); }


/* ==========================================================================
   1. CUSTOM PROPERTIES
   ========================================================================== */

:root {
    /* Layout */
    --top-height: 80px;
    --content-max-width: 1200px;
    --content-padding: 20px;

    /* Colors */
    --color-primary: #1a1a1a;
    --color-accent: #1a1a1a;
    --color-accent-hover: #000000;
    --color-text: #222;
    --color-text-secondary: #555;
    --color-text-inverse: #fff;
    --color-bg: #fff;
    --color-bg-alt: #f5f5f5;
    --color-border: #e0e0e0;
    /* Edges of form fields (WCAG 1.4.11: 3:1 against the page). #767676 is 4.5:1 on white; the light
       --color-border stays for dividers and cards, which need no contrast. */
    --color-field-border: #767676;
    --color-overlay-bg: rgba(0, 0, 0, 0.6);

    /* Navigation */
    --nav-bg: #fff;
    --nav-link-color: #222;
    --nav-link-hover-bg: #f0f0f0;
    --nav-font-size: 2rem;
    --nav-link-height: 5rem;

    /* Footer */
    --footer-bg: #fafafa;
    --footer-text: #666;
}


/* ==========================================================================
   2. BASE TYPOGRAPHY
   ========================================================================== */

body {
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

/* Page scaffold: the content row takes the space the footer leaves, so a short page fills the window
   exactly and never scrolls into empty space below the footer. The column is minmax(0, 1fr) so a wide
   child cannot widen the page the way a grid item's automatic minimum width would. */
body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Typography & elements (scoped to #content to avoid overriding admin UI) */
#content a { color: var(--color-accent); text-decoration: none; }
#content a:hover { text-decoration: underline; }
/* Text links in running text are underlined: the accent is black, so without a mouse to hover nothing told a link from
   the text around it (legal pages, account, order and withdrawal). Buttons, cards and product links keep their look. */
#content :is(p, td, dd, address) a:not([class*="btn"]):not([class*="button"]),
#content a.shop_product_not_found_cta,
#content a.shop_account_orders_view_link,
#content a.shop_account_orders_withdraw_link,
#content a.shop_order_tracking_withdraw_link { text-decoration: underline; text-underline-offset: 2px; }
#content a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

#content h1 { font-size: 3.2rem; line-height: 1.2; margin-bottom: 1.6rem; font-weight: 700; }
#content h2 { font-size: 2.4rem; line-height: 1.3; margin-bottom: 1.2rem; font-weight: 700; }
#content h3 { font-size: 2rem; line-height: 1.4; margin-bottom: 1rem; font-weight: 600; }
#content h4 { font-size: 1.8rem; line-height: 1.4; margin-bottom: 0.8rem; font-weight: 600; }
#content p { margin-bottom: 1.2rem; }
#content ul, #content ol { margin-bottom: 1.2rem; padding-left: 2.4rem; }
#content li { margin-bottom: 0.4rem; }
#content img { max-width: 100%; height: auto; display: block; }
#content .shop_product_card_wrapper img,
#content .image_lane_card img,
#content .un_cat_card img { height: 100%; object-position: top left; }
#content blockquote { margin: 0 0 1.6rem 0; padding: 1.2rem 2rem; border-left: 3px solid var(--color-border); color: var(--color-text-secondary); }
#content hr { border: none; border-top: 1px solid var(--color-border); margin: 2.4rem 0; }
#content table { border-collapse: collapse; width: 100%; margin-bottom: 1.6rem; }
#content th, #content td { padding: 0.8rem 1.2rem; border: 1px solid var(--color-border); text-align: left; }
#content th { background-color: var(--color-bg-alt); font-weight: 600; }

/* Basic form elements (scoped to #content to avoid overriding admin UI) */
#content input[type="text"], #content input[type="email"], #content input[type="password"], #content textarea, #content select {
    width: 100%; max-width: 100%; box-sizing: border-box; padding: 0.8rem 1rem;
    border: 1px solid var(--color-field-border); border-radius: 4px; font-size: 1.6rem;
    line-height: 1.5; outline: none; background: var(--color-bg);
}
#content input:focus, #content textarea:focus, #content select:focus { border-color: var(--color-accent); }

/* A visible focus on every shop surface (WCAG 2.4.7): a dark ring with a white inner edge reads on the
   dark header and on the light page alike. Measured before: the header links showed #101010 on
   #1a1a1a (1.09:1), the search, e-mail and password fields no change at all. Admin chrome (hig_*)
   keeps its own focus style. */
:is(#top, #content, #footer, #shop_mini_cart_sidebar, #shop_lightbox_overlay) :is(a[href], button, input, select, textarea, summary, [tabindex]):not([class*="hig_"]):focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #fff;
}

/* The header is dark (#1a1a1a) and its login pill already has a white edge: there the ring turns
   white with a dark gap, so focus differs clearly from rest (white on #1a1a1a 17:1). */
#top :is(a[href], button, input, select, textarea, summary, [tabindex]):not([class*="hig_"]):focus-visible {
    outline-color: #fff;
    box-shadow: 0 0 0 2px #1a1a1a;
}

/* The language switch carries a hig_lang_* class and so falls outside the rules above, which keep
   admin chrome out by that prefix; without this it shows the browser's near-black ring on the dark
   header. */
#top a.switch[class*="hig_lang_"]:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #1a1a1a;
}
#content button, #content .btn {
    display: inline-block; padding: 0.8rem 1.6rem; border: none; border-radius: 4px;
    font-size: 1.5rem; line-height: 1.5; cursor: pointer; text-align: center;
    background-color: var(--color-primary); color: var(--color-text-inverse);
}
#content button:hover, #content .btn:hover { opacity: 0.9; }


/* ==========================================================================
   3. LAYOUT STRUCTURE
   ========================================================================== */

#top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--top-height);
    background-color: var(--color-primary);
    z-index: 100;
    box-sizing: border-box;
}

#content {
    position: relative;
    width: 100%;
    max-width: var(--content-max-width);
    margin: var(--top-height) auto 0;
    padding: 0 clamp(1.8rem, 2.5vw, 3.2rem);
    box-sizing: border-box;
    background: var(--color-bg);
    z-index: 1;
    min-height: 0;
}

#footer {
    position: relative;
    width: 100%;
    padding: 3rem var(--content-padding);
    box-sizing: border-box;
    background-color: var(--footer-bg);
    color: var(--footer-text);
    font-size: 1.4rem;
    z-index: 0;
    border-top: 1px solid var(--color-border);
}


/* ==========================================================================
   4. TOP BAR
   ========================================================================== */

#top_content {
    position: relative;
    max-width: var(--content-max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--content-padding);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: normal;
}

/* Logo (image or text) */
#logo {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #7cb8e4;
    font-size: 2rem;
    font-weight: 700;
    line-height: var(--top-height);
    z-index: 1;
}
#logo img {
    height: 60px;
    width: auto;
    margin: 0;
    border-radius: 0;
}

/* Language switch in top bar */
/* RIGHT-SIDE TOP BAR LAYOUT: burger(20px) — cart(70px) — lang(125px) — wishlist(230px) */
.hig_static_language_switch {
    position: absolute;
    right: 125px;
    color: #fff;
    font-size: 2rem;
}
.hig_static_language_switch a {
    color: var(--color-text-inverse);
    opacity: 0.6;
    font-size: 2rem;
    text-decoration: none;
    padding: 0 .5rem;
}
.hig_static_language_switch a.selected { opacity: 1; }

/* Hide top-bar language switch when nav overlay is open */
html.overlay #top > .hig_static_language_switch { display: none; }

/* Loading spinner (hidden by default, shown by JS) */
#static_icon_loading { display: none; position: absolute; top: 5px; right: 5px; }

/* Navigation toggle button — CSS-drawn burger icon */
#static_btn_nav {
    position: absolute;
    top: 50%;
    right: var(--content-padding);
    transform: translateY(-50%);
    width: 30px;
    height: 24px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1;
}
#static_btn_nav::before,
#static_btn_nav::after {
    content: "";
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--color-text-inverse);
    position: absolute;
    left: 0;
}
#static_btn_nav::before {
    top: 3px;
    box-shadow: 0 8px 0 var(--color-text-inverse);
    transition: top 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
#static_btn_nav::after {
    bottom: 3px;
    transition: bottom 0.3s ease, transform 0.3s ease;
}

/* Nav button — close state (X icon) when nav is open */
html.overlay #static_btn_nav::before { top: 11px; transform: rotate(45deg); box-shadow: 0 0 0 transparent; }
html.overlay #static_btn_nav::after { bottom: 11px; transform: rotate(-45deg); }


/* ==========================================================================
   5. NAVIGATION SYSTEM
   ========================================================================== */

/* BEHAVIORAL CONTRACT: Navigation is hidden by default, shown by .overlay class */
#navigation {
    display: none;
    position: fixed;
    left: 0;
    top: var(--top-height);
    width: 100%;
    height: calc(100vh - var(--top-height));
    height: calc(100dvh - var(--top-height));
    overflow-y: auto;
    scrollbar-width: none;
    background-color: var(--nav-bg);
    box-sizing: border-box;
    padding: 0;
    z-index: 99;
}

/* BEHAVIORAL CONTRACT: Shown when html.overlay class is set by JS */
body #navigation.overlay { display: block; }

#navigation_links {
    list-style: none;
    margin: 0;
    padding: 1rem 0;
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
}

#navigation_links li { list-style: none; }

#navigation_links > li > a,
#navigation_links > li > .link,
#navigation .link_collection_wrapper > a {
    display: block;
    padding: 0 var(--content-padding);
    color: var(--nav-link-color);
    font-size: var(--nav-font-size);
    font-weight: 600;
    line-height: var(--nav-link-height);
    height: var(--nav-link-height);
    text-decoration: none;
    box-sizing: border-box;
}

#navigation_links > li > a:hover,
#navigation_links > li > .link:hover,
#navigation .link_collection_wrapper > a:hover {
    background-color: var(--nav-link-hover-bg);
}

#navigation_links > li > a:focus-visible,
#navigation .link_collection_wrapper > a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: -2px;
}

/* Active navigation link */
#navigation_links a.active { color: var(--color-accent); }

/* Session-dependent link visibility */
#navigation_links a.session_required { display: none; }
body.logged_in #navigation_links a.session_required { display: block; }
body.logged_in #navigation_links a.hide_if_logged_in { display: none; }

/* Link collection wrapper (parent with submenu) */
.link_collection_wrapper { position: relative; }

/* Submenu toggle button — CSS-drawn chevron */
#navigation .link_collection_wrapper .btn_toggle {
    position: absolute;
    right: var(--content-padding);
    top: 0;
    width: 50px;
    height: var(--nav-link-height);
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
#navigation .link_collection_wrapper .btn_toggle::after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--nav-link-color);
    border-bottom: 2px solid var(--nav-link-color);
    transform: rotate(45deg);
    margin-top: -4px;
}

/* Rotated chevron when submenu is visible */
#navigation .link_collection_wrapper .btn_toggle[aria-expanded="true"]::after,
#navigation .link_collection.visible + .btn_toggle::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

/* BEHAVIORAL CONTRACT: Submenus hidden by default, shown by .visible class */
#navigation .link_collection { display: none; list-style: none; margin: 0; padding: 0; }
#navigation .link_collection.visible { display: block; border-top: 1px solid var(--color-border); }

#navigation .link_collection a {
    display: block;
    padding: 0 var(--content-padding) 0 calc(var(--content-padding) + 2rem);
    color: var(--nav-link-color);
    font-size: calc(var(--nav-font-size) - 0.2rem);
    font-weight: 400;
    line-height: calc(var(--nav-link-height) - 0.8rem);
    text-decoration: none;
}
#navigation .link_collection a:hover { background-color: var(--nav-link-hover-bg); }

/* Close menu button */
#static_btn_close_menu {
    cursor: pointer;
    text-align: center;
    padding: 1.5rem;
    font-size: 1.4rem;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-border);
    margin-top: 1rem;
}
#static_btn_close_menu:hover { background-color: var(--nav-link-hover-bg); }

/* Legal links at bottom of navigation */
#navigation_links_legal {
    list-style: none;
    margin: 0;
    padding: 1.5rem var(--content-padding);
    border-top: 1px solid var(--color-border);
    background-color: var(--nav-bg);
}
#navigation_links_legal a {
    display: inline-block;
    margin-right: 2rem;
    font-size: 1.3rem;
    color: var(--color-text-secondary);
    text-decoration: none;
}
#navigation_links_legal a:hover { text-decoration: underline; }


/* ==========================================================================
   6. CONTENT BLOCKS
   ========================================================================== */

.content_block {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
    box-sizing: border-box;
}

/* BEHAVIORAL CONTRACT: Hidden content blocks — JS controls visibility */
.content_block.fade_in { display: none; }
.content_block.slide_down { display: none; }
body.initial_page_request .content_block.fade_in { display: block; }

/* Content sections (from XML <text> elements rendered as <section>) */
.content_block section { margin-bottom: 2rem; }
.content_block section h3 { font-size: 2rem; margin-bottom: 0.8rem; }
.content_block section p { margin-bottom: 1rem; line-height: 1.7; }

/* Default link styling within content */
.content_block a.default_link { color: var(--color-accent); }
.content_block a.default_link:hover { text-decoration: underline; }

/* Image items */
.content_block img { margin-bottom: 1.6rem; border-radius: 2px; }
.content_block .image_meta { font-size: 1.3rem; color: var(--color-text-secondary); margin-top: -1rem; margin-bottom: 1.6rem; }


/* ==========================================================================
   7. FOOTER
   ========================================================================== */

#footer a { color: var(--footer-text); }
#footer a:hover { color: var(--color-text); text-decoration: underline; }

/* Footer copyright — last <p> in footer_content */
#footer_content > p:last-child {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 1.2rem;
    color: var(--footer-text);
    opacity: 0.7;
}

.default_footer_info_list { margin-bottom: 2rem; }
.default_footer_info_list h3 { font-size: 1.5rem; font-weight: 600; color: var(--color-text); margin-bottom: 0.8rem; }
.default_footer_info_list .title { font-weight: 600; margin-bottom: 0.3rem; }
.default_footer_info_list .email,
.default_footer_info_list .phone { display: block; margin-bottom: 0.3rem; }

.default_footer_link_list { margin-bottom: 2rem; }
.default_footer_link_list h3 { font-size: 1.5rem; font-weight: 600; color: var(--color-text); margin-bottom: 0.8rem; }
.default_footer_link_list ul { list-style: none; padding: 0; margin: 0; }
.default_footer_link_list li { margin-bottom: 0.4rem; }

.footer_info_text { margin-bottom: 2rem; }
.footer_info_text h4 { font-size: 1.4rem; font-weight: 600; margin-bottom: 0.4rem; }
.footer_info_text p { font-size: 1.3rem; line-height: 1.5; }


/* ==========================================================================
   8. SCROLL-TO-TOP BUTTON
   ========================================================================== */

/* BEHAVIORAL CONTRACT: Hidden by default, shown by JS on scroll */
#hig_static_btn_scroll_top {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background-color: var(--color-bg);
    cursor: pointer;
    z-index: 110;
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    -webkit-appearance: none;
    appearance: none;
}
/* CSS-drawn up arrow */
#hig_static_btn_scroll_top::after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--color-text);
    border-left: 2px solid var(--color-text);
    transform: rotate(45deg);
    margin: 6px auto 0;
}
#hig_static_btn_scroll_top:hover { background-color: var(--color-bg-alt); }


/* ==========================================================================
   9. GALLERY OVERLAY
   ========================================================================== */

/* BEHAVIORAL CONTRACT: Hidden by default, shown by JS */
#default_static_overlay_gallery_simple {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1%;
    box-sizing: border-box;
    background-color: var(--color-overlay-bg);
}

#default_static_overlay_gallery_simple .inner {
    position: relative;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 60px 10px 10px;
    background-color: var(--color-bg);
    border-radius: 4px;
}

#default_static_overlay_gallery_simple .image_container {
    width: 100%;
    height: calc(100% - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#default_static_overlay_gallery_simple .image_container img {
    max-width: 100%;
    max-height: calc(100% - 50px);
    object-fit: contain;
}

#default_static_overlay_gallery_simple .copyright_note {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: 0.5rem;
}

#default_static_overlay_gallery_simple .image_meta {
    text-align: center;
    padding: 0.5rem 0;
}
#default_static_overlay_gallery_simple .image_meta .caption {
    font-size: 1.5rem;
    font-weight: 600;
}
#default_static_overlay_gallery_simple .image_meta .description {
    font-size: 1.3rem;
    color: var(--color-text-secondary);
}

/* Gallery controls */
#default_static_overlay_gallery_simple .btn_close,
#default_static_overlay_gallery_simple .btn_previous,
#default_static_overlay_gallery_simple .btn_next {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background-color: var(--color-bg);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
#default_static_overlay_gallery_simple .btn_close:hover,
#default_static_overlay_gallery_simple .btn_previous:hover,
#default_static_overlay_gallery_simple .btn_next:hover {
    background-color: var(--color-bg-alt);
}

#default_static_overlay_gallery_simple .btn_close { top: 10px; right: 10px; }
/* CSS-drawn X for close */
#default_static_overlay_gallery_simple .btn_close::before,
#default_static_overlay_gallery_simple .btn_close::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 2px;
    background-color: var(--color-text);
}
#default_static_overlay_gallery_simple .btn_close::before { transform: rotate(45deg); }
#default_static_overlay_gallery_simple .btn_close::after { transform: rotate(-45deg); }

#default_static_overlay_gallery_simple .btn_previous { left: 10px; top: 50%; margin-top: -20px; }
#default_static_overlay_gallery_simple .btn_next { right: 10px; top: 50%; margin-top: -20px; }

/* CSS-drawn arrows for prev/next */
#default_static_overlay_gallery_simple .btn_previous::after,
#default_static_overlay_gallery_simple .btn_next::after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--color-text);
    border-left: 2px solid var(--color-text);
}
#default_static_overlay_gallery_simple .btn_previous::after { transform: rotate(-45deg); margin-left: 4px; }
#default_static_overlay_gallery_simple .btn_next::after { transform: rotate(135deg); margin-right: 4px; }

#default_static_overlay_gallery_simple .loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    color: var(--color-text-secondary);
}


/* ==========================================================================
   10. CUSTOM SELECT
   ========================================================================== */

.hig_select {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-size: 1.5rem;
    user-select: none;
}

.hig_select .selected_option {
    position: relative;
    z-index: 0;
    padding: 0.6rem 3rem 0.6rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background-color: var(--color-bg);
    white-space: nowrap;
}
/* CSS-drawn chevron for select */
.hig_select .selected_option::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--color-text-secondary);
    border-bottom: 2px solid var(--color-text-secondary);
    transform: translateY(-70%) rotate(45deg);
}

/* BEHAVIORAL CONTRACT: Options hidden by default, toggled by JS */
.hig_select .options {
    display: none;
    position: absolute;
    /* Above the product cards (0-3), below the admin item markers (98). */
    z-index: 97;
    top: 100%;
    left: 0;
    min-width: 100%;
    margin-top: 2px;
    padding: 0.4rem 0;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background-color: var(--color-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
}

.hig_select .options .option {
    padding: 0.6rem 1rem;
    white-space: nowrap;
}
.hig_select .options .option:hover { background-color: var(--color-bg-alt); }
.hig_select .options .option.selected { font-weight: 600; color: var(--color-accent); }

.hig_select.disabled { opacity: 0.5; pointer-events: none; }


/* ==========================================================================
   11. BODY / HTML CLASS MODIFIERS (Behavioral Contracts)
   ========================================================================== */

/* --- Admin logged in: Displace content below admin bar (50px) + top bar --- */
body:is(.hig_admin_logged_in, .hig_privileged_logged_in) #content {
    margin-top: calc(var(--top-height) + 50px);
}
body:is(.hig_admin_logged_in, .hig_privileged_logged_in) #navigation {
    top: 50px;
}
body:is(.hig_admin_logged_in, .hig_privileged_logged_in) #navigation.overlay {
    top: calc(var(--top-height) + 50px);
    height: calc(100vh - var(--top-height) - 50px);
    height: calc(100dvh - var(--top-height) - 50px);
}

/* --- DC overlay mode: Content becomes absolute full-viewport --- */
body.dc_overlay #content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    margin: 0 auto;
    padding-top: 0;
    max-width: none;
    z-index: 101;
}

/* --- Overlay padding for chapter content blocks --- */
body.hig_persistent_overlay .content_block[class*="chapter"] {
    padding-top: 226px;
}

/* --- Disable user selection (during drag operations) --- */
body.disable_user_select #top,
body.disable_user_select #content,
body.disable_user_select #footer {
    user-select: none;
}


/* ==========================================================================
   12. COOKIE NOTICE
   ========================================================================== */

#default_cookie_info {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    z-index: 110;
    box-sizing: border-box;
    padding: 1.5rem var(--content-padding);
    text-align: center;
    font-size: 1.4rem;
    line-height: 1.5;
}
#default_cookie_info .info { max-width: var(--content-max-width); margin: 0 auto; }
#default_cookie_info .info p { margin-bottom: 0.8rem; }
#default_cookie_info_btn_accept {
    display: inline-block;
    padding: 0.5rem 2rem;
    border: 1px solid var(--color-text-inverse);
    border-radius: 4px;
    cursor: pointer;
    color: var(--color-text-inverse);
}
#default_cookie_info_btn_accept:hover { background-color: rgba(255, 255, 255, 0.1); }


/* ==========================================================================
   13. FILTER & DATA API LIST BASICS
   ========================================================================== */

.default_filter_wrapper {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}


/* ==========================================================================
   14. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Breakpoints are in em (the browser's default font, 16 px = 1 em): at the default size they are the
   same pixels as before, and a visitor who sets a larger default font gets the compact layout earlier,
   as with zoom, instead of a wide layout whose fixed header positions overlap. */
@media (max-width: 50em) {

    h1 { font-size: 2.6rem; }
    h2 { font-size: 2.1rem; }
    h3 { font-size: 1.8rem; }
    h4 { font-size: 1.6rem; }

    #content { padding: 0 1.5rem; }
    #footer { padding: 2.5rem 1.5rem; }

    body.hig_persistent_overlay .content_block[class*="chapter"] {
        padding-top: 216px;
    }
}

@media (max-width: 37.5em) {

    :root {
        --nav-font-size: 1.8rem;
        --nav-link-height: 4.4rem;
    }

    #default_static_overlay_gallery_simple { padding: 0; }
    #default_static_overlay_gallery_simple .inner { border-radius: 0; padding: 50px 5px 5px; }
}

@media (max-width: 30em) {

    :root {
        --nav-font-size: 1.6rem;
        --nav-link-height: 4rem;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.9rem; }

    #footer {
        text-align: center;
    }
    .default_footer_link_list ul { padding: 0; }

    #navigation_links_legal { text-align: center; }
    #navigation_links_legal a { margin: 0 1rem; }
}


/* ==========================================================================
   15. SHOP — PRODUCT GRID
   ========================================================================== */

.shop_product_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.shop_product_card_wrapper {
    position: relative;
    min-width: 0;
}

.shop_product_card {
    position: relative;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
    background: var(--color-bg);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.shop_product_card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); }

.shop_product_image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--color-bg-alt);
}
.shop_product_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop_product_info {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.shop_product_info h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.shop_price_block {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.shop_current_price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
}
.shop_sale_price { color: #c0392b; }

.shop_compare_price {
    font-size: 1.4rem;
    color: var(--color-text-secondary);
    text-decoration: line-through;
}

/* Stock badges */
.shop_stock_badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: auto;
}
.shop_out_of_stock { background: #fde8e8; color: #c0392b; }
.shop_low_stock { background: #fef3cd; color: #856404; }
.shop_in_stock { background: #d4edda; color: #155724; }

/* Invisible product link overlay */
.shop_product_card a.shop_product_link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-decoration: none;
    color: transparent;
}
/* Keyboard focus on the overlay link shows on the whole card: the card clips the link's own ring (overflow: hidden).
   Same colours as the site ring. */
#content .shop_product_card > a.shop_product_link:focus-visible { outline: none; box-shadow: none; }
#content .shop_product_card:has(> a.shop_product_link:focus-visible) { outline: 2px solid #111; outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }


/* ==========================================================================
   16. SHOP — PRODUCT DETAIL
   ========================================================================== */

.shop_breadcrumbs {
    font-size: 1.3rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    padding: 1rem 0;
}
.shop_breadcrumbs a {
    color: var(--color-accent);
    text-decoration: none;
    /* A tap target of at least 24 px (WCAG 2.2, 2.5.8); the negative margin keeps the line where it was. */
    display: inline-block;
    padding: 0.3rem 0;
    margin: -0.3rem 0;
}
.shop_breadcrumbs a:hover { text-decoration: underline; }
.shop_breadcrumb_separator {
    margin: 0 0.5rem;
    color: var(--color-text-secondary);
}
.shop_breadcrumb_current { color: var(--color-text); }

.shop_product_detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.shop_product_gallery { position: relative; }

.shop_gallery_main {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--color-bg-alt);
    border-radius: 6px;
    display: block;
}

/* A product with one picture has no thumbnails to keep steady, so the picture is shown whole in its own proportions,
   at most as high as the window below the header (the small window height on phones, where the browser bar comes and
   goes); a taller one is shrunk to fit, not cut. */
.shop_product_gallery:not(:has(.shop_gallery_thumbs)) .shop_gallery_main {
    aspect-ratio: auto;
    height: auto;
    max-height: calc(100vh - var(--top-height) - 4rem);
    max-height: calc(100svh - var(--top-height) - 4rem);
    object-fit: contain;
}

.shop_gallery_thumbs {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.shop_gallery_thumbs .shop_thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid transparent;
    border-bottom-width: 6px;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}
.shop_gallery_thumbs .shop_thumb:hover { opacity: 1; }
/* The shown image is marked by a bar below it, so it differs from the keyboard focus ring, which runs around the image. */
.shop_gallery_thumbs .shop_thumb.active {
    border-bottom-color: var(--color-accent);
    opacity: 1;
}

.shop_product_detail_info h1 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
}

.shop_product_detail_info .shop_price_block {
    margin-bottom: 1.2rem;
}
.shop_product_detail_info .shop_current_price { font-size: 2.4rem; }
.shop_product_detail_info .shop_compare_price { font-size: 1.6rem; }

.shop_product_detail_info .shop_stock_badge {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.shop_product_description {
    margin-top: 1.5rem;
    line-height: 1.7;
    color: var(--color-text);
}
.shop_product_description p { margin-bottom: 1rem; }

/* Filter caption — visually hidden but accessible */
.sr_only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ==========================================================================
   17. SHOP — RESPONSIVE
   ========================================================================== */

@media (max-width: 50em) {

    .shop_product_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }

    .shop_product_detail { grid-template-columns: 1fr; gap: 2rem; }

    .shop_product_detail_info h1 { font-size: 2.4rem; }
}

@media (max-width: 30em) {

    .shop_product_grid { grid-template-columns: 1fr; gap: 1.2rem; }

    .shop_product_info h3 { font-size: 1.5rem; }

    .shop_current_price { font-size: 1.6rem; }

    .shop_product_detail_info h1 { font-size: 2rem; }

    .shop_product_detail_info .shop_current_price { font-size: 2rem; }
}


/* ==========================================================================
   18. SHOP — MINI-CART (TOP BAR)
   ========================================================================== */

#shop_mini_cart {
    position: absolute;
    top: 50%;
    right: 70px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    text-decoration: none;
    z-index: 1;
}

/* CSS-only bag icon — body (matches #static_btn_nav 24px height) */
#shop_mini_cart::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 2px;
    width: 20px;
    height: 15px;
    border: 2px solid var(--color-text-inverse);
    border-radius: 0 0 3px 3px;
    box-sizing: border-box;
}

/* CSS-only bag icon — handle */
#shop_mini_cart::after {
    content: "";
    position: absolute;
    top: 0;
    left: 6px;
    width: 12px;
    height: 10px;
    border: 2px solid var(--color-text-inverse);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    box-sizing: border-box;
}

/* Cart badge: light disc with a ring in the header colour, clear of the bag handle. The accent colour equals the
   header colour, so an accent-filled badge would be invisible on the bar. */
.shop_mini_cart_count {
    display: none;
    position: absolute;
    top: -9px;
    right: -12px;
    min-width: 20px;
    height: 20px;
    line-height: 16px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    background-color: var(--color-text-inverse);
    border: 2px solid var(--color-primary);
    border-radius: 10px;
    padding: 0 4px;
    box-sizing: border-box;
    z-index: 2;
}
.shop_mini_cart_count.has_items { display: block; }

/* Hide mini-cart when nav overlay is open */
html.overlay #shop_mini_cart { display: none; }


/* ==========================================================================
   19. SHOP — ADD-TO-CART BUTTON
   ========================================================================== */

.shop_add_to_cart {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: 4px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--color-accent);
    color: var(--color-text-inverse);
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-top: 0.8rem;
    text-align: center;
    line-height: 1.5;
}
.shop_add_to_cart:hover { background-color: var(--color-accent-hover); }

.shop_add_to_cart.added {
    background-color: #27ae60;
    transform: scale(1.05);
}

/* Card button — above invisible link overlay */
.shop_product_card .shop_add_to_cart {
    position: relative;
    z-index: 2;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
}

/* Detail page button — larger */
.shop_add_to_cart_detail {
    padding: 1rem 2.4rem;
    font-size: 1.6rem;
}


/* ==========================================================================
   20. SHOP — CART PAGE
   ========================================================================== */

.shop_cart_table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-bottom: 2rem;
}
.shop_cart_table th,
.shop_cart_table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.shop_cart_table th {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.shop_cart_cell_image { width: 70px; }
.shop_cart_cell_image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.shop_cart_cell_name {
    font-weight: 600;
    overflow-wrap: anywhere;
}
.shop_cart_cell_price { white-space: nowrap; }
.shop_cart_cell_line_total { white-space: nowrap; font-weight: 600; }
.shop_cart_cell_remove { width: 40px; text-align: center; }

/* Quantity controls */
.shop_cart_cell_qty { white-space: nowrap; }

#content .shop_cart_table button.shop_cart_qty_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-bg);
    cursor: pointer;
    padding: 0.8rem 1rem;
    vertical-align: middle;
    color: var(--color-text);
}
#content .shop_cart_table button.shop_cart_qty_btn svg { display: block; flex-shrink: 0; }
#content .shop_cart_table button.shop_cart_qty_btn:hover { background: var(--color-bg-alt); }

.shop_cart_qty_value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    font-size: 1.5rem;
    font-weight: 600;
    vertical-align: middle;
}

/* Remove button */
#content .shop_cart_table button.shop_cart_remove_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0.8rem 1rem;
    color: var(--color-text-secondary);
}
#content .shop_cart_table button.shop_cart_remove_btn svg { display: block; flex-shrink: 0; }
#content .shop_cart_table button.shop_cart_remove_btn:hover { color: #c0392b; }

/* Empty cart state */
.shop_cart_empty {
    text-align: center;
    padding: 4rem 2rem;
}
.shop_cart_empty p {
    font-size: 1.8rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}
.shop_cart_continue_btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.5rem;
}
.shop_cart_continue_btn:hover { background: var(--color-bg-alt); text-decoration: none; }
.shop_cart_continue_row { margin-top: 1.5rem; }
/* Stock limit: the note under a line that is at its limit, the sold-out "+", and the notice in the mini cart. */
.shop_cart_qty_max { display: block; margin-top: 0.3rem; font-size: 1.1rem; line-height: 1.3; color: var(--color-text-secondary); white-space: normal; }
#content .shop_cart_table button.shop_cart_qty_btn[disabled] { opacity: 0.4; cursor: not-allowed; }
#shop_mini_cart_sidebar .shop_mini_cart_notice { margin: 0 0 1rem; padding: 0.8rem 1rem; border: 1px solid var(--color-border); border-radius: 4px; background: var(--color-bg-alt); font-size: 1.3rem; line-height: 1.4; }

/* Cart summary */
#shop_cart_summary {
    text-align: right;
    padding: 1.5rem 0;
    border-top: 2px solid var(--color-text);
}
.shop_cart_total {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}
.shop_cart_total_label { color: var(--color-text-secondary); }
.shop_cart_total_value { font-weight: 700; font-size: 2.2rem; }

#content a.shop_cart_checkout_btn {
    padding: 1rem 3rem;
    background-color: var(--color-accent);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 600;
}
#content a.shop_cart_checkout_btn:hover { background-color: var(--color-accent-hover); color: #fff; text-decoration: none; }

/* Mixed cart (shop + bookings) renders two checkout buttons in
   .shop_cart_split_actions. The container was unstyled (block) and the
   anchors default to display:inline, so they collided on the text baseline
   with overlapping padding. Flex lays them out as proper right-aligned
   button boxes with a gap (flex blockifies the inline anchors). */
#content .shop_cart_split_actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
}
/* The checkout's choice between its parts (/kasse with a mixed cart): the same row of buttons with the same gap,
   at the start of the line under the page heading. */
#content .shop_checkout_split_actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}
/* Under a refusal (sold out, minimum order) the buttons keep their distance instead of touching its box. */
#content .shop_cart_unavailable + .shop_cart_split_actions,
#content .shop_cart_unavailable + a.shop_cart_checkout_btn { margin-top: 1.5rem; }


/* ==========================================================================
   21. SHOP — CART RESPONSIVE
   ========================================================================== */

@media (max-width: 37.5em) {

    .shop_cart_cell_image { display: none; }
    .shop_cart_table th.shop_cart_cell_image { display: none; }

    .shop_cart_table { table-layout: fixed; }
    /* Give product names more room at 360 px. Wrap at spaces first and break a word only
       when it is wider than its cell. Leave room for both quantity buttons and large totals. */
    .shop_cart_cell_name { width: 30%; overflow-wrap: break-word; hyphens: manual; }
    .shop_cart_cell_price { width: 19%; }
    .shop_cart_cell_qty { width: 25%; }
    .shop_cart_cell_line_total { width: 19%; }
    .shop_cart_cell_remove { width: 7%; }

    /* #content in front: the theme's #content th/td padding (1.2rem at the sides) would win otherwise and take 24 px
       of every column. */
    #content .shop_cart_table th,
    #content .shop_cart_table td { padding: 0.4rem 0.2rem; font-size: 1.3rem; }
    /* The amounts one size smaller; a German total may break before "€" if it still does not fit. */
    #content .shop_cart_table td.shop_cart_cell_price,
    #content .shop_cart_table td.shop_cart_cell_line_total { font-size: 1.2rem; }
    #content .shop_cart_table td.shop_cart_cell_line_total { white-space: normal; }
    /* A refused line's total is the short sentence "nicht enthalten", one size smaller again (rule further down). */
    #content .shop_cart_table tr.shop_cart_row_unavailable td.shop_cart_cell_line_total { font-size: 1rem; }
    /* Column headings stay whole words: a smaller size and tighter spacing, and no hyphenation. */
    .shop_cart_table th { font-size: 1.1rem; letter-spacing: 0.02em; hyphens: manual; }

    /* Each button stays 24 px wide (the touch target); the number between them gives way, so "−", the number and
       "+" fit the column at 360 px. */
    #content .shop_cart_table button.shop_cart_qty_btn { padding: 0.5rem; }
    .shop_cart_qty_value { min-width: 16px; }
    #content .shop_cart_table button.shop_cart_remove_btn { padding: 0.5rem; }

    .shop_cart_total_value { font-size: 1.8rem; }

    #content a.shop_cart_checkout_btn { display: block; text-align: center; }
}


/* ==========================================================================
   22. SHOP — CHECKOUT PAGE
   ========================================================================== */

#shop_checkout_container {
    margin-bottom: 2rem;
}

.shop_checkout_empty {
    text-align: center;
    padding: 4rem 2rem;
}
.shop_checkout_empty p {
    font-size: 1.8rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

/* Address step — first of the two checkout steps, rendered INLINE in the page.
   It used to be a full-viewport modal with a dark backdrop, which interrupted
   the purchase to ask for a country that did not yet change any price. The ids
   and class names still say "overlay" because JS, server markup and the browser
   E2E all address them; the presentation is no longer one. Only a genuine
   blocker may open a dialog from here. */
#shop_checkout_address_step {
    margin-bottom: 2rem;
}
.shop_address_step_inner {
    background: var(--color-bg);
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.12));
    border-radius: 8px;
    padding: 2.5rem;
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
}
.shop_address_step_inner h2,
.shop_address_step_inner .shop_checkout_delivery_fields > legend {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}
.shop_address_step_hint {
    color: var(--color-text-secondary);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

/* Order summary table (read-only) */
.shop_checkout_summary_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}
.shop_checkout_summary_table th,
.shop_checkout_summary_table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.shop_checkout_summary_table th {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.shop_checkout_cell_image { width: 60px; }
.shop_checkout_cell_image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}
.shop_checkout_cell_name { font-weight: 600; }
.shop_checkout_cell_qty { width: 60px; text-align: center; }
.shop_checkout_cell_total { text-align: right; white-space: nowrap; font-weight: 600; }

/* Totals block */
.shop_checkout_totals {
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    margin-bottom: 2rem;
}
.shop_checkout_totals_row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 1.5rem;
}
.shop_checkout_free_shipping span:last-child {
    color: #1d7a43;
    font-weight: 600;
}
.shop_checkout_grand_total {
    border-top: 2px solid var(--color-text);
    margin-top: 0.5rem;
    padding-top: 0.8rem;
    font-size: 1.8rem;
    font-weight: 700;
}


/* ==========================================================================
   23. SHOP — CHECKOUT FORM
   ========================================================================== */

#shop_checkout_form h2,
#shop_checkout_form .shop_checkout_delivery_fields > legend {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    margin-top: 1.5rem;
}
#shop_checkout_form h2:first-child {
    margin-top: 0;
}

.shop_checkout_field {
    margin-bottom: 1.2rem;
}
.shop_checkout_field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 1.4rem;
}

/* ZIP + City side by side */
.shop_checkout_field_row {
    display: flex;
    gap: 1rem;
}
.shop_checkout_field_zip { flex: 0 0 140px; }
.shop_checkout_field_city { flex: 1; }

/* Validation error state */
.shop_checkout_field.error input,
.shop_checkout_field.error textarea,
.shop_checkout_field.error select {
    border-color: #c0392b;
}

.shop_checkout_error_msg {
    color: #c0392b;
    font-size: 1.2rem;
    margin-top: 0.3rem;
}

/* Message under a field the browser rejected in the other public forms (_js/static/shop_form_errors.js).
   #c0392b: 5.4:1 on white, 5.2:1 on the footer. */
.shop_form_error_msg {
    color: #c0392b;
    font-size: 1.2rem;
    margin: 0.3rem 0 0;
}

/* Global error banner */
.shop_checkout_global_error {
    background: #fde8e8;
    color: #c0392b;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Price changed since the article went into the cart: same banner shape, a notice rather than an error */
.shop_cart_price_notice {
    background: #fff4d6;
    color: #4a3600;
    border: 1px solid #c9a227;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.shop_cart_price_notice ul {
    margin: 0.6rem 0 1rem 1.8rem;
}

.shop_cart_price_notice li {
    margin-bottom: 0.4rem;
}

.shop_cart_price_notice button {
    margin-left: 0.6rem;
    padding: 0.3rem 0.8rem;
    font: inherit;
    cursor: pointer;
}

.shop_cart_price_notice .shop_cart_price_accept {
    margin-left: 0;
    font-weight: 600;
}

.shop_checkout_price_block {
    margin: 0.8rem 0 0;
    font-weight: 600;
}

/* Submit button */
.shop_checkout_submit_btn {
    display: block;
    width: 100%;
    max-width: 400px;
    padding: 1rem 2rem;
    margin-top: 2rem;
    background-color: var(--color-accent);
    color: var(--color-text-inverse);
    border: none;
    border-radius: 4px;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
}
.shop_checkout_submit_btn:hover { background-color: var(--color-accent-hover); }
.shop_checkout_submit_btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Harmonised EU legal-guarantee notice (mandatory from 2026-09-27).
   The official RGB SVG remains unmodified; CSS only controls responsive display. */
.shop_legal_guarantee_notice {
    max-width: 46rem;
    margin: 1.5rem 0 2rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-bg);
}
.shop_legal_guarantee_summary {
    padding: 1rem 1.2rem;
    font-size: 1.35rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
.shop_legal_guarantee_link {
    display: block;
    padding: 0 1.2rem 1.2rem;
}
.shop_legal_guarantee_image {
    display: block;
    width: 100%;
    height: auto;
}
.shop_legal_guarantee_notice_catalog {
    margin-bottom: 2.5rem;
}
.shop_legal_guarantee_notice_product {
    margin-top: 2rem;
}

/* Secondary action for the address overlay: lets guests dismiss the
   delivery-address step and return to the cart instead of being trapped. */
.shop_checkout_cancel_btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin-top: 1rem;
    padding: 0.9rem 2rem;
    background: none;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
}
.shop_checkout_cancel_btn:hover { background-color: var(--color-bg-alt); color: var(--color-text); }

/* PayPal Smart Button container */
.shop_paypal_button {
    width: 100%;
    max-width: 400px;
    margin-top: 2rem;
    min-height: 45px;
}
#shop_paypal_error {
    margin-top: 1rem;
}

/* Gift wrapping (Sprint 7E) */
.shop_checkout_field_gift_wrap,
.shop_checkout_field_soundwalk_gift {
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 1rem 1.2rem;
    background: var(--color-surface, #fafafa);
}
.shop_checkout_gift_wrap_toggle {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0;
    cursor: pointer;
}
.shop_checkout_gift_wrap_toggle input[type="checkbox"] {
    width: 1.8rem;
    height: 1.8rem;
    margin: 0;
    cursor: pointer;
}
.shop_checkout_gift_wrap_label {
    font-weight: 600;
    font-size: 1.4rem;
}
.shop_checkout_gift_wrap_desc {
    margin: 0.6rem 0 0 2.6rem;
    font-size: 1.25rem;
    color: var(--color-text-muted, #777);
    line-height: 1.4;
}
.shop_soundwalk_gift_fields {
    display: grid;
    gap: 0.65rem;
    margin: 1.2rem 0 0 2.6rem;
}
.shop_soundwalk_gift_fields label {
    margin: 0.4rem 0 0;
    font-size: 1.25rem;
    font-weight: 600;
}
.shop_soundwalk_gift_fields input,
.shop_soundwalk_gift_fields textarea {
    width: 100%;
    box-sizing: border-box;
}
.shop_soundwalk_gift_fields textarea { resize: vertical; }


/* ==========================================================================
   24. SHOP — CHECKOUT CONFIRMATION
   ========================================================================== */

#shop_checkout_confirmation {
    text-align: center;
    padding: 3rem 2rem;
}
#shop_checkout_confirmation h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.shop_checkout_success_icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: #27ae60;
    position: relative;
}
.shop_checkout_success_icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 28px;
    border: solid #fff;
    border-width: 0 4px 4px 0;
    transform: translate(-50%, -55%) rotate(45deg);
}

.shop_checkout_order_number {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}
.shop_checkout_order_number strong {
    font-size: 2rem;
}

.shop_checkout_confirm_details {
    max-width: 500px;
    margin: 0 auto 2rem;
    text-align: left;
}

.shop_checkout_confirm_note {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

/* Thank-you page: where the goods go and, when different, the billing address; side by side where they fit. */
.shop_checkout_confirm_addresses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 1.6rem 2.4rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    text-align: left;
}
.shop_checkout_confirm_address h3 { margin: 0 0 0.6rem; font-size: 1.6rem; }
.shop_checkout_confirm_address address { font-style: normal; line-height: 1.6; overflow-wrap: anywhere; }

/* After a purchase on invoice: what happens next, as a numbered list under the order. */
.shop_checkout_next_steps {
    max-width: 500px;
    margin: 0 auto 2rem;
    text-align: left;
}

.shop_checkout_next_steps h3 {
    margin: 0 0 0.8rem;
}

.shop_checkout_next_steps ol {
    margin: 0;
    padding-left: 2rem;
    line-height: 1.5;
}

.shop_soundwalk_accesses {
    max-width: 560px;
    margin: 2rem auto;
    padding: 1.8rem;
    border: 1px solid #d7d2c8;
    border-radius: 10px;
    background: #fffdf8;
    color: #171717;
    text-align: left;
}
.shop_soundwalk_accesses h3 {
    margin: 0 0 0.6rem;
    font-size: 1.8rem;
}
.shop_soundwalk_access_intro,
.shop_soundwalk_access_pending p {
    margin: 0 0 1.3rem;
    color: #4f4b45;
    line-height: 1.5;
}
.shop_soundwalk_gift_card {
    margin: 1rem 0 1.3rem;
    padding: 1.25rem;
    border: 1px solid #c8b98f;
    border-radius: 8px;
    background: #f8f1de;
}
.shop_soundwalk_gift_title {
    color: #262015;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.3;
}
.shop_soundwalk_gift_message {
    margin: 0.75rem 0 0 !important;
    color: #403726 !important;
    line-height: 1.5;
    white-space: pre-line;
}
.shop_soundwalk_access_card {
    padding: 1.4rem;
    border: 1px solid #ddd7ca;
    border-radius: 8px;
    background: #fff;
}
.shop_soundwalk_access_card + .shop_soundwalk_access_card { margin-top: 1rem; }
.shop_soundwalk_access_label {
    margin-bottom: 0.55rem;
    color: #625d54;
    font-size: 1.15rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.shop_soundwalk_access_code {
    display: block;
    margin-bottom: 1rem;
    color: #111;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(2rem, 8vw, 3.1rem);
    font-weight: 750;
    letter-spacing: 0.12em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.shop_soundwalk_access_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.shop_soundwalk_copy,
.shop_soundwalk_start,
.shop_soundwalk_print,
.shop_soundwalk_resend {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.2rem;
    border: 1px solid #161616;
    border-radius: 4px;
    background: #161616;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
    text-decoration: none;
}
.shop_soundwalk_copy:hover,
.shop_soundwalk_start:hover,
.shop_soundwalk_print:hover,
.shop_soundwalk_resend:hover { background: #383838; color: #fff; text-decoration: none; }
.shop_soundwalk_print {
    margin-top: 1.2rem;
    background: transparent;
    color: #161616;
}
.shop_soundwalk_print:hover { background: #f0ede7; color: #161616; }
.shop_soundwalk_resend {
    margin: 1.2rem 0 0 0.75rem;
    background: transparent;
    color: #161616;
}
.shop_soundwalk_resend:hover { background: #f0ede7; color: #161616; }
.shop_soundwalk_resend:disabled { cursor: wait; opacity: 0.6; }
.shop_soundwalk_resend_feedback { min-height: 1.5em; margin-top: 0.8rem; color: #4f4b45; }
.shop_soundwalk_resend_feedback.is_error { color: #9f1d20; }

@media print {
    /* An order confirmation or tracking page prints as a document: the shop's header, footer and
       overlays go, the order stays in the normal page flow so a long order runs over as many pages
       as it needs, and a table repeats its header on every page. */
    body:has(.content.active #shop_checkout_confirmation .shop_checkout_order_number) > :not(#content),
    body:has(.content.active .shop_order_tracking_wrap) > :not(#content) { display: none !important; }
    .content.active .content_block:has(#shop_checkout_confirmation .shop_checkout_order_number) > :not(#shop_checkout_confirmation) { display: none !important; }
    #shop_checkout_confirmation .shop_checkout_account_upsell,
    #shop_checkout_confirmation .shop_cart_continue_btn,
    #shop_checkout_confirmation button,
    .shop_order_tracking_wrap button,
    .shop_order_tracking_wrap form,
    .shop_soundwalk_access_actions,
    .shop_soundwalk_resend_feedback { display: none !important; }
    #shop_checkout_confirmation tr,
    .shop_order_tracking_wrap tr,
    .shop_soundwalk_access_card { break-inside: avoid; }
    .shop_order_tracking_wrap thead { display: table-header-group; }

    /* "Print access" prints the access cards alone; the button sets this class until the print is done. */
    body.shop_print_soundwalk_access * { visibility: hidden !important; }
    body.shop_print_soundwalk_access .shop_soundwalk_accesses,
    body.shop_print_soundwalk_access .shop_soundwalk_accesses * { visibility: visible !important; }
    body.shop_print_soundwalk_access .shop_soundwalk_accesses { position: absolute; inset: 0 auto auto 0; width: 100%; border: 0; max-width: none; padding: 0; }
}


/* ==========================================================================
   25. SHOP — CHECKOUT RESPONSIVE
   ========================================================================== */

@media (max-width: 50em) {

    #shop_checkout_form { max-width: none; }

    .shop_address_step_inner { padding: 2rem; }
}

@media (max-width: 37.5em) {

    .shop_checkout_cell_image { display: none; }
    .shop_checkout_summary_table th.shop_checkout_cell_image { display: none; }

    .shop_checkout_field_row { flex-direction: column; gap: 0; }
    .shop_checkout_field_zip { flex: none; }

    .shop_checkout_submit_btn { max-width: none; }

    .shop_checkout_grand_total { font-size: 1.6rem; }

    #shop_checkout_confirmation h2 { font-size: 2rem; }

    /* no max-height: the step sits in the page flow and scrolls with it, so an
       inner scroll area would trap the address fields in a box on a phone. */
    .shop_address_step_inner { padding: 1.5rem; }
}


/* ==========================================================================
   26. SHOP — SPRINT 1 ENHANCEMENTS
   ========================================================================== */

/* Tax info — subtle label beneath prices */
.shop_tax_info {
    display: block;
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-top: 0.15rem;
}
.shop_product_detail_info .shop_tax_info {
    font-size: 1.3rem;
}

/* Shipping info — product detail page */
.shop_shipping_info {
    font-size: 1.3rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.2rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--color-border);
    letter-spacing: 0.01em;
    line-height: 1.5;
}

/* Sprint 8 — Variant selector on product detail */
.shop_variant_selector {
    margin: 1.5rem 0;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--color-border);
}
.shop_variant_label {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--color-text);
}
.shop_variant_select {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1.4rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: #fff;
    color: var(--color-text);
    cursor: pointer;
    appearance: auto;
}
.shop_variant_select:focus {
    outline: 2px solid var(--color-accent, #111);
    outline-offset: 1px;
}
/* Why the cart button is grey until a variant is chosen (shop_variant_selector.js hides it then). */
.shop_variant_hint {
    margin: 0.6rem 0 0;
    font-size: 1.3rem;
    color: var(--color-text-secondary, #555);
}
.shop_variant_hint[hidden] { display: none; }
.shop_add_to_cart.shop_atc_disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Sprint 8 — "from" price on variant product cards */
.shop_price_from {
    font-style: italic;
}

/* Sprint 8 — "View options" link on variant product cards */
.shop_view_options,
#content a.shop_view_options,
#content a.shop_view_options:hover {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    margin-top: 0.8rem;
    line-height: 1.5;
    background-color: var(--color-accent);
    color: var(--color-text-inverse);
    cursor: pointer;
}
#content a.shop_view_options:hover {
    background-color: var(--color-accent-hover);
}

/* Variant label in cart / mini-cart / checkout */
.shop_cart_variant_label {
    color: var(--color-text-secondary, #666);
    font-weight: 400;
    font-size: 0.9em;
}

/* Cart page totals breakdown — mirrors checkout totals */
.shop_cart_totals {
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}
.shop_cart_totals_row {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    padding: 0.4rem 0;
    font-size: 1.5rem;
}
.shop_cart_totals_row span:last-child {
    min-width: 120px;
    text-align: right;
}
.shop_cart_free_shipping span:last-child {
    color: #1d7a43;
    font-weight: 600;
}
.shop_cart_grand_total {
    border-top: 2px solid var(--color-text);
    margin-top: 0.5rem;
    padding-top: 0.8rem;
    font-size: 1.8rem;
    font-weight: 700;
}

/* Mixed cart: the goods group closes with its own total above the other groups */
.shop_cart_group_total {
    border-top: 1px solid var(--color-text);
    font-weight: 600;
}

/* The server supplies the line break. The stock flag keeps the same layout when JavaScript adds its colour. */
#admin_data_api .data_api_wrapper .data_api_list .data_api_row_data > [data-type="stock"] {
    --data-api-lines: 3;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
#admin_data_api .data_api_list .data_api_row_data .shop_stock_flag { display: inline; }
#admin_data_api .data_api_list .data_api_row_data .shop_stock_flag_out { color: #ff8a80; }
#admin_data_api .data_api_list .data_api_row_data .shop_stock_flag_low { color: #f2c14e; }
html[data-theme="light"] #admin_data_api .data_api_list .data_api_row_data .shop_stock_flag_out { color: #b3261e; }
html[data-theme="light"] #admin_data_api .data_api_list .data_api_row_data .shop_stock_flag_low { color: #7a5600; }

/* Admin product view: the variant table scrolls inside its frame on a phone; SKUs and prices stay whole */
.shop_product_read_variants_scroll { overflow-x: auto; }
.shop_product_read_variants th, .shop_product_read_variants td { white-space: nowrap; }
/* On a phone the four short columns fit the card: compact cells; scrolling stays the fallback for long labels */
@media (max-width: 480px) {
	.admin_data_read table.shop_product_read_variants th, .admin_data_read table.shop_product_read_variants td { padding: 6px !important; font-size: var(--hig-fs-12, 1.2rem) !important; }
}
/* Admin read tables marked shop_read_table_cards become labelled cards at the width where the Core admin lists do
   (admin.css, "Compact reflow", 800px) and with their look: one card per row, each value under its column caption. */
@media (max-width: 800px) {
	.admin_data_read table.shop_read_table_cards,
	.admin_data_read table.shop_read_table_cards tbody,
	.admin_data_read table.shop_read_table_cards td { display: block; width: auto; }
	.admin_data_read table.shop_read_table_cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.admin_data_read table.shop_read_table_cards tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: var(--hig-sp-12, 12px); padding: var(--hig-sp-8, 8px); background: var(--data-api-bg); border: 1px solid var(--data-api-border); border-radius: var(--hig-r-md, 8px); }
	.admin_data_read table.shop_read_table_cards td { min-width: 0; padding: var(--hig-sp-8, 8px) !important; border: none !important; font-size: var(--hig-fs-14, 1.4rem); line-height: 1.35; text-align: left !important; }
	/* The first column names the row (order number), like name and title in the admin list cards: a full line, so it stays whole */
	.admin_data_read table.shop_read_table_cards td:first-child { grid-column: 1 / -1; }
	.admin_data_read table.shop_read_table_cards td::before { content: attr(data-label); display: block; margin-bottom: var(--hig-sp-2, 2px); color: var(--data-api-pill-text); font-size: var(--hig-fs-11, 1.1rem); font-weight: 700; line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase; }
}
/* "Im Shop ansehen" as a button: Core resets <a> with !important looks, hence the same weight */
.admin_data_read a.shop_product_read_shop_link { display: inline-block; margin-top: 12px; padding: 6px 16px; border: 1px solid #1a5bd6 !important; border-radius: 999px !important; color: #1a5bd6 !important; background: #fff; font-weight: 600 !important; text-decoration: none !important; }
.admin_data_read a.shop_product_read_shop_link:hover { background: #eef3fd; }
.admin_data_read a.shop_product_read_shop_link:focus-visible { outline: 2px solid #1a5bd6; outline-offset: 2px; }

/* Tax info — cart + checkout totals */
.shop_cart_tax_info,
.shop_cart_tax_rate_line,
.shop_checkout_tax_info,
.shop_vat_shipping_note {
    text-align: right;
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-top: 0.4rem;
    letter-spacing: 0.02em;
}

/* Trust badge — checkout security indicator */
.shop_checkout_trust {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1.8rem;
    padding: 0.9rem 1.2rem;
    background: #d4edda;
    border-radius: 4px;
    font-size: 1.3rem;
    color: #155724;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* CSS-only padlock icon */
.shop_lock_icon {
    display: inline-block;
    width: 14px;
    height: 17px;
    position: relative;
    flex-shrink: 0;
}
.shop_lock_icon::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 14px;
    height: 10px;
    background: #155724;
    border-radius: 2px;
}
.shop_lock_icon::after {
    content: "";
    position: absolute;
    top: 0;
    left: 2px;
    width: 10px;
    height: 9px;
    border: 2px solid #155724;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    box-sizing: border-box;
}

/* Loading spinner — inside submit button */
.shop_spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: shop_spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 0.5rem;
}
@keyframes shop_spin {
    to { transform: rotate(360deg); }
}

/* Whatever the browser scrolls to (a link or button reached with Tab, an anchor) stops below the fixed header. */
html { scroll-padding-top: var(--top-height); }

/* A form field (the browser's own required-field check, a focused error) stops a little lower, so the label above it
   can be read too; the header height comes from scroll-padding-top above and adds to this margin. */
#content :is(input, select, textarea) { scroll-margin-top: 6rem; }

/* Smooth transitions — form fields */
.shop_checkout_field input,
.shop_checkout_field textarea,
.shop_checkout_field select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.shop_checkout_field input:focus,
.shop_checkout_field textarea:focus,
.shop_checkout_field select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
    outline: none;
}


/* Smooth transitions — buttons */
.shop_checkout_submit_btn {
    transition: background-color 0.2s ease, opacity 0.2s ease;
}
#content .shop_cart_table button.shop_cart_qty_btn {
    transition: background-color 0.15s ease;
}
#content .shop_cart_table button.shop_cart_remove_btn {
    transition: color 0.15s ease;
}

/* Sprint 1 responsive */
@media (max-width: 37.5em) {
    .shop_cart_totals_row { gap: 1rem; font-size: 1.3rem; }
    .shop_cart_totals_row span:last-child { min-width: 90px; }
    .shop_cart_grand_total { font-size: 1.6rem; }
    .shop_checkout_trust { font-size: 1.2rem; padding: 0.7rem 1rem; }
}


/* ==========================================================================
   27. SHOP — FILTER + SORT ROW
   ========================================================================== */



#shop_sort_filter { flex: 0 0 auto; min-width: 200px; }

@media (max-width: 37.5em) {
    #shop_sort_filter { min-width: auto; }
    #shop_sort_caption {
        position: static;
        width: auto;
        height: auto;
        margin: 0 0 0.4rem;
        overflow: visible;
        clip: auto;
        clip-path: none;
        white-space: normal;
        font-size: var(--un-fs-s);
    }
}


/* ==========================================================================
   28. SHOP — IMAGE LIGHTBOX
   ========================================================================== */

/* Zoom cursor on main gallery image */
.shop_gallery_lightbox {
    cursor: zoom-in;
}

/* Overlay */
.shop_lightbox_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.shop_lightbox_overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Close button */
.shop_lightbox_close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    /* At least 44 px to hit and fully visible, also on a phone. */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    z-index: 2;
}

/* Image */
.shop_lightbox_image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
}

/* Nav arrows: white on a half-dark circle, so they show on light and dark photos alike. */
.shop_lightbox_nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.2rem;
    height: 5.2rem;
    background: rgba(0, 0, 0, 0.45);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 3.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0.4rem;
    transition: background-color 0.2s ease;
    z-index: 2;
    user-select: none;
}
.shop_lightbox_nav:hover { background: rgba(0, 0, 0, 0.7); }
.shop_lightbox_prev { left: 1rem; }
.shop_lightbox_next { right: 1rem; }

@media (max-width: 37.5em) {
    .shop_lightbox_image { max-width: 96vw; max-height: 80vh; }
    .shop_lightbox_nav { width: 4.4rem; height: 4.4rem; font-size: 3rem; }
    .shop_lightbox_prev { left: 0.3rem; }
    .shop_lightbox_next { right: 0.3rem; }
    .shop_lightbox_close { top: 0.8rem; right: 0.8rem; font-size: 2.8rem; }
}


/* ==========================================================================
   29. SHOP — STICKY ADD-TO-CART BAR
   ========================================================================== */

.shop_sticky_atc {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 900;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
}
.shop_sticky_atc.visible {
    transform: translateY(0);
    pointer-events: auto;
}

.shop_sticky_atc_name {
    font-weight: 600;
    font-size: 1.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
    display: flex;
    min-width: 0;
}
.shop_sticky_atc_name_text {
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto;
    min-width: 0;
}
.shop_sticky_atc_variant {
    flex: none;
    white-space: pre;
}
.shop_sticky_atc_price {
    font-weight: 700;
    font-size: 1.6rem;
    white-space: nowrap;
}

.shop_sticky_atc_btn {
    padding: 0.7rem 2rem;
    background-color: var(--color-accent);
    color: var(--color-text-inverse);
    border: none;
    border-radius: 4px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}
.shop_sticky_atc_btn:hover { background-color: var(--color-accent-hover); }

@media (max-width: 37.5em) {
    .shop_sticky_atc { flex-wrap: wrap; gap: 0.4rem 1rem; padding: 0.8rem 1rem; }
    .shop_sticky_atc_name { flex: 0 0 100%; max-width: 100%; font-size: 1.3rem; }
    .shop_sticky_atc_price { font-size: 1.5rem; }
    .shop_sticky_atc_btn { flex: 1; padding: 0.8rem 1.5rem; }
    /* The two-row bar would cover the scroll-to-top button. */
    body:has(.shop_sticky_atc.visible) #hig_static_btn_scroll_top { bottom: 110px; }
}


/* ==========================================================================
   30. SHOP — MINI-CART SIDEBAR
   ========================================================================== */

/* Backdrop */
#shop_mini_cart_backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 8999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
#shop_mini_cart_backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Sidebar panel */
#shop_mini_cart_sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    height: 100%;
    z-index: 9000;
    background: var(--color-bg);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
#shop_mini_cart_sidebar.visible {
    transform: translateX(0);
}

/* Header */
#shop_mini_cart_sidebar .shop_mini_cart_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}
#shop_mini_cart_sidebar .shop_mini_cart_header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}
#shop_mini_cart_sidebar .shop_mini_cart_close {
    background: none;
    border: none;
    font-size: 2.4rem;
    cursor: pointer;
    color: var(--color-text);
    line-height: 1;
    padding: 0.2rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}
#shop_mini_cart_sidebar .shop_mini_cart_close:hover {
    opacity: 1;
}

/* Scrollable items area */
#shop_mini_cart_sidebar .shop_mini_cart_items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

/* Individual item row */
#shop_mini_cart_sidebar .shop_mini_cart_item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}
#shop_mini_cart_sidebar .shop_mini_cart_item:last-child {
    border-bottom: none;
}

/* Item image */
#shop_mini_cart_sidebar .shop_mini_cart_item_image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: var(--color-bg-alt);
}
#shop_mini_cart_sidebar .shop_mini_cart_item_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Item details */
#shop_mini_cart_sidebar .shop_mini_cart_item_details {
    flex: 1;
    min-width: 0;
}
#shop_mini_cart_sidebar .shop_mini_cart_item_name {
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}
#shop_mini_cart_sidebar .shop_mini_cart_item_meta {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
}

/* Item price */
#shop_mini_cart_sidebar .shop_mini_cart_item_price {
    font-weight: 700;
    font-size: 1.4rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Item remove button */
#shop_mini_cart_sidebar .shop_mini_cart_item_remove {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    padding: 0.2rem;
    flex-shrink: 0;
    transition: color 0.15s ease;
}
#shop_mini_cart_sidebar .shop_mini_cart_item_remove:hover {
    color: #c0392b;
}

/* Empty state */
#shop_mini_cart_sidebar .shop_mini_cart_empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-secondary);
    font-size: 1.4rem;
}

/* Footer */
#shop_mini_cart_sidebar .shop_mini_cart_footer {
    border-top: 1px solid var(--color-border);
    padding: 1rem 1.5rem 1.5rem;
    flex-shrink: 0;
}

/* Totals inside footer */
#shop_mini_cart_sidebar .shop_mini_cart_totals {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    font-size: 1.6rem;
    font-weight: 700;
}

/* Buttons inside footer */
#shop_mini_cart_sidebar .shop_mini_cart_actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.8rem;
}
#shop_mini_cart_sidebar .shop_mini_cart_actions a,
#shop_mini_cart_sidebar .shop_mini_cart_actions button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}
#shop_mini_cart_sidebar .shop_mini_cart_checkout_btn {
    background-color: var(--color-accent);
    color: var(--color-text-inverse);
    border: none;
}
#shop_mini_cart_sidebar .shop_mini_cart_checkout_btn:hover {
    background-color: var(--color-accent-hover);
    text-decoration: none;
}
#shop_mini_cart_sidebar .shop_mini_cart_view_cart_btn,
#shop_mini_cart_sidebar .shop_mini_cart_continue_btn {
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}
#shop_mini_cart_sidebar .shop_mini_cart_view_cart_btn:hover,
#shop_mini_cart_sidebar .shop_mini_cart_continue_btn:hover {
    background: var(--color-bg-alt);
    text-decoration: none;
}

/* Mobile: full width */
@media (max-width: 30em) {
    #shop_mini_cart_sidebar { width: 100%; }
}


/* ==========================================================================
   31. SHOP — FREE SHIPPING PROGRESS BAR
   ========================================================================== */

#shop_mini_cart_sidebar .shop_shipping_progress,
#content .shop_shipping_progress {
    background: var(--color-bg-alt);
    border-radius: 4px;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
}

#shop_mini_cart_sidebar .shop_shipping_progress_bar,
#content .shop_shipping_progress_bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

#shop_mini_cart_sidebar .shop_shipping_progress_fill,
#content .shop_shipping_progress_fill {
    height: 100%;
    background: var(--color-accent);
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0%;
}

#shop_mini_cart_sidebar .shop_shipping_progress_fill.complete,
#content .shop_shipping_progress_fill.complete {
    background: #27ae60;
}

#shop_mini_cart_sidebar .shop_shipping_progress_text,
#content .shop_shipping_progress_text {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
    line-height: 1.4;
}


/* ==========================================================================
   32. SHOP — PRODUCT BADGES
   ========================================================================== */

.shop_product_card .shop_badge {
    position: absolute;
    top: 1rem;
    left: 0;
    z-index: 2;
    padding: 0.4rem 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.3;
    border-radius: 0 3px 3px 0;
}

.shop_product_card .shop_badge_featured {
    background: var(--color-accent);
    color: var(--color-text-inverse);
}

.shop_product_card .shop_badge_sale {
    background: #c0392b;
    color: #fff;
}


/* ==========================================================================
   34. SHOP — RELATED PRODUCTS
   ========================================================================== */

#content .shop_related_products {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

#content :is(.shop_related_products, .shop_cross_sell) h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: start;
}

#content .shop_related_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 50em) {
    #content .shop_related_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 30em) {
    #content .shop_related_grid {
        grid-template-columns: 1fr;
    }
    #content .shop_related_products { margin-top: 3rem; }
}


/* ==========================================================================
   35. SHOP — SWIPE GESTURES
   ========================================================================== */

#content .shop_gallery_main {
    touch-action: pan-y;
    cursor: grab;
}
#content .shop_gallery_main:active {
    cursor: grabbing;
}

.shop_lightbox_overlay .shop_lightbox_image {
    /* Two fingers zoom the picture; one finger is the shop's own swipe to the next picture. Zoomed in, one finger
       moves the picture (shop_lightbox_zoomed in shop_cart.js). */
    touch-action: pinch-zoom;
    cursor: grab;
}
.shop_lightbox_overlay.shop_lightbox_zoomed .shop_lightbox_image {
    touch-action: pan-x pan-y pinch-zoom;
}
.shop_lightbox_overlay .shop_lightbox_image:active {
    cursor: grabbing;
}


/* ==========================================================================
   36. SHOP — SKELETON LOADING
   ========================================================================== */

#content .shop_skeleton_card {
    background: var(--color-bg-alt);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

#content .shop_skeleton_image {
    aspect-ratio: 1 / 1;
    background: linear-gradient(90deg, #e0e0e0 25%, #efefef 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shop_shimmer 1.5s ease-in-out infinite;
}

#content .shop_skeleton_text {
    padding: 1.2rem;
}

#content .shop_skeleton_text_line {
    height: 1.4rem;
    background: linear-gradient(90deg, #e0e0e0 25%, #efefef 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shop_shimmer 1.5s ease-in-out infinite;
    border-radius: 3px;
    margin-bottom: 0.8rem;
}

#content .shop_skeleton_text_line.short {
    width: 60%;
}

#content .shop_skeleton_text_line.medium {
    width: 80%;
}

#content .shop_skeleton_text_line.btn {
    height: 3.2rem;
    margin-top: 1rem;
    margin-bottom: 0;
    border-radius: 4px;
}

@keyframes shop_shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


/* ==========================================================================
   37. SHOP — TOP-BAR SEARCH
   ========================================================================== */

/* Override core admin.css which clips #top when logged in — the search dropdown
   must extend below the top bar. !important because admin.css loads after custom.css. */
body.hig_admin_logged_in #top { overflow: visible !important; }

#shop_search {
    position: absolute;
    top: 50%;
    left: 240px;
    /* Ends before "Sign in" and the wishlist, which sit up to 415px from the right edge; below 56em the field
       is the revealed panel instead. */
    right: 420px;
    max-width: 360px;
    transform: translateY(-50%);
    z-index: 2;
}

/* Reveal toggle is a mobile-only affordance; hidden on desktop where the field is
   always visible in the bar (see the max-width:800px rule below). */
#shop_search_toggle { display: none; }

.shop_search_input {
    width: 100%;
    height: 36px;
    padding: 0 1.2rem 0 3.4rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-inverse);
    font-size: 1.4rem;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.shop_search_input::placeholder { color: rgba(255, 255, 255, 0.55); }
/* The browser's own "clear" cross is small and blue, barely visible on the dark field: a white one, 24 px to hit. */
.shop_search_input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    margin-right: -0.6rem;
    cursor: pointer;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
.shop_search_input:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.65);
}

/* CSS-only magnifying glass */
#shop_search::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 1.2rem;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
#shop_search::after {
    content: "";
    position: absolute;
    top: calc(50% + 6px);
    left: calc(1.2rem + 12px);
    width: 7px;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    transform: rotate(45deg);
    transform-origin: left center;
    pointer-events: none;
}

.shop_search_dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    max-height: 70vh;
}
/* The list scrolls inside the rounded box and the "show all" link stays under it, so the scrollbar ends above the
   rounded corners instead of running over them. */
.shop_search_dropdown.open { display: flex; flex-direction: column; }
.shop_search_dropdown .shop_search_results_list { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.shop_search_dropdown .shop_search_show_all { flex: none; }

.shop_search_results_list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop_search_result a {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1.2rem;
    align-items: center;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    color: var(--color-text);
    transition: background 0.12s ease;
}
.shop_search_result.highlighted a,
.shop_search_result a:hover { background: var(--color-bg-alt); }

.shop_search_result_thumb {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--color-bg-alt);
}

.shop_search_result_thumb_placeholder {
    border: 1px dashed var(--color-border);
}

.shop_search_result_info {
    display: block;
    min-width: 0;
}

.shop_search_result_name {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}
.shop_search_result_name mark {
    background: rgba(255, 220, 80, 0.45);
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}

.shop_search_result_price {
    display: block;
    font-size: 1.3rem;
    color: var(--color-text-secondary, #555);
    margin-top: 0.2rem;
}

.shop_search_no_results {
    padding: 1.6rem;
    text-align: center;
    color: var(--color-text-secondary, #555);
    font-size: 1.4rem;
}

.shop_search_show_all {
    display: block;
    padding: 1rem 1.2rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-accent, #1976d2);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    transition: background 0.12s ease;
}
.shop_search_show_all:hover,
.shop_search_show_all.highlighted { background: var(--color-bg-alt); }


/* Search results page */
@media (min-width: 56.01em) {
    /* The page has its own search field; the header's stays hidden but keeps its grid column, so the other header
       items do not move into its place. */
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)):has(.content.active .shop_search_page) #top #shop_search {
        visibility: hidden;
    }
}

.shop_search_page { padding-top: 2rem; }

.shop_search_page_form_wrap {
    display: flex;
    gap: 0.8rem;
    max-width: 600px;
    margin: 1rem 0 2rem;
}

.shop_search_page_input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 48px;
    padding: 0 1.6rem;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 1.6rem;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}
.shop_search_page_input:focus { border-color: var(--color-accent, #1976d2); }

/* #content button squares every button's corners; this one is round like its field. */
#content .shop_search_page_btn {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 2.2rem;
    border: none;
    border-radius: 24px;
    background: var(--color-accent);
    color: var(--color-text-inverse);
    font-size: 1.5rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.shop_search_meta {
    margin: 1rem 0;
    color: var(--color-text-secondary, #555);
    font-size: 1.4rem;
}

.shop_search_no_results,
.shop_search_empty_hint {
    margin: 3rem 0;
    text-align: center;
    color: var(--color-text-secondary, #555);
    font-size: 1.5rem;
}

.shop_search_page .shop_search_no_results {
    margin: 1.5rem 0 0.8rem;
    padding: 0;
    text-align: start;
}

.shop_search_results_grid { margin-top: 2rem; }


/* Mobile: the always-visible top-bar field overlapped the absolutely-positioned
   language switch (both share the fixed 80px bar row), so on narrow viewports the
   field is hidden at rest and revealed as a full-width panel below the bar by
   #shop_search_toggle (wired in _js/static/shop_search.js). */
@media (max-width: 56em) {

    /* Magnifier toggle, sitting in the free bar slot left of the language switch. */
    #shop_search_toggle {
        display: block;
        position: absolute;
        top: 50%;
        right: 215px;
        width: 34px;
        height: 34px;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        transform: translateY(-50%);
        cursor: pointer;
        z-index: 3;
    }
    /* CSS magnifier, same construction as #shop_search::before/::after. */
    #shop_search_toggle::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 15px;
        height: 15px;
        margin: -9px 0 0 -9px;
        border: 2px solid var(--color-text-inverse);
        border-radius: 50%;
        box-sizing: border-box;
    }
    #shop_search_toggle::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 8px;
        height: 2px;
        margin: 4px 0 0 3px;
        background: var(--color-text-inverse);
        transform: rotate(45deg);
        transform-origin: left center;
    }

    /* Field hidden at rest; .shop_search_revealed drops it below the bar full-width. */
    #shop_search {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-width: none;
        margin: 0;
        padding: 0.8rem var(--content-padding);
        background: var(--color-primary);
        box-sizing: border-box;
        transform: none;
        display: none;
        z-index: 2;
    }
    #shop_search.shop_search_revealed { display: block; }

    /* The field sits inside the bar's side padding here, so the magnifier moves in by the same amount. */
    #shop_search::before { left: calc(var(--content-padding) + 1.2rem); }
    #shop_search::after { left: calc(var(--content-padding) + 1.2rem + 12px); }

    .shop_search_input {
        background: rgba(255, 255, 255, 0.14);
    }

    /* The list continues the field directly: same width, and it starts at the field's lower edge, not at the
       bottom of the bar's padding. */
    .shop_search_dropdown {
        top: calc(100% - 0.8rem);
        left: var(--content-padding);
        right: var(--content-padding);
    }
}


/* ==========================================================================
   38. SHOP — ADVANCED FILTER BAR (Sprint 3 Step 3)
   ========================================================================== */

/* Category pills row */
/* NOTE: All pill rules are prefixed with #content to beat the global #content button rule (specificity 101). */
#content .shop_category_pills {
    margin: 1rem 0 1.2rem;
}
#content .shop_category_pills h2 { display: none; }

#content .shop_category_pill {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    margin: 0 0.6rem 0.6rem 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    color: var(--color-text);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.3;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
#content .shop_category_pill:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-text-secondary, #555);
    opacity: 1;
}
#content .shop_category_pill.active {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-text-inverse);
}

/* Controls row */
.shop_filter_controls {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1rem;
}

.shop_filter_label {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-secondary, #555);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Dual-handle price slider — canonical dual-range pattern:
     .shop_price_slider_track      wrapper, 28px tall for thumb room, relative
         .shop_price_slider_bar    absolute, top:12, left/right:10, height:4 (gray, inset by thumb radius)
             .shop_price_slider_range  absolute child of bar, colored portion (between thumbs)
         input.min / input.max     THIN (4px), top:12 (coincident with bar), left:10 right:10 (inset)
   Inputs match the bar geometry exactly. Thumbs use negative margin-top to overflow vertically
   and end up centered on the thin track — which is also the bar's center. Thumb centers at
   horizontal extremes coincide with the bar's left/right edges, so the colored range (child
   of the bar) can never protrude past the thumb centers.
*/
.shop_price_slider {
    position: relative;
    flex: 1 1 240px;
    min-width: min(240px, 100%);
}

.shop_price_slider_labels {
    font-size: 1.3rem;
    color: var(--color-text);
    margin-bottom: 0.6rem;
}
.shop_price_slider_label_sep {
    margin: 0 0.4rem;
    color: var(--color-text-secondary, #555);
}

.shop_price_slider_track {
    position: relative;
    height: 28px;
    overflow: visible;
}

/* Gray background bar — inset by thumb radius on both sides */
.shop_price_slider_bar {
    position: absolute;
    top: 12px;
    left: 10px;
    right: 10px;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
}

/* Colored "selected" portion — child of .shop_price_slider_bar so % are of the inset area */
.shop_price_slider_range {
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--color-text);
    border-radius: 2px;
    pointer-events: none;
    /* left + width set by JS as percentages of the parent bar */
}

/* Range inputs — THIN (4px, matches bar), aligned with bar position. */
.shop_price_slider_input {
    position: absolute;
    top: 12px;
    left: 10px;
    width: calc(100% - 20px);
    height: 4px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    padding: 0;
    border: none;
    z-index: 2;
}

/* WebKit: track matches input height, thumb overflows via negative margin-top. */
.shop_price_slider_input::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
    border: none;
}
.shop_price_slider_input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    margin-top: -8px;           /* center 20px thumb on 4px track → -(20-4)/2 = -8 */
    border-radius: 50%;
    background: var(--color-bg);
    border: 2px solid var(--color-text);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Firefox: auto-centers thumb on the track vertically. */
.shop_price_slider_input::-moz-range-track {
    height: 4px;
    background: transparent;
    border: none;
}
.shop_price_slider_input::-moz-range-thumb {
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 2px solid var(--color-text);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* In-stock toggle */
.shop_instock_toggle {
    display: inline-block;
    cursor: pointer;
    user-select: none;
    font-size: 1.3rem;
    white-space: nowrap;
}
.shop_instock_toggle_input {
    margin-right: 0.6rem;
    vertical-align: middle;
    transform: scale(1.2);
    cursor: pointer;
}
.shop_instock_toggle_label {
    vertical-align: middle;
    color: var(--color-text);
}

/* Reset button */
.shop_filter_reset {
    background: none;
    border: none;
    color: var(--color-text-secondary, #555);
    font-size: 1.3rem;
    font-family: inherit;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    text-decoration: underline;
    white-space: nowrap;
}
.shop_filter_reset:hover { color: var(--color-text, #222); }

/* Product count label */
.shop_filter_count {
    font-size: 1.3rem;
    color: var(--color-text-secondary, #555);
    white-space: nowrap;
}

/* Responsive — stack controls on narrow screens */
@media (max-width: 50em) {

    /* The controls take the whole row of the filter block and stack without wrapping: in a wrapping
       column the items stretch only to the widest of them, and the slider's 240px basis is its height. */
    .shop_filter_controls {
        flex: 1 1 100%;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 1.2rem;
    }

    .shop_price_slider {
        flex: none;
        min-width: 0;
        width: 100%;
    }

    .shop_category_pill {
        padding: 0.5rem 1rem;
        font-size: 1.2rem;
    }
}


/* ==========================================================================
   39. SHOP — RECENTLY VIEWED (Sprint 3 Step 4)
   Uses the generic image_lane component (drag + momentum + prev/next buttons).
   ========================================================================== */

.shop_recently_viewed {
    margin: 3rem 0;
}

/* Reserve vertical space while JS is deciding whether to populate —
   returning visitors see the strip appear into the reserved space with no jump,
   first-time visitors see a brief empty block that collapses once JS removes .loading. */
.shop_recently_viewed.loading {
    min-height: 280px;
}

/* Once loading is done: if JS populated nothing, the container is empty → hide it completely. */
.shop_recently_viewed:empty:not(.loading) {
    display: none;
    min-height: 0;
    margin: 0;
}

/* image_lane base layout — scoped to .shop_recently_viewed so it does not leak. */
.shop_recently_viewed .image_lane {
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.shop_recently_viewed .image_lane_header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.shop_recently_viewed .image_lane_caption {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
}

.shop_recently_viewed .image_lane_nav {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.8rem;
    align-items: center;
}

.shop_recently_viewed .image_lane_content {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 1.6rem;
    padding: 2px;
    margin: -2px;
    user-select: none;
    cursor: grab;
}
.shop_recently_viewed .image_lane_content::-webkit-scrollbar { display: none; }

.shop_recently_viewed .image_lane_content.no-scroll { cursor: default; }

.shop_recently_viewed .image_lane_content.is-dragging {
    scroll-behavior: auto;
    cursor: grabbing;
}

/* Fixed-width cards — no stretching when there are only 1-2 items. */
.shop_recently_viewed .image_lane_card {
    flex: 0 0 160px;
    position: relative;
    min-width: 0;
    box-sizing: border-box;
    display: block;
    text-decoration: none;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--color-bg);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
/* Keyboard focus inside the card: the lane clips everything outside its 2 px padding, so the site's outer ring would
   be cut on three sides. Same colours as the site ring, drawn inward (the class count beats the site rule). */
#content .shop_recently_viewed .image_lane_content a.image_lane_card:focus-visible {
    outline: 2px solid #111;
    outline-offset: -4px;
    box-shadow: inset 0 0 0 2px #fff;
}
.shop_recently_viewed .image_lane_card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.shop_recently_viewed .image_lane_card_image_wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--color-bg-alt);
    display: block;
    /* Override FRESH's max-width: 400px — we want cards that fill the 160px slot. */
    max-width: none;
    max-height: none;
}
.shop_recently_viewed .image_lane_card_image_wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Override FRESH's max-width: 400px on the img too. */
    max-width: none;
    max-height: none;
}
.shop_recently_viewed .image_lane_card_image_placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    border-bottom: 1px dashed var(--color-border);
}

.shop_recently_viewed .image_lane_card_meta {
    padding: 0.8rem 1rem 1rem;
    height: auto;
    width: auto;
    min-width: 0;
}
.shop_recently_viewed .image_lane_card_meta .caption {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}
.shop_recently_viewed .image_lane_card_meta .price {
    display: block;
    font-size: 1.2rem;
    color: var(--color-text-secondary, #555);
    margin-top: 0.2rem;
}

/* Nav buttons — CSS-only arrows, match UNSHOP's black/white scheme. */
.shop_recently_viewed .image_lane_btn {
    width: 38px;
    height: 38px;
    border: 2px solid var(--color-text);
    border-radius: 50%;
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: background 0.15s ease, color 0.15s ease, opacity 0.2s ease;
    flex-shrink: 0;
}
.shop_recently_viewed .image_lane_btn:hover {
    background: var(--color-text);
    color: var(--color-bg);
    opacity: 1;
}
.shop_recently_viewed .image_lane_btn:focus-visible {
    outline: 2px solid var(--color-accent, #2563eb);
    outline-offset: 2px;
}
.shop_recently_viewed .image_lane_btn[disabled] {
    opacity: 0.25;
    pointer-events: none;
}
.shop_recently_viewed .image_lane_btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    margin-left: -5px;
    margin-top: -4px;
}
.shop_recently_viewed .image_lane_btn_prev::before {
    transform: rotate(-135deg);
    margin-left: -3px;
}
.shop_recently_viewed .image_lane_btn_next::before {
    transform: rotate(45deg);
    margin-left: -6px;
}

@media (prefers-reduced-motion: reduce) {
    .shop_recently_viewed .image_lane_content { scroll-behavior: auto; }
    .shop_recently_viewed .image_lane_btn { transition: none; }
    .shop_recently_viewed .image_lane_card { transition: none; }
}

@media (max-width: 50em) {
    .shop_recently_viewed .image_lane_caption { font-size: 1.6rem; }
    .shop_recently_viewed .image_lane_card { flex: 0 0 140px; }
    .shop_recently_viewed .image_lane_btn { width: 34px; height: 34px; }
}


/* ==========================================================================
   40. SHOP — 404 PAGE (Sprint 3 Step 6)
   ========================================================================== */

#content .shop_404 {
    max-width: 960px;
    margin: 0 auto;
    padding: 4rem 0 2rem;
    text-align: center;
}

#content .shop_404 h1 {
    font-size: 4.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.6rem;
    color: var(--color-text);
}

#content .shop_404 > div[class*="text"],
#content .shop_404 p {
    font-size: 1.7rem;
    line-height: 1.5;
    color: var(--color-text-secondary, #555);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Search form (prominent, centered) */
.shop_search_form_wrap {
    max-width: 600px;
    margin: 0 auto 4rem;
}

.shop_search_form_wrap .shop_search_page_input {
    width: 100%;
    height: 56px;
    padding: 0 2rem;
    border: 2px solid var(--color-text);
    border-radius: 28px;
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 1.7rem;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    text-align: center;
}
.shop_search_form_wrap .shop_search_page_input::placeholder {
    color: var(--color-text-secondary, #555);
    opacity: 0.7;
}
.shop_search_form_wrap .shop_search_page_input:focus {
    border-color: var(--color-accent, #2563eb);
}

/* Featured products section */
.shop_featured_products {
    margin: 5rem 0 3rem;
    text-align: left;
}

.shop_featured_products h2 {
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-text);
}

/* 4-column grid on desktop — fits 8 products in 2 neat rows. */
.shop_featured_grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem;
}

@media (max-width: 68.75em) {
    .shop_featured_grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 50em) {
    #content .shop_404 { padding: 3rem 0 1rem; }
    #content .shop_404 h1 { font-size: 3.6rem; }
    #content .shop_404 p { font-size: 1.5rem; }
    .shop_search_form_wrap .shop_search_page_input { height: 48px; font-size: 1.5rem; }
    .shop_featured_grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 30em) {
    .shop_featured_grid {
        grid-template-columns: 1fr !important;
    }
}

/* Sprint 8 #81 — Cross-sell on cart page */
.shop_cross_sell {
    margin: 5rem 0 3rem;
    text-align: left;
    border-top: 1px solid #e0e0e0;
    padding-top: 4rem;
}

.shop_cross_sell_grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem;
}

@media (max-width: 68.75em) {
    .shop_cross_sell_grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 50em) {
    .shop_cross_sell_grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 30em) {
    .shop_cross_sell_grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   41. SHOP — ADMIN ORDER DETAIL (Sprint 6 Milestone A)
   ========================================================================== */

#admin_shop_order_detail {
    max-width: 1000px;
    margin: 2rem auto;
    color: #222;
    font-size: 1.4rem;
    line-height: 1.5;
}

#admin_shop_order_detail .order_header {
    padding: 1.5rem 2rem;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#admin_shop_order_detail .order_header h1 {
    margin: 0;
    color: #111;
}

#admin_shop_order_detail .status_badge,
#admin_shop_order_detail .payment_badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

#admin_shop_order_detail .status_new        { background: #e0e0e0; color: #444; }
#admin_shop_order_detail .status_confirmed  { background: #fff3cd; color: #7a5c00; }
#admin_shop_order_detail .status_shipped    { background: #cfe2ff; color: #0b3b8c; }
#admin_shop_order_detail .status_completed  { background: #d4edda; color: #1e5e2f; }
#admin_shop_order_detail .status_cancelled  { background: #f8d7da; color: #842029; }

#admin_shop_order_detail .payment_pending   { background: #fff3cd; color: #7a5c00; }
#admin_shop_order_detail .payment_paid      { background: #d4edda; color: #1e5e2f; }
#admin_shop_order_detail .payment_refunded  { background: #e2e3e5; color: #555; }
#admin_shop_order_detail .payment_refund_due { background: #f8d7da; color: #842029; }
#admin_shop_order_detail .payment_void       { background: #e2e3e5; color: #555; }
#admin_shop_order_detail .payment_chargeback { background: #842029; color: #fff; }

/* Delivery status (the goods), shown next to the order status */
#admin_shop_order_detail .delivery_open               { background: #e0e0e0; color: #444; }
#admin_shop_order_detail .delivery_shipped            { background: #cfe2ff; color: #0b3b8c; }
#admin_shop_order_detail .delivery_partially_returned { background: #fde8cc; color: #7a4a00; }
#admin_shop_order_detail .delivery_returned           { background: #f5e6cc; color: #7a4a00; }
#admin_shop_order_detail .order_header .status_badge + .status_badge { margin-left: 0.6rem; }

#admin_shop_order_detail .meta_field_tracking_link { grid-column: 1 / -1; }
#admin_shop_order_detail .tracking_link_value { color: #0b5ed7; text-decoration: none; word-break: break-all; font-family: monospace; font-size: 1.2rem; }
#admin_shop_order_detail .tracking_link_value:hover { text-decoration: underline; }


#admin_shop_order_detail .order_section {
    padding: 1.5rem 2rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    margin-bottom: 1.5rem;
}

#admin_shop_order_detail .order_section h2 {
    color: #111;
    margin: 0 0 1.2rem 0;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #eee;
}

#admin_shop_order_detail .meta_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
}

#admin_shop_order_detail .meta_field {
    display: grid;
    grid-template-columns: 14rem 1fr;
    align-items: baseline;
    gap: 1rem;
    padding: 0.4rem 0;
}

#admin_shop_order_detail .meta_label {
    color: #666;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

#admin_shop_order_detail .meta_value {
    color: #111;
    word-break: break-word;
}

#admin_shop_order_detail .meta_value.payment_badge {
    justify-self: start;
}

/* An e-mail address in an admin list breaks only before its "@" (shop_admin_email_cells.js). */
#admin_data_api .data_api_list .shop_email_part { white-space: nowrap; }
/* On a phone the cell is a flex row (label, value): the address is one item that may shrink beside its label. */
#admin_data_api .data_api_list .shop_email { min-width: 0; }
/* In the order view the address is read and copied whole: each part is one box, so a line breaks only between them
   (before the "@"), never at a hyphen inside; only a part wider than the card breaks inside it. Never cut. */
#admin_shop_order_detail .shop_email_part { display: inline-block; max-width: 100%; overflow-wrap: anywhere; vertical-align: top; }

/* The order's documents one below the other with room between them, all as wide as the widest. */
#admin_shop_order_detail .meta_value.order_documents {
    display: grid;
    grid-template-columns: minmax(0, max-content);
    gap: 0.6rem;
}

#admin_shop_order_detail .meta_value.order_documents .shop_admin_order_document {
    width: 100%;
    text-align: left;
    /* A button does not inherit the page's typeface by itself. */
    font-family: inherit;
}

#admin_shop_order_detail a.meta_value {
    color: #0b5ed7;
    text-decoration: none;
}

#admin_shop_order_detail a.meta_value:hover {
    text-decoration: underline;
}

#admin_shop_order_detail .shipping_address {
    font-style: normal;
    line-height: 1.6;
    color: #222;
}

/* Carrier and tracking number stand apart from the address above them. */
#admin_shop_order_detail .shipping_carrier_wrap,
#admin_shop_order_detail .tracking_number_wrap {
    margin-top: 1.2rem;
}

#admin_shop_order_detail .item_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.3rem;
}

#admin_shop_order_detail .item_table thead th {
    text-align: left;
    padding: 0.8rem 1rem;
    background: #f7f7f7;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
}

#admin_shop_order_detail .item_table tbody td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

#admin_shop_order_detail .item_table tbody tr:last-child td {
    border-bottom: none;
}

#admin_shop_order_detail .item_table th.col_qty,
#admin_shop_order_detail .item_table td.col_qty {
    text-align: right;
    width: 6rem;
}

#admin_shop_order_detail .item_table th.col_price,
#admin_shop_order_detail .item_table td.col_price {
    text-align: right;
    width: 11rem;
    font-variant-numeric: tabular-nums;
}

#admin_shop_order_detail .totals_grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
    margin-left: auto;
    max-width: 36rem;
}

#admin_shop_order_detail .totals_row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    padding: 0.4rem 0;
}

#admin_shop_order_detail .totals_row.grand_total {
    border-top: 2px solid #333;
    padding-top: 0.8rem;
    margin-top: 0.4rem;
    font-size: 1.55rem;
    font-weight: 700;
}

#admin_shop_order_detail .totals_label {
    color: #555;
}

#admin_shop_order_detail .totals_value {
    color: #111;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

#admin_shop_order_detail .order_notes .notes_body p {
    margin: 0 0 0.8rem 0;
    color: #333;
}

#admin_shop_order_detail .order_notes .notes_body p:last-child {
    margin-bottom: 0;
}

#admin_shop_order_detail .action_buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, max-content));
    gap: 1rem;
}

#admin_shop_order_detail .btn_status_change {
    display: inline-block;
    padding: 1rem 1.8rem;
    background: #0b5ed7;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.35rem;
    font-weight: 600;
    text-align: center;
    transition: background 0.15s;
    user-select: none;
}

#admin_shop_order_detail .btn_status_change:hover {
    background: #094baa;
}

#admin_shop_order_detail .admin_soundwalk_access_card {
    margin-top: 1rem;
    padding: 1.4rem;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background: #fafafa;
}
#admin_shop_order_detail .admin_soundwalk_access_card h3 { margin-top: 0; }
#admin_shop_order_detail .admin_soundwalk_code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}
#admin_shop_order_detail .admin_soundwalk_actions { margin-top: 1.2rem; }
#admin_shop_order_detail .btn_soundwalk_support {
    display: inline-block;
    padding: 0.9rem 1.4rem;
    border-radius: 4px;
    background: #0b5ed7;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    user-select: none;
}
#admin_shop_order_detail .btn_soundwalk_support:hover { background: #094baa; }
#admin_shop_order_detail .btn_soundwalk_restart { background: #755200; }
#admin_shop_order_detail .btn_soundwalk_restart:hover { background: #5c4000; }
#admin_shop_order_detail .btn_soundwalk_replace { background: #9d2727; }
#admin_shop_order_detail .btn_soundwalk_replace:hover { background: #7b1e1e; }

#admin_shop_order_detail .empty_state {
    color: #555;
    font-style: italic;
    margin: 0;
}

/* Sprint 6C — returned + partially_refunded status badges */
#admin_shop_order_detail .status_returned            { background: #f5e6cc; color: #7a4a00; }
#admin_shop_order_detail .payment_partially_refunded  { background: #fde8cc; color: #7a4a00; }

/* Sprint 6C — Audit log table */
#admin_shop_order_detail .order_audit_log {
    border-top: 2px solid #ddd;
}
#admin_shop_order_detail .audit_log_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.3rem;
    margin-top: 1rem;
}
#admin_shop_order_detail .audit_log_table thead th {
    text-align: left;
    padding: 0.6rem 0.8rem;
    background: #f4f4f4;
    border-bottom: 2px solid #ccc;
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #555;
}
#admin_shop_order_detail .audit_log_table tbody td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}
#admin_shop_order_detail .audit_date {
    white-space: nowrap;
    color: #666;
    font-size: 1.2rem;
}
#admin_shop_order_detail .audit_action {
    font-weight: 600;
    white-space: nowrap;
}
#admin_shop_order_detail .audit_user {
    color: #555;
    white-space: nowrap;
}
#admin_shop_order_detail .audit_details {
    color: #333;
    word-break: break-word;
}
#admin_shop_order_detail .audit_action_return_partial .audit_action,
#admin_shop_order_detail .audit_action_return_full .audit_action {
    color: #7a4a00;
}
#admin_shop_order_detail .audit_action_status_change .audit_action {
    color: #0b3b8c;
}

@media (max-width: 50em) {
    #admin_shop_order_detail .meta_grid {
        grid-template-columns: 1fr;
    }
    #admin_shop_order_detail .item_table {
        font-size: 1.2rem;
    }
    #admin_shop_order_detail .item_table th,
    #admin_shop_order_detail .item_table td {
        padding: 0.6rem 0.4rem;
    }
    #admin_shop_order_detail .action_buttons {
        grid-template-columns: 1fr;
    }
    #admin_shop_order_detail .audit_log_table {
        font-size: 1.2rem;
    }
    #admin_shop_order_detail .audit_log_table thead th,
    #admin_shop_order_detail .audit_log_table tbody td {
        padding: 0.4rem 0.4rem;
    }
    /* Line items, documents and history stack on a phone: one block per row, each value with its column's name
       (data-label), nothing scrolls sideways. */
    #admin_shop_order_detail :is(.item_table, .audit_log_table) thead { display: none; }
    #admin_shop_order_detail :is(.item_table, .audit_log_table),
    #admin_shop_order_detail :is(.item_table, .audit_log_table) :is(tbody, tr, td) { display: block; width: auto; }
    #admin_shop_order_detail :is(.item_table, .audit_log_table) tr { padding: 0.8rem 0; border-bottom: 1px solid #e3e6ea; }
    #admin_shop_order_detail :is(.item_table, .audit_log_table) tbody tr td:is(td, .col_qty, .col_price) { width: auto; padding: 0.2rem 0; border: 0; text-align: left; }
    #admin_shop_order_detail .item_table td[data-label]::before { content: attr(data-label) ": "; color: #5a616c; }
    #admin_shop_order_detail .item_table td.col_item { font-weight: 600; }
    #admin_shop_order_detail .audit_log_table td { overflow-wrap: anywhere; }
}

/* Initiate return button; the corrections and payment events share its shape */
#admin_shop_order_detail .btn_initiate_return,
#admin_shop_order_detail .btn_take_back,
#admin_shop_order_detail .btn_correct_tracking,
#admin_shop_order_detail .btn_correct_details,
#admin_shop_order_detail .btn_price_reduction,
#admin_shop_order_detail .btn_resend_confirmation,
#admin_shop_order_detail .btn_payment_event {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.7rem 1.6rem;
    background: #7a4a00;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.3rem;
    cursor: pointer;
    text-decoration: none;
}
#admin_shop_order_detail .btn_initiate_return:hover,
#admin_shop_order_detail .btn_take_back:hover {
    background: #5e3800;
}
#admin_shop_order_detail .btn_correct_tracking { background: #3d4650; margin-left: 0.6rem; }
#admin_shop_order_detail .btn_correct_tracking:hover { background: #2a3038; }
#admin_shop_order_detail .btn_correct_details { background: #3d4650; margin-left: 0.6rem; }
#admin_shop_order_detail .btn_correct_details:hover { background: #2a3038; }
#admin_shop_order_detail .btn_price_reduction { background: #3d4650; margin-left: 0.6rem; }
#admin_shop_order_detail .btn_price_reduction:hover { background: #2a3038; }
#admin_shop_order_detail .btn_resend_confirmation { background: #3d4650; margin: 0 0 1rem; }
#admin_shop_order_detail .btn_resend_confirmation:hover { background: #2a3038; }

/* Sent mails of an order, and of a withdrawal in its read view: one line each (date, subject, recipient and state),
   the text opens below. */
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail, .shop_withdrawal_read_more) .order_sent_mails { border-top: 2px solid #ddd; }
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail, .shop_withdrawal_read_more) .order_sent_mail { border-bottom: 1px solid #e5e5e5; padding: 0.6rem 0; }
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail, .shop_withdrawal_read_more) .order_sent_mail summary { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; cursor: pointer; font-size: 1.3rem; }
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail, .shop_withdrawal_read_more) .order_sent_mail_date { color: #555; white-space: nowrap; }
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail, .shop_withdrawal_read_more) .order_sent_mail_subject { font-weight: 600; flex: 1 1 18rem; min-width: 0; overflow-wrap: anywhere; }
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail, .shop_withdrawal_read_more) .order_sent_mail_meta { color: #555; overflow-wrap: anywhere; }
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail, .shop_withdrawal_read_more) .order_sent_mail_failed .order_sent_mail_meta { color: #842029; }
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail, .shop_withdrawal_read_more) .order_sent_mail_body { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 1.3rem; background: #f7f7f7; color: #222; padding: 0.8rem 1rem; margin: 0.6rem 0 0; max-height: 32rem; overflow: auto; }
#admin_shop_order_detail .order_refund_without_document {
    margin: 1rem 0 0;
    padding: 0.8rem 1rem;
    border-left: 4px solid #a33;
    background: #fbeeee;
    font-size: 1.3rem;
}
#admin_shop_order_detail .btn_payment_event { background: #1e5e2f; margin-left: 0.6rem; }
#admin_shop_order_detail .btn_payment_event:hover { background: #14421f; }

/* Sprint 6C — Returned qty column */
#admin_shop_order_detail .col_returned.has_returns {
    color: #7a4a00;
    font-weight: 600;
}

/* Overlay of the order dialogs (return, price reduction, payment). border-box keeps its padding inside the screen;
   otherwise every dialog runs 20 px past the right edge of a phone. */
.shop_return_modal_backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow-y: auto;
    padding: 4rem 1rem;
}
.shop_return_modal {
    position: relative;
    background: #fff;
    max-width: 700px;
    margin: 0 auto;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.shop_return_modal h3 {
    margin: 0 0 2rem;
    font-size: 1.8rem;
    font-weight: 700;
}
.shop_return_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}
.shop_return_table thead th {
    text-align: left;
    padding: 0.5rem 0.6rem;
    background: #f4f4f4;
    border-bottom: 2px solid #ccc;
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #555;
}
.shop_return_table tbody td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.shop_return_table .col_qty {
    text-align: center;
    width: 8rem;
}
.shop_return_qty_select {
    width: 5rem;
    padding: 0.3rem;
    font-size: 1.3rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    text-align: center;
}
.shop_return_preview {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f9f6f0;
    border-left: 4px solid #7a4a00;
    font-size: 1.4rem;
}
.shop_return_preview_label {
    font-weight: 600;
}
.shop_return_preview_amount {
    font-weight: 700;
    color: #7a4a00;
}
.shop_return_field {
    margin-bottom: 1rem;
}
.shop_return_field label {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #555;
}
/* border-box: a date field otherwise adds its padding to the 100 % and runs past the dialog on a phone. */
.shop_return_reason,
.shop_correct_details_modal .shop_return_field input,
.shop_correct_details_modal .shop_return_field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.7rem;
    font-size: 1.3rem;
    border: 1px solid #ccc;
    border-radius: 3px;
}
.shop_correct_details_modal .shop_return_field textarea {
    resize: vertical;
    font-family: inherit;
}
.shop_correct_details_hint {
    font-size: 1.3rem;
    margin: 0 0 1.5rem;
    color: #555;
}
.shop_return_checkbox_label {
    display: inline-block;
    cursor: pointer;
    font-weight: 400;
}
.shop_return_checkbox_label input[type="checkbox"] {
    margin-right: 0.5rem;
    vertical-align: middle;
}
.shop_return_buttons {
    margin-top: 2rem;
    text-align: right;
}
.shop_return_btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 1rem;
}
.shop_return_btn_cancel {
    background: #e0e0e0;
    color: #333;
}
.shop_return_btn_cancel:hover {
    background: #ccc;
}
.shop_return_btn_submit {
    background: #7a4a00;
    color: #fff;
}
.shop_return_btn_submit:hover {
    background: #5e3800;
}

@media (max-width: 37.5em) {
    .shop_return_modal {
        padding: 1.5rem;
    }
    .shop_return_table {
        font-size: 1.2rem;
    }
    .shop_return_buttons {
        text-align: center;
    }
    .shop_return_btn {
        display: block;
        margin: 0.5rem 0;
    }
}

/* ==========================================================================
   43. SHOP — ORDER TRACKING PAGE (Sprint 6 Milestone B2)
   Public-facing token-based tracking. Card layout, no flex, reuses the
   .status_* palette from section 41 (redefined here under the public wrap).
   ========================================================================== */

.shop_order_tracking_wrap {
    max-width: 720px;
    margin: 3rem auto 6rem;
    padding: 0 1.5rem;
    color: #222;
    font-size: 1.4rem;
    line-height: 1.5;
}

.shop_order_tracking_wrap h1 {
    font-size: 2.4rem;
    font-weight: 600;
    margin: 0;
    color: #111;
}

.shop_order_tracking_wrap h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 1.2rem 0;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #eee;
}

.shop_order_tracking_wrap .shop_order_tracking_hint {
    font-size: 1.4rem;
    color: #555;
    margin: 1.2rem 0;
}

.shop_order_access_gate {
    padding: 2.4rem;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.06);
}

.shop_order_access_preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.8rem 0;
    padding: 1.2rem 1.4rem;
    background: #f5f5f5;
}

.shop_order_access_status {
    font-weight: 600;
}

.shop_order_access_date {
    color: #666;
}

.shop_order_access_send,
.shop_order_access_verify,
.shop_order_recovery_request {
    min-height: 4.4rem;
    padding: 0.9rem 1.5rem;
    border: 0;
    border-radius: 2px;
    color: #fff;
    background: #111;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.shop_order_access_send:disabled,
.shop_order_access_verify:disabled,
.shop_order_recovery_request:disabled {
    cursor: wait;
    opacity: 0.6;
}

.shop_order_access_form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem 1rem;
    align-items: end;
    margin-top: 1.6rem;
}

.shop_order_recovery_form,
.shop_order_recovery_verify {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 0.8rem 1rem;
    align-items: end;
    margin: 1.6rem 0;
}

.shop_order_recovery_form label,
.shop_order_recovery_verify label {
    font-weight: 600;
}

.shop_order_recovery_input {
    width: 100%;
    min-height: 4.4rem;
    padding: 0.8rem 1rem;
    border: 1px solid #777;
    border-radius: 2px;
    font: inherit;
}

.shop_order_recovery_honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.shop_order_recovery_verify[hidden] {
    display: none;
}

@media (max-width: 43.75em) {
    .shop_order_recovery_form,
    .shop_order_recovery_verify {
        grid-template-columns: 1fr;
    }
}

/* Side by side each label stands above its field and the button ends the row of fields; left to the grid, label,
   field, label, field and button filled the three columns one after the other. */
@media (min-width: 43.76em) {
    .shop_order_recovery_form > label,
    .shop_order_recovery_verify > label {
        grid-row: 1;
    }
    .shop_order_recovery_form > input,
    .shop_order_recovery_verify > input {
        grid-row: 2;
    }
    .shop_order_recovery_form > button,
    .shop_order_recovery_verify > button {
        grid-row: 2;
        grid-column: 3;
    }
    .shop_order_recovery_verify > label,
    .shop_order_recovery_verify > input {
        grid-column: 1 / 3;
    }
}

.shop_order_access_form label {
    grid-column: 1 / -1;
    font-weight: 600;
}

.shop_order_access_pin {
    width: 100%;
    min-height: 4.4rem;
    padding: 0.8rem 1rem;
    border: 1px solid #777;
    border-radius: 2px;
    font: inherit;
    letter-spacing: 0.3em;
}

.shop_order_access_pin:focus {
    outline: 3px solid rgba(0, 0, 0, 0.2);
    outline-offset: 2px;
}

.shop_order_access_feedback {
    min-height: 2.1rem;
    margin-top: 1rem;
    color: #2d5e39;
}

.shop_order_access_feedback.is_error {
    color: #842029;
}

/* ----- Header (order number + status badge) ----- */
.shop_order_tracking_wrap .shop_order_tracking_header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 1.8rem 2rem;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 2rem;
}

/* ----- Status badge — reuse section 41 palette, re-scoped for the public wrap ----- */
.shop_order_tracking_wrap .status_badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.shop_order_tracking_wrap .status_new        { background: #e0e0e0; color: #444; }
.shop_order_tracking_wrap .status_confirmed  { background: #fff3cd; color: #7a5c00; }
.shop_order_tracking_wrap .status_shipped    { background: #cfe2ff; color: #0b3b8c; }
.shop_order_tracking_wrap .status_completed  { background: #d4edda; color: #1e5e2f; }
.shop_order_tracking_wrap .status_cancelled  { background: #f8d7da; color: #842029; }
.shop_order_tracking_wrap .delivery_shipped            { background: #cfe2ff; color: #0b3b8c; }
.shop_order_tracking_wrap .delivery_partially_returned,
.shop_order_tracking_wrap .delivery_returned           { background: #f5e6cc; color: #7a4a00; }

/* ----- Sections (meta / shipping / items / totals) ----- */
.shop_order_tracking_wrap .shop_order_tracking_section {
    padding: 1.6rem 2rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    margin-bottom: 1.5rem;
}

.shop_order_tracking_wrap .shop_order_tracking_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem 2rem;
}

.shop_order_tracking_wrap .shop_order_tracking_field {
    min-width: 0;
}

.shop_order_tracking_wrap .shop_order_tracking_label {
    font-size: 1.2rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
}

.shop_order_tracking_wrap .shop_order_tracking_value {
    font-size: 1.4rem;
    color: #222;
    word-break: break-word;
}

/* ----- Shipping address block ----- */
.shop_order_tracking_wrap .shop_order_tracking_address {
    font-style: normal;
    line-height: 1.55;
    color: #222;
}

.shop_order_tracking_wrap .shop_order_tracking_number_wrap {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px dashed #ddd;
}

.shop_order_tracking_wrap .shop_order_tracking_number_value {
    font-family: monospace;
    font-size: 1.3rem;
    color: #0b3b8c;
}

/* ----- Items table ----- */
.shop_order_tracking_wrap .shop_order_tracking_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.3rem;
}

.shop_order_tracking_wrap .shop_order_tracking_table thead th {
    text-align: left;
    padding: 0.8rem 0.6rem;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
    color: #555;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.shop_order_tracking_wrap .shop_order_tracking_table tbody td {
    padding: 0.9rem 0.6rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.shop_order_tracking_wrap .shop_order_tracking_table .col_qty {
    text-align: center;
    width: 6rem;
    /* "3 (2 storniert)" stays on one line; the closing bracket never stands alone. */
    white-space: nowrap;
}

.shop_order_tracking_wrap .shop_order_tracking_table .col_price {
    text-align: right;
    width: 10rem;
    white-space: nowrap;
}

.shop_order_tracking_wrap .shop_order_tracking_empty {
    margin: 0;
    padding: 1rem 0;
    color: #888;
    font-style: italic;
}

/* ----- Totals ----- */
.shop_order_tracking_wrap .shop_order_tracking_totals {
    background: #fafafa;
}

.shop_order_tracking_wrap .shop_order_tracking_sum_row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    margin-bottom: 0.4rem;
    font-size: 1.4rem;
    color: #333;
}

.shop_order_tracking_wrap .shop_order_tracking_sum_row span:last-child {
    text-align: right;
}

.shop_order_tracking_wrap .shop_order_tracking_total_row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 1rem;
}

.shop_order_tracking_wrap .shop_order_tracking_total_label {
    font-size: 1.6rem;
    font-weight: 600;
    color: #111;
}

.shop_order_tracking_wrap .shop_order_tracking_total_value {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    text-align: right;
}

.shop_order_tracking_wrap .shop_order_tracking_vat_note {
    margin-top: 0.4rem;
    text-align: right;
    font-size: 1.2rem;
    color: #666;
}

/* ----- Invoice download (Milestone D1) ----- */
.shop_order_tracking_wrap .shop_order_tracking_invoice {
    text-align: center;
}

.shop_order_tracking_wrap .shop_order_tracking_invoice_number {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1rem;
    font-family: monospace;
}

.shop_order_tracking_wrap .shop_order_tracking_invoice_btn {
    display: inline-block;
    padding: 1rem 2.4rem;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.15s;
}

.shop_order_tracking_wrap .shop_order_tracking_invoice_btn:hover {
    background: #333;
}

/* Sprint 6C — Credit note (Stornorechnung) download links on tracking page */
.shop_order_tracking_wrap .shop_order_tracking_credit_notes {
    text-align: left;
}
.shop_order_tracking_wrap .shop_order_tracking_credit_notes .shop_order_tracking_section_title {
    margin-bottom: 1rem;
}
.shop_order_tracking_wrap .shop_order_tracking_credit_note_row {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}
.shop_order_tracking_wrap .shop_order_tracking_credit_note_row:last-child {
    border-bottom: none;
}
.shop_order_tracking_wrap .shop_order_tracking_cn_number {
    font-family: monospace;
    font-size: 1.3rem;
    font-weight: 600;
}
.shop_order_tracking_wrap .shop_order_tracking_cn_amount {
    font-size: 1.3rem;
    color: #7a4a00;
}
.shop_order_tracking_wrap .shop_order_tracking_cn_btn {
    display: inline-block;
    margin-left: 1.5rem;
    padding: 0.4rem 1.2rem;
    background: #7a4a00;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: background 0.15s;
}
.shop_order_tracking_wrap .shop_order_tracking_cn_btn:hover {
    background: #5e3800;
}

/* ----- Responsive ----- */
@media (max-width: 40em) {

    .shop_order_tracking_wrap {
        margin-top: 1.5rem;
        padding: 0 1rem;
    }

    .shop_order_tracking_wrap .shop_order_tracking_header {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.4rem 1.6rem;
    }

    .shop_order_tracking_wrap h1 {
        font-size: 2rem;
    }

    .shop_order_tracking_wrap .shop_order_tracking_grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .shop_order_tracking_wrap .shop_order_tracking_table thead {
        display: none;
    }

    /* #content td frames every table cell; a line of the order has one rule below it, its values none. */
    #content .shop_order_tracking_wrap .shop_order_tracking_table tbody td {
        display: block;
        border: none;
        padding: 0.3rem 0;
    }

    .shop_order_tracking_wrap .shop_order_tracking_table tbody tr {
        display: block;
        border-bottom: 1px solid #eee;
        padding: 1rem 0;
    }

    .shop_order_tracking_wrap .shop_order_tracking_table .col_qty,
    .shop_order_tracking_wrap .shop_order_tracking_table .col_price {
        text-align: left;
        width: auto;
    }

    /* The head is hidden here, so each value says what it is ("Menge: 1", "Einzelpreis: 19,00 €"). */
    .shop_order_tracking_wrap .shop_order_tracking_table tbody td[data-label]::before {
        content: attr(data-label) ": ";
        color: #555;
    }

    .shop_order_tracking_wrap .shop_order_tracking_total_value {
        font-size: 1.8rem;
    }
}


/* ==========================================================================
   44. SHOP — NEWSLETTER FOOTER FORM (Sprint 7 Milestone A)
   ========================================================================== */

.shop_newsletter_signup {
    max-width: 520px;
    margin: 0 auto 2rem;
    padding: 1.8rem 1.6rem;
    color: #222;
    text-align: center;
}

.shop_newsletter_signup_title {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0 0 0.6rem;
    color: #111;
    letter-spacing: 0.02em;
}

.shop_newsletter_signup_hint {
    font-size: 1.3rem;
    color: #555;
    margin: 0 0 1.2rem;
    line-height: 1.4;
}

.shop_newsletter_form {
    margin: 0 0 0.8rem;
}

.shop_newsletter_field_row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
    align-items: stretch;
}

.shop_newsletter_email {
    height: 4.4rem;
    padding: 0 1.2rem;
    font-size: 1.4rem;
    color: #111;
    background: #fff;
    border: 1px solid var(--color-field-border);
    border-radius: 4px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
    font-family: inherit;
    min-width: 0;
}

.shop_newsletter_email:focus {
    border-color: #0b5ed7;
    background: #fafafa;
}

.shop_newsletter_submit_btn {
    min-height: 4.4rem;
    padding: 0.8rem 1.8rem;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}

.shop_newsletter_submit_btn:hover:not(:disabled) {
    background: #333;
}

.shop_newsletter_submit_btn:disabled {
    background: #888;
    cursor: not-allowed;
}

/* ----- Honeypot — invisible to real users, auto-filled by bots ----- */
.shop_newsletter_honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.shop_newsletter_legal_hint {
    font-size: 1.1rem;
    /* WCAG AA on the footer's #fafafa: #888 measured 3.4:1, #6e6e6e 4.8:1. */
    color: #6e6e6e;
    margin: 0.4rem 0 0;
    line-height: 1.4;
}

.shop_newsletter_feedback {
    margin-top: 1rem;
    font-size: 1.3rem;
    min-height: 1.8rem;
}

.shop_newsletter_feedback_ok {
    color: #1e5e2f;
}

.shop_newsletter_feedback_err {
    color: #842029;
}

@media (max-width: 31.25em) {

    .shop_newsletter_field_row {
        grid-template-columns: 1fr;
    }

    .shop_newsletter_submit_btn {
        width: 100%;
    }
}


/* ==========================================================================
   45. SHOP — NEWSLETTER CONFIRMATION PAGE (Sprint 7 Milestone A)
   ========================================================================== */

.shop_newsletter_confirmation_wrap {
    max-width: 620px;
    margin: 4rem auto 6rem;
    padding: 2.4rem 2rem;
    text-align: center;
    color: #222;
    font-size: 1.4rem;
    line-height: 1.5;
}

.shop_newsletter_confirmation_wrap h1 {
    font-size: 2.4rem;
    font-weight: 600;
    margin: 0 0 1.4rem;
    color: #111;
}

.shop_newsletter_confirmation_hint {
    font-size: 1.4rem;
    color: #444;
    margin: 0.8rem 0;
}

.shop_newsletter_confirmation_success h1 {
    color: #1e5e2f;
}

.shop_newsletter_confirmation_error h1 {
    color: #842029;
}


/* ==========================================================================
   46. SHOP — SOCIAL SHARE BUTTONS (Sprint 7 B, restyled Sprint 8)
   Flat inline icons. No backgrounds, no borders. Just clean SVGs in a row.
   ========================================================================== */

.shop_product_share {
    margin: 2rem 0 0.5rem;
    padding: 1.2rem 0;
    border-top: 1px solid #e5e5e5;
}

.shop_product_share_label {
    display: inline-block;
    vertical-align: middle;
    /* WCAG AA on white: #999 measured 2.85:1, #707070 4.9:1. */
    color: #707070;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 1rem;
    margin-right: 1.2rem;
}

.shop_product_share .shop_share_btn {
    display: inline-block;
    vertical-align: middle;
    background: none;
    border: none;
    color: #444;
    cursor: pointer;
    transition: color 0.15s;
    text-decoration: none;
    font-family: inherit;
    padding: 0.4rem;
    margin: 0 0.4rem;
}

.shop_product_share .shop_share_btn svg {
    display: block;
    color: #444;
}

.shop_product_share .shop_share_btn:hover,
.shop_product_share .shop_share_btn:hover svg {
    color: #000;
}

#content .shop_product_share button.shop_share_copy {
    background: none;
    background-color: transparent;
    color: #444;
    padding: 0.4rem;
    border-radius: 0;
    font-size: inherit;
    line-height: inherit;
}

.shop_share_copy_feedback {
    display: inline-block;
    vertical-align: middle;
    font-size: 1.1rem;
    color: #999;
    margin-left: 0.6rem;
    min-height: 1.4rem;
}

.shop_share_copy_feedback_ok {
    color: #1e5e2f;
    font-weight: 600;
}

.shop_share_copy_feedback_err {
    color: #842029;
    font-weight: 600;
}


/* ==========================================================================
   47. SHOP — WISHLIST WIDGET + HEART BUTTON + PAGE (Sprint 7 Milestone C)
   Client-side localStorage wishlist. Three DOM regions:
   1. Top-nav widget (count badge)
   2. Product detail heart button
   3. /merkliste page grid
   ========================================================================== */

/* ----- Top-nav widget — to the LEFT of the language switch (160px) ----- */
.shop_wishlist_widget {
    position: absolute;
    top: 50%;
    right: 230px;
    transform: translateY(-50%);
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.8rem;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 1.2rem;
    transition: background 0.15s;
}

.shop_wishlist_widget:hover {
    background: rgba(255, 255, 255, 0.1);
}

.shop_wishlist_widget .shop_wishlist_icon {
    width: 1.6rem;
    height: 1.6rem;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    /* Filled heart SVG */
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}

.shop_wishlist_widget .shop_wishlist_count {
    font-weight: 600;
    font-size: 1.2rem;
    min-width: 1.2rem;
    text-align: center;
}

/* ----- Product detail heart button ----- */
.shop_product_actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: stretch;
    margin: 1.4rem 0;
}
/* In this row the button and the heart share one height; the general button margin would push it 8px down. */
.shop_product_actions .shop_add_to_cart_detail { margin-top: 0; }

.shop_wishlist_heart_btn {
    width: 4.8rem;
    height: 4.8rem;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='2'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 2.2rem 2.2rem;
}

.shop_wishlist_heart_btn:hover {
    border-color: #e60023;
    transform: translateY(-1px);
}

.shop_wishlist_heart_btn_active {
    /* Filled red heart when product is in the wishlist */
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e60023'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
    border-color: #e60023;
}

/* ----- Wishlist page ----- */
.shop_wishlist_container {
    max-width: 1100px;
    margin: 3rem auto 6rem;
    padding: 0 1.5rem;
    color: #222;
}

.shop_wishlist_page_title {
    font-size: 2.4rem;
    font-weight: 600;
    margin: 0 0 0.8rem;
    color: #111;
}

.shop_wishlist_page_hint {
    font-size: 1.3rem;
    color: #666;
    margin: 0 0 2.4rem;
}

.shop_wishlist_empty {
    text-align: center;
    padding: 4rem 1.5rem;
    border: 1px dashed #ddd;
    border-radius: 4px;
    background: #fafafa;
}

.shop_wishlist_empty_text {
    font-size: 1.5rem;
    color: #555;
    margin: 0 0 1.6rem;
}

.shop_wishlist_empty_cta {
    display: inline-block;
    padding: 1rem 2rem;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.15s;
}

.shop_wishlist_empty_cta:hover {
    background: #333;
}

.shop_wishlist_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.shop_wishlist_card {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s, transform 0.15s;
}

.shop_wishlist_card:hover {
    border-color: #ccc;
}

.shop_wishlist_card_img {
    display: block;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
}

.shop_wishlist_card_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop_wishlist_card_info {
    padding: 1.2rem 1.4rem 1.6rem;
}

.shop_wishlist_card_name {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.shop_wishlist_card_name:hover {
    color: #555;
}

.shop_wishlist_card_price {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 1rem;
}



/* ==========================================================================
   48. SHOP — BACK-IN-STOCK SUBSCRIBE + UNSUBSCRIBE (Sprint 7 Milestone D)
   Subscribe form on sold-out product pages + token-based unsubscribe page.
   ========================================================================== */

.shop_back_in_stock {
    margin: 1.6rem 0;
    padding: 1.6rem 1.8rem;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.shop_back_in_stock_title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 0.6rem;
}

/* On the product page this box heading is an h2 below the product's h1; it keeps the size it has
   always shown there (the #content heading scale), not the general h2 size. */
#content h2.shop_back_in_stock_title {
    font-size: 2rem;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 1rem;
}

.shop_back_in_stock_hint {
    font-size: 1.3rem;
    color: #555;
    margin: 0 0 1.2rem;
    line-height: 1.4;
}

.shop_back_in_stock_form {
    margin: 0;
}

.shop_back_in_stock_field_row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
}

.shop_back_in_stock_email {
    height: 4.4rem;
    padding: 0 1.2rem;
    font-size: 1.4rem;
    color: #111;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
    min-width: 0;
    transition: border-color 0.15s;
}

.shop_back_in_stock_email:focus {
    border-color: #0b5ed7;
}

.shop_back_in_stock_submit_btn {
    min-height: 4.4rem;
    padding: 0.8rem 1.8rem;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}

.shop_back_in_stock_submit_btn:hover:not(:disabled) {
    background: #333;
}

.shop_back_in_stock_submit_btn:disabled {
    background: #888;
    cursor: not-allowed;
}

.shop_back_in_stock_honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.shop_back_in_stock_feedback {
    margin-top: 0.8rem;
    font-size: 1.3rem;
    min-height: 1.6rem;
}

.shop_back_in_stock_feedback_ok {
    color: #1e5e2f;
}

.shop_back_in_stock_feedback_err {
    color: #842029;
}

@media (max-width: 31.25em) {

    .shop_back_in_stock_field_row {
        grid-template-columns: 1fr;
    }

    .shop_back_in_stock_submit_btn {
        width: 100%;
    }
}

/* ----- Unsubscribe confirmation page ----- */
.shop_back_in_stock_unsubscribe_wrap {
    max-width: 620px;
    margin: 4rem auto 6rem;
    padding: 2.4rem 2rem;
    text-align: center;
    color: #222;
    font-size: 1.4rem;
    line-height: 1.5;
}

.shop_back_in_stock_unsubscribe_wrap h1 {
    font-size: 2.4rem;
    font-weight: 600;
    margin: 0 0 1.4rem;
    color: #111;
}

.shop_back_in_stock_unsubscribe_hint {
    font-size: 1.4rem;
    color: #444;
    margin: 0.8rem 0;
}

.shop_back_in_stock_unsubscribe_success h1 {
    color: #1e5e2f;
}

.shop_back_in_stock_unsubscribe_error h1 {
    color: #842029;
}


/* ==========================================================================
   UN — DESIGN TOKENS EXTEND
   Keeps existing --color-primary (#1a1a1a) + --color-accent (#2563eb).
   Adds layout/motion tokens for the home page, menu and card refinements.
   ========================================================================== */

:root {
    --un-full-bleed: max(var(--content-padding), calc(50vw - var(--content-max-width) / 2 + var(--content-padding)));
    --un-section-y: clamp(4.8rem, 3rem + 3.5vw, 8.8rem);
    --un-radius: 10px;
    --un-radius-lg: 18px;
    --un-shadow-xs: 0 1px 2px rgba(20, 20, 20, 0.05);
    --un-shadow-sm: 0 2px 8px rgba(20, 20, 20, 0.06);
    --un-shadow-md: 0 8px 24px rgba(20, 20, 20, 0.08), 0 2px 6px rgba(20, 20, 20, 0.04);
    --un-shadow-lift: 0 16px 40px rgba(20, 20, 20, 0.12), 0 4px 12px rgba(20, 20, 20, 0.06);
    --un-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --un-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --un-duration: 320ms;
    --un-duration-fast: 180ms;
    --un-tint: rgba(20, 20, 20, 0.04);
}


/* ==========================================================================
   UN — NAVIGATION POLISH
   Keeps existing dark top-bar. Centers the overlay links, adds letter-spacing
   hover + legal links row. Borrows the UX pattern validated on test.buch-villa.de.
   ========================================================================== */

/* Navigation links: centered, heading-weight, micro-interaction on hover.
   UNSHOP nav renders flat: #navigation_links > a[.link] (no <li> wrappers). */
#navigation_links {
    padding: 3rem var(--content-padding) 1.5rem;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

#navigation_links > a,
#navigation_links > .link,
#navigation .link_collection_wrapper > a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    height: var(--nav-link-height);
    line-height: var(--nav-link-height);
    color: var(--nav-link-color);
    font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem);
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    transition: letter-spacing var(--un-duration) var(--un-ease), color var(--un-duration-fast) var(--un-ease);
    position: relative;
}

#navigation_links > a::after,
#navigation_links > .link:not(#static_btn_close_menu)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(var(--nav-link-height) / 2 - 1.8rem);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 28px;
    height: 2px;
    background: var(--color-accent);
    transition: transform var(--un-duration) var(--un-ease);
}

#navigation_links > a:hover,
#navigation_links > .link:hover,
#navigation .link_collection_wrapper > a:hover {
    letter-spacing: 0.06em;
    background: transparent;
    color: var(--color-primary);
}

#navigation_links > a:hover::after,
#navigation_links > .link:not(#static_btn_close_menu):hover::after,
#navigation_links > a.active::after,
#navigation_links > .link.active::after {
    transform: translateX(-50%) scaleX(1);
}

#navigation_links > a.active,
#navigation_links > .link.active {
    color: var(--color-primary);
}

/* Close-menu button — subtle caption pinned at the bottom of the overlay. */
#static_btn_close_menu {
    cursor: pointer;
    display: block;
    width: 100%;
    max-width: 640px;
    margin: 3rem auto 0;
    padding: 1.6rem var(--content-padding);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    text-align: center;
    border-top: 1px solid var(--color-border);
    background: transparent;
    transition: color var(--un-duration-fast) var(--un-ease);
}
#static_btn_close_menu:hover { color: var(--color-primary); }

/* Hamburger polish — slightly bolder bars on the dark top. */
#static_btn_nav::before,
#static_btn_nav::after {
    height: 2px;
    background-color: #fff;
    border-radius: 1px;
}


/* ==========================================================================
   UN — SHARED BUTTONS
   Primary = filled dark; Ghost = bordered on light bg; Accent = blue.
   ========================================================================== */

.un_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.2rem 2.4rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    background: transparent;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--un-duration) var(--un-ease);
}
.un_btn_primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.un_btn_primary:hover {
    background: #000;
    border-color: #000;
    text-decoration: none;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--un-shadow-md);
}
#content .un_btn { text-decoration: none; }
#content .un_btn:hover { text-decoration: none; }


/* ==========================================================================
   UN — SHARED SECTION
   ========================================================================== */

.un_section {
    position: relative;
    padding: var(--un-section-y) 0;
}

.un_section + .un_section { padding-top: 0; }


#content .un_section_title {
    font-family: inherit;
    font-size: clamp(2.8rem, 2rem + 2.5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 1.2rem;
    color: var(--color-primary);
}


.un_section_head { margin-bottom: 3.2rem; }


/* ==========================================================================
   UN — HOME (professional museum-shop homepage)
   Full-bleed sections on the home only. Generous padding. No catalog gimmicks.
   ========================================================================== */

:root {
    --un-home-max: 1440px;
    --un-home-pad: clamp(2rem, 4vw, 5.6rem);
    --un-section-y: clamp(6rem, 8vw, 10rem);
}

/* Scope full-bleed only to the home page. */
body:has(.un_home) #content {
    max-width: none !important;
    padding: 0 !important;
}
.un_home { padding: 0 !important; }
.un_home .content_block { padding: 0; }

.un_home > section {
    padding-left: var(--un-home-pad);
    padding-right: var(--un-home-pad);
}

/* Each home section spans the full viewport; inner content is max-width constrained. */
.un_home > .content_block > section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
    padding: var(--un-section-y) var(--un-home-pad);
}

/* Shared section header (title + right-aligned "view all" link). */
.un_section_header {
    max-width: var(--un-home-max);
    margin: 0 auto clamp(3rem, 4vw, 4.8rem);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

#content .un_section_title {
    font-family: inherit;
    font-size: clamp(2.4rem, 1.6rem + 1.8vw, 3.8rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--color-primary);
    margin: 0;
    text-wrap: balance;
}

#content .un_text_link {
    color: var(--color-primary);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: color 240ms var(--un-ease), border-color 240ms var(--un-ease);
}
#content .un_text_link:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    text-decoration: none;
}


/* ==========================================================================
   UN — HERO (split: copy left, featured product right)
   ========================================================================== */

.un_hero {
    background: #0a0a0a;
    color: #fff;
    padding-top: clamp(5rem, 7vw, 9rem) !important;
    padding-bottom: clamp(5rem, 7vw, 9rem) !important;
}

.un_hero_grid {
    max-width: var(--un-home-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(3rem, 5vw, 7rem);
    align-items: center;
}

.un_hero_copy {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    max-width: 52ch;
}

.un_hero_eyebrow {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    width: fit-content;
    max-width: 100%;
}

#content .un_hero_title {
    font-family: inherit;
    font-size: clamp(3.2rem, 2rem + 3.2vw, 5.6rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.025em;
    color: #fff;
    margin: 0;
    text-wrap: balance;
}

.un_hero_lede {
    font-size: clamp(1.55rem, 1.2rem + 0.5vw, 1.85rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.75);
    margin: 0.4rem 0 0;
    max-width: 52ch;
}

.un_hero_cta {
    display: flex;
    align-items: center;
    gap: 2rem 2.8rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
}

#content .un_hero_cta .un_btn_primary {
    background: #fff;
    color: #0a0a0a;
    border: 1.5px solid #fff;
}
#content .un_hero_cta .un_btn_primary:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}
#content .un_hero_cta .un_text_link {
    color: rgba(255, 255, 255, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.25);
}
#content .un_hero_cta .un_text_link:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* Right column — product visual */
.un_hero_visual {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.2);
}
.un_hero_visual picture { display: contents; }
.un_hero_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
#content .un_hero_caption {
    position: absolute;
    left: 1.6rem;
    right: 1.6rem;
    bottom: 1.6rem;
    padding: 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background: rgba(10, 10, 10, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    text-decoration: none;
    transition: background 240ms var(--un-ease);
}
#content .un_hero_caption:hover { background: #0a0a0a; text-decoration: none; color: #fff; }

.un_hero_caption_eyebrow {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}
.un_hero_caption_title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}
.un_hero_caption_link {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.4rem;
}

@media (max-width: 56.25em) {
    .un_hero_grid { grid-template-columns: 1fr; gap: 3.2rem; }
    .un_hero_visual { aspect-ratio: 1 / 1; max-width: 520px; }
}


/* ==========================================================================
   UN — CATEGORY GRID
   ========================================================================== */

.un_categories { background: var(--color-bg); }

.un_categories_grid {
    max-width: var(--un-home-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.6rem, 2.4vw, 3rem);
}
@media (max-width: 56.25em) {
    .un_categories_grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 33.75em) {
    .un_categories_grid { grid-template-columns: 1fr; }
}

#content .un_cat_card {
    display: block;
    text-decoration: none;
    color: var(--color-primary);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 260ms var(--un-ease), box-shadow 260ms var(--un-ease), border-color 260ms var(--un-ease);
}
/* Same lift and shadow as the product cards (.shop_product_card:hover), and no border change. */
#content .un_cat_card:hover {
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.un_cat_card_image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eeeae2;
}
.un_cat_card_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 480ms var(--un-ease);
}
#content .un_cat_card:hover .un_cat_card_image img { transform: scale(1.04); }

.un_cat_card_meta {
    padding: 1.6rem 1.8rem 1.8rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

#content .un_cat_card_name {
    font-family: inherit;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--color-primary);
    margin: 0;
}
.un_cat_card_count {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    white-space: nowrap;
}


/* ==========================================================================
   UN — FEATURED PRODUCTS GRID (4-col on desktop, reuses product_card markup)
   ========================================================================== */

.un_featured { background: var(--color-bg); }

.un_featured_grid {
    max-width: var(--un-home-max);
    margin: 0 auto;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.6rem, 2.4vw, 2.4rem);
}
@media (max-width: 67.5em) {
    .un_featured_grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 48.75em) {
    .un_featured_grid { grid-template-columns: repeat(2, 1fr); }
}


/* ==========================================================================
   UN — ABOUT (editorial split: image + text)
   ========================================================================== */

.un_about {
    background: #f5f1ea;
    color: var(--color-primary);
}

.un_about_grid {
    max-width: var(--un-home-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(3rem, 5vw, 7rem);
    align-items: center;
}

.un_about_image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    display: block;
}

.un_about_copy {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    max-width: 56ch;
}

.un_about_eyebrow {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(10, 10, 10, 0.15);
    width: fit-content;
    max-width: 100%;
}

#content .un_about .un_section_title { color: var(--color-primary); }

.un_about_body {
    font-size: clamp(1.5rem, 1.2rem + 0.4vw, 1.7rem);
    line-height: 1.65;
    color: #2a2a2a;
    margin: 0;
}

.un_about_copy .un_text_link { margin-top: 0.8rem; width: fit-content; }

@media (max-width: 56.25em) {
    .un_about_grid { grid-template-columns: 1fr; gap: 3rem; }
    .un_about_image { aspect-ratio: 16 / 10; max-width: 640px; }
}


/* ==========================================================================
   UN — PROMISES (3 clean service cards)
   ========================================================================== */

.un_promises { background: var(--color-bg); }

.un_promises_grid {
    max-width: var(--un-home-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 3vw, 3.6rem);
    padding-top: clamp(3rem, 5vw, 6rem);
    border-top: 1px solid var(--color-border);
}
@media (max-width: 48.75em) {
    .un_promises_grid { grid-template-columns: 1fr; gap: 2.4rem; padding-top: 3rem; }
}

.un_promise {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-left: 1.6rem;
    border-left: 2px solid var(--color-primary);
}

#content .un_promise_title {
    font-family: inherit;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--color-primary);
    margin: 0;
}

.un_promise_body {
    font-size: 1.5rem;
    line-height: 1.55;
    color: var(--color-text-secondary);
    margin: 0;
    max-width: 40ch;
}


/* ==========================================================================
   UN — RECENTLY VIEWED (quiet closing lane)
   ========================================================================== */

.un_recent {
    background: var(--color-bg);
    padding-top: 0 !important;
    padding-bottom: var(--un-section-y) !important;
}
.un_recent .shop_recently_viewed {
    max-width: var(--un-home-max);
    margin: 0 auto;
}


/* ==========================================================================
   UN — PRODUCT CARD REFINEMENTS (site-wide)
   ========================================================================== */

.shop_product_card {
    border-radius: 4px;
    transition: transform 260ms var(--un-ease), box-shadow 260ms var(--un-ease);
}
.shop_product_card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.shop_product_card .shop_product_image {
    aspect-ratio: 1 / 1;
    background: #eeeae2;
}
.shop_product_card .shop_product_image img {
    transition: transform 480ms var(--un-ease);
}
.shop_product_card:hover .shop_product_image img { transform: scale(1.04); }
.shop_product_card .shop_badge {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1rem;
}


/* ==========================================================================
   UN — REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .un_cat_card, .un_cat_card img,
    .shop_product_card, .shop_product_image img {
        transition: none !important;
    }
    .un_cat_card:hover, .shop_product_card:hover {
        transform: none !important;
    }
}


/* ==========================================================================
   60. SHOP — CUSTOMER ACCOUNTS: REGISTER + CONFIRM (Sprint 8 Phase 1)
   Shares the visual language of the newsletter-signup + newsletter-confirmation
   blocks (labeled inputs, dark primary button, subtle hints). Grid-based layout
   (no flex per project convention).
   ========================================================================== */

.shop_account_register_wrap {
    max-width: 480px;
    margin: 4rem auto 6rem;
    padding: 2rem 1.6rem;
    color: #222;
}

.shop_account_register_title {
    font-size: 2.4rem;
    font-weight: 600;
    margin: 0 0 0.8rem;
    color: #111;
    letter-spacing: 0.01em;
    text-align: center;
}

.shop_account_register_hint {
    font-size: 1.3rem;
    color: #555;
    margin: 0 0 2rem;
    line-height: 1.5;
    text-align: center;
}

.shop_account_register_form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin: 0;
}

.shop_account_field_row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
}

/* Side-by-side first/last name on wider screens. Drops to single column on mobile (<500px). */
.shop_account_name_row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.shop_account_field_col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
}

.shop_account_label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.02em;
}

.shop_account_input {
    height: 4.4rem;
    padding: 0 1.2rem;
    font-size: 1.4rem;
    color: #111;
    background: #fff;
    border: 1px solid var(--color-field-border);
    border-radius: 4px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
    font-family: inherit;
    width: 100%;
    min-width: 0;
}

.shop_account_input:focus {
    border-color: #0b5ed7;
    background: #fafafa;
}

.shop_account_submit_btn {
    /* min-height: a label that wraps on a phone makes the button taller instead of spilling out. */
    min-height: 4.6rem;
    padding: 0.8rem 2rem;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    margin-top: 0.4rem;
    width: 100%;
}

.shop_account_submit_btn:hover:not(:disabled) {
    background: #333;
}

.shop_account_submit_btn:disabled {
    background: #888;
    cursor: not-allowed;
}

/* Honeypot — invisible to real users, auto-filled by bots (same pattern as newsletter). */
.shop_account_honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.shop_account_legal_hint {
    font-size: 1.1rem;
    color: #666;
    margin: 1.2rem 0 0;
    line-height: 1.5;
    text-align: center;
}

.shop_account_register_feedback {
    margin-top: 1rem;
    font-size: 1.3rem;
    min-height: 1.8rem;
    text-align: center;
}

.shop_account_register_feedback_ok {
    color: #1e5e2f;
}

.shop_account_register_feedback_err {
    color: #842029;
}

/* ----- Confirmation landing page (success / error variants) ----- */

.shop_account_confirm_wrap {
    max-width: 620px;
    margin: 4rem auto 6rem;
    padding: 2.4rem 2rem;
    text-align: center;
    color: #222;
    font-size: 1.4rem;
    line-height: 1.5;
}

.shop_account_confirm_wrap h1 {
    font-size: 2.4rem;
    font-weight: 600;
    margin: 0 0 1.4rem;
    color: #111;
}

.shop_account_confirm_hint {
    font-size: 1.4rem;
    color: #444;
    margin: 0.8rem 0;
}

.shop_account_confirm_whoami {
    font-size: 1.3rem;
    color: #555;
    margin: 1.6rem 0 0.4rem;
}

.shop_account_confirm_success h1 {
    color: #1e5e2f;
}

.shop_account_confirm_error h1 {
    color: #842029;
}

.shop_account_confirm_cta {
    display: inline-block;
    margin-top: 2rem;
    padding: 1.2rem 2.4rem;
    background: #111;
    color: #fff !important;
    border-radius: 4px;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none !important;
    transition: background 0.15s;
}

.shop_account_confirm_cta:hover {
    background: #333;
}

@media (max-width: 31.25em) {

    .shop_account_name_row {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   61. SHOP — CUSTOMER LOGIN PAGE (Sprint 8 Phase 2)
   Shares form styles (.shop_account_field_row / .shop_account_label /
   .shop_account_input / .shop_account_submit_btn) with the register page.
   ========================================================================== */

.shop_account_login_wrap {
    max-width: 420px;
    margin: 4rem auto 6rem;
    padding: 2rem 1.6rem;
    color: #222;
}

.shop_account_login_title {
    font-size: 2.4rem;
    font-weight: 600;
    margin: 0 0 0.8rem;
    color: #111;
    text-align: center;
}

.shop_account_login_hint {
    font-size: 1.3rem;
    color: #555;
    margin: 0 0 2rem;
    line-height: 1.5;
    text-align: center;
}

.shop_account_login_form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin: 0;
}

.shop_account_login_feedback {
    margin-top: 1rem;
    font-size: 1.3rem;
    min-height: 1.8rem;
    text-align: center;
}

.shop_account_login_feedback_ok {
    color: #1e5e2f;
}

.shop_account_login_feedback_err {
    color: #842029;
}

.shop_account_login_whoami {
    font-size: 1.3rem;
    color: #444;
    margin: 0.8rem 0 2rem;
    text-align: center;
}

/* Signed-in branch of the sign-in page: one clear way on to the account. */
.shop_account_login_wrap .shop_account_login_account_link {
    display: table;
    margin: 0 auto;
}

.shop_account_login_footer {
    margin-top: 2rem;
    text-align: center;
}

.shop_account_login_link {
    font-size: 1.3rem;
    color: #0b5ed7;
    text-decoration: none;
}

.shop_account_login_link:hover {
    text-decoration: underline;
}


/* ==========================================================================
   62. SHOP — CUSTOMER ACCOUNT NAV WIDGET (Sprint 8 Phase 2)
   Sits in the top nav alongside search / wishlist / mini-cart. Two variants:
   logged-out (single "Sign in" link), logged-in (greeting + sign-out button).
   Absolute positioning matches the other top-nav widgets; `right: 300px` on
   desktop keeps it left of the wishlist widget (which sits at 230px).
   ========================================================================== */

.shop_account_nav_widget {
    position: absolute;
    top: 50%;
    right: 300px;
    transform: translateY(-50%);
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    color: #fff;
}

.shop_account_nav_widget_out {
    /* single-item variant */
    grid-template-columns: auto;
}

#navigation_links .shop_account_mobile_login_link,
#navigation_links .shop_account_mobile_account_link,
#navigation_links .shop_account_mobile_logout_link {
    display: none;
}

/* The menu's sign-out is a button; it reads like the menu's links around it. Only the button's own look is
   reset here: size, weight, colour and centring come from the menu link rule (#navigation_links > .link), which
   `font: inherit` and `text-align: inherit` in this later rule of equal weight used to override. */
#navigation_links .shop_account_mobile_logout_link {
    appearance: none;
    background: none;
    border: 0;
    width: 100%;
    font-family: inherit;
    cursor: pointer;
}

.shop_account_nav_login_link {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    border-radius: 3px;
    transition: background 0.15s;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
}

.shop_account_nav_login_link:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.shop_account_nav_greeting {
    color: #fff;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop_account_nav_logout_btn {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    padding: 0.4rem 0.8rem;
    font-size: 1.1rem;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.15s, border-color 0.15s;
    font-family: inherit;
}

.shop_account_nav_logout_btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
}

.shop_account_nav_logout_btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 50em) {

    .shop_account_nav_widget {
        right: 280px;
    }
}

@media (max-width: 37.5em) {

    /* Below 600px the nav becomes too crowded — hide the widget entirely.
       The menu carries its links instead: Anmelden when signed out, Mein
       Konto and Abmelden when signed in (mirrored by shop_account.js). */
    .shop_account_nav_widget {
        display: none;
    }

    #navigation_links .shop_account_mobile_login_link,
    #navigation_links .shop_account_mobile_account_link,
    #navigation_links .shop_account_mobile_logout_link {
        display: block;
    }
}


/* ==========================================================================
   63. SHOP — CUSTOMER DASHBOARD (Sprint 8 Phase 4)
   /konto + /en/account. Inherits .shop_account_field_row / _label / _input /
   _submit_btn / _name_row from the register page styles above (section 60).
   Adds: section grouping, secondary buttons, address-row split, claim banner,
   orders link with count badge, feedback strips per section.
   ========================================================================== */

.shop_account_dashboard_wrap {
    max-width: 640px;
    margin: 4rem auto 6rem;
    padding: 2rem 1.6rem;
    color: #222;
}

.shop_account_dashboard_title {
    font-size: 2.4rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    color: #111;
    letter-spacing: 0.01em;
}

.shop_account_dashboard_whoami {
    font-size: 1.2rem;
    color: #666;
    margin: 0 0 2rem;
}

.shop_account_dashboard_hint {
    font-size: 1.3rem;
    color: #555;
    line-height: 1.5;
    margin: 0 0 1.6rem;
}

.shop_account_dashboard_login_btn,
.shop_account_orders_login_btn,
.shop_account_orders_shop_link {
    display: inline-block;
    margin: 0.6rem 0;
    padding: 0.9rem 1.6rem;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: background 0.15s;
}

.shop_account_dashboard_login_btn:hover,
.shop_account_orders_login_btn:hover,
.shop_account_orders_shop_link:hover {
    background: #333;
    text-decoration: none;
}

/* These links sit in #content, whose link colour (#content a) outranks a single class and painted
   their text dark on the dark button. */
#content a.shop_account_dashboard_login_btn,
#content a.shop_account_orders_login_btn,
#content a.shop_account_orders_shop_link {
    color: #fff;
}

.shop_account_dashboard_register_link,
.shop_account_orders_back_link {
    display: inline-block;
    /* Padding grows the tap target to at least 24 px; the margin gives the same room back. */
    padding: 0.3rem 0;
    margin: 0.1rem 0 0.7rem;
    font-size: 1.2rem;
    color: #0b5ed7;
    text-decoration: none;
}

.shop_account_dashboard_register_link:hover,
.shop_account_orders_back_link:hover {
    text-decoration: underline;
}

/* Phase 5 stub — banner only fires when guest orders match this email. */
.shop_account_dashboard_claim_banner {
    margin: 0 0 2rem;
    padding: 1.2rem 1.4rem;
    background: #fff8e1;
    border: 1px solid #f0d68a;
    border-radius: 4px;
}

.shop_account_dashboard_claim_text {
    margin: 0;
    font-size: 1.3rem;
    color: #5a3d00;
    line-height: 1.5;
}

.shop_account_dashboard_orders_link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 2.4rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #111;
    background: #fafafa;
    transition: background 0.15s, border-color 0.15s;
}

.shop_account_dashboard_orders_link:hover {
    background: #f1f1f1;
    border-color: #bbb;
    text-decoration: none;
}

.shop_account_dashboard_orders_label {
    font-size: 1.4rem;
    font-weight: 600;
}

.shop_account_dashboard_orders_count {
    font-size: 1.3rem;
    color: #555;
    font-variant-numeric: tabular-nums;
}

.shop_account_dashboard_section {
    margin: 0 0 2.6rem;
    padding: 1.6rem;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    background: #fff;
}

.shop_account_dashboard_section_title {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    color: #111;
}

.shop_account_dashboard_section_hint {
    font-size: 1.2rem;
    color: #666;
    margin: 0 0 1.4rem;
    line-height: 1.5;
}

.shop_account_profile_form,
.shop_account_password_form,
.shop_account_email_request_form,
.shop_account_email_confirm_form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin: 0;
}

.shop_account_field_group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0 0;
    border-top: 1px solid #eee;
}

.shop_account_field_group_title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: #333;
    letter-spacing: 0.01em;
}

.shop_account_field_note {
    font-size: 1.1rem;
    color: #666;
    margin: 0.2rem 0 0;
    line-height: 1.4;
}

/* ZIP + city share a row on wider screens; ZIP is narrower (~5em). */
.shop_account_zipcity_row {
    grid-template-columns: 9rem 1fr;
    gap: 1rem;
}

.shop_account_dashboard_feedback {
    margin-top: 1rem;
    font-size: 1.3rem;
    min-height: 1.8rem;
}

.shop_account_dashboard_feedback_ok  { color: #1e5e2f; }
.shop_account_dashboard_feedback_err { color: #842029; }

.shop_account_dashboard_logout_all_btn {
    background: #842029;
}

.shop_account_dashboard_logout_all_btn:hover:not(:disabled) {
    background: #6a1a21;
}

@media (max-width: 31.25em) {

    .shop_account_zipcity_row,
    .shop_account_name_row {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   64. SHOP — CUSTOMER ORDER HISTORY (Sprint 8 Phase 4)
   /konto-bestellungen + /en/account-orders. Tabular list with link out to
   the existing tracking page (/bestellung-verfolgen/{token}) for full
   details + invoice / credit-note downloads.
   ========================================================================== */

.shop_account_orders_wrap {
    max-width: 880px;
    margin: 4rem auto 6rem;
    padding: 2rem 1.6rem;
    color: #222;
}

.shop_account_orders_title {
    font-size: 2.4rem;
    font-weight: 600;
    margin: 0 0 0.8rem;
    color: #111;
}

.shop_account_orders_hint {
    font-size: 1.3rem;
    color: #555;
    margin: 0 0 1.6rem;
    line-height: 1.5;
}

.shop_account_orders_empty {
    font-size: 1.4rem;
    color: #555;
    margin: 2rem 0;
    padding: 1.6rem;
    background: #fafafa;
    border: 1px dashed #ccc;
    border-radius: 4px;
    text-align: center;
}

.shop_account_orders_table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0 0;
    font-size: 1.3rem;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    overflow: hidden;
}

.shop_account_orders_th {
    text-align: left;
    padding: 1rem 1.2rem;
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #ddd;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.shop_account_orders_th_total,
.shop_account_orders_td_total {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.shop_account_orders_td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #f0f0f0;
    color: #222;
    vertical-align: middle;
}

.shop_account_orders_row:last-child .shop_account_orders_td {
    border-bottom: none;
}

.shop_account_orders_td_number {
    font-weight: 600;
    font-family: monospace;
    color: #111;
}

.shop_account_orders_td_date {
    color: #555;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Status / payment-status colour cues — keep subtle (text colour only, no
   background fills) so the table still reads as a quiet list. */
.shop_account_orders_status_pending,
.shop_account_orders_payment_pending   { color: #876200; }
.shop_account_orders_status_confirmed,
.shop_account_orders_payment_paid      { color: #1e5e2f; }
.shop_account_orders_status_shipped    { color: #0b5ed7; }
.shop_account_orders_status_partially_returned,
.shop_account_orders_status_returned   { color: #7a4a00; }
.shop_account_orders_payment_refund_due,
.shop_account_orders_payment_chargeback { color: #842029; }
.shop_account_orders_payment_void      { color: #555; }
.shop_account_orders_status_completed  { color: #1e5e2f; }
.shop_account_orders_status_cancelled,
.shop_account_orders_payment_refunded  { color: #842029; }
.shop_account_orders_payment_partially_refunded { color: #b08800; }

/* The gap between the two links sits after "Details ansehen": side by side they keep it, and when the cell wraps
   "Vertrag widerrufen" starts at the same left edge as the link above it. */
.shop_account_orders_view_link {
    margin-right: 1.2rem;
    color: #0b5ed7;
    text-decoration: none;
    font-size: 1.2rem;
    white-space: nowrap;
}

.shop_account_orders_view_link:hover {
    text-decoration: underline;
}

/* Above the card-wide details link on a phone, so it stays its own target. */
.shop_account_orders_withdraw_link {
    position: relative;
    z-index: 1;
    display: inline-block;
    color: #0b5ed7;
    font-size: 1.2rem;
    text-decoration: none;
    white-space: nowrap;
}

.shop_account_orders_withdraw_link:hover {
    text-decoration: underline;
}

/* On a phone and a small tablet each order is a card: number and total on top, then date, status and payment with
   their names, and the whole card opens the order (the details link covers it). The table needs about 640 px plus the
   page's gutters, so below 48em it would run past the page and scroll sideways. */
@media (max-width: 48em) {

    .shop_account_orders_table,
    .shop_account_orders_table tbody,
    .shop_account_orders_row,
    .shop_account_orders_td {
        display: block;
    }

    .shop_account_orders_table {
        border: none;
        border-radius: 0;
        background: none;
        overflow: visible;
    }

    .shop_account_orders_table thead {
        display: none;
    }

    .shop_account_orders_row {
        position: relative;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0.4rem 1.2rem;
        margin: 0 0 1rem;
        padding: 1.2rem 1.4rem;
        background: #fff;
        border: 1px solid #e1e1e1;
        border-radius: 4px;
    }

    .shop_account_orders_row:focus-within {
        outline: 2px solid #0b5ed7;
        outline-offset: 2px;
    }

    /* #content td frames every table cell; a card has one frame. */
    #content .shop_account_orders_td {
        padding: 0;
        border: none;
    }

    .shop_account_orders_td_number {
        grid-column: 1;
        grid-row: 1;
        font-size: 1.4rem;
    }

    .shop_account_orders_td_total {
        grid-column: 2;
        grid-row: 1;
        font-weight: 600;
        white-space: nowrap;
    }

    .shop_account_orders_td_date,
    .shop_account_orders_td_status,
    .shop_account_orders_td_payment,
    .shop_account_orders_td_action {
        grid-column: 1 / -1;
    }

    .shop_account_orders_td[data-label]::before {
        content: attr(data-label) ": ";
        color: #555;
    }

    .shop_account_orders_td_action {
        margin-top: 0.4rem;
    }

    .shop_account_orders_view_link::after {
        content: "";
        position: absolute;
        inset: 0;
    }

    .shop_account_orders_view_link:focus {
        outline: none;
    }

    .shop_account_orders_withdraw_link {
        display: block;
        margin: 0.4rem 0 0;
        padding: 0.8rem 0;
    }

    /* Words break between, not inside (an order number at its hyphens). */
    .shop_account_orders_td {
        overflow-wrap: normal;
        word-break: normal;
    }
}


/* ==========================================================================
   65. SHOP — CHECKOUT GUEST→ACCOUNT UPSELL (Sprint 8 Phase 5)
   Rendered below the order-confirmation note when was_guest=true.
   Sits between the totals + "Continue shopping" button.
   ========================================================================== */

.shop_checkout_account_upsell {
    margin: 2rem 0;
    padding: 1.6rem 1.4rem;
    background: #f6f9ff;
    border: 1px solid #c8d8f5;
    border-radius: 4px;
    text-align: center;
}

.shop_checkout_account_upsell h3 {
    margin: 0 0 0.6rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: #0b3d8a;
}

.shop_checkout_account_upsell p {
    margin: 0 0 1rem;
    font-size: 1.3rem;
    line-height: 1.5;
    color: #333;
}

.shop_checkout_account_upsell_email {
    font-size: 1.2rem;
    color: #555;
}

.shop_checkout_account_upsell_email strong {
    font-family: monospace;
    color: #111;
    font-weight: 600;
}

.shop_checkout_account_upsell_hint {
    color: #666;
    font-style: italic;
}

.shop_checkout_account_upsell_btn {
    display: inline-block;
    margin-top: 0.4rem;
    padding: 0.9rem 2rem;
    background: #0b5ed7;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: background 0.15s;
}

.shop_checkout_account_upsell_btn:hover {
    background: #094ab0;
    text-decoration: none;
}

/* #content a (accent colour) outweighs the class above; the button's white text needs the same weight. */
#content a.shop_checkout_account_upsell_btn,
#content a.shop_checkout_account_upsell_btn:hover { color: #fff; }


/* ==========================================================================
   66. SHOP — DASHBOARD CLAIM BUTTON (Sprint 8 Phase 5)
   Lives inside .shop_account_dashboard_claim_banner (already styled). Adds
   an explicit "Link these orders" CTA next to the count text.
   ========================================================================== */

.shop_account_dashboard_claim_btn {
    margin-top: 1rem;
    background: #876200;
}

.shop_account_dashboard_claim_btn:hover:not(:disabled) {
    background: #6a4c00;
}

/* Footer legal-link bar (Impressum/Datenschutz/AGB/Widerruf) — links were running
   together with no spacing. Flex + gap separates them on one line, wraps on mobile. */
#footer .default_footer_link_bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    justify-content: center;
    align-items: center;
}

/* Each legal link is a tap target of at least 24 px (WCAG 2.2, 2.5.8). */
#footer .default_footer_link_bar a {
    min-height: 2.4rem;
    display: inline-flex;
    align-items: center;
}

/* GoBD-export tool in the admin dashboard "Shop" section. The panel deliberately carries NO link_list
   class (that would add the dashboard's per-row bullet + chevron). The container rule is scoped under
   #default_admin_overview_wrapper to win (2,0,0) over admin.css's `#default_admin_overview_wrapper
   :where(...) { all: revert }` (1,0,0) which would otherwise wipe display/padding/border/background.
   Descendant rules stay at (1,1,0) — already beats the revert. HIGGINS root font-size is 10px, so
   rem values here are sized for that base (1.3rem = 13px, etc.). Dark dashboard theme. */
#default_admin_overview_wrapper .dashboard_wrapper.dashboard_wrapper_finance {
    border-color: color-mix(in srgb, var(--hig-accent-interactive) 40%, transparent);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--hig-accent-interactive) 8%, transparent), rgba(255, 255, 255, 0.018) 52%),
        var(--dashboard-card-bg);
    box-shadow: inset 3px 0 0 var(--hig-accent-solid);
}

#default_admin_overview_wrapper .dashboard_wrapper.dashboard_wrapper_finance > .dashboard_heading {
    background: var(--hig-accent-wash);
}

#default_admin_overview_wrapper .dashboard_wrapper.dashboard_wrapper_finance .shop_finance_group {
    position: relative;
    width: auto;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
}

#default_admin_overview_wrapper .dashboard_wrapper.dashboard_wrapper_finance .shop_finance_context {
    margin: 0;
    padding: 1.35rem 1.8rem 0;
    color: var(--hig-accent-interactive);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

#default_admin_overview_wrapper #shop_gobd_panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 1.7rem 1.8rem 1.9rem;
    border: 0;
    border-radius: 0;
    background: transparent;
}

#shop_gobd_panel .shop_gobd_header {
    display: grid;
    grid-template-columns: minmax(20rem, 0.8fr) minmax(28rem, 1.2fr);
    align-items: start;
    gap: 1.2rem 2.4rem;
}

#shop_gobd_panel .shop_gobd_title_wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
}

#shop_gobd_panel .shop_gobd_title {
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: 1.55rem;
    font-weight: 650;
    line-height: 1.3;
}

#shop_gobd_panel .shop_gobd_badge {
    padding: 0.35rem 0.75rem;
    border: 1px solid color-mix(in srgb, var(--hig-accent-interactive) 38%, transparent);
    border-radius: 999px;
    background: var(--hig-accent-wash);
    color: var(--hig-accent-interactive);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#shop_gobd_panel .shop_gobd_hint {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
}

#shop_gobd_panel .shop_gobd_range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 1.8rem;
    max-width: 40rem;
}

#shop_gobd_panel .shop_gobd_field {
    display: grid;
    grid-template-rows: auto auto;
    gap: 0.5rem;
    min-width: 0;
}

#shop_gobd_panel .shop_gobd_field_label {
    font-size: 1.05rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}

/* Date inputs: dark-glass theme (color-scheme dark switches the native calendar
   icon to its dark variant), proportional width, soft accent on focus. */
#shop_gobd_panel .shop_gobd_input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.92);
    font-family: inherit;
    font-size: 1.3rem;
    line-height: 1.3;
    box-sizing: border-box;
    color-scheme: dark;
    transition: border-color 0.12s ease, background 0.12s ease;
}

#shop_gobd_panel .shop_gobd_input:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

#shop_gobd_panel .shop_gobd_input:focus {
    outline: none;
    border-color: var(--hig-accent-interactive);
    background: rgba(255, 255, 255, 0.07);
}

#shop_gobd_panel .shop_gobd_presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

#shop_gobd_panel .shop_gobd_preset {
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    font-size: 1.15rem;
    line-height: 1.25;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

#shop_gobd_panel .shop_gobd_preset:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

#shop_gobd_panel .shop_gobd_download {
    justify-self: start;
    margin-top: 0.3rem;
    padding: 0.9rem 2rem;
    border: 0;
    border-radius: 4px;
    background: var(--hig-accent-solid);
    color: #fff;
    font-family: inherit;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.12s ease;
}

#shop_gobd_panel .shop_gobd_download:hover {
    background: #ca991f;
}

#shop_gobd_panel .shop_gobd_download.is_busy {
    opacity: 0.55;
    pointer-events: none;
}

#shop_gobd_panel .shop_gobd_status {
    min-height: 1.2em;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.65);
}

#shop_gobd_panel .shop_product_accounting,
#shop_gobd_panel .shop_accounting_changes {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    min-width: 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

#shop_gobd_panel .shop_accounting_title {
    margin: 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 1.4rem;
    line-height: 1.35;
}

#shop_gobd_panel .shop_accounting_hint,
#shop_gobd_panel .shop_accounting_empty,
#shop_gobd_panel .shop_accounting_loading,
#shop_gobd_panel .shop_accounting_truncated {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 1.2rem;
    line-height: 1.5;
}

#shop_gobd_panel .shop_accounting_changes_head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

#shop_gobd_panel .shop_accounting_refresh {
    padding: 0.55rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 4px;
    background: transparent;
    color: rgba(255, 255, 255, 0.84);
    font: inherit;
    font-size: 1.15rem;
    cursor: pointer;
}

#shop_gobd_panel .shop_accounting_refresh:hover {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.07);
}

#shop_gobd_panel .shop_accounting_refresh.is_busy {
    opacity: 0.55;
    pointer-events: none;
}

#shop_gobd_panel .shop_accounting_changes_list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
    min-width: 0;
}

#shop_gobd_panel .shop_accounting_change {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
    min-width: 0;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.035);
}

#shop_gobd_panel .shop_accounting_change_head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
}

#shop_gobd_panel .shop_accounting_change_product {
    color: var(--hig-accent-interactive);
    font-size: 1.25rem;
    font-weight: 650;
}

#shop_gobd_panel .shop_accounting_change_meta {
    color: rgba(255, 255, 255, 0.52);
    font-size: 1.05rem;
}

#shop_gobd_panel .shop_accounting_change_fields {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

#shop_gobd_panel .shop_accounting_change_fields li {
    display: grid;
    grid-template-columns: minmax(15rem, 0.8fr) minmax(9rem, 1fr) auto minmax(9rem, 1fr);
    align-items: baseline;
    gap: 0.7rem;
    font-size: 1.15rem;
    line-height: 1.4;
}

#shop_gobd_panel .shop_accounting_change_label {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
}

#shop_gobd_panel .shop_accounting_change_old {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    overflow-wrap: anywhere;
}

#shop_gobd_panel .shop_accounting_change_arrow {
    color: rgba(255, 255, 255, 0.38);
}

#shop_gobd_panel .shop_accounting_change_new {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    overflow-wrap: anywhere;
}

#shop_gobd_panel .shop_accounting_error {
    margin: 0;
    color: #ffb4b4;
    font-size: 1.2rem;
}

@media (max-width: 56.25em) {
    #shop_gobd_panel .shop_gobd_header {
        grid-template-columns: minmax(0, 1fr);
    }

    #shop_gobd_panel .shop_gobd_range {
        grid-template-columns: minmax(0, 1fr);
    }

    #shop_gobd_panel .shop_accounting_change_fields li {
        grid-template-columns: 1fr auto 1fr;
    }

    #shop_gobd_panel .shop_accounting_change_label {
        grid-column: 1 / -1;
    }
}


/* ==========================================================================
   [EXTRACT-TO-CORE] DATA-API GENERIC READ VIEW
   --------------------------------------------------------------------------
   Uniform card styling for the data-api /read context, mirroring
   #admin_shop_order_detail so EVERY item type renders in the same style as the
   order detail. Used by the nackte render_content_item cases (category /
   product / shop_config / customer / ...) via the .admin_data_read wrapper.
   This block is intentionally shop-agnostic and marked for a later clean lift
   into core admin.css — kept stage-local for now (demo, no core marathon).
   ========================================================================== */
.admin_data_read { max-width: 1000px; margin: 2rem auto; color: #222; font-size: 1.4rem; line-height: 1.5; }
.admin_data_read .order_header { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding: 1.5rem 2rem; background: #f7f7f7; border: 1px solid #ddd; border-radius: 4px; margin-bottom: 2rem; }
.admin_data_read .order_header h1 { margin: 0; color: #111; }
.admin_data_read .status_badge { display: inline-block; padding: 0.4rem 1.2rem; border-radius: 20px; font-size: 1.2rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.admin_data_read .status_confirmed { background: #d4edda; color: #1e5e2f; }
.admin_data_read .status_cancelled { background: #f8d7da; color: #842029; }
.admin_data_read .order_section { padding: 1.5rem 2rem; border: 1px solid #ddd; border-radius: 4px; background: #fff; margin-bottom: 1.5rem; }
.admin_data_read .order_section h2 { color: #111; margin: 0 0 1.2rem 0; padding-bottom: 0.6rem; border-bottom: 1px solid #eee; }
/* The headings of every shop read view (order, product, customer, category, ...), one size each. Under #content, so
   they win over the site's page headings (#content h1, #content h2). */
#content :is(#admin_shop_order_detail, .admin_data_read) .order_header h1 { font-size: 2.2rem; font-weight: 600; }
#content :is(#admin_shop_order_detail, .admin_data_read) .order_section h2 { font-size: 1.6rem; font-weight: 600; }
.admin_data_read .meta_grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; }
.admin_data_read .meta_field { display: grid; grid-template-columns: 14rem 1fr; align-items: baseline; gap: 1rem; padding: 0.4rem 0; }
.admin_data_read .meta_label { color: #666; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; }
.admin_data_read .meta_value { color: #111; word-break: break-word; white-space: pre-line; }
.admin_data_read a.meta_value { color: #0b5ed7; text-decoration: none; }
.admin_data_read a.meta_value:hover { text-decoration: underline; }
.admin_data_read .read_images { display: flex; flex-wrap: wrap; gap: 1rem; }
.admin_data_read .read_images img { width: 120px; height: 120px; object-fit: cover; border: 1px solid #ddd; border-radius: 4px; background: #fafafa; }
@media (max-width: 37.5em) {
	.admin_data_read { margin: 1rem; }
	.admin_data_read .order_header { grid-template-columns: 1fr; gap: 1rem; }
	.admin_data_read .meta_grid { grid-template-columns: 1fr; }
	.admin_data_read .meta_field { grid-template-columns: 1fr; gap: 0.2rem; }
}
/* === END [EXTRACT-TO-CORE] DATA-API GENERIC READ VIEW === */

/* === § 356a BGB WITHDRAWAL FORM === */
.shop_withdrawal { max-width: 640px; margin: 0 auto 2rem; }
.shop_withdrawal_title { margin: 0 0 0.5rem; }
/* The title is a plain line on the withdrawal page (the policy's title below it is the page's h1) and the page's h1
   where the form is opened from an order; in both it looks like the site's section heading (h2). */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_withdrawal .shop_withdrawal_title {
    font-family: var(--un-font-body);
    font-size: var(--un-type-h2);
    font-weight: 700;
    font-synthesis: initial;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    hyphens: auto;
    hyphenate-limit-chars: 8 4 4;
    overflow-wrap: anywhere;
    text-wrap: pretty;
    color: var(--un-ink);
    margin-bottom: var(--un-space-2);
}
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .content_block.text_only .shop_withdrawal .shop_withdrawal_title { margin-top: var(--un-space-5); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_withdrawal .shop_withdrawal_title::after { content: none; }
.shop_withdrawal_hint { margin: 0 0 1.25rem; opacity: 0.85; }
.shop_withdrawal_form { display: flex; flex-direction: column; gap: 0.9rem; }
.shop_withdrawal_field { display: flex; flex-direction: column; gap: 0.3rem; }
.shop_withdrawal_label { font-weight: 600; font-size: 1.4rem; }
.shop_withdrawal_field input,
.shop_withdrawal_field textarea { padding: 0.6rem 0.75rem; border: 1px solid #bbb; border-radius: 4px; font: inherit; }
.shop_withdrawal_confirm_row { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 1.4rem; }
.shop_withdrawal_confirm_row input { margin-top: 0.2rem; }
.shop_withdrawal_submit_btn { align-self: flex-start; padding: 0.7rem 1.4rem; cursor: pointer; }
.shop_withdrawal_submit_btn[disabled] { opacity: 0.5; cursor: default; }
.shop_withdrawal_honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.shop_withdrawal_feedback { margin-top: 0.75rem; min-height: 1.2em; }
.shop_withdrawal_feedback_ok { color: #1a7f37; font-weight: 600; }
.shop_withdrawal_feedback_err { color: #b42318; font-weight: 600; }
/* From an order: number and email are fixed, the items are ticked; after sending, where the goods go back. */
.shop_withdrawal_field input[readonly] { background: #f3f3f3; color: #333; }
.shop_withdrawal_items_choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.shop_withdrawal_items_choice legend { padding: 0; margin-bottom: 0.3rem; }
.shop_withdrawal_item { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; font-size: 1.4rem; }
.shop_withdrawal_item label { flex: 1 1 auto; cursor: pointer; }
.shop_withdrawal_item input[type="checkbox"] { width: 1.8rem; height: 1.8rem; margin: 0; flex: 0 0 auto; }
.shop_withdrawal_item_qty { padding: 0.4rem 0.5rem; font: inherit; min-height: 44px; }
.shop_withdrawal_return_address { margin-top: 0.75rem; }
.shop_withdrawal_back { max-width: 640px; margin: 0 auto 1rem; }
.shop_order_tracking_withdraw_link { display: inline-block; padding: 0.6rem 0; }
.shop_order_tracking_return_address { margin: 0.75rem 0 0; }
.shop_order_tracking_return_line { display: block; }
/* === END WITHDRAWAL FORM === */

/* ---- Shop dashboard navigation density ---- */
#default_admin_overview_wrapper .shop_docs_disclosure {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid color-mix(in srgb, var(--hig-text-1) 14%, transparent);
}
#default_admin_overview_wrapper .shop_docs_summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.4rem;
    box-sizing: border-box;
    color: var(--hig-text-1);
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}
#default_admin_overview_wrapper .shop_docs_summary::-webkit-details-marker { display: none; }
#default_admin_overview_wrapper .shop_docs_summary::after { content: '+'; color: var(--hig-text-2); font-size: 1.8rem; line-height: 1; }
#default_admin_overview_wrapper .shop_docs_disclosure[open] .shop_docs_summary::after { content: '-'; }
#default_admin_overview_wrapper .shop_docs_hint { margin: 0 0 1rem; color: var(--hig-text-2); font-size: 1.2rem; line-height: 1.45; }
#default_admin_overview_wrapper .shop_docs_disclosure .link_list { margin-top: 0; }

/* ---- Shop dashboard analytics (Auswertungen) ---- */
#shop_analytics_panel{--hig-chart-c1:#3b82f6;--hig-chart-c2:#10b981;--hig-chart-c3:#f59e0b;--hig-chart-c4:#ef4444;--hig-chart-c5:#8b5cf6;--hig-chart-grid:rgba(255,255,255,.10);--hig-chart-text:#aab3c2}
#shop_analytics_panel .shop_an_intro{max-width:78rem;margin:0 0 1.2em;color:#aab3c2;font-size:1.2rem;line-height:1.5}
#shop_analytics_panel .shop_an_controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.7em 1.1em;margin:.4em 0 1.1em}
#shop_analytics_panel .shop_an_field{display:flex;flex-direction:column;gap:.25em;font-size:12px;color:#aab3c2}
#shop_analytics_panel .shop_an_input{padding:.4em .5em;border:1px solid rgba(255,255,255,.18);border-radius:6px;font:inherit;background:rgba(255,255,255,.06);color:#e7eaf0}
#shop_analytics_panel .shop_an_presets{display:flex;gap:.4em}
#shop_analytics_panel .shop_an_preset{padding:.45em .8em;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:#dfe4ec;border-radius:6px;cursor:pointer;font-size:12px}
#shop_analytics_panel .shop_an_preset:hover{background:rgba(255,255,255,.14)}
#shop_analytics_panel .shop_an_kpis{display:grid;gap:1.1em;margin-bottom:1.3em;transition:opacity .15s}
#shop_analytics_panel .shop_an_kpis.shop_an_loading{opacity:.45}
#shop_analytics_panel .shop_an_group{display:grid;min-width:0;box-sizing:border-box;gap:.9em;padding:1.1em;border:1px solid rgba(255,255,255,.11);border-radius:12px;background:rgba(0,0,0,.10)}
#shop_analytics_panel .shop_an_group_documents{box-shadow:inset 3px 0 0 color-mix(in srgb,var(--hig-accent-interactive) 70%,transparent)}
#shop_analytics_panel .shop_an_group_activity{box-shadow:inset 3px 0 0 color-mix(in srgb,var(--hig-status-success) 62%,transparent)}
#shop_analytics_panel .shop_an_group_head{display:flex;align-items:baseline;justify-content:space-between;gap:.5em 1.5em}
#shop_analytics_panel .shop_an_group_title{margin:0;color:#f3f6fb;font-size:1.35rem;line-height:1.3}
#shop_analytics_panel .shop_an_group_hint{margin:0;color:#9aa4b2;font-size:1.1rem;line-height:1.4;text-align:right}
#shop_analytics_panel .shop_an_group_grid{display:grid;min-width:0;grid-template-columns:minmax(0,1fr);gap:.8em}
#shop_analytics_panel .shop_an_card{min-width:0;box-sizing:border-box;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);border-radius:10px;padding:.85em 1em}
#shop_analytics_panel .shop_an_card_label{font-size:12px;color:#9aa4b2;margin-bottom:.25em}
#shop_analytics_panel .shop_an_card_val{font-size:1.55em;font-weight:700;color:#f3f6fb;line-height:1.1}
#shop_analytics_panel .shop_an_card_delta{font-size:12px;line-height:1.35;margin-top:.45em;min-height:1em;overflow-wrap:anywhere}
#shop_analytics_panel .shop_an_up{color:var(--hig-status-success)}
#shop_analytics_panel .shop_an_down{color:var(--hig-status-error)}
#shop_analytics_panel .shop_an_neutral{color:#9aa4b2}
#shop_analytics_panel .shop_an_charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.1em}
#shop_analytics_panel .shop_an_chart_box{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.10);border-radius:10px;padding:.9em 1.1em 1.1em}
#shop_analytics_panel .shop_an_chart_box.shop_an_chart_wide{grid-column:1 / -1}
#shop_analytics_panel .shop_an_chart_title{margin:0 0 .6em;font-size:13px;font-weight:600;color:#cbd3df}

/* ============================================================================
   Shop dashboard panels — light-theme + WCAG-AA overrides.
   The analytics/GoBD panels + stock alerts were authored dark-only (light text on
   rgba(255,255,255,.x) glass), so on the light admin theme they went near-invisible
   (measured down to 1:1). Dark theme is untouched; these rules add the light
   overrides plus a few both-theme AA fixes (deltas, gold export button, stock text).
   ============================================================================ */

/* Stock & fulfilment — first, prominent operational block in Shop-Auswertungen. */
#default_admin_overview_wrapper .dashboard_wrapper_shop_analytics .shop_stock_overview {
    margin: 0 0 1.8rem;
    padding: 1.5rem 1.7rem 1.7rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background:
        linear-gradient(120deg, color-mix(in srgb, var(--hig-status-warning) 11%, transparent), rgba(255, 255, 255, 0.035) 55%),
        rgba(0, 0, 0, 0.14);
}

#default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alerts_head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

#default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alerts_title_wrap {
    display: grid;
    gap: 0.25rem;
}

#default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alerts_eyebrow {
    color: var(--hig-status-warning);
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alerts_title {
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: 1.65rem;
    line-height: 1.2;
}

#default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alerts_intro {
    max-width: 42rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 1.2rem;
    line-height: 1.45;
    text-align: right;
}

#default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alerts_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

#default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alert {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.35rem 1rem;
    min-height: 6.4rem;
    box-sizing: border-box;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text-color);
}

#default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alert_label {
    color: rgba(255, 255, 255, 0.68);
    font-size: 1.15rem;
    line-height: 1.35;
}

#default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alert_value {
    color: rgba(255, 255, 255, 0.97);
    font-size: 2.1rem;
    line-height: 1;
}

#default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alert_detail {
    grid-column: 1 / -1;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.05rem;
}

#default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alert_ok {
    box-shadow: inset 3px 0 0 color-mix(in srgb, var(--hig-status-success) 58%, transparent);
}

#default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alert_warn {
    border-color: color-mix(in srgb, var(--hig-status-warning) 34%, transparent);
    background: color-mix(in srgb, var(--hig-status-warning) 9%, transparent);
    box-shadow: inset 3px 0 0 var(--hig-status-warning);
}

#default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alert_critical {
    border-color: color-mix(in srgb, var(--hig-status-error) 40%, transparent);
    background: color-mix(in srgb, var(--hig-status-error) 10%, transparent);
    box-shadow: inset 3px 0 0 var(--hig-status-error);
}

#default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alert_muted {
    box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.2);
}

#default_admin_overview_wrapper #shop_stock_alerts .shop_stock_shortfall_list {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
}

@media (max-width: 44.9375em) {
    #default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alerts_head {
        display: grid;
        align-items: start;
    }
    #default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alerts_intro {
        text-align: left;
    }
    #default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alerts_grid {
        grid-template-columns: 1fr;
    }
}

/* Export button on the admin accent: #fff on --hig-accent-solid measures 4.66:1 (dark) /
   5.17:1 (light) — both clear AA, where the former gold sat at 3.34:1 and needed a bespoke
   darkening pair per theme. The token is theme-aware, so one rule now covers both. */
#default_admin_overview_wrapper #shop_gobd_panel .shop_gobd_download { background: var(--hig-accent-solid); }
#default_admin_overview_wrapper #shop_gobd_panel .shop_gobd_download:hover { background: var(--hig-accent-solid-hover); }

/* Chart SVG axis/value text (e.g. "EUR 0") had no theme-aware fill → dark-on-dark in the
   dark theme. Route it through --hig-chart-text (light: #555 via the override below). */
#default_admin_overview_wrapper #shop_analytics_panel svg text { fill: var(--hig-chart-text); }

/* Panel base text colour (theme-aware) so any un-classed label — e.g. a chart status
   name like "returned" — inherits a readable colour instead of a dark default. */
#default_admin_overview_wrapper #shop_analytics_panel { color: var(--hig-chart-text); }

/* Analytics up/down deltas — light greens/reds fail on white. */
:root[data-theme="light"] #shop_analytics_panel .shop_an_up { color: #0a7d47; }
:root[data-theme="light"] #shop_analytics_panel .shop_an_down { color: #c0392b; }
:root[data-theme="light"] #shop_analytics_panel .shop_an_neutral { color: #666; }

/* LIGHT THEME — flip the dark-glass analytics panel to light surfaces + dark text. */
:root[data-theme="light"] #shop_analytics_panel { --hig-chart-text: #555; --hig-chart-grid: rgba(0,0,0,.10); }
:root[data-theme="light"] #shop_analytics_panel .shop_an_intro { color: #555; }
:root[data-theme="light"] #shop_analytics_panel .shop_an_field,
:root[data-theme="light"] #shop_analytics_panel .shop_an_field_label { color: #555; }
:root[data-theme="light"] #shop_analytics_panel .shop_an_input { background: #fff; border-color: #ccc; color: #1a1a1a; color-scheme: light; }
:root[data-theme="light"] #shop_analytics_panel .shop_an_preset { background: #fff; border-color: #ccc; color: #333; }
:root[data-theme="light"] #shop_analytics_panel .shop_an_preset:hover { background: #f0f0f0; }
:root[data-theme="light"] #shop_analytics_panel .shop_an_group { background: #f7f8fa; border-color: #dfe3e8; }
:root[data-theme="light"] #shop_analytics_panel .shop_an_group_title { color: #1a1a1a; }
:root[data-theme="light"] #shop_analytics_panel .shop_an_group_hint { color: #666; }
:root[data-theme="light"] #shop_analytics_panel .shop_an_card { background: #fff; border-color: #e0e0e0; }
:root[data-theme="light"] #shop_analytics_panel .shop_an_card_label { color: #555; }
:root[data-theme="light"] #shop_analytics_panel .shop_an_card_val { color: #1a1a1a; }
:root[data-theme="light"] #shop_analytics_panel .shop_an_chart_box { background: #fafafa; border-color: #e0e0e0; }
:root[data-theme="light"] #shop_analytics_panel .shop_an_chart_title { color: #444; }

/* LIGHT THEME — operational stock strip. */
:root[data-theme="light"] #default_admin_overview_wrapper .dashboard_wrapper_shop_analytics .shop_stock_overview { background: linear-gradient(120deg, #fff8eb, #fff 58%); border-color: #e8d4ae; }
:root[data-theme="light"] #default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alerts_eyebrow { color: #9a5700; }
:root[data-theme="light"] #default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alerts_title { color: #211b12; }
:root[data-theme="light"] #default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alerts_intro { color: #625b50; }
:root[data-theme="light"] #default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alert { background: rgba(255,255,255,.82); border-color: #ddd4c5; }
:root[data-theme="light"] #default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alert_label { color: #5e574c; }
:root[data-theme="light"] #default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alert_value { color: #211b12; }
:root[data-theme="light"] #default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alert_detail { color: #756d61; }
:root[data-theme="light"] #default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alert_warn { background: #fff4de; border-color: #dfbd82; }
:root[data-theme="light"] #default_admin_overview_wrapper #shop_stock_alerts .shop_stock_alert_critical { background: #fff0f0; border-color: #e5aaaa; }

/* LIGHT THEME — GoBD export panel. */
/* No light-theme block for the finance section any more: it is tinted with --hig-accent-*,
   which already resolves per theme. A second hard-coded set here would be a second source of
   truth for the same surface — exactly what the palette tokens exist to prevent. */
:root[data-theme="light"] #default_admin_overview_wrapper #shop_gobd_panel { background: transparent; border-color: transparent; }
:root[data-theme="light"] #shop_gobd_panel .shop_gobd_title { color: var(--hig-text-1); }
/* No light-theme badge override: the badge is tinted with --hig-accent-* like the rest of the
   section, and those tokens already resolve per theme. */
:root[data-theme="light"] #shop_gobd_panel .shop_gobd_hint { color: #555; }
:root[data-theme="light"] #shop_gobd_panel .shop_gobd_field_label { color: #555; }
:root[data-theme="light"] #shop_gobd_panel .shop_gobd_status { color: #555; }
:root[data-theme="light"] #shop_gobd_panel .shop_gobd_input { background: #fff; border-color: #ccc; color: #1a1a1a; color-scheme: light; }
:root[data-theme="light"] #shop_gobd_panel .shop_gobd_preset { border-color: #ccc; color: #333; }
:root[data-theme="light"] #shop_gobd_panel .shop_gobd_preset:hover { background: #f0f0f0; color: #111; border-color: #999; }
:root[data-theme="light"] #shop_gobd_panel .shop_product_accounting,
:root[data-theme="light"] #shop_gobd_panel .shop_accounting_changes { border-top-color: #ddd; }
:root[data-theme="light"] #shop_gobd_panel .shop_accounting_title { color: var(--hig-text-1); }
:root[data-theme="light"] #shop_gobd_panel .shop_accounting_hint,
:root[data-theme="light"] #shop_gobd_panel .shop_accounting_empty,
:root[data-theme="light"] #shop_gobd_panel .shop_accounting_loading,
:root[data-theme="light"] #shop_gobd_panel .shop_accounting_truncated { color: #555; }
:root[data-theme="light"] #shop_gobd_panel .shop_accounting_refresh { border-color: #bbb; color: #333; }
:root[data-theme="light"] #shop_gobd_panel .shop_accounting_refresh:hover { border-color: #888; background: #f0f0f0; }
:root[data-theme="light"] #shop_gobd_panel .shop_accounting_change { border-color: #ddd; background: #fafafa; }
:root[data-theme="light"] #shop_gobd_panel .shop_accounting_change_meta { color: #666; }
:root[data-theme="light"] #shop_gobd_panel .shop_accounting_change_label { color: #444; }
:root[data-theme="light"] #shop_gobd_panel .shop_accounting_change_old { color: #777; }
:root[data-theme="light"] #shop_gobd_panel .shop_accounting_change_arrow { color: #888; }
:root[data-theme="light"] #shop_gobd_panel .shop_accounting_change_new { color: #111; }
:root[data-theme="light"] #shop_gobd_panel .shop_accounting_error { color: #a2231d; }

/* ============================================================================
   Shop-Auswertungen — full-width hero section. The Auswertungen panel is promoted to
   its own dashboard_wrapper (admin_tools.php) and moved to the top of the dashboard
   (shop_analytics.js) so the KPIs + charts get the whole width. Theme-aware panel
   colours come from the block above; this block is layout only.
   ============================================================================ */
@media (min-width: 45em) {
  #default_admin_overview_wrapper .dashboard_wrapper_wide { column-span: all; }
  #default_admin_overview_wrapper .dashboard_wrapper_wide #shop_analytics_panel .shop_an_group_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #default_admin_overview_wrapper .dashboard_wrapper_wide #shop_analytics_panel .shop_an_charts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1em; }
}
@media (min-width: 67.5em) {
  #default_admin_overview_wrapper .dashboard_wrapper_wide #shop_analytics_panel .shop_an_group_documents .shop_an_group_grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  #default_admin_overview_wrapper .dashboard_wrapper_wide #shop_analytics_panel .shop_an_group_activity .shop_an_group_grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
#default_admin_overview_wrapper .dashboard_wrapper_wide #shop_analytics_panel .shop_an_card { padding: 1em 1.1em; }
#default_admin_overview_wrapper .dashboard_wrapper_wide #shop_analytics_panel .shop_an_card_val { font-size: 1.9em; }
@media (max-width: 44.9375em) {
  #shop_analytics_panel .shop_an_group_head { display: grid; }
  #shop_analytics_panel .shop_an_group_hint { text-align: left; }
  #shop_analytics_panel .shop_an_charts { grid-template-columns: minmax(0, 1fr); }
  #shop_analytics_panel .shop_an_chart_box { min-width: 0; box-sizing: border-box; }
}

/* ============================================================================
   Shop management tabs — per-type icons + item-count badges (stage-local).
   Counts rendered by admin_tools.php (get_rules()['relation'] + deleted-filter, so they
   match the list-view "... von N"); icons are theme-aware via CSS mask + currentColor.
   ============================================================================ */

/* Count badge chip (theme-aware) */
#default_admin_overview_wrapper .item_type_list a.item_type .shop_tab_count {
  margin-left: 8px; padding: 0 7px; min-width: 20px; height: 18px; line-height: 18px;
  text-align: center; font-size: 11px; font-weight: 700; border-radius: 9px;
  background: var(--dashboard-card-border, #333); color: var(--text-color); box-sizing: border-box;
}
#default_admin_overview_wrapper .item_type_list a.item_type .shop_tab_label { flex: 0 1 auto; }

/* Per-type icon: replace the marker dot (::before) with a themed glyph via CSS mask. */
#default_admin_overview_wrapper .item_type_list a.item_type[data-shop-type]::before {
  width: 16px; height: 16px; flex: 0 0 16px; border-radius: 0; margin-right: 11px;
  background-color: currentColor; opacity: 0.8;
  -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: 16px 16px;
  mask-repeat: no-repeat; mask-position: center; mask-size: 16px 16px;
}
/* order — receipt */
#default_admin_overview_wrapper .item_type_list a.item_type[data-shop-type="order"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l3 3v15H6z'/%3E%3Cpath d='M9 10h7M9 14h7M9 18h4'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l3 3v15H6z'/%3E%3Cpath d='M9 10h7M9 14h7M9 18h4'/%3E%3C/svg%3E");
}
/* product — box */
#default_admin_overview_wrapper .item_type_list a.item_type[data-shop-type="product"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8l9-5 9 5v8l-9 5-9-5z'/%3E%3Cpath d='M3 8l9 5 9-5M12 13v10'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8l9-5 9 5v8l-9 5-9-5z'/%3E%3Cpath d='M3 8l9 5 9-5M12 13v10'/%3E%3C/svg%3E");
}
/* category — tag */
#default_admin_overview_wrapper .item_type_list a.item_type[data-shop-type="category"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h7l9 9-7 7-9-9z'/%3E%3Ccircle cx='8' cy='8' r='1.2'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h7l9 9-7 7-9-9z'/%3E%3Ccircle cx='8' cy='8' r='1.2'/%3E%3C/svg%3E");
}
/* customer — person */
#default_admin_overview_wrapper .item_type_list a.item_type[data-shop-type="customer"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 20c0-3.9 3.1-6 7-6s7 2.1 7 6'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 20c0-3.9 3.1-6 7-6s7 2.1 7 6'/%3E%3C/svg%3E");
}
/* withdrawal — undo arrow */
#default_admin_overview_wrapper .item_type_list a.item_type[data-shop-type="withdrawal"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5'/%3E%3Cpath d='M4 12h11a4 4 0 010 8h-3'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5'/%3E%3Cpath d='M4 12h11a4 4 0 010 8h-3'/%3E%3C/svg%3E");
}
/* shop_config — sliders */
#default_admin_overview_wrapper .item_type_list a.item_type[data-shop-type="shop_config"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h16M4 16h16'/%3E%3Ccircle cx='9' cy='8' r='2'/%3E%3Ccircle cx='15' cy='16' r='2'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h16M4 16h16'/%3E%3Ccircle cx='9' cy='8' r='2'/%3E%3Ccircle cx='15' cy='16' r='2'/%3E%3C/svg%3E");
}
/* Analytics donut (Bestellungen nach Status) is a square chart — cap it so it doesn't
   scale up to the full half-column width. */
#shop_analytics_panel #shop_an_status { max-width: 300px; margin: 0 auto; }

/* ============================================================================
   Booking request MVP — hidden route, request-only form.
   ============================================================================ */
.booking_request_wrap {
  width: min(100% - 32px, 840px);
  margin: 48px auto 72px;
}
.booking_request_title { margin-bottom: 12px; }
.booking_request_intro,
.booking_request_notice { max-width: 70ch; line-height: 1.55; }
.booking_request_status {
  min-height: 24px;
  margin: 24px 0;
  font-weight: 600;
}
.booking_request_status.is_error { color: #a2231d; }
.booking_request_status.is_success { color: #176536; }
.booking_request_status:focus,
.booking_confirmation_status:focus { outline: 2px solid currentColor; outline-offset: 4px; }
/* The id outweighs the general "#content input" and "#content input:focus" border colours; without it only date and
   number fields turned red. */
#content .booking_request_control[aria-invalid="true"] { border-color: #a2231d; }
.booking_request_form[hidden] { display: none !important; }
.booking_request_field[hidden] { display: none !important; }
.booking_request_field label.booking_request_check { display: flex; gap: 8px; align-items: flex-start; font-weight: normal; }
.booking_request_check input { margin-top: 3px; }
.booking_request_form {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}
.booking_request_columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  /* A message under one field must not stretch its neighbour. */
  align-items: start;
}
.booking_request_field {
  display: grid;
  /* The column may shrink below the control's smallest content: a date-time field is wider than a narrow
     column at 200% text, and an auto column would push the page sideways. */
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}
.booking_request_field label { font-weight: 650; }
.booking_request_control {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #777;
  border-radius: 2px;
  background: #fff;
  color: #111;
  font: inherit;
}
textarea.booking_request_control { min-height: 128px; resize: vertical; }
.booking_request_control:focus-visible,
.booking_request_submit:focus-visible {
  outline: 3px solid #1769ff;
  outline-offset: 3px;
}
/* Chromium's date field has its own Tab stop for the calendar button; while that button has focus the
   field matches neither :focus nor :focus-visible, only :focus-within, so the ring would vanish there. */
.booking_request_control[type="datetime-local"]:focus-within {
  outline: 3px solid #1769ff;
  outline-offset: 3px;
}
.booking_request_submit {
  justify-self: start;
  min-height: 46px;
  padding: 11px 22px;
  border: 2px solid #111;
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.booking_request_submit:disabled { cursor: wait; opacity: 0.6; }
.booking_request_honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 40em) {
  .booking_request_wrap { width: min(100% - 24px, 840px); margin-top: 28px; }
  .booking_request_columns { grid-template-columns: 1fr; }
  .booking_request_submit { width: 100%; }
}

/* Booking offer confirmation — non-cacheable bearer-link page. */
.booking_confirmation_wrap {
  width: min(100% - 40px, 840px);
  margin: 48px auto 80px;
}
.booking_confirmation_title { margin-bottom: 12px; }
.booking_confirmation_intro { max-width: 70ch; line-height: 1.55; }
.booking_confirmation_status {
  min-height: 24px;
  margin: 24px 0;
  font-weight: 650;
}
.booking_confirmation_status.is_error { color: #a2231d; }
.booking_confirmation_status.is_success { color: #176536; }
.booking_confirmation_details[hidden],
.booking_confirmation_form[hidden] { display: none !important; }
.booking_confirmation_details {
  display: grid;
  gap: 0;
  border: 1px solid #bbb;
  background: #fff;
}
.booking_confirmation_detail {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: 20px;
  padding: 15px 18px;
  border-bottom: 1px solid #ddd;
}
.booking_confirmation_detail_label {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.booking_confirmation_detail_value {
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.booking_confirmation_expiry {
  margin: 0;
  padding: 15px 18px;
  font-weight: 650;
}
.booking_confirmation_form {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}
.booking_confirmation_acceptance {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  line-height: 1.55;
  font-weight: 650;
}
.booking_confirmation_acceptance input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
}
.booking_confirmation_payment {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.booking_confirmation_payment[hidden],
.booking_confirmation_payment_option[hidden] { display: none !important; }
.booking_confirmation_payment legend { margin-bottom: 10px; padding: 0; font-weight: 650; }
.booking_confirmation_payment_option {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #8a8a8a;
  cursor: pointer;
}
.booking_confirmation_payment_option:has(input:checked) { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
.booking_confirmation_payment_option input { width: 20px; height: 20px; margin: 0; }
.booking_confirmation_payment_option input:focus-visible { outline: 3px solid #1769ff; outline-offset: 3px; }
.booking_confirmation_submit {
  justify-self: start;
  min-height: 46px;
  padding: 11px 22px;
  border: 2px solid #111;
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.booking_confirmation_acceptance input:focus-visible,
.booking_confirmation_submit:focus-visible {
  outline: 3px solid #1769ff;
  outline-offset: 3px;
}
.booking_confirmation_submit:disabled { cursor: wait; opacity: 0.6; }
@media (max-width: 40em) {
  .booking_confirmation_wrap { width: min(100% - 24px, 840px); margin-top: 28px; }
  .booking_confirmation_detail { grid-template-columns: 1fr; gap: 7px; }
  .booking_confirmation_submit { width: 100%; }
}

/* Booking cancellation v2 - non-cacheable purpose-scoped bearer page. */
.booking_cancellation_wrap {
  width: min(100% - 40px, 720px);
  margin: 48px auto 80px;
}
.booking_cancellation_intro { max-width: 68ch; line-height: 1.55; }
.booking_cancellation_status {
  min-height: 24px;
  margin: 24px 0;
  font-weight: 650;
}
.booking_cancellation_status.is_error { color: #a2231d; }
.booking_cancellation_status.is_success { color: #176536; }
.booking_cancellation_form[hidden] { display: none !important; }
.booking_cancellation_form { display: grid; gap: 22px; }
.booking_cancellation_acceptance {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  line-height: 1.55;
  font-weight: 650;
}
.booking_cancellation_acceptance input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
}
.booking_cancellation_submit {
  justify-self: start;
  min-height: 46px;
  padding: 11px 22px;
  border: 2px solid #8c1d18;
  background: #8c1d18;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.booking_cancellation_acceptance input:focus-visible,
.booking_cancellation_submit:focus-visible {
  outline: 3px solid #1769ff;
  outline-offset: 3px;
}
.booking_cancellation_submit:disabled { cursor: wait; opacity: 0.6; }
@media (max-width: 40em) {
  .booking_cancellation_wrap { width: min(100% - 24px, 720px); margin-top: 28px; }
  .booking_cancellation_submit { width: 100%; }
}


/* ==========================================================================
   63. SHOP — MONOCHROME BRAND POLISH
   Accent retuned to brand black in :root (section 1). These rules restore
   link affordance and fix two defects the flat accent had been masking.
   ========================================================================== */

/* The account sign-in link is authored white in section 62, but the generic
   `#content a` rule wins by specificity and painted it accent-blue on the dark
   header. Restore the intended white. */
/* Header account-nav lives in #top_content (a .content_block), NOT #content, so
   `.content_block a.default_link { color: var(--color-accent) }` (0,2,1) painted the
   sign-in link with the accent — black-on-black once the accent went monochrome.
   Scope to #top so the id-led selector (1,1,0) wins and keeps it white. */
#top a.shop_account_nav_login_link,
#top .shop_account_nav_widget a { color: #fff; }

/* Genuine inline text links need an underline now the accent is near-black
   (button-style .default_link elements are intentionally excluded). */
#content a.shop_account_login_link,
#content a.shop_account_forgot_link,
#content .shop_checkout_cancel,
#content a[href*="registrieren"],
#content a[href*="passwort"] { text-decoration: underline; text-underline-offset: 2px; }

/* Login and forgot-password footers: the two links rendered with no gap and ran together. */
.shop_account_login_footer,
.shop_account_forgot_footer { display: flex; justify-content: center; gap: 1.8rem; flex-wrap: wrap; margin-top: 2rem; }
.shop_account_login_link,
.shop_account_forgot_link { color: #1a1a1a; }
/* Checkout: the sign-in hint for guests above the address form. */
.shop_checkout_account_hint { margin: 0 0 1.2rem; font-size: 1.3rem; }
#content a.shop_checkout_signin_link { text-decoration: underline; text-underline-offset: 2px; }
/* Signed-out account page: the sign-in button and the register link sat flush against each other. */
.shop_account_dashboard_login_btn + .shop_account_dashboard_register_link { margin-left: 1.8rem; }
/* The register link is underlined in every language (it was only where its address happens to contain "passwort"). */
#content a.shop_account_dashboard_register_link { text-decoration: underline; text-underline-offset: 2px; }


/* ==========================================================================
   64. SHOP — HIERARCHY & READABILITY POLISH
   ========================================================================== */

/* "Reset filters" is a secondary action; the global `#content button` rule
   promoted it to a filled primary button. Demote it back to the subtle text
   link its own rule intends, so it stops competing with real CTAs. */
#content button.shop_filter_reset {
    background: none;
    color: var(--color-text-secondary, #555);
    border-radius: 0;
    padding: 0.4rem 0.4rem;
    font-size: 1.3rem;
}
#content button.shop_filter_reset:hover { opacity: 1; color: var(--color-text, #222); }

/* Legal / text-only content pages ran the full 1200px width, giving unreadable
   line lengths. Constrain to a comfortable measure, kept left-aligned with the
   heading (the base .content_block `margin: 0 auto` would otherwise centre it). */
#content .content_block.text_only {
    max-width: 72ch;
    margin-left: 0;
    margin-right: auto;
}


/* ==========================================================================
   65. SHOP — EMPTY-STATE CTA CONTRAST FIX
   These two link-buttons set `color: #fff` on a plain class selector, which
   `#content a` (higher specificity) overrode with the link colour — so their
   white text was already defeated (accent-blue before, near-black now = an
   invisible black-on-#111 button). Re-assert white with the `#content a.`
   prefix the other link-buttons already use. */
#content a.shop_wishlist_empty_cta,
#content a.shop_account_orders_shop_link { color: var(--color-text-inverse, #fff); }


/* ==========================================================================
   66. SHOP — PASSWORD FORM WIDTH PARITY
   The forgot / reset wraps had no rule and stretched full width, unlike the
   login / register column. Give them the same constrained, centred column. */
.shop_account_forgot_wrap,
.shop_account_reset_wrap {
    max-width: 420px;
    margin: 4rem auto 6rem;
    padding: 2rem 1.6rem;
    color: #222;
}

/* Forgot / reset look like the sign-in page: centred title and hint, the same feedback colours. */
.shop_account_forgot_title,
.shop_account_reset_title {
    font-size: 2.4rem;
    font-weight: 600;
    margin: 0 0 0.8rem;
    color: #111;
    text-align: center;
}
.shop_account_forgot_hint,
.shop_account_reset_hint {
    font-size: 1.3rem;
    color: #555;
    margin: 0 0 2rem;
    line-height: 1.5;
    text-align: center;
}
.shop_account_forgot_feedback,
.shop_account_reset_feedback {
    margin-top: 1rem;
    font-size: 1.3rem;
    min-height: 1.8rem;
    text-align: center;
}
.shop_account_forgot_feedback_ok,
.shop_account_reset_feedback_ok { color: #1e5e2f; }
.shop_account_forgot_feedback_err,
.shop_account_reset_feedback_err { color: #842029; }
/* After a code was requested: the next step as a button, not only as a small footer link. */
#content a.shop_account_forgot_next {
    display: table;
    margin: 1.2rem auto 0;
}

/* A field the customer cannot change must look like it: the profile email address. The id-scoped
   form-field rule at the top sets every input white, so this needs the same weight. */
#content .shop_account_input:disabled {
    background: #f2f2f2;
    color: #555;
    cursor: not-allowed;
}

/* The product list's "Aktiv" cell names whether the shop sells the product ("Im Shop, ausverkauft", "Nicht im Shop: …",
   shop_admin_product_list.js). It wraps up to four lines instead of ending in an ellipsis after Core's two, and it holds
   two lines from the start, so the row does not grow when the sentence arrives after the list is shown. */
#admin_data_api .data_api_wrapper .data_api_list .data_api_row_data > [data-type="is_active"] { --data-api-lines: 4; min-height: calc(var(--data-api-line) * 2); }

/* "Bestellung erfassen" (shop_admin_manual_order.js): Core draws the button in the order list's context bar; the
   wizard hangs on <body>, outside #admin_data_api. */
/* One scrolling area: the step's content. The page behind and the overlay do not scroll; head, steps and the foot with
   "Zurück / Weiter" stand still, so the foot sits at the bottom edge of the dialog and covers nothing. */
html:has(body.smo_open), body.smo_open { overflow: hidden; }
.smo_overlay { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: start center; padding: 4vh 16px; background: rgba(0, 0, 0, .45); overflow: hidden; box-sizing: border-box; }
.smo_panel { display: flex; flex-direction: column; width: 100%; max-width: 760px; max-height: 92vh; max-height: 92dvh; box-sizing: border-box; padding: 20px 24px; border-radius: 10px; background: #fff; color: #222; font-size: 1.4rem; line-height: 1.5; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.smo_head, .smo_steps { flex: 0 0 auto; }
.smo_body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -24px; padding: 2px 24px; }
.smo_head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.smo_head h2 { margin: 0; font-size: 1.8rem; }
.smo_close { width: 40px; height: 40px; border: 0; background: transparent; font-size: 2.4rem; line-height: 1; cursor: pointer; }
.smo_steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0; padding: 0; list-style: none; }
.smo_step { padding: 6px 8px; border-bottom: 3px solid #ddd; color: #777; font-size: 1.2rem; }
.smo_step.done { border-color: #888; color: #444; }
.smo_step.active { border-color: #111; color: #111; font-weight: 600; }
.smo_field { display: grid; gap: 4px; margin: 0 0 12px; }
.smo_field label { font-weight: 600; }
.smo_field input, .smo_field select, .smo_field textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #bbb; border-radius: 6px; font: inherit; }
.smo_grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.smo_hint { margin: 2px 0 0; color: #666; font-size: 1.2rem; }
.smo_hits, .smo_cart { margin: 0 0 12px; padding: 0; list-style: none; }
.smo_hit { width: 100%; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; background: #fafafa; text-align: left; font: inherit; cursor: pointer; }
.smo_hits li + li, .smo_cart li + li { margin-top: 6px; }
.smo_product { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; }
.smo_option { max-width: 260px; padding: 6px; font: inherit; }
.smo_add, .smo_next, .smo_back { min-height: 40px; padding: 8px 16px; border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-grid; place-items: center; }
.smo_add, .smo_next { border: 1px solid #111; background: #111; color: #fff; }
.smo_back { border: 1px solid #999; background: #fff; color: #222; }
.smo_next.is_busy, .smo_quote.is_busy { opacity: .6; }
.smo_line, .smo_line_head { display: grid; grid-template-columns: minmax(0, 1fr) 7em auto 6.5em 6.5em auto; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #eee; }
.smo_line_head { padding-top: 0; color: #666; font-size: 1.2rem; font-weight: 600; }
.smo_num { text-align: right; white-space: nowrap; }
.smo_line_sku { color: #555; overflow-wrap: anywhere; }
.smo_qty { display: inline-grid; grid-template-columns: 36px 2.5em 36px; align-items: center; text-align: center; }
.smo_qty button { height: 36px; border: 1px solid #bbb; background: #fff; font-size: 1.6rem; cursor: pointer; }
.smo_link { border: 0; background: none; padding: 4px; color: #0645ad; text-decoration: underline; font: inherit; cursor: pointer; }
.smo_totals { width: 100%; border-collapse: collapse; margin: 8px 0; }
.smo_totals td { padding: 3px 0; }
.smo_totals td:last-child { text-align: right; white-space: nowrap; }
.smo_total td { border-top: 1px solid #222; font-weight: 700; }
.smo_vat td { color: #666; font-size: 1.2rem; }
.smo_kind { margin: 0 0 12px; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; }
.smo_radio, .smo_check { display: block; padding: 6px 0; cursor: pointer; }
.smo_blocked, .smo_quote_error, .smo_message { margin: 10px 0; padding: 10px 12px; border-left: 4px solid #b00020; background: #fdecee; color: #600; }
.smo_done { margin: 10px 0; padding: 10px 12px; border-left: 4px solid #1e7a46; background: #e9f6ee; color: #144d2d; font-weight: 600; }
.smo_account { padding: 8px 10px; border-radius: 6px; background: #eef3fb; }
.smo_summary { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; }
.smo_summary dt { font-weight: 600; }
.smo_summary dd { margin: 0; overflow-wrap: anywhere; }
.smo_nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.smo_foot { flex: 0 0 auto; margin: 12px -24px -20px; padding: 12px 24px 20px; border-top: 1px solid #e5e5e5; background: #fff; border-radius: 0 0 10px 10px; }
.smo_foot .smo_message { margin-top: 0; }
.smo_field_wide { grid-column: 1 / -1; }
.smo_field input.smo_invalid, .smo_field select.smo_invalid, input.smo_invalid { border-color: #b00020; box-shadow: 0 0 0 1px #b00020; }
.smo_field .smo_invalid:focus { outline: 2px solid #b00020; outline-offset: 1px; }
.smo_add:disabled { border-color: #ccc; background: #eee; color: #666; cursor: not-allowed; }
/* "{Artikel} hinzugefügt" under the hit it changed, for a few seconds (shop_admin_manual_order.js). */
.smo_added { grid-column: 1 / -1; font-size: 13px; font-weight: 600; }
.smo_radio.is_disabled { color: #888; cursor: not-allowed; }
.smo_quote_error.smo_flash { animation: smo_flash 0.9s ease-out; }
@keyframes smo_flash { from { box-shadow: 0 0 0 4px rgba(176, 0, 32, .45); } to { box-shadow: 0 0 0 0 rgba(176, 0, 32, 0); } }
.status_badge.channel_badge { background: #eef3fb; color: #1d3b6e; }
@media (max-width: 37.5em) {
	/* The whole screen; its content scrolls inside, as on a large screen. */
	.smo_overlay { padding: 0; display: block; }
	.smo_panel { max-width: none; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; padding: 16px; }
	.smo_body { margin: 0 -16px; padding: 2px 16px; }
	.smo_grid, .smo_summary { grid-template-columns: 1fr; }
	.smo_steps { grid-template-columns: repeat(2, 1fr); }
	.smo_product { grid-template-columns: 1fr; }
	.smo_option { max-width: none; width: 100%; }
	.smo_nav > * { flex: 1 1 auto; }
	.smo_foot { margin: 12px -16px -16px; padding: 12px 16px 16px; border-radius: 0; }
	.smo_line { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name total" "sku unit" "qty remove"; gap: 4px 10px; }
	.smo_line_head { display: none; }
	.smo_line_name { grid-area: name; } .smo_line_total { grid-area: total; } .smo_line_sku { grid-area: sku; } .smo_line_unit { grid-area: unit; } .smo_line .smo_qty { grid-area: qty; } .smo_line .smo_remove { grid-area: remove; justify-self: end; }
	.smo_line_unit:not(:empty)::after { content: ' ' attr(data-each); }
}

/* Fleet standard: operator-selectable content-image width (display_width 100/80/60). */
.image_wrapper.image_w60 { width: 60%; margin-left: auto; margin-right: auto;}
.image_wrapper.image_w80 { width: 80%; margin-left: auto; margin-right: auto;}
.image_wrapper.image_w100 { width: 100%;}

@media (max-width: 37.5em) {
    .image_wrapper.image_w60, .image_wrapper.image_w80, .image_wrapper.image_w100 { width: 100%;}
}
.shop_b2b_policy_summary {
	margin: 12px 0 20px;
	padding: 14px 16px;
	border: 1px solid rgba(30, 171, 112, .5);
	border-radius: 8px;
	background: rgba(30, 171, 112, .08);
	color: inherit;
}

.shop_b2b_policy_summary p { margin: 6px 0 0; }
.shop_b2b_policy_summary_title { display: block; font-size: 1.05em; }
.shop_b2b_policy_conflict { color: #ffb020; font-weight: 700; }
.shop_b2b_policy_locked { opacity: .8; }
.shop_b2b_policy_categories { font-size: .92em; }

/* Delivery-country line in the cart summary. A normal row like Subtotal or
   Shipping — the country is part of the order, not a dialog that interrupts it.
   The select is allowed to shrink so a long country name cannot push the totals
   column out of alignment. */
.shop_cart_country_row {
    align-items: center;
    gap: 1rem;
}
.shop_cart_country_row label {
    margin: 0;
    white-space: nowrap;
}
.shop_cart_country_row select {
    min-width: 0;
    max-width: 60%;
    padding: 0.4rem 0.6rem;
}
#shop_cart_country:focus-visible {
    outline: 3px solid var(--color-accent, #1769ff);
    outline-offset: 2px;
}

/* ==========================================================================
   TOUCH TARGETS IN THE TOP BAR AND THE CATEGORY PILLS (QA-408 UXA-18)
   Every control in the bar keeps a 44 px touch or a free 44 px circle around it, without
   overlapping its neighbour (the search toggle used to sit on the wishlist). Below 600 px the
   language switch lives in the opened menu (operator decision), as the login link already does;
   _js/static/shop_account.js mirrors it there.
   ========================================================================== */
#navigation_links .shop_mobile_language { display: none; }

@media (max-width: 56em) {

    /* From the right: menu, cart, DE/EN (125-225), search (230-274), wishlist (278-325), login (330+). */
    .hig_static_language_switch a {
        display: inline-block;
        min-width: 44px;
        line-height: 44px;
        padding: 0;
        text-align: center;
    }

    #shop_search_toggle {
        right: 230px;
        width: 44px;
        height: 44px;
    }

    .shop_wishlist_widget { right: 278px; }

    .shop_account_nav_widget { right: 330px; }
}

@media (max-width: 37.5em) {

    #top .hig_static_language_switch { display: none; }

    /* Same look as the menu's own links; the current language stands out like the bar's "selected". */
    #navigation_links .shop_mobile_language {
        display: flex;
        justify-content: center;
        gap: 2.4rem;
    }

    #navigation_links .shop_mobile_language a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        height: var(--nav-link-height);
        color: var(--nav-link-color);
        font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem);
        font-weight: 700;
        text-decoration: none;
        text-transform: uppercase;
        opacity: 0.6;
    }

    #navigation_links .shop_mobile_language a[aria-current="true"] { opacity: 1; }

    /* Login and language are in the menu now: wishlist (125-172) and search (180-224). */
    .shop_wishlist_widget { right: 125px; }

    #shop_search_toggle { right: 180px; }

    #content .shop_category_pill {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* ==========================================================================
   LONG WORDS, NAMES AND LINKS (QA-408 UXA-11)
   A word longer than its box (a German compound, a product name, a URL) breaks where it would
   otherwise overflow; text that fits is untouched. Names in the mini cart, the search results and
   "recently viewed" wrap instead of being cut with an ellipsis, since nothing else on that view shows
   them in full. The sticky add-to-cart bar keeps one line: it repeats the page's own heading.
   ========================================================================== */
#content, #footer, #shop_mini_cart_sidebar, #shop_search_dropdown {
    overflow-wrap: anywhere;
}
/* In a table, anywhere also shrinks a column's minimum width, so words that fit broke mid-word ("Zu bestäti/gen");
   a cell breaks a word only where it would otherwise overflow. :where keeps the weight at zero: the rule replaces
   only the inherited value, and a table that sets its own wrapping (cart names, order history) keeps it. */
:where(#content) :where(td, th) {
    overflow-wrap: break-word;
}

/* Forced colours (Windows high contrast) replace backgrounds with the page colour. The shop's buttons
   are drawn by their background alone, so their edge vanished; an outline in the system button-text
   colour keeps every button recognisable without changing its size (the focus ring still wins). The
   price slider's bar and selected range are drawn in system colours for the same reason. */
@media (forced-colors: active) {
    #content button:not(:focus-visible),
    #footer button:not(:focus-visible),
    #content input[type="submit"]:not(:focus-visible),
    #footer input[type="submit"]:not(:focus-visible),
    .shop_sticky_atc button:not(:focus-visible),
    #shop_mini_cart_sidebar button:not(:focus-visible) {
        outline: 1px solid ButtonText;
        outline-offset: -1px;
    }

    .shop_price_slider_bar,
    .shop_price_slider_range {
        forced-color-adjust: none;
    }

    .shop_price_slider_bar { background: GrayText; }
    .shop_price_slider_range { background: Highlight; }

    /* The menu button's lines are a background and a shadow (top of this file), both of which forced
       colours remove; drawn in the system button-text colour they stay visible. */
    #static_btn_nav::before,
    #static_btn_nav::after {
        forced-color-adjust: none;
        background-color: ButtonText;
    }

    #static_btn_nav::before { box-shadow: 0 8px 0 ButtonText; }
}

/* Reduced motion: panels and bars appear without sliding or fading. */
@media (prefers-reduced-motion: reduce) {
    #shop_mini_cart_sidebar,
    #shop_mini_cart_backdrop,
    #shop_lightbox_overlay,
    .shop_sticky_atc,
    .un_btn {
        transition: none !important;
    }
}

/* Connection notice (shop_connection.js): a quiet bar while the visitor is offline, briefly when back online */
.shop_connection_notice {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    padding: 1rem 1.6rem;
    font-size: 1.4rem;
    line-height: 1.4;
    text-align: center;
    color: #fff;
    background: #3d4650;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
}
.shop_connection_notice.is_online {
    background: #1e5e2f;
}
.shop_connection_notice[hidden] {
    display: none;
}

/* Booking offer editor (/admin/booking). Scoped to the editor; colours come
   from the admin theme tokens so the page reads in the light and dark theme. */
.booking_offer_editor { max-width: 72rem; padding: 16px; color: var(--hig-text-1); }
.booking_offer_editor h1, .booking_offer_editor h2, .booking_offer_editor h3 { color: var(--hig-text-1); }
.booking_offer_editor h1 { font-size: 1.6em; margin: 0 0 12px; }
.booking_offer_editor h2 { font-size: 1.2em; margin: 0 0 8px; }
.booking_offer_editor h3 { font-size: 1.05em; margin: 12px 0 6px; }
.booking_offer_editor p, .booking_offer_editor li { color: var(--hig-text-1); }
.booking_offer_editor label { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; color: var(--hig-text-2); }
/* #content: the shop theme styles #content th/select/textarea by id; the editor's own colours must win there. */
#content .booking_offer_editor input:not([type="checkbox"]), #content .booking_offer_editor select, #content .booking_offer_editor textarea {
	max-width: 100%; padding: 6px 8px; border: 1px solid var(--hig-border-control); border-radius: 4px;
	background: var(--hig-surface-2); color: var(--hig-text-1); font: inherit;
}
.booking_offer_editor fieldset { margin: 12px 0; padding: 8px 12px; border: 1px solid var(--hig-border-mid); border-radius: 6px; }
.booking_offer_editor legend { padding: 0 4px; color: var(--hig-text-2); }
.booking_offer_panel { margin: 16px 0; padding: 12px 16px; border: 1px solid var(--hig-border-mid); border-radius: 8px; background: var(--hig-surface-1); }
.booking_offer_scroll { overflow-x: auto; }
.booking_offer_editor table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .92em; }
/* On a phone a table scrolls inside its card instead of breaking words; the page itself never scrolls sideways. */
#content .booking_offer_editor th, #content .booking_offer_editor td { white-space: nowrap; }
#content .booking_offer_editor th, #content .booking_offer_editor td { padding: 4px 8px; border: 0; border-bottom: 1px solid var(--hig-border-subtle); text-align: left; color: var(--hig-text-1); background: transparent; }
#content .booking_offer_editor th { background: var(--hig-surface-2); font-weight: 600; }
.booking_offer_status { margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--hig-border-mid); border-radius: 6px; color: var(--hig-text-1); }
.booking_offer_status:empty { display: none; }
.booking_offer_status.is_error { border-color: #d64545; }
.booking_offer_status.is_success { border-color: #1eab70; }
.booking_offer_status.is_loading { border-color: var(--hig-border-control); }
/* Step by step: one column of large fields, the hint right under its question. */
.booking_offer_field { width: 100%; max-width: 32rem; }
#content .booking_offer_editor .booking_offer_field input:not([type="checkbox"]), #content .booking_offer_editor .booking_offer_field select, #content .booking_offer_editor .booking_offer_field textarea { width: 100%; box-sizing: border-box; }
.booking_offer_field > span { color: var(--hig-text-1); font-weight: 600; }
.booking_offer_hint { display: block; color: var(--hig-text-2); font-size: .9em; }
.booking_offer_editor label.booking_offer_check { flex-direction: row; align-items: center; gap: 8px; color: var(--hig-text-1); }
/* #content: the shop theme indents every ol and spaces every li. */
#content .booking_offer_editor .booking_offer_steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; counter-reset: booking-step; }
#content .booking_offer_editor .booking_offer_steps > li { margin: 0; padding: 4px 10px; border: 1px solid var(--hig-border-subtle); border-radius: 999px; color: var(--hig-text-2); counter-increment: booking-step; }
#content .booking_offer_editor .booking_offer_steps > li::before { content: counter(booking-step) " "; font-weight: 600; }
#content .booking_offer_editor .booking_offer_steps > li.is_current { border-color: #1e6fd9; color: var(--hig-text-1); font-weight: 600; }
.booking_offer_actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin: 16px 0 0; }
/* #content: the shop theme paints every button in its own colours. */
#content .booking_offer_editor button { padding: 8px 14px; border: 1px solid var(--hig-border-control); border-radius: 6px; background: var(--hig-surface-2); color: var(--hig-text-1); font: inherit; line-height: 1.3; cursor: pointer; }
#content .booking_offer_editor button.is_primary { border-color: #1e6fd9; background: #1e6fd9; color: #fff; }
#content .booking_offer_editor button:disabled { opacity: .5; cursor: not-allowed; }
.booking_offer_back { margin: 0 0 8px; }
.booking_offer_nav { display: flex; gap: 8px; margin: 0 0 12px; }
#content .booking_offer_editor .booking_offer_nav a { padding: 6px 12px; border: 1px solid var(--hig-border-subtle); border-radius: 999px; color: var(--hig-text-2); text-decoration: none; }
#content .booking_offer_editor .booking_offer_nav a[aria-current="page"] { border-color: #1e6fd9; color: var(--hig-text-1); font-weight: 600; }
.booking_offer_checklist h3 { margin-top: 0; }
/* Work list lights: the word carries the meaning, the border colour only repeats it. */
.booking_offer_lights { display: flex; flex-wrap: wrap; gap: 4px; }
.booking_offer_light { padding: 1px 8px; border: 1px solid var(--hig-border-subtle); border-radius: 999px; color: var(--hig-text-2); font-size: .85em; white-space: nowrap; }
.booking_offer_light.is_ok { border-color: #1eab70; color: var(--hig-text-1); }
.booking_offer_light.is_todo { border-color: #1e6fd9; color: var(--hig-text-1); }
.booking_offer_light.is_warn { border-color: #d97a1e; color: var(--hig-text-1); }
.booking_offer_light.is_bad { border-color: #d64545; color: var(--hig-text-1); font-weight: 600; }
#content .booking_offer_editor td small.booking_offer_hint { display: block; }
#content .booking_offer_editor td.booking_offer_next { white-space: normal; min-width: 16rem; }
.booking_offer_task { display: block; margin: 0 0 4px; font-weight: 600; }
.booking_offer_facts { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: 4px 16px; margin: 0; }
.booking_offer_facts dt { color: var(--hig-text-2); }
.booking_offer_facts dd { margin: 0; color: var(--hig-text-1); }
#content .booking_offer_editor .booking_offer_checklist { list-style: none; margin: 8px 0; padding: 0; }
#content .booking_offer_editor .booking_offer_checklist > li { margin: 0 0 8px; padding: 8px 12px; border: 1px solid var(--hig-border-subtle); border-radius: 6px; }
.booking_offer_checklist > li[data-state="approved"] { border-color: #1eab70; }
.booking_offer_checklist > li[data-state="rejected"] { border-color: #d64545; }
.booking_offer_decide { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 8px 0 0; }
.booking_offer_details > summary { cursor: pointer; color: var(--hig-text-2); }
.booking_offer_terms { white-space: pre-line; max-width: 70ch; }
.booking_offer_confirmation { margin: 12px 0; }
/* The service day: the events so far, a link-like correct button, one block per booking of the day. */
#content .booking_offer_editor .booking_offer_events { list-style: none; margin: 8px 0; padding: 0; }
#content .booking_offer_editor .booking_offer_events > li { margin: 0 0 4px; }
#content .booking_offer_editor button.booking_offer_link { background: none; border: 0; padding: 0 0 0 8px; color: var(--hig-accent, inherit); text-decoration: underline; cursor: pointer; }
.booking_offer_day_item { margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--hig-border-subtle); }
.booking_offer_preview { margin: 12px 0; padding: 8px 12px; border-left: 3px solid #1e6fd9; background: var(--hig-surface-2); }
.booking_offer_total { font-size: 1.1em; font-weight: 600; }
.booking_offer_warn { color: #d97a1e; }
.booking_offer_ok { color: #1eab70; font-weight: 600; }
@media (max-width: 600px) {
	.booking_offer_editor { padding: 8px 12px; }
	.booking_offer_panel { padding: 12px; }
	.booking_offer_facts { grid-template-columns: 1fr; }
}

/* Summary while the next quote is on its way: last values stay, dimmed, instead of blanking the block. */
.shop_cart_totals_stale { opacity: 0.5; transition: opacity 0.15s; }

/* A line the shop cannot deliver (sold out, or less in stock than asked): its image, price and sum are dimmed,
   the reason stands under the name, and the sums leave it out. */
.shop_cart_row_unavailable .shop_cart_cell_image,
.shop_cart_row_unavailable .shop_cart_cell_price,
.shop_cart_row_unavailable .shop_cart_cell_line_total,
.shop_mini_cart_item_unavailable .shop_mini_cart_item_image,
.shop_mini_cart_item_unavailable .shop_mini_cart_item_meta,
.shop_mini_cart_item_unavailable .shop_mini_cart_item_price { opacity: 0.5; }
.shop_cart_row_unavailable .shop_cart_cell_name > a,
.shop_cart_row_unavailable .shop_cart_cell_name,
.shop_mini_cart_item_unavailable .shop_mini_cart_item_name { color: #6b6b6b; }
.shop_cart_row_note { display: block; margin-top: 0.25rem; font-size: 0.85em; }

/* Scroll lock of the overlays (shop_scroll_lock in shop_cart.js): the page loses its scrollbar and cannot be scrolled; the
   padding gives the scrollbar's width back (--shop-sbw), so nothing jumps sideways, the fixed header keeps its width, and
   the cart panel uses the width for its own list: the scrollbar at the right edge is the cart's. */
html.shop_scroll_locked { overflow: hidden; padding-right: var(--shop-sbw, 0px); }
html.shop_scroll_locked #top { right: var(--shop-sbw, 0px); }
#shop_mini_cart_sidebar { width: calc(380px + var(--shop-sbw, 0px)); }
#shop_mini_cart_sidebar .shop_mini_cart_header,
#shop_mini_cart_sidebar .shop_mini_cart_footer { padding-right: calc(1.5rem + var(--shop-sbw, 0px)); }
#shop_mini_cart_sidebar .shop_mini_cart_items { overflow-y: scroll; }
@media (max-width: 30em) {
    #shop_mini_cart_sidebar { width: 100%; }
}

/* Notes of a cart that is ordered in groups. */
.shop_cart_split_note { margin: 0 0 1.6rem; padding: 1rem 1.2rem; border: 1px solid var(--color-border); border-radius: 4px; background: var(--color-bg-alt); font-size: 1.4rem; line-height: 1.5; }

/* Search: products found only through their description */
.shop_search_group_label {
    grid-column: 1 / -1;
    margin: 1.6rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid var(--color-border);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}
.shop_search_result_hint {
    display: block;
    font-size: 1.2rem;
    color: var(--color-text-secondary);
}

/* Wishlist cards: availability, buy button and remove button. #content-scoped like the generic button and image rules
   (#content button, #content img) they must outrank, so the square image and the quiet red "remove" button apply again. */
#content .shop_wishlist_card_img img { height: 100%; }
#content .shop_wishlist_card_info .shop_stock_badge {
    display: block;
    margin-bottom: 1rem;
}
#content .shop_wishlist_buy_btn {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 0.8rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-primary);
    border-radius: 3px;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
#content .shop_wishlist_buy_btn:hover { background: var(--color-accent-hover); }
#content .shop_wishlist_buy_btn.shop_view_options { background: var(--color-bg); color: var(--color-primary); }
/* The light variant keeps its dark text on hover: "#content a.shop_view_options:hover" sets the light text of the filled
   button, which on this light ground read white on light grey. */
#content .shop_wishlist_buy_btn.shop_view_options:hover { background: var(--color-bg-alt); color: var(--color-primary); }
#content .shop_wishlist_buy_btn:disabled { background: var(--color-bg-alt); color: var(--color-text-secondary); border-color: var(--color-border); cursor: not-allowed; }
#content .shop_wishlist_remove_btn { background: var(--color-bg); color: #842029; border: 1px solid #842029; }
#content .shop_wishlist_remove_btn:hover { background: #842029; color: var(--color-text-inverse); }
/* Every button of a wishlist card has the shape of "In den Warenkorb": one height, 14 px type.
   The links ("Benachrichtigen", "Varianten anzeigen") otherwise take the smaller box of "#content a.shop_view_options",
   "Entfernen" the larger type of "#content button"; this rule outranks both and only the colours stay per button. */
#content .shop_wishlist_card_info :is(a, button):is(.shop_wishlist_buy_btn, .shop_wishlist_remove_btn) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 0.8rem;
    padding: 0.8rem 1rem;
    border-width: 1px;
    border-style: solid;
    border-radius: 3px;
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

/* Heart on a list card: a white disc in the top right corner of the picture. #content-scoped to outrank the generic
   #content button rule; the heart drawing itself comes from .shop_wishlist_heart_btn (and its active state). */
#content .shop_product_card .shop_product_image { position: relative; }
#content .shop_product_card .shop_product_image .shop_wishlist_heart_btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    width: 4rem;
    height: 4rem;
    border: 0;
    border-radius: 50%;
    background-color: var(--color-bg);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

/* Header signed in: the account block (greeting, "My account", "Sign out") is wider than "Sign in" and reaches up to
   about 630px from the right edge with a long first name (the greeting is cut at 14rem), so the search field ends before
   it. Up to 72em the greeting is hidden (the block is then 143px wide) and the field starts closer to the logo. Wider
   than 56em only: below that the field is the revealed panel. */
@media (min-width: 56.01em) {
    body:has(.shop_account_nav_widget_in) #shop_search { right: 630px; }
}
@media (min-width: 56.01em) and (max-width: 72em) {
    body:has(.shop_account_nav_widget_in) #shop_search { left: 180px; right: 560px; }
}
/* The greeting needs the room of a wide header; at every narrower width the block is just "Mein Konto" and "Abmelden". */
@media (max-width: 72em) {
    body:has(.shop_account_nav_widget_in) .shop_account_nav_greeting { display: none; }
}
/* Signed in, greeting, "Mein Konto" and "Abmelden" stand in one row on one text line (the base rule's two columns put
   the third item into a second row). */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top .shop_account_nav_widget_in { grid-template-columns: none; grid-auto-flow: column; align-items: baseline; }


/* Order page: the invoice download is a dark button, and the generic `#content a` colour (also dark) outranked its white text. */
#content .shop_order_tracking_wrap .shop_order_tracking_invoice_btn { color: #fff; }
#content .shop_order_tracking_wrap .shop_order_tracking_invoice_btn:hover { color: #fff; text-decoration: none; }

/* Links that are the way on from a notice (order not found, e-mail address changed) read as links without the mouse;
   so do the terms, withdrawal and privacy links of the checkout's order note. */
#content a.shop_order_tracking_recover,
#content .shop_account_dashboard_feedback a,
#content .shop_checkout_legal_note a { text-decoration: underline; text-underline-offset: 2px; }

/* Checkout, second step: the address entered before is read back as a summary; its fields stay in the form, collapsed. */
.shop_checkout_address_summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.6rem;
    margin: 0 0 2rem;
    padding: 1.4rem 1.6rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-bg-alt);
}
.shop_checkout_address_summary[hidden] { display: none; }
.shop_checkout_address_summary_text { font-style: normal; font-size: 1.4rem; line-height: 1.6; overflow-wrap: anywhere; }
.shop_checkout_address_summary_company { font-weight: 700; }
#content .shop_checkout_address_change_btn {
    flex: none;
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--color-primary);
    border-radius: 3px;
    background: var(--color-bg);
    color: var(--color-primary);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
}
#content .shop_checkout_address_change_btn:hover { background: var(--color-bg-alt); }
.shop_checkout_address_collapsed { display: none; }
/* The address fields live in the summary's box (shop_checkout.js): while they are edited they fill it, "Fertig" below them. */
.shop_checkout_address_summary { flex-wrap: wrap; }
.shop_checkout_address_summary > .shop_checkout_address_fields { flex: 1 1 100%; min-width: 0; }
.shop_checkout_address_summary.shop_checkout_address_editing > .shop_checkout_address_change_btn { order: 1; }

/* Cart in the account: the note on the cart page and the account section. */
.shop_cart_saved_note { margin: 1.2rem 0 0; font-size: 1.3rem; color: var(--color-text-secondary); }
.shop_account_dashboard_cart_state { font-size: 1.4rem; margin: 0 0 1.2rem; }

/* Checkout: the checkbox rows (gift wrapping, "ordering as a business") are one line: box and text side by side, centred, with a gap. The
   general `.shop_checkout_field label { display: block }` outranked the grid of the toggle, so the box sat on the text's corner. */
#shop_checkout_form .shop_checkout_gift_wrap_toggle,
#shop_checkout_form .shop_checkout_business_toggle {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 1rem;
    margin: 0;
    cursor: pointer;
}
#shop_checkout_form .shop_checkout_gift_wrap_toggle input[type="checkbox"],
#shop_checkout_form .shop_checkout_business_toggle input[type="checkbox"] {
    width: 1.8rem;
    height: 1.8rem;
    margin: 0.2rem 0 0;
    cursor: pointer;
}
#shop_checkout_form .shop_checkout_gift_wrap_desc { margin: 0.8rem 0 0 2.8rem; }
/* Checkout: "Deliver to a different address" is a checkbox row like the two above, in the address step and the order form;
   its fieldset is the second address, without a frame, its legend a heading like the form's own. */
#shop_checkout_form .shop_checkout_ship_toggle,
#shop_address_step_form .shop_checkout_ship_toggle {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 1rem;
    margin: 0;
    cursor: pointer;
}
#shop_checkout_form .shop_checkout_ship_toggle input[type="checkbox"],
#shop_address_step_form .shop_checkout_ship_toggle input[type="checkbox"] {
    width: 1.8rem;
    height: 1.8rem;
    margin: 0.2rem 0 0;
    cursor: pointer;
}
.shop_checkout_delivery_fields { border: 0; margin: 0 0 1.6rem; padding: 0; min-width: 0; }
.shop_checkout_delivery_fields[hidden] { display: none; }
/* The legend reads exactly like the address heading above it: it is listed in that heading's rules. */
.shop_checkout_delivery_fields > legend { padding: 0; }
/* Cart: a sold-out line says so next to its locked quantity buttons (instead of "maximum available"). */
.shop_cart_qty_sold_out { display: block; margin-top: 0.3rem; font-size: 1rem; line-height: 1.3; font-weight: 600; color: var(--color-text-secondary); white-space: normal; overflow-wrap: normal; word-break: keep-all; hyphens: none; }
/* A refused line's total is a short sentence, not a figure: on a narrow screen it wraps instead of running into the remove button. */
.shop_cart_row_unavailable .shop_cart_cell_line_total { white-space: normal; overflow-wrap: normal; hyphens: none; }
@media (max-width: 37.5em) { .shop_cart_row_unavailable .shop_cart_cell_line_total { font-size: 1rem; } .shop_cart_qty_sold_out { font-size: 0.875rem; } }
/* At 320 px keep the original price widths and leave room for the remove button. */
@media (max-width: 21.25em) {
    .shop_cart_cell_name { width: 28%; }
    .shop_cart_cell_price, .shop_cart_cell_line_total { width: 20%; }
    .shop_cart_cell_remove { width: 9%; }
}
/* Cart: with a sold-out line the sums are for the available items only; the note is a quiet line under the total. */
.shop_cart_rest_note { margin: 0.4rem 0 0; font-size: 1.2rem; line-height: 1.4; text-align: right; color: var(--color-text-secondary); }
/* Field limits ("Maximal 200 Zeichen") under checkout and account fields: help text, smaller than the label above it. */
#content p.shop_limit_hint { margin: 0.4rem 0 0; }
/* Far from its limit the hint is hidden for the eye only (shop_checkout.js): a screen reader still reads it with the
   field through aria-describedby; it shows once the field nears the limit (owner decision A-14). */
#content p.shop_limit_hint.shop_limit_hint_far { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* The privacy link under a form that collects an address (A-12 b): quiet, like the form's other help text. */
.shop_form_privacy_link { margin: 0.6rem 0 0; font-size: 1.2rem; line-height: 1.4; }
#footer .shop_form_privacy_link a { text-decoration: underline; text-underline-offset: 2px; }
/* Help text: field limits, the hints of the checkout's address step and the address a code was sent to. */
#content p.shop_limit_hint,
#content p.shop_address_step_hint,
#content p.shop_address_draft_notice,
#content p[data-shop-email-target] { font-size: 1.2rem; line-height: 1.3; font-weight: 400; color: #555; }

/* Accountant workspace: scoped to this role's finance panel, with local colour
   fallbacks so the panel does not depend on a newer Core theme token set. */
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace {
    --finance-text: #edf1f5;
    --finance-muted: #b5bec9;
    --finance-line: #35404b;
    --finance-card: #171f28;
    --finance-control: #202b35;
    display: grid;
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--finance-text);
    font-size: 14px;
    line-height: 1.5;
}
:root[data-theme="light"] #default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace {
    --finance-text: #1d2730;
    --finance-muted: #4f5b66;
    --finance-line: #c9d0d7;
    --finance-card: #fff;
    --finance-control: #f1f3f5;
}
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace :is(h3,h4,p) { margin: 0; color: inherit; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace h3 { font-size: 20px; font-weight: 650; line-height: 1.3; letter-spacing: 0; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace h4 { font-size: 15px; font-weight: 650; line-height: 1.4; letter-spacing: 0; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace p { color: var(--finance-muted); font-size: 13px; line-height: 1.55; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_finance_intro { display: grid; gap: 6px; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_finance_period { display: grid; gap: 12px; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_gobd_range { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 0; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_gobd_field { flex: 0 1 170px; min-width: 145px; gap: 5px; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_gobd_field_label { color: var(--finance-muted); font-size: 12px; text-transform: none; letter-spacing: 0; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_gobd_input { width: 100%; box-sizing: border-box; min-height: 40px; padding: 8px 10px; font-size: 14px; border: 1px solid var(--finance-line); border-radius: 6px; background: var(--finance-card); color: var(--finance-text); }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_gobd_presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding-bottom: 1px; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_gobd_preset { min-height: 38px; padding: 7px 10px; border-radius: 6px; border: 1px solid var(--finance-line); color: var(--finance-text); background: transparent; font-size: 12px; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_finance_exports { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_finance_card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px; border: 1px solid var(--finance-line); border-radius: 8px; background: var(--finance-card); }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_finance_card_head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_finance_format { color: var(--finance-muted); font-size: 10px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_gobd_download {
    align-self: flex-start; margin: auto 0 0; padding: 9px 12px; min-height: 40px;
    max-width: 100%; white-space: normal; text-align: left;
    font: inherit; font-size: 12px; font-weight: 600; line-height: 1.4;
    color: var(--finance-text); background: var(--finance-control);
    border: 1px solid var(--finance-line); border-radius: 6px;
    box-shadow: none; cursor: pointer;
}
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace :is(.shop_gobd_download,.shop_gobd_preset,.shop_accounting_refresh):hover { background: var(--finance-line); color: var(--finance-text); }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace :is(button,a,input,summary,[tabindex]):focus-visible { outline: 2px solid var(--finance-text); outline-offset: 3px; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_gobd_status { margin: 0; min-height: 0; color: var(--finance-muted); font-size: 12px; overflow-wrap: anywhere; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_gobd_status:empty { display: none; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .is_busy { opacity: .65; cursor: progress; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_finance_products { display: grid; gap: 12px; padding-top: 22px; border-top: 1px solid var(--finance-line); }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_finance_section_head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_finance_product_cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace a { color: var(--finance-text); text-decoration: underline; text-underline-offset: 3px; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_finance_product_link { font-size: 13px; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_accounting_changes { display: grid; gap: 12px; margin: 0; padding-top: 22px; border-top: 1px solid var(--finance-line); }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_accounting_changes_head { margin: 0; gap: 12px; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_accounting_refresh { min-height: 38px; border: 1px solid var(--finance-line); border-radius: 6px; padding: 7px 11px; color: var(--finance-text); background: transparent; font-size: 12px; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_accounting_changes_list { display: grid; gap: 0; max-height: 420px; overflow-y: auto; margin: 0; border: 1px solid var(--finance-line); border-radius: 8px; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_accounting_change { display: block; margin: 0; padding: 0 14px; border: 0; border-bottom: 1px solid var(--finance-line); border-radius: 0; background: var(--finance-card); }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_accounting_change:last-child { border-bottom: 0; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace summary.shop_accounting_change_head { display: list-item; padding: 12px 0; margin: 0; cursor: pointer; font-size: 13px; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_accounting_change_meta { display: inline-block; margin-left: 10px; color: var(--finance-muted); font-size: 11px; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_accounting_change_fields { margin: 0; padding: 0 0 12px; font-size: 12px; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_accounting_change_label { color: var(--finance-text); }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_accounting_change_old { color: var(--finance-muted); }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_accounting_change_new { color: var(--finance-text); }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace :is(.shop_accounting_empty,.shop_accounting_loading,.shop_accounting_error) { padding: 14px; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_finance_help { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding-top: 16px; border-top: 1px solid var(--finance-line); font-size: 12px; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_finance_help span { color: var(--finance-muted); }
@media (max-width: 1000px) {
    #default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_finance_exports { grid-template-columns: 1fr; }
    #default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_finance_product_cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    #default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace { gap: 20px; }
    #default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_gobd_field { flex: 1 1 130px; min-width: 0; }
    #default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_gobd_presets { width: 100%; }
    #default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace h3 { font-size: 18px; }
    #default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_finance_card { padding: 14px; }
    #default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_accounting_change_meta { display: block; margin: 4px 0 0; }
}
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .default_link { display: inline; padding: 0; border: 0; border-radius: 0; font-size: inherit; background: transparent; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .default_link::before,
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .default_link::after { content: none; }
#default_admin_overview_wrapper #shop_gobd_panel.shop_accountant_workspace .shop_accounting_change_product { overflow-wrap: anywhere; }

/* ==========================================================================
   Order view in the admin (the layout the owner approved on 11.11.2026), and the withdrawal's read view built alike:
   header with three states built alike,
   "Nächster Schritt" with the one main button, actions in four groups with half a sentence each, line items with
   their totals, documents as a list, customer beside address. Buttons share one size; only the next step is
   filled, cancelling is outlined red, the rest is neutral, a locked one is dashed with its reason below.
   ========================================================================== */
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail) .order_header { display: block; margin-bottom: 1.5rem; }
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail) .order_header h1 { margin: 0; overflow-wrap: anywhere; }
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail) .order_state { display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; margin-top: 1rem; }
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail) .order_state .order_state_item { display: inline; padding: 0; border-radius: 0; background: none; color: #1c1f24; font-size: 1.5rem; font-weight: 400; text-transform: none; letter-spacing: 0; white-space: normal; }
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail) .order_state_key { color: #5a616c; }
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail) .order_state_dot { display: inline-block; width: 0.9rem; height: 0.9rem; margin-right: 0.6rem; border-radius: 50%; background: #2456d6; }
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail) [data-tone="ok"] .order_state_dot { background: #1f7a3d; }
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail) [data-tone="due"] .order_state_dot { background: #a35f00; }
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail) [data-tone="bad"] .order_state_dot { background: #b4231b; }
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail) [data-tone="off"] .order_state_dot { background: #8a919c; }
#admin_shop_order_detail .order_withdrawal_flag { display: inline-block; margin-top: 1rem; padding: 0.3rem 1rem; border: 1px solid var(--shop-due-border); border-radius: 4px; background: var(--shop-due-bg); color: #1c1f24; font-size: 1.3rem; font-weight: 600; text-decoration: none; }
#admin_shop_order_detail .order_withdrawal_flag:hover { text-decoration: underline; }
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail) .order_intake { margin-top: 0.8rem; color: #5a616c; font-size: 1.4rem; }
/* A part moves to the next line as a whole; only a part wider than the line breaks in itself. */
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail) .order_intake_part { display: inline-block; max-width: 100%; }

/* The colours of what is due now: the next step, the withdrawal mark, the open prepayment in the shipping dialog. */
#admin_shop_order_detail { --shop-due-border: #c79a1e; --shop-due-bg: #fff4d6; --shop-due-text: #4f3f0c; }
#admin_shop_order_detail .order_next_step { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 1.6rem; align-items: center; border-color: var(--shop-due-border); background: var(--shop-due-bg); }
#admin_shop_order_detail .order_next_step.order_next_step_none { border-color: #ddd; background: #fff; }
#admin_shop_order_detail .order_next_step_text { margin: 0; }
#admin_shop_order_detail .order_next_step_text b { display: block; }
#admin_shop_order_detail .order_next_step_text span { color: var(--shop-due-text); font-size: 1.35rem; }
#admin_shop_order_detail .order_next_step_text .order_keep { white-space: nowrap; }
/* "Shipping before the prepayment is in" stands out in the shipping dialog in the next step's colours; it locks nothing. */
#admin_shop_order_detail .shop_ship_prepayment_open { padding: 1rem 1.4rem; border: 1px solid var(--shop-due-border); border-radius: 6px; background: var(--shop-due-bg); color: var(--shop-due-text); }
#admin_shop_order_detail .order_next_step_none .order_next_step_text span { color: #5a616c; }

:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail) .order_action_groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.4rem; }
#admin_shop_order_detail .order_action_group h3 { margin: 0 0 0.8rem; color: #5a616c; font-size: 1.2rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail) .order_action { margin-bottom: 1.2rem; }
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail) .order_action_note { display: block; margin-top: 0.4rem; color: #5a616c; font-size: 1.3rem; line-height: 1.4; }

/* One button shape for every action of the view, the documents' PDF and the next step. */
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail) :is(.btn_status_change, .btn_initiate_return, .btn_take_back, .btn_correct_tracking, .btn_correct_details, .btn_price_reduction, .btn_resend_confirmation, .btn_payment_event, .order_action_off, .order_next_step_btn) { display: inline-block; box-sizing: border-box; max-width: 100%; min-height: 4.4rem; margin: 0; padding: 0.95rem 1.4rem; border: 1px solid #b9bfc9; border-radius: 6px; background: #f4f5f7; color: #1c1f24; font: inherit; font-size: 1.4rem; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer; }
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail) :is(.btn_status_change, .btn_initiate_return, .btn_take_back, .btn_correct_tracking, .btn_correct_details, .btn_price_reduction, .btn_resend_confirmation, .btn_payment_event):hover { background: #e6e9ee; }
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail) .btn_status_change.btn_target_cancelled { border-color: #b4231b; background: #f4f5f7; color: #9c1d16; }
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail) :is(.order_next_step_btn, .order_action_next) { border-color: #1f7a3d; background: #1f7a3d; color: #fff; }
:is(#admin_shop_order_detail, #admin_shop_withdrawal_detail) :is(.order_next_step_btn, .order_action_next):hover { border-color: #17602f; background: #17602f; color: #fff; }
#admin_shop_order_detail .order_action_off { border-style: dashed; color: #5a616c; font-weight: 600; cursor: not-allowed; }
#admin_shop_order_detail .btn_resend_confirmation { margin: 0 0 1rem; }

#admin_shop_order_detail .item_name { display: block; }
#admin_shop_order_detail .item_sku { display: block; color: #5a616c; font-size: 1.25rem; font-weight: 400; }
/* A column head breaks only between words ("Storniert / Retourniert"), never inside one. */
#admin_shop_order_detail .item_table th { overflow-wrap: normal; word-break: normal; hyphens: manual; }
/* A number in a dialog heading moves to the next line as a whole (shop_admin_heading). */
.shop_return_modal .shop_admin_keep { white-space: nowrap; }
#admin_shop_order_detail .item_table th.col_back,
#admin_shop_order_detail .item_table td.col_back { width: auto; }
#admin_shop_order_detail .order_line_items .order_totals { margin-top: 1.4rem; }
#admin_shop_order_detail .order_documents .shop_admin_order_document { padding: 0; border: 0; background: none; color: #0b5ed7; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
#admin_shop_order_detail .invoice_missing_value { margin: 0 0 1rem; color: #842029; }

#admin_shop_order_detail .order_pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; margin-bottom: 1.5rem; }
#admin_shop_order_detail .order_pair > .order_section { margin-bottom: 0; }
#admin_shop_order_detail .order_pair .meta_grid { grid-template-columns: 1fr; }
#admin_shop_order_detail .order_pair .meta_field { grid-template-columns: 9rem minmax(0, 1fr); }
/* The withdrawal's read view takes the order view's header, cards and buttons; a long declaration or reason spans the
   card, and each button fills its column so the sentences below line up. */
#admin_shop_withdrawal_detail .meta_field_wide { grid-column: 1 / -1; }
#admin_shop_withdrawal_detail .order_action .shop_withdrawal_action { display: block; width: 100%; }
#admin_shop_withdrawal_detail .meta_value a.default_link { color: #0b5ed7; font-weight: 600; text-decoration: underline; }
#admin_shop_withdrawal_detail .shop_withdrawal_title_number { white-space: nowrap; }

.shop_return_modal { border-radius: 10px; }
.shop_return_modal .shop_return_item_name { display: block; }
/* The shipping dialog's address is a block of its own, set apart from the carrier field below it. */
.shop_return_modal .shop_ship_to { margin: 0 0 1.6rem; }
.shop_return_modal .shop_ship_to_label { margin: 0 0 0.4rem; }
.shop_return_modal textarea.shop_text_input_field { min-height: 9rem; resize: vertical; }
.shop_return_modal .shop_text_input_hint { margin: 0.6rem 0 0; color: #5a616c; font-size: 1.3rem; }
.shop_return_modal .shop_return_item_sku { display: block; color: #5a616c; font-size: 1.2rem; }
.shop_return_modal .shop_return_field input:not([type="checkbox"]),
.shop_return_modal .shop_return_field select,
.shop_return_modal .shop_return_field textarea,
.shop_return_modal .shop_return_reason,
.shop_return_modal .shop_return_qty_select { box-sizing: border-box; width: 100%; min-height: 4.2rem; padding: 0.7rem 1rem; border: 1px solid #7b8594; border-radius: 6px; background: #fff; color: #111; font: inherit; font-size: 1.4rem; }
.shop_return_modal .shop_return_qty_select { width: 7rem; }
.shop_return_modal .shop_return_btn { box-sizing: border-box; min-height: 4rem; padding: 0.95rem 1.8rem; border-radius: 6px; font-size: 1.35rem; line-height: 1.5; }
.shop_return_modal .shop_return_btn_cancel { border: 1px solid #7b8594; background: #fff; color: #111; padding: calc(0.95rem - 1px) 1.8rem; }
.shop_return_modal .shop_return_btn_cancel:hover { background: #f1f3f6; }
.shop_return_modal .shop_return_btn_submit { background: var(--hig-accent-solid, #2e6fe8); }
.shop_return_modal .shop_return_btn_submit:hover { background: var(--hig-accent-solid-hover, #3f7df0); }
.shop_return_modal .shop_return_preview { border-left-color: var(--hig-accent-solid, #2e6fe8); background: #f3f6fb; }
.shop_return_modal .shop_return_preview_amount { color: #111; }
.smo_add, .smo_next { border-color: var(--hig-accent-solid, #2e6fe8); background: var(--hig-accent-solid, #2e6fe8); }
.smo_step.active { border-color: var(--hig-accent-solid, #2e6fe8); }
@media (max-width: 50em) {
    :is(#admin_shop_order_detail, #admin_shop_withdrawal_detail) .order_state { flex-direction: column; }
    /* The grey line under the title: one part per line, without its dots. */
    :is(#admin_shop_order_detail, #admin_shop_withdrawal_detail) .order_intake_part { display: block; }
    :is(#admin_shop_order_detail, #admin_shop_withdrawal_detail) .order_intake_sep { display: none; }
    #admin_shop_order_detail .order_next_step,
    #admin_shop_order_detail .order_pair { grid-template-columns: minmax(0, 1fr); }
    #admin_shop_order_detail .order_next_step_btn { justify-self: stretch; }
    :is(#admin_shop_order_detail, #admin_shop_withdrawal_detail) .order_action_groups { grid-template-columns: minmax(0, 1fr); }
    :is(#admin_shop_order_detail, #admin_shop_withdrawal_detail) .order_section { padding: 1.4rem; }
}

/* ==========================================================================
   Picker dialogs of the admin (choose categories, choose an image crop)
   The button that takes the choice over carries the accent colour, the way out is an
   outline. Core places the two picker buttons at fixed distances from the right edge,
   so only colour and typeface change here, no size.
   ========================================================================== */
#data_api_item_list_overlay.m2m_multi_select .m2m_btn_confirm,
#hig_admin_media_images .button_wrapper > .button.btn_crop { background-color: var(--hig-accent-solid, #2e6fe8); color: var(--hig-on-accent, #fff); font-family: inherit; }
#data_api_item_list_overlay.m2m_multi_select .m2m_btn_confirm:hover,
#hig_admin_media_images .button_wrapper > .button.btn_crop:hover { background: var(--hig-accent-solid-hover, #3f7df0); }
/* An accent ring would vanish on the accent fill; the text colour stands out from the dialog in both themes. */
#data_api_item_list_overlay.m2m_multi_select .m2m_btn_confirm:focus-visible,
#data_api_item_list_overlay.m2m_multi_select .m2m_btn_cancel:focus-visible,
#hig_admin_media_images .button_wrapper > .button.btn_crop:focus-visible { outline: 2px solid var(--hig-text-1, #e8eaed); outline-offset: 2px; }
#data_api_item_list_overlay.m2m_multi_select .m2m_btn_cancel { background-color: transparent; color: var(--hig-text-1, #e8eaed); box-shadow: inset 0 0 0 1px var(--hig-text-2, #aeb6c2); font-family: inherit; }
#data_api_item_list_overlay.m2m_multi_select .m2m_btn_cancel:hover { background-color: var(--hig-wash-strong, rgba(255, 255, 255, .09)); }

/* Finance actions stay compact; the change log opens in its own modal view. */
#default_admin_overview_wrapper #shop_gobd_panel .shop_gobd_download {
    display: inline-flex; align-items: center; justify-content: flex-start;
    width: auto; min-height: 38px; margin: 5px 8px 5px 0; padding: 7px 11px;
    border: 1px solid var(--hig-border, #707984); border-radius: 5px;
    background: transparent; color: var(--hig-text-1, #e8eaed);
    font: inherit; font-size: 13px; line-height: 1.4; text-align: left;
    box-shadow: none; white-space: normal;
}
#default_admin_overview_wrapper #shop_gobd_panel .shop_gobd_download:hover {
    background: var(--hig-wash-strong, rgba(128,128,128,.12));
    color: var(--hig-text-1, #e8eaed);
}
#default_admin_overview_wrapper #shop_gobd_panel .shop_gobd_badge { display: none; }
#default_admin_overview_wrapper #shop_gobd_panel .shop_gobd_status:empty { display: none; }
#default_admin_overview_wrapper #shop_gobd_panel .shop_accounting_changes_link {
    display: block; width: fit-content; max-width: 100%; min-height: 40px;
    box-sizing: border-box; margin-top: 14px; padding: 10px 0;
    color: var(--hig-text-1, #e8eaed); font-size: 13px;
    text-decoration: underline; text-underline-offset: 3px;
    border: 0; background: transparent; overflow-wrap: anywhere;
}
#default_admin_overview_wrapper #shop_gobd_panel .shop_accounting_changes_link::before,
#default_admin_overview_wrapper #shop_gobd_panel .shop_accounting_changes_link::after { content: none; }
#default_admin_overview_wrapper #shop_gobd_panel .shop_accounting_dialog:not([open]) { display: none; }
#default_admin_overview_wrapper #shop_gobd_panel .shop_accounting_dialog[open] {
    display: grid; gap: 12px; width: min(900px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px); box-sizing: border-box; margin: auto;
    padding: 22px; border: 1px solid var(--hig-border, #707984); border-radius: 10px;
    background: var(--hig-surface-1, #20252b); color: var(--hig-text-1, #e8eaed);
}
#shop_accounting_changes_dialog::backdrop { background: rgba(0,0,0,.55); }
#default_admin_overview_wrapper #shop_gobd_panel .shop_accounting_dialog .shop_accounting_changes_head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 0;
}
#default_admin_overview_wrapper #shop_gobd_panel .shop_accounting_dialog h3 { margin: 0; font-size: 19px; line-height: 1.3; }
#default_admin_overview_wrapper #shop_gobd_panel .shop_accounting_dialog p { margin: 0; }
#default_admin_overview_wrapper #shop_gobd_panel .shop_accounting_dialog > button { justify-self: start; }
#default_admin_overview_wrapper #shop_gobd_panel .shop_accounting_dialog #shop_accounting_changes_list {
    display: grid; gap: 0; min-height: 0; max-height: 60dvh; overflow: auto;
    border: 1px solid var(--hig-border, #707984); border-radius: 6px;
}
#default_admin_overview_wrapper #shop_gobd_panel .shop_accounting_dialog .shop_accounting_change {
    margin: 0; padding: 0 12px; border: 0; border-bottom: 1px solid var(--hig-border, #707984);
    border-radius: 0; background: transparent;
}
#default_admin_overview_wrapper #shop_gobd_panel .shop_accounting_dialog summary.shop_accounting_change_head {
    display: list-item; padding: 12px 0; margin: 0; cursor: pointer; font-size: 13px;
}
#default_admin_overview_wrapper #shop_gobd_panel .shop_accounting_dialog .shop_accounting_change_fields { margin: 8px 0 0; padding: 0 0 12px; }
#default_admin_overview_wrapper #shop_gobd_panel .shop_finance_exports_compact {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px;
}
#default_admin_overview_wrapper #shop_gobd_panel .shop_finance_exports_compact .shop_finance_card {
    min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent;
}
#default_admin_overview_wrapper #shop_gobd_panel .shop_finance_exports_compact .shop_finance_card p {
    margin: 3px 0 8px; font-size: 12px; line-height: 1.5; color: var(--hig-text-2, #aeb6c2);
}
#default_admin_overview_wrapper #shop_gobd_panel .shop_accounting_dialog .shop_accounting_change_product {
    display: inline; padding: 0; background: transparent; border: 0; font-size: inherit;
}
#default_admin_overview_wrapper #shop_gobd_panel .shop_accounting_dialog .shop_accounting_change_product::before,
#default_admin_overview_wrapper #shop_gobd_panel .shop_accounting_dialog .shop_accounting_change_product::after { content: none; }
#default_admin_overview_wrapper #shop_gobd_panel :is(button,a,summary):focus-visible { outline: 2px solid var(--hig-text-1, #e8eaed); outline-offset: 3px; }
:root[data-theme=light] #default_admin_overview_wrapper #shop_gobd_panel .shop_accounting_dialog[open] { background: #fff; color: #191919; }
@media(max-width:600px) {
    #default_admin_overview_wrapper #shop_gobd_panel .shop_accounting_dialog[open] { padding: 14px; }
    #default_admin_overview_wrapper #shop_gobd_panel .shop_accounting_dialog .shop_accounting_change_meta { display: block; margin: 4px 0 0; }
}

/* ==========================================================================
   Order view in the admin: the sentence an action leaves at the head of the view
   ("Zahlungseingang erfasst.", shop_admin_order_show_done), in the admin's own
   success colours, like the list of missing fields uses its danger colours.
   ========================================================================== */
#admin_shop_order_detail .shop_admin_order_done { margin: 0 0 1.2rem; padding: 12px 20px 12px 17px; color: var(--hig-text-1, #e8eaed); font-size: 1.4rem; line-height: 1.4; background-color: var(--hig-state-ok-wash, #16211a); border-left: 3px solid var(--hig-state-ok, #4ade80); border-radius: 4px; overflow-wrap: anywhere; }

/* ==========================================================================
   Storefront design "2b ruhig": one type scale, one content width, three page
   widths and a product grid of 2 to 5 columns (the foundation), then black,
   white and grey with lines and hard shadows, and yellow as the only accent on
   the buying buttons under the pointer and with the focus.
   Customer surfaces only (#top, #content, #footer and the cart sidebar). The
   admin looks the same whatever this design does: every selector of this
   block carries :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)),
   so none matches inside the admin's data-api and dashboard views; :where()
   leaves each selector's specificity as it was.
   Type: two levels only. Display (page h1, the start page's section titles,
   storefront section headings) is Alternate Gothic No2 Pro in capitals, the
   condensed face fits long German words; everything below (h2 to h4 in text,
   legal pages, account, checkout, cards) is BentonSans in sentence case,
   stepped by size and weight. 1rem = 10px in this shop.
   Source: specs/documentation/unshop_frontend_design/ (stufe1_fundament.css,
   stufe2_marke_b_ruhig.css, STUFE2_B_RUHIG.md).
   ========================================================================== */

:root {
    --un-font-body: 'BentonSans', Arial, Helvetica, sans-serif;
    --un-font-display: 'Alternate Gothic No2 Pro', Arial, Helvetica, sans-serif;

    --un-fs-xs: 1.3rem;
    --un-fs-s: 1.4rem;
    --un-fs-m: clamp(1.6rem, 1.52rem + 0.2vw, 1.8rem);
    --un-fs-l: clamp(1.7rem, 1.6rem + 0.28vw, 2rem);
    --un-fs-xl: clamp(2.2rem, 1.95rem + 0.65vw, 2.8rem);
    --un-fs-2xl: clamp(2.8rem, 2.35rem + 1.15vw, 4rem);
    --un-fs-3xl: clamp(3.6rem, 2.9rem + 1.8vw, 5.6rem);

    /* The type scale. Display sizes are for the condensed Alternate Gothic in capitals: at 360 px the longest
       German page titles (Datenschutzerklärung, Widerrufsbelehrung, Geschäftsbedingungen) fit on one line. */
    --un-type-hero: clamp(4.8rem, 2.9rem + 5.2vw, 11.2rem);
    --un-type-display: clamp(3.6rem, 2.6rem + 2.8vw, 6.4rem);
    --un-type-section: clamp(3.2rem, 2.3rem + 2.4vw, 5.6rem);
    --un-type-section-s: clamp(2.8rem, 2.2rem + 1.4vw, 4rem);
    --un-type-h2: clamp(2.2rem, 1.95rem + 0.65vw, 2.8rem);
    --un-type-h3: clamp(1.8rem, 1.7rem + 0.3vw, 2.1rem);
    --un-type-h4: clamp(1.6rem, 1.55rem + 0.15vw, 1.7rem);

    --un-space-1: 0.8rem;
    --un-space-2: 1.6rem;
    --un-space-3: 2.4rem;
    --un-space-4: 3.2rem;
    --un-space-5: clamp(3.2rem, 2.4rem + 2vw, 5.6rem);

    --un-gutter: clamp(1.6rem, 4vw, 5.6rem);
    --content-max-width: calc(1440px + 2 * var(--un-gutter));
    --un-w-form: 52rem;
    --un-w-text: 70rem;
    --un-w-wide: 96rem;
}

:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top, :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content, :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer, :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #shop_mini_cart_sidebar, :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #shop_lightbox_overlay, :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #default_cookie_info, :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_sticky_atc { font-family: var(--un-font-body); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) :is(#top, #content, #footer, #shop_mini_cart_sidebar, .shop_sticky_atc) :is(button, input, select, textarea):not([class*="hig_"]) { font-family: inherit; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content, :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer { font-size: var(--un-fs-m); line-height: 1.55; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer { font-size: var(--un-fs-s); }

/* Text level: h2 to h4 in BentonSans, sentence case, stepped by size. A word that does not fit the line is hyphenated
   (the page's lang attribute picks the dictionary); only a string without any break point (a code, a long URL)
   is cut, and then anywhere, so it can never widen its column past the screen. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(h1, h2, h3, h4, h5, h6),
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_checkout_delivery_fields > legend {
    font-family: var(--un-font-body);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    hyphens: auto;
    hyphenate-limit-chars: 8 4 4;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content h2, :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_checkout_delivery_fields > legend { font-size: var(--un-type-h2); line-height: 1.2; margin-bottom: var(--un-space-2); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content h3 { font-size: var(--un-type-h3); line-height: 1.25; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content h4 { font-size: var(--un-type-h4); line-height: 1.3; }

/* Display level: the page heading and the storefront's section headings. The face has one weight; no synthetic bold. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content h1,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .un_hero_title,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .un_section_title,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_related_products, .shop_cross_sell, .image_lane_header) h2 {
    font-family: var(--un-font-display);
    font-weight: 400;
    font-synthesis: none;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 0.98;
    text-wrap: balance;
}
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content h1,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_product_detail_info h1 { font-size: var(--un-type-display); margin-bottom: var(--un-space-3); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .un_hero_title { font-size: var(--un-type-hero); line-height: 0.92; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .un_section_title { font-size: var(--un-type-section); margin-bottom: var(--un-space-2); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_related_products, .shop_cross_sell, .image_lane_header) h2 { font-size: var(--un-type-section-s); margin-bottom: var(--un-space-2); }

:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_product_info h3,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .un_cat_card_name { font-family: var(--un-font-body); font-size: var(--un-fs-l); font-weight: 700; line-height: 1.25; letter-spacing: 0; }

:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_tax_info,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_stock_badge,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_filter_label,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_product_share_label,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_newsletter_legal_hint,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .un_hero_caption_eyebrow,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .un_hero_caption_link,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .un_cat_card_count,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_wishlist_count,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .image_lane_card .price,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer_content > p:last-child { font-size: var(--un-fs-xs); }

:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_breadcrumbs,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_shipping_zone_line,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_newsletter_signup_hint,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_legal_guarantee_summary,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_filter_count,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_instock_toggle_label,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_price_slider_label_min, :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_price_slider_label_max,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content button.shop_filter_reset,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_view_options,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .image_lane_card .caption,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .default_footer_link_bar a,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top .shop_account_nav_login_link,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .un_hero_eyebrow, :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .un_about_eyebrow { font-size: var(--un-fs-s); }

:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_product_description,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .content_block section.text_block p { font-size: var(--un-fs-m); line-height: 1.6; }

:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content { padding-left: var(--un-gutter); padding-right: var(--un-gutter); }

:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top_content { max-width: calc(var(--content-max-width) - 2 * (var(--un-gutter) - var(--content-padding))); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .content_block { padding-top: var(--un-space-3); padding-bottom: var(--un-space-5); }

:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_breadcrumbs { margin-bottom: var(--un-space-1); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .un_category_heading { margin-bottom: var(--un-space-2); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .image_lane_header h2 { margin-bottom: 0; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_product_grid:not(.un_featured_grid) { margin-top: var(--un-space-1); }

:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_product_grid:not(.un_featured_grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 1.8vw, 2.4rem); }
@media (min-width: 48.76em) { :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_product_grid:not(.un_featured_grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 67.51em) { :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_product_grid:not(.un_featured_grid) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 100em)   { :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_product_grid:not(.un_featured_grid) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 21.25em) { :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_product_grid:not(.un_featured_grid) { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 30em) { :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_related_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_product_detail { gap: clamp(2.4rem, 4vw, 6.4rem); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_product_description { max-width: 62ch; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_wishlist_container { max-width: none; padding-left: 0; padding-right: 0; }

:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_account_login_wrap,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_account_register_wrap,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_account_forgot_wrap,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_account_reset_wrap,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_address_step_inner,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_checkout_confirm_details,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_checkout_confirm_addresses,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_checkout_next_steps { max-width: var(--un-w-form); }

:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_account_dashboard_wrap,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_account_confirm_wrap,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_order_tracking_wrap,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_newsletter_confirmation_wrap,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_back_in_stock_unsubscribe_wrap,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_withdrawal, :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_withdrawal_back { max-width: var(--un-w-text); }

:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_account_orders_wrap,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_404 { max-width: var(--un-w-wide); }

:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .content_block.text_only { max-width: var(--un-w-text); margin-left: auto; margin-right: auto; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .content_block.text_only h2 { margin-top: var(--un-space-5); }

:root {
    --un-ink: #0a0a0a;
    --un-paper: #ffffff;
    --un-grey-1: #f2f2f2;
    --un-grey-2: #d6d6d6;
    --un-grey-3: #6b6b6b;
    --un-accent: #e95cc5;

    --color-primary: var(--un-ink);
    --color-accent: var(--un-ink);
    --color-text: var(--un-ink);
    --color-text-secondary: #4a4a4a;
    --color-bg-alt: var(--un-grey-1);
    --color-border: rgba(10, 10, 10, 0.3);
    --footer-bg: var(--un-ink);
    --footer-text: #d6d6d6;
}

/* Match the shop typography in lightbox controls and customer-facing message dialogs. */
body:where(:not(.hig_admin_data_api, .hig_admin_dashboard, .hig_admin_logged_in, .hig_admin_ui_v2))
    :is(.shop_lightbox_close, .shop_lightbox_nav, .HIG_overlay.message) {
    font-family: var(--un-font-body);
}

body:where(:not(.hig_admin_data_api, .hig_admin_dashboard, .hig_admin_logged_in, .hig_admin_ui_v2))
    :is(.hig_skip_link, .shop_newsletter_email),
body:where(:not(.hig_admin_data_api, .hig_admin_dashboard, .hig_admin_logged_in, .hig_admin_ui_v2))
    #default_static_overlay_info :is(.caption, .message) {
    color: var(--un-ink);
}

body:where(:not(.hig_admin_data_api, .hig_admin_dashboard)), :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content { background: var(--un-paper); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .un_categories, :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .un_featured, :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .un_about, :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .un_promises, :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .un_recent { background: var(--un-paper); }

/* The bar under the page heading scales with it; under a centred heading it is centred too. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content h1:not(.un_hero_title)::after { content: ""; display: block; width: 1.1em; height: max(3px, 0.055em); margin-top: 0.2em; background: var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_account_login_title, .shop_account_register_title, .shop_account_forgot_wrap h1, .shop_account_reset_wrap h1, .shop_account_confirm_wrap h1, .shop_404 h1, .shop_newsletter_confirmation_wrap h1, .shop_back_in_stock_unsubscribe_wrap h1)::after { margin-left: auto; margin-right: auto; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_breadcrumbs, :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_filter_label { text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--un-fs-xs); font-weight: 700; }

:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top_content {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: auto;
    align-items: center;
    column-gap: clamp(1.4rem, 5vw, 3.2rem);
    max-width: var(--content-max-width);
    padding: 0 var(--un-gutter);
}
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top_content::before, :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top_content::after { content: none; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top .shop_account_nav_widget,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top .shop_wishlist_widget,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top .hig_static_language_switch { position: static; transform: none; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top #shop_mini_cart,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top #static_btn_nav,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top #shop_search_toggle { position: relative; top: auto; right: auto; transform: none; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top #shop_search_toggle { justify-self: end; }
@media (min-width: 56.01em) {
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top #shop_search { position: relative; top: auto; left: auto; right: auto; transform: none; min-width: 0; max-width: 44rem; margin-left: clamp(0rem, 3vw, 4.8rem); }
}
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top .hig_static_language_switch,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top .hig_static_language_switch a,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top .shop_account_nav_login_link { font-size: 1.4rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top .shop_search_input { border-radius: 0; height: 4rem; font-size: var(--un-fs-s); border-color: rgba(255, 255, 255, 0.6); }

/* Keep the account actions and both language targets on one line in the signed-in tablet header. */
@media (min-width: 37.51em) and (max-width: 56em) {
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top_content:has(.shop_account_nav_widget_in) {
        column-gap: clamp(0.6rem, 1.5vw, 1.4rem);
    }
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top .shop_account_nav_widget_in {
        min-width: max-content;
        white-space: nowrap;
    }
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top_content:has(.shop_account_nav_widget_in) > .hig_static_language_switch {
        display: flex;
        align-items: center;
    }
}

/* Signed out the bar holds the sign-in link and both language targets as well: a narrower gap, each on one line.
   Otherwise the row overflows, the search button slides over the logo and the language targets break. */
@media (min-width: 37.51em) and (max-width: 56em) {
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top_content {
        column-gap: clamp(1rem, 2.5vw, 2rem);
    }
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top .shop_account_nav_widget {
        white-space: nowrap;
    }
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top_content > .hig_static_language_switch {
        display: flex;
        align-items: center;
        white-space: nowrap;
    }
}

@media (min-width: 37.51em) and (max-width: 39em) {
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top_content:has(.shop_account_nav_widget_in) {
        column-gap: 0.4rem;
    }
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top_content:has(.shop_account_nav_widget_in) #logo img {
        height: 4.8rem;
    }
}

:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none; background: var(--un-grey-3); }

/* One thin line all round, as the category tiles have. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_product_card { border: 1px solid var(--un-ink); border-radius: 0; background: #fff; transition: transform 160ms ease, box-shadow 160ms ease; }

:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_product_card:hover,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .un_cat_card:hover { transform: translate(-0.3rem, -0.3rem); box-shadow: 0.8rem 0.8rem 0 var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_product_card:hover .shop_product_image img,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .un_cat_card:hover .un_cat_card_image img { transform: none; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_product_card .shop_product_image { aspect-ratio: 4 / 5; background: var(--un-grey-1); border-bottom: 1px solid var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_product_card .shop_product_image img { object-fit: cover; object-position: center; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_product_info { padding: 1.4rem 1.4rem 1.6rem; }
/* Prices stay in the text face: amounts must read at a glance, the condensed display face is for headings. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_current_price { font-family: var(--un-font-body); font-weight: 700; font-size: var(--un-fs-xl); line-height: 1; letter-spacing: 0.01em; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_product_detail_info .shop_current_price { font-size: var(--un-fs-2xl); }

:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_stock_badge { border: 1px solid var(--un-ink); border-radius: 0; padding: 0.3rem 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--un-ink); align-self: flex-start; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_in_stock { background: #fff; color: var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_low_stock { background: var(--un-grey-2); color: var(--un-ink); }
/* Sold out is outlined like in stock: a filled black badge sat where the buy button sits and read as a dead button.
   The dimmed photo carries the state. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_out_of_stock { background: #fff; color: var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_product_card:has(.shop_out_of_stock) .shop_product_image img { filter: grayscale(1); opacity: 0.6; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_product_card .shop_add_to_cart,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_product_card a.shop_view_options { align-self: flex-start; font-size: var(--un-fs-xs); letter-spacing: 0.04em; overflow-wrap: normal; }
@media (max-width: 30em) {
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_product_info { padding: 1rem 1rem 1.2rem; }
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_product_card .shop_add_to_cart,
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_product_card a.shop_view_options { align-self: stretch; padding-left: 0.4rem; padding-right: 0.4rem; }
}
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .un_cat_card { border: 1px solid var(--un-ink); border-radius: 0; transition: transform 160ms ease, box-shadow 160ms ease; }

:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content button, :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .btn { border-radius: 0; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_add_to_cart,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content a.shop_view_options,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content a.shop_cart_checkout_btn,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_checkout_submit_btn,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .un_hero_cta .un_btn_primary,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_newsletter_submit_btn { border: 2px solid var(--un-ink); border-radius: 0; background-color: var(--un-ink); color: #fff; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: var(--un-fs-s); transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, color 140ms ease; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_add_to_cart:is(:hover, :focus-visible),
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_wishlist_card_info .shop_wishlist_buy_btn:is(.shop_add_to_cart, .shop_wishlist_notify):hover:not(:disabled),
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content a.shop_view_options:is(:hover, :focus-visible),
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content a.shop_cart_checkout_btn:is(:hover, :focus-visible),
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_checkout_submit_btn:is(:hover, :focus-visible),
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .un_hero_cta .un_btn_primary:is(:hover, :focus-visible),
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_newsletter_submit_btn:is(:hover, :focus-visible):not(:disabled) { background-color: var(--un-accent); color: var(--un-ink); border-color: var(--un-ink); opacity: 1; transform: translate(-0.2rem, -0.2rem); box-shadow: 0.5rem 0.5rem 0 var(--un-ink); }

:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .un_hero_cta .un_btn_primary { background-color: #fff; color: var(--un-ink); border-color: #fff; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .un_hero_cta .un_btn_primary:is(:hover, :focus-visible) { border-color: var(--un-accent); box-shadow: 0.5rem 0.5rem 0 #fff; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content input[type="text"], :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content input[type="email"], :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content input[type="password"], :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content textarea, :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content select,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_newsletter_email { border-radius: 0; border-color: var(--un-ink); background: #fff; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_gallery_main, :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .content_block img, :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_gallery_thumbs .shop_thumb { border-radius: 0; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_gallery_main { border: 1px solid var(--un-ink); }

:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer { padding: var(--un-space-5) 0 var(--un-space-4); border-top: 0; color: var(--footer-text); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer_content { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--un-space-4); max-width: var(--content-max-width); margin: 0 auto; padding: 0 var(--un-gutter); box-sizing: border-box; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer_content::before, :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer_content::after { content: none; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_signup { max-width: var(--un-w-form); margin: 0; padding: 0; text-align: left; color: var(--footer-text); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_signup_title { font-family: var(--un-font-display); font-weight: 400; font-synthesis: none; letter-spacing: 0.01em; font-size: var(--un-fs-3xl); line-height: 0.96; text-transform: uppercase; color: #fff; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_signup_hint, :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_legal_hint { color: var(--footer-text); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer a, :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_form_privacy_link a { color: #fff; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.3em; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .default_footer_link_bar { justify-content: flex-start; gap: 0.6rem 2.4rem; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .default_footer_link_bar a { font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer_content > p:last-child { text-align: left; opacity: 1; margin-top: 0; border-top-color: rgba(255, 255, 255, 0.25); color: var(--footer-text); }

:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer :is(a[href], button, input):focus-visible { outline-color: #fff; box-shadow: 0 0 0 2px var(--un-ink); }
@media (min-width: 56.01em) {
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer_content { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .default_footer_link_bar { flex-direction: column; align-items: flex-start; justify-self: end; }
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer_content > p:last-child { grid-column: 1 / -1; }
}

/* No green on customer surfaces: free shipping, the full shipping bar, a product just added and the order success
   mark use the ink; the bar's track and box stay grey. Sold-out stays grey. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_cart_free_shipping span:last-child,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_checkout_free_shipping span:last-child { color: var(--un-ink); font-weight: 700; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #shop_mini_cart_sidebar .shop_shipping_progress,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_shipping_progress { background: var(--un-grey-1); border-radius: 0; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #shop_mini_cart_sidebar .shop_shipping_progress_bar,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_shipping_progress_bar { background: var(--un-grey-2); border-radius: 0; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #shop_mini_cart_sidebar .shop_shipping_progress_fill,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_shipping_progress_fill,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #shop_mini_cart_sidebar .shop_shipping_progress_fill.complete,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_shipping_progress_fill.complete { background: var(--un-ink); border-radius: 0; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_add_to_cart.added { background-color: var(--un-ink); color: #fff; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_checkout_success_icon { background: var(--un-ink); }

/* The newsletter field sits on the black footer: its line is white, or it would not be seen against the footer. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_email { border-color: #fff; }

/* ==========================================================================
   Storefront: the square black-and-white look on every customer surface,
   not only on the start page, the list and the product page: cart and its
   sidebar, checkout and confirmation, customer account, wishlist, recently
   viewed and the order page. Square corners, thin black lines, white or the
   light grey; buttons in one shape.
   ========================================================================== */

/* Codes keep their case: the order page's heading carries the order number (UN-20261127-11b3), which the
   confirmation, the mails, the invoice and the admin write in small letters. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_order_tracking_detail, .shop_order_access_gate) h1 { text-transform: none; }

/* Body text: long words are hyphenated on a phone instead of being cut anywhere. */
@media (max-width: 37.5em) {
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(p, li, dd, td) { hyphens: auto; overflow-wrap: anywhere; }
    /* Avoid automatic hyphens in product names while keeping the overflow fallback. */
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(
        .shop_cart_table td.shop_cart_cell_name,
        .shop_checkout_summary_table td.shop_checkout_cell_name,
        #shop_checkout_confirmation .shop_checkout_summary_table tbody td:first-child,
        .shop_order_tracking_items .shop_order_tracking_table tbody td:first-child
    ) {
        hyphens: manual;
    }
}

/* Buttons. Primary: filled black. Secondary: outlined black. Both square, in capitals with spacing, and with the
   buying buttons' hover (a shift with a hard shadow; primary turns yellow). */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_account_submit_btn, a.shop_account_dashboard_login_btn, a.shop_account_orders_login_btn, a.shop_account_orders_shop_link, a.shop_wishlist_empty_cta, a.shop_account_confirm_cta, a.shop_checkout_account_upsell_btn, .shop_back_in_stock_submit_btn, .shop_newsletter_confirm_btn, .shop_back_in_stock_confirm_btn, .shop_unsubscribe_btn, .shop_withdrawal_submit_btn, .shop_order_access_send, .shop_order_access_verify, .shop_order_recovery_request),
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #shop_mini_cart_sidebar .shop_mini_cart_actions .shop_mini_cart_checkout_btn,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) :is(#content, body) .shop_sticky_atc .shop_sticky_atc_btn,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_cart_continue_btn, .shop_checkout_cancel_btn, .shop_checkout_address_change_btn, .shop_order_tracking_invoice_btn, .shop_order_tracking_cn_btn, .shop_account_dashboard_cart_clear_btn, .shop_account_dashboard_wishlist_clear_btn, .shop_account_dashboard_logout_all_btn),
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #shop_mini_cart_sidebar .shop_mini_cart_actions :is(.shop_mini_cart_view_cart_btn, .shop_mini_cart_continue_btn),
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_wishlist_card_info :is(a, button):is(.shop_wishlist_buy_btn, .shop_wishlist_remove_btn) {
    min-height: 4.4rem;
    padding: 1rem 2.4rem;
    box-sizing: border-box;
    border: 2px solid var(--un-ink);
    border-radius: 0;
    background: var(--un-ink);
    color: #fff;
    font-family: var(--un-font-body);
    font-size: var(--un-fs-s);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    opacity: 1;
    transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, color 140ms ease;
}
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_cart_continue_btn, .shop_checkout_cancel_btn, .shop_checkout_address_change_btn, .shop_order_tracking_invoice_btn, .shop_order_tracking_cn_btn, .shop_account_dashboard_cart_clear_btn, .shop_account_dashboard_wishlist_clear_btn, .shop_account_dashboard_logout_all_btn),
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #shop_mini_cart_sidebar .shop_mini_cart_actions :is(.shop_mini_cart_view_cart_btn, .shop_mini_cart_continue_btn),
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_wishlist_card_info :is(a, button).shop_wishlist_remove_btn { background: #fff; color: var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_account_submit_btn, a.shop_account_dashboard_login_btn, a.shop_account_orders_login_btn, a.shop_account_orders_shop_link, a.shop_wishlist_empty_cta, a.shop_account_confirm_cta, a.shop_checkout_account_upsell_btn, .shop_back_in_stock_submit_btn, .shop_newsletter_confirm_btn, .shop_back_in_stock_confirm_btn, .shop_unsubscribe_btn, .shop_withdrawal_submit_btn, .shop_order_access_send, .shop_order_access_verify, .shop_order_recovery_request):is(:hover, :focus-visible):not(:disabled),
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #shop_mini_cart_sidebar .shop_mini_cart_actions .shop_mini_cart_checkout_btn:is(:hover, :focus-visible),
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) :is(#content, body) .shop_sticky_atc .shop_sticky_atc_btn:is(:hover, :focus-visible) { background: var(--un-accent); color: var(--un-ink); border-color: var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_account_submit_btn, a.shop_account_dashboard_login_btn, a.shop_account_orders_login_btn, a.shop_account_orders_shop_link, a.shop_wishlist_empty_cta, a.shop_account_confirm_cta, a.shop_checkout_account_upsell_btn, .shop_back_in_stock_submit_btn, .shop_newsletter_confirm_btn, .shop_back_in_stock_confirm_btn, .shop_unsubscribe_btn, .shop_withdrawal_submit_btn, .shop_order_access_send, .shop_order_access_verify, .shop_order_recovery_request, .shop_cart_continue_btn, .shop_checkout_cancel_btn, .shop_checkout_address_change_btn, .shop_order_tracking_invoice_btn, .shop_order_tracking_cn_btn, .shop_account_dashboard_cart_clear_btn, .shop_account_dashboard_wishlist_clear_btn, .shop_account_dashboard_logout_all_btn):is(:hover, :focus-visible):not(:disabled),
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #shop_mini_cart_sidebar .shop_mini_cart_actions :is(a, button):is(:hover, :focus-visible),
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) :is(#content, body) .shop_sticky_atc .shop_sticky_atc_btn:is(:hover, :focus-visible),
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_wishlist_card_info :is(a, button):is(.shop_wishlist_buy_btn, .shop_wishlist_remove_btn):is(:hover, :focus-visible) { opacity: 1; text-decoration: none; transform: translate(-0.2rem, -0.2rem); box-shadow: 0.5rem 0.5rem 0 var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_account_submit_btn, .shop_back_in_stock_submit_btn, .shop_withdrawal_submit_btn):disabled { background: var(--un-grey-3); border-color: var(--un-grey-3); color: #fff; }

/* Boxes: square, a thin black line, white. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_address_step_inner, .shop_account_dashboard_section, .shop_account_dashboard_orders_link, .shop_checkout_address_summary, .shop_checkout_field_gift_wrap, .shop_checkout_field_soundwalk_gift, .shop_checkout_account_upsell, .shop_order_access_gate),
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_order_tracking_wrap :is(.shop_order_tracking_header, .shop_order_tracking_section) { border: 1px solid var(--un-ink); border-radius: 0; background: #fff; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_account_orders_table, .shop_account_orders_row, .shop_account_orders_empty, .shop_wishlist_empty, .shop_legal_guarantee_notice, .shop_cart_price_notice, .shop_cart_split_note, .shop_checkout_global_error, .shop_account_dashboard_claim_banner, .shop_cart_cell_image img, .shop_checkout_cell_image img, .shop_soundwalk_accesses, .shop_soundwalk_access_card, .shop_soundwalk_gift_card, .shop_variant_select),
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #shop_mini_cart_sidebar :is(.shop_mini_cart_notice, .shop_mini_cart_item_image) { border-radius: 0; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_account_orders_empty, .shop_wishlist_empty) { border: 1px solid var(--un-ink); background: #fff; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_account_input, .shop_withdrawal_field input, .shop_withdrawal_field textarea, .shop_back_in_stock_email, .shop_order_recovery_input, .shop_order_access_pin) { border-radius: 0; border-color: var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_cart_table button.shop_cart_qty_btn { border-radius: 0; }

/* Checkout: both steps have the same width on a wide screen; the address form no longer sits in a narrow left box. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_address_step_inner, #shop_checkout_container, #shop_checkout_form_wrapper) { max-width: var(--un-w-wide); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_checkout_address_summary_text { font-size: var(--un-fs-s); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_checkout_trust { border-radius: 0; background: var(--un-grey-1); color: var(--un-ink); border-left: 0.4rem solid var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_checkout_account_upsell { text-align: left; padding: var(--un-space-3); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_checkout_account_upsell h3 { color: var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_checkout_account_upsell :is(p, .shop_checkout_account_upsell_email, .shop_checkout_account_upsell_hint) { color: var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_checkout_account_upsell_email strong { font-family: inherit; }

/* Order page and account: status as an outlined label like the stock badge, table heads in capitals, links in ink. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_order_tracking_wrap .status_badge { border: 1px solid var(--un-ink); border-radius: 0; background: #fff; color: var(--un-ink); font-weight: 700; letter-spacing: 0.08em; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_account_orders_th { background: var(--un-grey-1); color: var(--un-ink); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_account_orders_td_number { font-family: inherit; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_account_orders_view_link, .shop_account_orders_withdraw_link, .shop_account_dashboard_register_link, .shop_account_orders_back_link) { color: var(--un-ink); text-decoration: underline; text-underline-offset: 2px; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_account_dashboard_orders_link:hover { background: var(--un-grey-1); border-color: var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_account_dashboard_section_hint, .shop_account_dashboard_whoami, .shop_account_orders_hint, .shop_account_dashboard_hint) { color: #4a4a4a; }

/* The header's account words in the same capitals as "Anmelden". */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top :is(.shop_account_nav_dashboard_link, .shop_account_nav_logout_btn) { font-size: 1.4rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top .shop_account_nav_logout_btn { border-radius: 0; padding: 0.4rem 0.8rem; }

/* List: category choice and sort order square like the rest. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_category_pill { border-radius: 0; border-color: var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_category_pill.active { background: var(--un-ink); border-color: var(--un-ink); color: #fff; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .hig_select :is(.selected_option, .options) { border-radius: 0; border-color: var(--un-ink); }

/* Product page: the wishlist heart is black on white with a black frame until the product is saved; saved, it is red. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_wishlist_heart_btn { background-color: #fff; border: 2px solid var(--un-ink); border-radius: 0; background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E"); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_wishlist_heart_btn.shop_wishlist_heart_btn_active { background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e60023'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E"); border-color: var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_wishlist_heart_btn:hover { opacity: 1; border-color: var(--un-ink); }

/* Recommendations on the product page and in the cart: the same heading, the same left edge, the same line above. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_related_products, .shop_cross_sell) { text-align: left; border-top: 1px solid var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_related_products, .shop_cross_sell) h2 { text-align: left; }

/* Recently viewed and the wishlist: cards like the product tiles (square, thin black line, the tile's hover). */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_recently_viewed .image_lane_card,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_wishlist_card { border: 1px solid var(--un-ink); border-radius: 0; background: #fff; transition: transform 160ms ease, box-shadow 160ms ease; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_recently_viewed .image_lane_card:hover,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_wishlist_card:hover { transform: translate(-0.3rem, -0.3rem); box-shadow: 0.8rem 0.8rem 0 var(--un-ink); border-color: var(--un-ink); text-decoration: none; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_recently_viewed .image_lane_card :is(.caption, .price) { text-decoration: none; color: var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_recently_viewed .image_lane_card .caption { font-size: var(--un-fs-s); font-weight: 700; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_recently_viewed .image_lane_card .price { font-weight: 700; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_recently_viewed :is(.image_lane_card_image_wrapper, .image_lane_card_image_placeholder) { border-bottom: 1px solid var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_wishlist_card_img { border-bottom: 1px solid var(--un-ink); background: var(--un-grey-1); }
/* The lane scrolls sideways and so cuts everything outside it: room for the lifted card and its shadow. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_recently_viewed .image_lane_content { padding: 0.6rem 1.2rem 1.2rem 0.6rem; margin: -0.6rem -1.2rem -1.2rem -0.6rem; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_recently_viewed .image_lane_btn { width: 4rem; height: 4rem; border: 2px solid var(--un-ink); border-radius: 0; background: #fff; color: var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_recently_viewed .image_lane_btn:hover { background: var(--un-accent); color: var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_wishlist_card_name { font-size: var(--un-fs-l); font-weight: 700; color: var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_wishlist_card_price { font-weight: 700; color: var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_wishlist_card_info .shop_stock_badge { display: inline-block; }

/* Cart sidebar: its heading in the display face like the page headings. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #shop_mini_cart_sidebar .shop_mini_cart_header h3 { font-family: var(--un-font-display); font-weight: 400; font-synthesis: none; font-size: 3.2rem; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; }

/* Sticky buy bar: without a chosen variant its name is plain text in a flex box, which has no line of its own to cut;
   as a block the name itself gets the ellipsis. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_sticky_atc .shop_sticky_atc_name:not(:has(.shop_sticky_atc_name_text)) { display: block; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) .shop_sticky_atc .shop_sticky_atc_name_text { white-space: nowrap; }

/* Legal texts mark two levels with the same h2: the numbered chapters sit directly in the block, their sections in a
   text block. Chapters get the h2 size and a line above, sections the h3 size. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .content_block.text_only > h2 { margin-top: var(--un-space-5); padding-top: var(--un-space-3); border-top: 1px solid var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .content_block.text_only > h2:first-of-type { border-top: 0; padding-top: 0; margin-top: var(--un-space-3); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .content_block.text_only section.text_block h2 { font-size: var(--un-type-h3); line-height: 1.25; margin-top: var(--un-space-4); margin-bottom: var(--un-space-1); }

/* Checkout details: the lock in ink like its bar; the legal sentence and the gift wrap note in a readable measure and
   contrast; the price-change notice keeps its warm tint (it asks for a decision) but square, with square buttons. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_checkout_trust .shop_lock_icon::before { background: var(--un-ink); border-radius: 0; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_checkout_trust .shop_lock_icon::after { border-color: var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_checkout_legal_note { max-width: 60ch; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_checkout_gift_wrap_desc { color: #4a4a4a; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_cart_price_notice { border-color: var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_cart_price_notice button { border: 2px solid var(--un-ink); border-radius: 0; font-weight: 700; letter-spacing: 0.04em; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_checkout_account_upsell { max-width: var(--un-w-form); margin-left: auto; margin-right: auto; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_wishlist_card .shop_wishlist_card_img img { width: 100%; height: 100%; object-fit: cover; }

/* Product page heart: lifts like the buttons under the pointer and with the focus, so the state change shows. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_product_actions .shop_wishlist_heart_btn { transition: transform 140ms ease, box-shadow 140ms ease; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_product_actions .shop_wishlist_heart_btn:is(:hover, :focus-visible) { transform: translate(-0.2rem, -0.2rem); box-shadow: 0.5rem 0.5rem 0 var(--un-ink); }

/* Back-in-stock box on a sold-out product: square and white with a black line; its heading is a text-level h2. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_back_in_stock { background: #fff; border: 1px solid var(--un-ink); border-radius: 0; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_back_in_stock_hint { color: #4a4a4a; }

/* One palette for text and lines: labels and titles in ink, hints in the secondary grey, hairlines in grey-2
   (the older parts of the shop carried their own greys: #111, #222, #333, #555, #666, #707070, #e5e5e5, #eee). */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_account_label, .shop_order_recovery_form label, .shop_back_in_stock_title) { color: var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_address_step_hint, .shop_wishlist_page_hint, .shop_product_share_label, .shop_account_login_intro, .shop_account_hint) { color: #4a4a4a; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_product_share { border-color: var(--un-grey-2); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_order_tracking_wrap h2 { border-color: var(--un-grey-2); }

/* Header: the wishlist count and the sign-in link are square like everything else. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top :is(.shop_wishlist_widget, .shop_account_nav_login_link) { border-radius: 0; }

/* Price-change notice: its two buttons in the shop's button shape (accept = primary, remove = secondary). */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_cart_price_notice button { min-height: 3.6rem; padding: 0.6rem 1.4rem; font-size: var(--un-fs-xs); text-transform: uppercase; letter-spacing: 0.08em; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_cart_price_notice button.shop_cart_price_remove { background: #fff; color: var(--un-ink); }

/* Tables of the cart, the checkout, the account and the order page: white heads in ink capitals over a black line,
   grey hairlines between rows; no grey head cells. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_cart_table, .shop_checkout_summary_table, .shop_account_orders_table, .shop_order_tracking_table) th { background: #fff; color: var(--un-ink); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 2px solid var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_cart_table, .shop_checkout_summary_table) td { border-color: var(--un-grey-2); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_account_orders_th { background: #fff; border-bottom: 2px solid var(--un-ink); }

/* Quantity buttons drawn in ink; the minus at one stays visibly unavailable (lighter) as before. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_cart_table button.shop_cart_qty_btn { border-color: var(--un-ink); color: var(--un-ink); }

/* Country choice in the cart: a field of its own width with the shop's focus ring (ink, not the old blue). */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_cart_country_row select { max-width: 32rem; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content #shop_cart_country:focus-visible { outline: 2px solid var(--un-ink); outline-offset: 2px; }

/* "Check again" after a failed price check: the secondary button. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_cart_quote_retry, .shop_checkout_preflight_retry) { min-height: 3.6rem; padding: 0.6rem 1.4rem; border: 2px solid var(--un-ink); border-radius: 0; background: #fff; color: var(--un-ink); font-size: var(--un-fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
/* The help-text group keeps one colour, now the secondary grey of the palette (was #555). */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(p.shop_limit_hint, p.shop_address_step_hint, p.shop_address_draft_notice, p[data-shop-email-target]) { color: #4a4a4a; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_checkout_account_upsell_email strong { color: var(--un-ink); }

/* Small hints in the account and on the registration keep a readable measure inside their wide boxes. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_account_dashboard_section_hint, .shop_account_dashboard_hint, .shop_account_legal_hint, .shop_account_orders_hint, .shop_account_confirm_hint) { max-width: 60ch; }

/* Order page: the invoice and credit-note downloads are secondary buttons; an older rule painted their text white,
   which on the secondary button's white was invisible. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_order_tracking_wrap :is(.shop_order_tracking_invoice_btn, .shop_order_tracking_cn_btn),
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_order_tracking_wrap :is(.shop_order_tracking_invoice_btn, .shop_order_tracking_cn_btn):hover { background: #fff; color: var(--un-ink); border-color: var(--un-ink); }

/* The heading may wrap before the number. Longer references can wrap inside their own box if needed. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_order_tracking_detail, .shop_order_access_gate) h1 {
    min-inline-size: 0;
    font-size: clamp(2.4rem, 1.2rem + 3.2vw, 4.8rem);
}
.shop_order_tracking_wrap .shop_order_heading_number {
    display: inline-block;
    max-inline-size: 100%;
    overflow-wrap: anywhere;
    hyphens: none;
}

/* Search page: field and button square like every other field and button. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_search_page_input, .shop_search_form_wrap .shop_search_page_input) { border-radius: 0; border-color: var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_search_page_btn { border-radius: 0; border: 2px solid var(--un-ink); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: var(--un-fs-s); }

/* Booking request: square fields with the ink line, and the send button in the primary shape. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .booking_request_control { border-radius: 0; border-color: var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content button.booking_request_submit { border: 2px solid var(--un-ink); border-radius: 0; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: var(--un-fs-s); }

/* Start page: square hero picture; category pictures sit on the same light grey as the product pictures. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .un_hero_visual { border-radius: 0; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .un_cat_card_image { background: var(--un-grey-1); }

/* The rest of the older greys: titles and values in ink, hints in the secondary grey, hairlines in grey-2.
   Error headings keep their colour; the hero's heading stays white on its black ground. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(h1, h2, h3, h4):not(.shop_account_confirm_error *, [class*="error"], .un_hero *) { color: var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_order_recovery_form label, .shop_account_dashboard_cart_state, .shop_account_orders_td_total, .shop_order_tracking_value, .un_about_body) { color: var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_order_tracking_hint, .shop_account_login_hint, .shop_account_register_hint, .shop_account_forgot_hint, .shop_account_reset_hint, .shop_wishlist_empty_text, .shop_account_legal_hint, .shop_account_field_note, .shop_order_tracking_label, .shop_newsletter_confirmation_hint, .shop_back_in_stock_unsubscribe_hint, .shop_account_confirm_hint) { color: #4a4a4a; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content :is(.shop_account_field_group, .shop_account_orders_table, .shop_account_orders_row) { border-color: var(--un-grey-2); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_order_tracking_wrap h2 { border-bottom-color: var(--un-grey-2); }

/* Header: the top bar's icons stand still when the menu opens. The older rule took the cart out of the layout while
   the menu was open (html.overlay #shop_mini_cart { display: none }); in the grid bar every icon left of it then
   jumped sideways and back. The cart stays where it is. */
html.overlay body:where(:not(.hig_admin_data_api, .hig_admin_dashboard)) #top #shop_mini_cart { display: block; }
/* The cart's count badge hangs 12 px past the bag; the link is widened by that much and the badge sits at its edge,
   so the gap to the burger is the same as between the other icons (the badge no longer touches the burger's gap). */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top #shop_mini_cart { width: 3.6rem; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top #shop_mini_cart .shop_mini_cart_count { right: 0; }

/* Footer links, calm: the link list is a navigation and goes without an underline at rest; a thin, offset line shows
   under the pointer and with the focus. Links inside running text keep a thin, offset underline so they stay
   distinguishable from the text around them. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .default_footer_link_bar a.link { text-decoration: none; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .default_footer_link_bar a.link:is(:hover, :focus-visible) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.35em; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer :is(.shop_form_privacy_link, p) a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; text-decoration-color: rgba(255, 255, 255, 0.6); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer :is(.shop_form_privacy_link, p) a:is(:hover, :focus-visible) { text-decoration-color: #fff; }

/* Two product columns on a phone: titles a step smaller, so a long word in capitals (which no dictionary hyphenates)
   still fits its column instead of being cut. */
@media (max-width: 30em) {
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .shop_product_info h3 { font-size: 1.5rem; }
}

/* Header counts arrive late (from the browser's storage, after the page is drawn): the wishlist count has room for
   two digits from the start and digits of one width, so "0" turning into "3" or "12" never moves the icons. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #top .shop_wishlist_widget .shop_wishlist_count { display: inline-block; min-width: 2ch; text-align: left; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Footer: the newsletter is a pink band across the full window width, the legal
   links and the copyright follow on the black footer. Everything on the band is
   ink, because white on the accent pink stays below the contrast minimum; the
   submit button is ink so it reads as a button against the band.
   ========================================================================== */
/* The bottom padding leaves room for the fixed scroll-top button at the end of the page. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer { padding-top: 0; padding-bottom: calc(var(--un-space-4) + 5.6rem); overflow-x: clip; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer_content { row-gap: 0; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_signup { grid-column: 1 / -1; max-width: none; position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--un-space-2); padding: var(--un-space-5) 0; color: var(--un-ink); }
/* The band reaches both window edges while its content stays in the page column. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_signup::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); background: var(--un-accent); z-index: -1; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_signup_title { color: var(--un-ink); font-size: clamp(5.6rem, 3.2rem + 6vw, 10.4rem); line-height: 0.86; margin: 0; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer :is(.shop_newsletter_signup_hint, .shop_newsletter_legal_hint, .shop_newsletter_feedback, .shop_newsletter_feedback_ok, .shop_newsletter_feedback_err) { color: var(--un-ink); margin: 0; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer :is(.shop_newsletter_feedback_ok, .shop_newsletter_feedback_err) { font-weight: 700; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_signup_hint { font-size: var(--un-fs-l); line-height: 1.35; max-width: 34ch; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_signup .shop_form_privacy_link { margin: 0; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_signup a,
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_signup a:hover { color: var(--un-ink); text-decoration: underline; text-underline-offset: 0.25em; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_form { margin: var(--un-space-1) 0 0; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_field_row { gap: 0; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_email { height: 5.6rem; border: 2px solid var(--un-ink); border-right: 0; background: #fff; color: var(--un-ink); font-size: var(--un-fs-m); padding: 0 1.6rem; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_submit_btn { min-height: 5.6rem; padding: 0 2.8rem; border: 2px solid var(--un-ink); background: var(--un-ink); color: #fff; font-size: var(--un-fs-s); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_submit_btn:is(:hover, :focus-visible):not(:disabled) { background: #fff; color: var(--un-ink); border-color: var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_submit_btn:disabled { background: var(--un-ink); color: #fff; opacity: 0.6; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_signup :is(a[href], button, input):focus-visible { outline: 3px solid var(--un-ink); outline-offset: 3px; box-shadow: none; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .default_footer_link_bar { padding-top: var(--un-space-4); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .default_footer_link_bar a:is(:hover, :focus-visible) { text-decoration-color: var(--un-accent); text-decoration-thickness: 2px; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer_content > p:last-child { border-top: 0; padding-top: var(--un-space-3); }
@media (min-width: 56.01em) {
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_signup { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--un-space-5); align-items: end; }
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_signup_title { grid-column: 1; grid-row: 1; }
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_signup_hint { grid-column: 1; grid-row: 2 / span 3; align-self: start; }
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_form { grid-column: 2; grid-row: 1; }
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_legal_hint { grid-column: 2; grid-row: 2; }
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_signup .shop_form_privacy_link { grid-column: 2; grid-row: 3; }
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_feedback { grid-column: 2; grid-row: 4; }
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .default_footer_link_bar { flex-direction: row; flex-wrap: wrap; justify-self: start; grid-column: 1; }
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer_content > p:last-child { grid-column: 1; justify-self: start; padding-top: var(--un-space-2); }
}
/* Small screens: field and button stacked at full width, the legal links as a list with full-width tap rows. */
@media (max-width: 56em) {
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer { text-align: left; }
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_field_row { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_email { border-right: 2px solid var(--un-ink); }
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .shop_newsletter_submit_btn { width: 100%; }
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .default_footer_link_bar { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; }
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #footer .default_footer_link_bar a { display: block; padding: 1.4rem 0; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
}
/* The closed cart sidebar waits just off the right edge; its shadow must not fall onto the page while it is closed. */
#shop_mini_cart_sidebar:not(.visible) { box-shadow: none; }

/* The content area is at least as high as the window below the fixed header, so the footer always starts below the
   visible area. Without it, a page that is still loading (first request or in-page navigation) or simply short let
   the footer rise into the window, and its full-width pink newsletter band flashed until the content pushed it down.
   On a short page the footer now waits just under the window's lower edge. svh is the window height with the phone's
   browser bar shown, the way a page is seen when it opens at the top; vh is the fallback for older browsers.
   Screen only: a printed order confirmation keeps its natural height. */
@media screen {
    :where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content {
        min-height: calc(100vh - var(--top-height));
        min-height: calc(100svh - var(--top-height));
    }
}

/* Legal pages (imprint, terms, withdrawal, privacy). A chapter is a subtitle followed by text blocks; a block's caption is
   a section heading, its paragraphs and lists sit close together. The table of contents is a linked box, the model
   withdrawal form a framed template, the version line small. Anchors keep their heading clear of the fixed header. */
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .content_block.legal > div[id] { scroll-margin-top: 12rem; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .content_block.legal section.text_block { margin: 0 0 var(--un-space-3); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .content_block.legal section.text_block p { margin: 0 0 var(--un-space-2); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .content_block.legal section.text_block > :last-child { margin-bottom: 0; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .content_block.legal section.text_block ul { margin: 0 0 var(--un-space-2); padding-left: 2.4rem; list-style: square; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .content_block.legal section.text_block li { font-size: var(--un-fs-m); line-height: 1.6; margin: 0 0 0.6rem; padding-left: 0.4rem; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .content_block.legal section.text_block li::marker { color: var(--un-ink); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .content_block.legal section.legal_toc { background: var(--un-grey-1); padding: var(--un-space-3); margin: var(--un-space-3) 0 var(--un-space-4); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .content_block.legal section.legal_toc h2 { margin: 0 0 var(--un-space-2); font-size: var(--un-type-h4); text-transform: uppercase; letter-spacing: 0.06em; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .content_block.legal section.legal_toc ul { list-style: none; padding: 0; margin: 0; columns: 24rem 2; column-gap: var(--un-space-4); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .content_block.legal section.legal_toc li { break-inside: avoid; padding: 0; margin: 0 0 0.8rem; line-height: 1.4; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .content_block.legal section.legal_toc a { color: var(--un-ink); text-decoration: none; border-bottom: 1px solid transparent; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .content_block.legal section.legal_toc a:is(:hover, :focus-visible) { border-bottom-color: currentColor; }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .content_block.legal section.legal_form_template { border: 1px solid var(--un-ink); padding: var(--un-space-3); }
:where(body:not(.hig_admin_data_api, .hig_admin_dashboard)) #content .content_block.legal section.legal_version p { font-size: var(--un-fs-s); color: var(--un-grey-3); }
