html {
    scroll-padding-top: var(--navbar-h, 70px);
}

body {
    font-family: 'Roboto', sans-serif;
    background: #F4F5F6;
}

/* Selected text in the brand magenta instead of the browser's blue */
::selection {
    background: #E8007A;
    color: #FFFFFF;
}

.site-messages {
    padding: 16px 36px 0;
}

.site-messages .alert {
    margin-bottom: 0;
}

.site-messages .alert + .alert {
    margin-top: 12px;
}

/* Bootstrap's .alert defaults to 1rem (16px) with no responsive handling —
   pin it to the app's body-text size so alert-danger banners (upload
   errors, login/logout flash messages) match the rest of the type scale. */
.alert {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

.app-navbar {
    background: #FFFFFF;
    border-bottom: 1px solid #D8DBDF;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.app-navbar .container-fluid {
    align-items: stretch;
    gap: 10px;
    padding: 10px 24px;
}

.navbar-collapse {
    align-items: stretch;
}

.navbar-brand {
    display: flex;
    align-items: center;
    height: 100%;
    margin-right: 40px !important;
}

.navbar-logo {
    height: 32px;
    width: auto;
}

.navbar-logo-small { display: none; }

.navbar-right-fixed {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Visible height of the header / bottom tab bar. Both drop to 0 while
   body.nav-hidden is set (mobile hide-on-scroll), so fixed bottom bars and
   sticky sidebars can follow the navigation in and out of view. */
body {
    --navbar-offset: var(--navbar-h, 70px);
    --bottom-nav-offset: var(--bottom-nav-h, 0px);
}

body.nav-hidden {
    --navbar-offset: 0px;
    --bottom-nav-offset: 0px;
}

/* Short tab label for the mobile bottom tab bar */
.nav-label-short { display: none; }

.nav-links {
    align-items: stretch;
}

.nav-links .nav-item {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-links-left {
    gap: 40px;
    flex: 1 0 0;
}

/* Five nav links (incl. the long German "Flachdichtungen") plus the right
   icon group don't fit the default 40px/32px gaps just above the collapse
   breakpoint — tighten them there instead of overflowing the page. */
@media (min-width: 992px) and (max-width: 1199px) {
    .nav-links-left { gap: 22px; }
    .navbar-right-fixed { gap: 20px; }
}

/* Even with the tighter gaps "Flachdichtungen" wraps onto two lines just
   above the breakpoint -- use the short tab-bar label there. */
@media (min-width: 992px) and (max-width: 1099px) {
    .nav-label-full { display: none; }
    .nav-label-short { display: inline; }
}

/* Mobile nav panel */
@media (max-width: 991px) {
    .nav-label-full { display: none; }
    .nav-label-short { display: inline; }

    /* Icons/lang-switch/toggler are wider than the gap budget allows once
       the navbar has to share the row with the logo on narrow phones —
       tighten the gap so the whole row fits without wrapping. The brand's
       40px margin-right exists to separate it from the desktop nav links,
       which are hidden here, so it's just dead space eating the budget. */
    .navbar-brand {
        margin-right: 0 !important;
    }
    .navbar-right-fixed {
        gap: 14px;
    }

    /* Header slides out of view while scrolling down (body.nav-hidden is
       toggled by the hide-on-scroll script in base.html). */
    .app-navbar {
        transition: top 0.25s ease;
    }

    body.nav-hidden .app-navbar {
        top: calc(-1 * var(--navbar-h, 70px));
    }

    /* Main nav links become a bottom tab bar instead of a burger panel */
    .navbar-collapse {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        border-top: 1px solid #d8dbdf;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
        padding-bottom: env(safe-area-inset-bottom);
        z-index: 999;
        transition: transform 0.25s ease;
    }

    body.nav-hidden .navbar-collapse {
        transform: translateY(100%);
        box-shadow: none;
    }

    /* Keep the last bit of content scrollable above the tab bar */
    body {
        padding-bottom: var(--bottom-nav-h, 0px);
    }

    .nav-links-left {
        flex-direction: row;
        gap: 0;
        flex: none;
        width: 100%;
        padding: 0;
    }

    .nav-links-left .nav-item {
        flex: 1 1 0;
        min-width: 0;
        position: relative;
    }

    .nav-links-left .nav-link-icon {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 8px 4px 6px;
        height: auto;
        font-size: 12px;
        gap: 2px;
        text-align: center;
        white-space: nowrap;
    }

    .nav-links-left .nav-link-icon svg.lucide {
        width: 22px;
        height: 22px;
    }

    /* Active indicator: top bar of the tab, covering the tab bar's border */
    .nav-links-left .nav-link-icon::after {
        top: -1px;
        bottom: auto;
        left: 0;
        right: 0;
        width: auto;
        height: 3px;
        border-radius: 0 0 3px 3px;
        transform: scaleX(0);
        transform-origin: center;
    }

    .nav-link-icon:hover::after        { transform: scaleX(0.5); }
    .nav-link-icon.nav-shrink-half::after { transform: scaleX(0.5); }
    .nav-link-icon.active::after,
    .nav-link-icon.nav-clicking::after { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .app-navbar,
    .navbar-collapse {
        transition: none;
    }
}

.nav-link-icon svg.lucide {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-icon-btn svg.lucide {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.nav-link-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 8px 0;
    color: #5C636B;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.nav-link-icon:hover {
    color: #15181C;
}

.nav-link-icon.active {
    color: #000000;
}

.nav-link-icon::after,
.nav-icon-btn::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #B90E64;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link-icon:hover::after,
.nav-icon-btn:hover::after,
.nav-link-icon.nav-shrink-half::after,
.nav-icon-btn.nav-shrink-half::after {
    transform: scaleX(0.5);
}

.nav-link-icon.active::after,
.nav-icon-btn.active::after,
.nav-link-icon.nav-clicking::after,
.nav-icon-btn.nav-clicking::after {
    transform: scaleX(1);
}

.lang-switch-form {
    display: flex;
}

.lang-switch {
    display: flex;
    position: relative;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #D8DBDF;
    border-radius: 6px;
    padding: 1px;
    height: 30px;
    width: 68px;
}

.lang-switch-pill {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 32px;
    height: 26px;
    border-radius: 4px;
    background: #15181C;
    transition: transform 0.2s ease;
}

.lang-switch-de .lang-switch-pill {
    transform: translateX(32px);
}

.lang-switch-option {
    position: relative;
    z-index: 1;
    flex: 1;
    height: 26px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #5C636B;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    transition: color 0.2s ease;
}

.lang-switch-option.active {
    color: #FFFFFF;
}

.nav-icon-wrap {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #5C636B;
    text-decoration: none;
}

.nav-icon-btn:hover,
.nav-icon-btn.active {
    color: #000000;
}

/* Info icon with the legal links (hosted on parts-printing.ch) */
.nav-legal-toggle {
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.nav-legal.open .nav-legal-toggle {
    color: #000000;
}

/* While the menu is open its icon carries the marker line; the current
   page's line steps aside so only one is shown at a time. */
.nav-legal.open .nav-legal-toggle::after {
    transform: scaleX(1);
}

.app-navbar:has(.nav-legal.open) .active::after {
    transform: scaleX(0);
}

/* Starts right below the header: the wrap ends at the container's 10px
   bottom padding, plus the navbar's 1px border. */
.nav-legal-menu {
    display: none;
    position: absolute;
    top: calc(100% + 11px);
    right: -12px;
    min-width: 220px;
    padding: 6px 0;
    background: #FFFFFF;
    border: 1px solid #D8DBDF;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.nav-legal.open .nav-legal-menu {
    display: block;
}

/* On phones the icon sits mid-header, so a menu anchored to it would run off
   the left edge -- pin it to the right edge just below the header instead. */
@media (max-width: 991px) {
    .nav-legal-menu {
        position: fixed;
        top: var(--navbar-h, 70px);
        right: 16px;
    }
}

.nav-legal-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #15181C;
    text-decoration: none;
    white-space: nowrap;
}

.nav-legal-menu a:hover,
.nav-legal-menu a:focus-visible {
    background: #F4F5F6;
}

.nav-legal-menu svg.lucide {
    width: 14px;
    height: 14px;
    color: #93969A;
    flex-shrink: 0;
}

.nav-divider {
    width: 1px;
    height: 26px;
    background: #d8dbdf;
}

.nav-cart-icon {
    position: relative;
    display: inline-flex;
}

.nav-cart-badge {
    position: absolute;
    top: -10px;
    right: -12px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #B90E64;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
}

h1 {
    font-size: 26px;
    font-weight: 600;
    color: #15181c;
}

.font-mono,
input[type="number"],
.numeric {
    font-family: 'IBM Plex Mono', monospace;
}

.container-my-form {
    padding-top: 12px;
    padding-bottom: 12px;
}

/* ─── Buttons: normal (page-level actions/CTAs) ───
   .btn-primary is the filled default (dark; pass --btn-color inline for
   variants like magenta). .btn-secondary is the white/outline counterpart;
   add .btn-danger alongside it for the red/destructive variant.
   A fixed height keeps icon and text-only buttons the same size, and icons
   inside are sized uniformly so inline icons never mismatch. */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-image 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.btn-primary {
    --btn-color: #15181C;
    background-color: var(--btn-color);
    background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
    border: 1px solid var(--btn-color);
    color: #FFFFFF;
}

/* Filter-based darken/lighten barely moves near-black colors, so the hover
   feedback used a translucent overlay instead — it lightens any --btn-color
   (dark default or a magenta override) by a fixed, clearly visible amount. */
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-image: linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18));
    border-color: var(--btn-color);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.btn-primary:disabled {
    background-color: #D8DBDF;
    background-image: none;
    border-color: #D8DBDF;
    color: #93969A;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-secondary {
    background: #FFFFFF;
    border: 1px solid #D8DBDF;
    color: #5C636B;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background: #F4F5F6;
    border-color: #D8DBDF;
    color: #5C636B;
}

.btn-secondary:disabled {
    background: #FFFFFF;
    border-color: #D8DBDF;
    color: #D8DBDF;
    cursor: not-allowed;
}

.btn-secondary.btn-danger {
    border-color: #C2362C;
    color: #C2362C;
}

.btn-secondary.btn-danger:hover,
.btn-secondary.btn-danger:focus,
.btn-secondary.btn-danger:active {
    background: #C2362C;
    border-color: #C2362C;
    color: #FFFFFF;
}

.btn-primary img,
.btn-primary svg,
.btn-primary i,
.btn-secondary img,
.btn-secondary svg,
.btn-secondary i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ─── Buttons: slim (compact inline actions inside cards/rows) ───
   Visually unrelated to the normal buttons above — smaller footprint,
   outline-only, meant to sit next to other content rather than stand alone. */
.btn-slim {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    background: #FFFFFF;
    border: 1px solid #15181C;
    color: #15181C;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.btn-slim:hover,
.btn-slim:focus {
    background: #15181C;
    color: #FFFFFF;
}

.btn-slim-danger {
    border-color: #C2362C;
    color: #C2362C;
}

.btn-slim-danger:hover,
.btn-slim-danger:focus {
    background: #C2362C;
    border-color: #C2362C;
    color: #FFFFFF;
}

.btn-slim img,
.btn-slim svg,
.btn-slim i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

a {
    color: #BA0062;
}

.register-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.15);
    margin-top: 12px;
    padding: 18px 24px;
}

/* Vertically stacked form fields with consistent spacing (register, login, ...) */
.stacked-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-control {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    border: 1px solid #D8DBDF;
    border-radius: 6px;
    background: #FAFBFB;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
}

.form-control::placeholder {
    color: #93969A;
}

/* ─── Text inputs & textareas (shared by class="text-input") ───
   Same 44px/14px/#fff/#d8dbdf look as .dd-trigger and .btn-primary.
   Number inputs also pick up the global monospace rule above. */
.text-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d8dbdf;
    border-radius: 6px;
    background: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #15181c;
    outline: none;
    transition: border-color 0.15s;
}

.text-input::placeholder { color: #93969a; }
.text-input:focus { border-color: #15181c; }

.text-input.invalid,
.text-input.is-invalid {
    border-color: #c2362c;
    background: #fff8f8;
}

textarea.text-input {
    height: auto;
    min-height: 84px;
    padding: 10px 14px;
    resize: vertical;
}

input[type="number"].text-input {
    -moz-appearance: textfield;
}

input[type="number"].text-input::-webkit-inner-spin-button,
input[type="number"].text-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.register-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
}

.register-login-hint {
    flex: 1 1 0;
    font-size: 14px;
    margin: 0;
}

.register-login-hint a {
    font-weight: 600;
    color: #000000;
    text-decoration: underline;
}

/* "By submitting … you accept our terms" line above register / checkout */
.legal-consent-note {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #5C636B;
    margin: 0;
}

.legal-consent-note a {
    color: #15181C;
    text-decoration: underline;
}

.register-submit {
    height: 44px;
    flex-shrink: 0;
}

.login-card {
    background: #ffffff;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.15);
    margin-top: 12px;
}

.login-form {
    flex: 1 1 0;
    min-width: 280px;
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.login-form form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.login-form .btn-primary {
    margin-top: auto;
}

.login-forgot-password {
    text-align: left;
    margin: 4px 0 0;
    font-size: 13px;
}

.login-forgot-password a {
    color: #B90E64;
}

/* ─── Narrow centered card (password reset flow) ─── */
.auth-page {
    max-width: 440px;
    margin: 0 auto;
}

.auth-page h1 {
    font-size: 24px;
    margin-bottom: 4px;
}

.auth-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.15);
    margin-top: 20px;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-card p {
    margin: 0;
    color: #5c636b;
    font-size: 14px;
    line-height: 1.5;
}

.auth-card form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-card .btn-primary {
    margin-top: 6px;
}

.auth-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.auth-actions-row .btn-primary {
    flex: 1;
    margin-top: 0;
}

.btn-icon-only {
    width: 44px;
    padding: 0;
    flex-shrink: 0;
}

.login-register {
    flex: 1 1 0;
    min-width: 280px;
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
    background: rgba(185, 14, 100, 0.15);
}

.login-register-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-register-title {
    color: #B90E64;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.login-register-text {
    font-size: 14px;
    margin: 0;
}

.login-register-list {
    font-size: 14px;
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.login-register-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 26px;
}

.login-register-check {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #B90E64;
    border-radius: 50%;
}

.login-register-check svg {
    width: 12px;
    height: 12px;
    stroke: #ffffff;
    stroke-width: 3;
}

/* ─── Shared form field styling (profile, registration, ...) ─── */
.acct-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    position: relative;
}

.acct-field-label {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: #5c636b;
    text-transform: uppercase;
}

.acct-field input,
.acct-field select {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #15181c;
    border: 1px solid #d8dbdf;
    border-radius: 6px;
    padding: 0 14px;
    height: 44px;
    width: 100%;
    background: #fff;
}

.acct-field input::placeholder { color: #93969a; }

.acct-field input:focus,
.acct-field select:focus {
    outline: none;
    border-color: #15181c;
}

.acct-field input[readonly] {
    background: #f2f3f5;
    color: #5c636b;
    cursor: not-allowed;
}

.acct-field input.is-invalid,
.acct-field select.is-invalid {
    border-color: #c2362c;
    background: #fff8f8;
}

.invalid-feedback {
    display: block;
    margin-top: -4px;
    color: #c2362c;
    font-size: 13px;
    line-height: 1.3;
    font-family: 'Roboto', sans-serif;
}

.invalid-feedback:empty {
    display: none;
}

.acct-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.acct-field-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.acct-field-subrow {
    display: flex;
    gap: 12px;
}

.acct-field-subrow .acct-field-fill {
    flex: 1 1 auto;
    min-width: 0;
}

.acct-field-subrow .acct-field-fit {
    flex: 0 0 140px;
}

@media (max-width: 600px) {
    .acct-field-row,
    .acct-field-row-3 {
        grid-template-columns: 1fr;
    }

    .acct-field-subrow .acct-field-fit {
        flex: 0 0 110px;
    }

    .invalid-feedback {
        font-size: 12px;
    }

    .alert {
        font-size: 13px;
    }
}

/* ─── Custom dropdown (shared by any <select class="dd-select">) ───
   Visually hides the native select and renders a styled trigger + option
   list in its place. See static/js/dropdown-select.js for the behavior. */
.dd-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.dd-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    background: #fff;
    border: 1px solid #d8dbdf;
    border-radius: 6px;
    padding: 0 14px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s;
}

.dd-trigger:hover,
.dd-trigger.open { border-color: #15181c; }

.dd-trigger.dd-disabled {
    background: #fafbfb;
    cursor: not-allowed;
    border-color: #d8dbdf;
}

.dd-label { color: #93969a; white-space: nowrap; flex-shrink: 0; }

.dd-value {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #93969a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dd-value.dd-has-value { color: #15181c; }

.dd-trigger.dd-disabled .dd-value { color: #c5c7ca; }

.dd-chevron {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #5c636b;
    transition: transform 0.2s;
}

.dd-trigger.open .dd-chevron { transform: rotate(180deg); }

.dd-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d8dbdf;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 25;
    max-height: 260px;
    overflow-y: auto;
}

.dd-dropdown.open { display: block; }

.dd-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #15181c;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.1s;
}

.dd-option:hover { background: #f4f5f6; }

.dd-option.selected { background: rgba(185,14,100,0.08); }

.dd-swatch {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.dd-swatch.dd-swatch-empty {
    border: 1.5px solid #d8dbdf;
    background: transparent;
}

/* ─── Confirm/alert dialog (replaces native confirm()/alert()) ───
   See static/js/confirm-dialog.js for the showConfirmDialog()/showAlertDialog()
   API that builds and controls this markup. */
.confirm-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(21, 24, 28, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.confirm-dialog-overlay.confirm-dialog-open {
    opacity: 1;
}

body.confirm-dialog-locked {
    overflow: hidden;
}

.confirm-dialog {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 400px;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    transform: scale(0.94) translateY(8px);
    transition: transform 0.15s ease;
    outline: none;
}

.confirm-dialog-overlay.confirm-dialog-open .confirm-dialog {
    transform: scale(1) translateY(0);
}

.confirm-dialog-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(185, 14, 100, 0.1);
    color: #B90E64;
    flex-shrink: 0;
    margin-bottom: 4px;
}

.confirm-dialog-icon svg.lucide {
    width: 24px;
    height: 24px;
}

.confirm-dialog-icon-danger {
    background: rgba(194, 54, 44, 0.1);
    color: #C2362C;
}

.confirm-dialog-title {
    font-size: 18px;
    font-weight: 600;
    color: #15181C;
    margin: 0;
}

.confirm-dialog-message {
    font-size: 14px;
    color: #5C636B;
    margin: 0;
    line-height: 1.5;
}

.confirm-dialog-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 14px;
}

.confirm-dialog-actions .btn-primary,
.confirm-dialog-actions .btn-secondary {
    flex: 1 1 0;
}

@media (max-width: 600px) {
    .confirm-dialog-title {
        font-size: 16px;
    }

    .confirm-dialog-message {
        font-size: 13px;
    }
}