/* ==========================================================================
   Mojodas B2B — global style (fresh front-end, step 1: foundation)
   Source: docs/b2b/design-brief/stitch_mojodas_b2b_front_design/mojodas_b2b_portal/DESIGN.md
   Loaded after front.css on every front page. Tokens are --mj-*; the older
   --d4w-* tokens are re-pointed to the same values so existing pages follow.
   ========================================================================== */

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --mj-font: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
    --mj-ink: #111827;
    --mj-ink-soft: #1f2937;
    --mj-text: #4b5563;
    --mj-muted: #6b7280;
    --mj-placeholder: #9ca3af;
    --mj-line: #e5e7eb;
    --mj-line-strong: #d1d5db;
    --mj-canvas: #f9fafb;
    --mj-surface: #ffffff;
    --mj-surface-muted: #f3f4f6;
    --mj-navy: #141b2b;
    --mj-navy-soft: #1d2638;
    --mj-accent: #54b8d4;
    --mj-accent-strong: #1f7f9c;
    --mj-accent-wash: #ebf7fa;
    --mj-accent-ring: rgba(84, 184, 212, 0.18);
    --mj-danger: #e11d48;
    --mj-r-card: 16px;
    --mj-r-input: 12px;
    --mj-r-btn: 12px;
    --mj-shadow-1: 0 1px 3px 0 rgba(17, 24, 39, 0.04), 0 1px 2px -1px rgba(17, 24, 39, 0.02);
    --mj-shadow-2: 0 10px 25px -5px rgba(17, 24, 39, 0.06), 0 8px 10px -6px rgba(17, 24, 39, 0.03);
    --mj-wrap: 1440px;
}

/* Older page blocks (configurator, review, account) now use the same palette */
.d4w-configurator-shell,
.d4w-review-page,
.d4w-toast,
.d4w-account-page,
#my-account #center_column,
#history #center_column,
#order-detail #center_column,
#module-d4wb2b-templates #center_column {
    --d4w-ink: var(--mj-ink);
    --d4w-ink-soft: var(--mj-ink-soft);
    --d4w-text: var(--mj-text);
    --d4w-muted: var(--mj-muted);
    --d4w-line: var(--mj-line);
    --d4w-line-strong: var(--mj-line-strong);
    --d4w-bg: var(--mj-surface);
    --d4w-bg-soft: var(--mj-canvas);
    --d4w-bg-muted: var(--mj-surface-muted);
    --d4w-accent-soft: var(--mj-accent-wash);
    --d4w-danger: #be123c;
}

/* --- Base ---------------------------------------------------------------- */

html,
body {
    background: var(--mj-canvas);
}

body,
button,
input,
select,
textarea,
.btn {
    font-family: var(--mj-font);
}

body {
    color: var(--mj-text);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-heading,
.page-subheading {
    color: var(--mj-ink);
    font-family: var(--mj-font);
    letter-spacing: -0.02em;
}

h1,
.page-heading {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
}

a {
    color: var(--mj-accent-strong);
}

a:hover,
a:focus {
    color: var(--mj-ink);
}

.container {
    max-width: var(--mj-wrap);
}

@media (min-width: 1280px) {
    .container {
        width: 100%;
        padding-right: 40px;
        padding-left: 40px;
    }
}

/* Prices and codes use tabular figures */
.price,
.d4w-price,
[class*='price'] {
    font-variant-numeric: tabular-nums;
}

:focus-visible {
    outline: 2px solid var(--mj-accent);
    outline-offset: 2px;
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
    border-radius: var(--mj-r-btn);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-default {
    border: 1px solid var(--mj-line);
    background: var(--mj-surface);
    color: var(--mj-ink);
    box-shadow: none;
}

.btn-default:hover,
.btn-default:focus {
    border-color: var(--mj-line-strong);
    background: var(--mj-surface-muted);
    color: var(--mj-ink);
}

.btn-primary,
.btn-success,
.btn-warning {
    border: 1px solid var(--mj-ink);
    background: var(--mj-ink);
    color: #ffffff;
    text-shadow: none;
    box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus,
.btn-warning:hover,
.btn-warning:focus {
    border-color: var(--mj-ink-soft);
    background: var(--mj-ink-soft);
    color: #ffffff;
}

.btn:focus-visible {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--mj-accent);
    outline: 0;
}

/* --- Forms --------------------------------------------------------------- */

.form-control,
input[type='text'],
input[type='email'],
input[type='password'],
input[type='tel'],
input[type='number'],
select,
textarea {
    border: 1px solid var(--mj-line);
    border-radius: var(--mj-r-input);
    background: var(--mj-surface);
    color: var(--mj-ink);
    box-shadow: none;
}

.form-control {
    height: 44px;
}

textarea.form-control {
    height: auto;
}

.form-control::placeholder {
    color: var(--mj-placeholder);
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--mj-accent);
    box-shadow: 0 0 0 3px var(--mj-accent-ring);
    outline: 0;
}

/* --- Breadcrumb ---------------------------------------------------------- */

.breadcrumb,
#columns .breadcrumb {
    padding: 14px 0;
    background: transparent;
    color: var(--mj-muted);
    font-size: 13px;
}

.breadcrumb a {
    color: var(--mj-muted);
}

.breadcrumb a:hover {
    color: var(--mj-accent-strong);
}

/* --- Alerts -------------------------------------------------------------- */

.alert {
    border-radius: var(--mj-r-input);
    box-shadow: none;
}

.alert-success {
    border-color: var(--mj-accent-line, #bfe3ee);
    background: var(--mj-accent-wash);
    color: var(--mj-accent-strong);
}

.alert-danger {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #9f1239;
}

/* --- Header (dark navy single bar) --------------------------------------- */

#header.mj-header {
    background: var(--mj-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

#header.mj-header .mj-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    min-height: 72px;
    padding-top: 8px;
    padding-bottom: 8px;
}

#header.mj-header .mj-logo {
    display: block;
    float: none;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 0;
}

#header.mj-header .mj-logo img {
    display: block;
    width: 112px;
    height: auto;
}

#header.mj-header .mj-header-nav {
    display: flex !important;
    flex: 1 1 auto;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
}

/* Menu from blocktopmenu */
#header.mj-header #block_top_menu {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    background: transparent;
}

#header.mj-header #block_top_menu .cat-title {
    display: none;
}

#header.mj-header #block_top_menu ul.sf-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
    background: transparent;
}

#header.mj-header #block_top_menu ul.sf-menu>li {
    float: none;
    margin: 0;
    background: transparent;
}

#header.mj-header #block_top_menu ul.sf-menu>li>a {
    display: block;
    padding: 8px 16px;
    border-radius: var(--mj-r-btn);
    background: transparent;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: none;
    transition: background 0.2s ease, color 0.2s ease;
}

#header.mj-header #block_top_menu ul.sf-menu>li>a:hover,
#header.mj-header #block_top_menu ul.sf-menu>li>a:focus,
#header.mj-header #block_top_menu ul.sf-menu>li.sfHover>a,
#header.mj-header #block_top_menu ul.sf-menu>li.sfHoverForce>a {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* User links and language */
#header.mj-header .mj-header-user {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    margin: 0 0 0 auto;
    padding: 0;
}

#header.mj-header .mj-header-user>li {
    float: none;
}

#header.mj-header .mj-header-user>li>a {
    padding: 8px 12px;
    border-radius: var(--mj-r-btn);
    background: transparent;
    color: #d1d5db;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: none;
}

#header.mj-header .mj-header-user>li>a:hover,
#header.mj-header .mj-header-user>li>a:focus,
#header.mj-header .mj-header-user>li.open>a {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

#header.mj-header .mj-header-user .dropdown-menu {
    border: 1px solid var(--mj-line);
    border-radius: var(--mj-r-input);
    box-shadow: var(--mj-shadow-2);
}

#header.mj-header .mj-header-user .dropdown-menu>li>a {
    color: var(--mj-ink);
    font-size: 13px;
}

/* Phone: toggle + stacked menu */
#header.mj-header .mj-toggle {
    display: none;
    float: none;
    margin: 0 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--mj-r-btn);
    background: transparent;
}

#header.mj-header .mj-toggle .icon-bar {
    background: #ffffff;
}

@media (max-width: 991px) {
    #header.mj-header .mj-toggle {
        display: block;
    }

    #header.mj-header .mj-header-nav {
        display: none !important;
        flex: 1 0 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px 0 12px;
    }

    #header.mj-header .mj-header-nav.in,
    #header.mj-header .mj-header-nav.collapsing {
        display: flex !important;
    }

    #header.mj-header #block_top_menu ul.sf-menu {
        flex-direction: column;
    }

    #header.mj-header .mj-header-user {
        flex-wrap: wrap;
        margin: 0;
    }
}

/* --- Footer (dark) -------------------------------------------------------- */

#footer {
    margin-top: 48px;
    padding: 40px 0 0;
    background: #0f1520;
    color: #9ca3af;
}

#footer a {
    color: #d1d5db;
}

#footer a:hover {
    color: #ffffff;
}

#footer h4,
#footer .h4,
#footer .title_block,
#footer section>h4 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#footer #copyright-footer {
    margin-top: 32px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #6b7280;
    font-size: 12px;
    text-align: center;
}

/* --- Page container ------------------------------------------------------- */

#columns {
    padding-bottom: 24px;
}

/* --- Shared components (chips, buttons, badges) --------------------------- */

.mj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--mj-line);
    border-radius: var(--mj-r-btn);
    background: var(--mj-surface);
    color: var(--mj-ink);
    font-family: var(--mj-font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mj-btn:hover,
.mj-btn:focus {
    border-color: var(--mj-line-strong);
    background: var(--mj-surface-muted);
    color: var(--mj-ink);
    text-decoration: none;
}

.mj-btn-primary {
    border-color: var(--mj-ink);
    background: var(--mj-ink);
    color: #ffffff;
}

.mj-btn-primary:hover,
.mj-btn-primary:focus {
    border-color: var(--mj-ink-soft);
    background: var(--mj-ink-soft);
    color: #ffffff;
}

.mj-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border: 1px solid var(--mj-line);
    border-radius: var(--mj-r-btn);
    background: var(--mj-surface);
    color: var(--mj-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mj-chip:hover,
.mj-chip:focus {
    border-color: var(--mj-line-strong);
    color: var(--mj-ink);
    text-decoration: none;
}

.mj-chip.is-active {
    border-color: var(--mj-surface);
    background: var(--mj-surface);
    color: var(--mj-ink);
}

.mj-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.mj-badge-dark {
    background: var(--mj-navy);
    color: #ffffff;
}

.mj-badge-light {
    background: rgba(255, 255, 255, 0.92);
    color: var(--mj-ink);
}

/* --- Catalogue ------------------------------------------------------------ */

#module-d4wb2b-products #center_column,
#module-d4wb2b-warehouse #center_column {
    float: none;
    width: 100%;
    padding-top: 24px;
}

#module-d4wb2b-products .breadcrumb,
#module-d4wb2b-warehouse .breadcrumb {
    display: none;
}

.mj-catalog-hero {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 36px 40px;
    overflow: hidden;
    border-radius: 24px;
    background:
        url('../img/header-wave.webp') right center / cover no-repeat,
        linear-gradient(135deg, #1d2638 0%, #141b2b 100%);
    color: #ffffff;
}

.mj-catalog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 27, 43, 0.92) 0%, rgba(20, 27, 43, 0.55) 100%);
    pointer-events: none;
}

.mj-catalog-hero>* {
    position: relative;
}

.mj-catalog-title {
    margin: 0;
    color: #ffffff;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.mj-catalog-tagline {
    max-width: 640px;
    margin: 10px 0 0;
    color: #d1d5db;
    font-size: 16px;
    line-height: 1.55;
}

.mj-catalog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mj-catalog-tabs .mj-chip {
    border-color: rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #e5e7eb;
}

.mj-catalog-tabs .mj-chip:hover,
.mj-catalog-tabs .mj-chip:focus {
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.mj-catalog-tabs .mj-chip.is-active {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--mj-ink);
}

.mj-catalog-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin: 20px 4px 16px;
    color: var(--mj-muted);
    font-size: 13px;
}

.mj-catalog-meta strong {
    color: var(--mj-ink);
}

.mj-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.mj-catalog-grid-item {
    display: flex;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.mj-card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--mj-line);
    border-radius: var(--mj-r-card);
    background: var(--mj-surface);
    box-shadow: var(--mj-shadow-1);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mj-card:hover,
.mj-card:focus-within {
    border-color: var(--mj-line-strong);
    box-shadow: var(--mj-shadow-2);
    transform: translateY(-2px);
}

.mj-card-media {
    position: relative;
    display: block;
    margin: 12px 12px 0;
    overflow: hidden;
    border-radius: 12px;
    background: var(--mj-canvas);
    aspect-ratio: 4 / 3;
}

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

.mj-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.mj-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px 20px;
}

.mj-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
}

.mj-card-title a {
    color: var(--mj-ink);
    text-decoration: none;
}

.mj-card-title a:hover {
    color: var(--mj-accent-strong);
}

.mj-card-code {
    margin: 0;
    color: var(--mj-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mj-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.mj-card-chips li {
    padding: 3px 10px;
    border-radius: 9999px;
    background: var(--mj-surface-muted);
    color: var(--mj-text);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.mj-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
}

.mj-card-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mj-card-price-label {
    color: var(--mj-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.mj-card-price-value {
    color: var(--mj-ink);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.mj-card-price-note {
    color: var(--mj-muted);
    font-size: 11px;
}

@media (max-width: 1099px) {
    .mj-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .mj-catalog-hero {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .mj-catalog-title {
        font-size: 30px;
    }

    .mj-catalog-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

/* --- Page hero (configurator, review, checkout) ---------------------------- */

#module-d4wb2b-product .breadcrumb {
    display: none;
}

.mj-page-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 24px 0 28px;
    padding: 24px 32px;
    overflow: hidden;
    border-radius: 24px;
    background:
        url('../img/header-wave.webp') right center / cover no-repeat,
        linear-gradient(135deg, #1d2638 0%, #141b2b 100%);
    color: #ffffff;
}

.mj-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 27, 43, 0.94) 0%, rgba(20, 27, 43, 0.6) 100%);
    pointer-events: none;
}

.mj-page-hero>* {
    position: relative;
}

.mj-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 13px;
}

.mj-breadcrumb a {
    color: #d1d5db;
    text-decoration: none;
}

.mj-breadcrumb a:hover {
    color: #ffffff;
}

.mj-breadcrumb .is-current {
    color: #ffffff;
    font-weight: 600;
}

.mj-page-hero-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
}

.mj-page-hero-title {
    margin: 0;
    color: #ffffff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-transform: none;
}

.mj-hero-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 600;
}

.mj-hero-steps li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mj-hero-steps li+li::before {
    content: '';
    width: 20px;
    height: 1px;
    margin-right: 4px;
    background: rgba(255, 255, 255, 0.25);
}

.mj-hero-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 11px;
}

.mj-hero-steps .is-current {
    color: #ffffff;
}

.mj-hero-steps .is-current .mj-hero-step-num {
    border-color: var(--mj-accent);
    background: var(--mj-accent);
    color: #ffffff;
}

@media (max-width: 767px) {
    .mj-page-hero {
        margin: 12px 0 20px;
        padding: 18px 18px;
        border-radius: 16px;
    }

    .mj-page-hero-title {
        font-size: 24px;
    }

    .mj-hero-steps {
        font-size: 12px;
    }

    .mj-hero-steps li:not(.is-current) .mj-hero-step-num~* {
        display: none;
    }
}

/* --- Configurator --------------------------------------------------------- */

.d4w-product-overview,
.d4w-configurator-step-card,
.d4w-summary-panel {
    border-color: var(--mj-line);
    border-radius: var(--mj-r-card);
    box-shadow: var(--mj-shadow-1);
}

.d4w-configurator-stage {
    border-radius: 20px;
    background: var(--mj-surface-muted);
}

.mj-overview-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mj-overview-code {
    color: var(--mj-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mj-overview-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.mj-badge-soft {
    background: var(--mj-surface-muted);
    color: var(--mj-ink);
}

.d4w-product-title {
    color: var(--mj-ink);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
}

.mj-overview-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 4px;
    padding: 0;
    list-style: none;
}

.mj-overview-specs li {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    min-width: 96px;
    padding: 8px 14px;
    border: 1px solid var(--mj-line);
    border-radius: 12px;
    background: var(--mj-canvas);
}

.mj-spec-label {
    color: var(--mj-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mj-spec-value {
    color: var(--mj-ink);
    font-size: 14px;
    font-weight: 700;
}

/* Sidebar totals: never wrap prices */
.d4w-summary-totals .pricing-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.d4w-summary-totals .pricing-row p {
    margin: 0;
}

.d4w-summary-totals .product-prices,
.d4w-summary-totals .product-prices span {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Optional sections: dark active item (Stitch) */
.d4w-optional-nav-item {
    border-radius: 12px;
}

.d4w-optional-nav-item.is-active {
    border-color: var(--mj-ink);
    background: var(--mj-ink);
    color: #ffffff;
}

.d4w-optional-nav-item.is-active * {
    color: inherit;
}

/* Prices on option cards in ink, never green */
.d4w-component-option-card .d4w-option-price,
.d4w-component-option-card [class*='price'] {
    color: var(--mj-ink);
    font-weight: 700;
}

.d4w-config-progress-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.d4w-config-progress-count {
    flex: 0 0 auto;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.add-to-order .btn,
#add-to-order-button {
    display: block;
    width: 100%;
    padding: 14px 20px;
    white-space: normal;
    border-radius: var(--mj-r-btn);
    font-size: 14px;
    line-height: 1.3;
}

@media (max-width: 767px) {
    .mj-hero-steps li+li::before {
        display: none;
    }
}

/* --- Review and delivery steps ------------------------------------------------ */

#module-d4wb2b-summary .breadcrumb {
    display: none;
}

.mj-page-hero-sub {
    max-width: 560px;
    margin: 6px 0 0;
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.5;
}

/* Stepper inside the hero uses the dark palette */
.mj-page-hero .d4w-checkout-stepper {
    margin: 0;
}

.mj-page-hero .d4w-checkout-stepper li {
    color: #9ca3af;
    font-size: 13px;
}

.mj-page-hero .d4w-checkout-stepper li+li::before {
    background: rgba(255, 255, 255, 0.25);
}

.mj-page-hero .d4w-checkout-stepper-num {
    border-color: rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #d1d5db;
}

.mj-page-hero .d4w-checkout-stepper li.is-done,
.mj-page-hero .d4w-checkout-stepper li.is-current {
    color: #ffffff;
}

.mj-page-hero .d4w-checkout-stepper li.is-done .d4w-checkout-stepper-num {
    border-color: var(--mj-accent);
    background: var(--mj-accent);
    color: #ffffff;
}

.mj-page-hero .d4w-checkout-stepper li.is-current .d4w-checkout-stepper-num {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--mj-ink);
}

/* Section headings, item cards, panels */
.d4w-review-step-num {
    background: var(--mj-navy);
}

.d4w-review-step-head h2 {
    font-size: 20px;
    letter-spacing: -0.02em;
    text-transform: none;
}

.d4w-review-page .d4w-review-section,
.d4w-review-page .d4w-review-section.d4w-review-section-base,
.d4w-review-page .d4w-summary-panel,
.d4w-review-page .d4w-review-card,
.d4w-checkout-mini {
    border: 1px solid var(--mj-line);
    border-radius: var(--mj-r-card);
    background: var(--mj-surface);
    box-shadow: var(--mj-shadow-1);
}

.d4w-review-page .d4w-review-checkout-panel {
    box-shadow: var(--mj-shadow-2);
}

/* Money columns */
.d4w-review-page .d4w-review-totals,
.d4w-review-page .d4w-review-totals *,
.d4w-review-page .pricing-row,
.d4w-review-page .price {
    font-variant-numeric: tabular-nums;
}

.d4w-review-page .pricing-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.d4w-review-page .pricing-row p {
    margin: 0;
}

/* Main buttons of both steps: full width pill */
.d4w-review-page .d4w-review-checkout-panel .btn-primary,
.d4w-review-page .d4w-review-checkout-panel .btn-success,
.d4w-review-page .d4w-review-checkout-panel button[type='submit'] {
    display: block;
    width: 100%;
    padding: 14px 20px;
    white-space: normal;
    border-radius: var(--mj-r-btn);
    font-size: 14px;
    line-height: 1.3;
}

/* File upload (orderimage module): clean drop zone look */
.d4w-review-page .orderimage-upload,
.d4w-review-page [class*='orderimage'] {
    border-radius: 12px;
}

@media (max-width: 767px) {
    .mj-review-hero .d4w-checkout-stepper li+li::before {
        width: 14px;
        margin: 0 6px;
    }
}

/* --- File upload drop zone (orderimage hook on the delivery step) ---------------- */

.mj-dropzone-block {
    margin-top: 20px;
}

.mj-dropzone-block h3 {
    margin: 0 0 10px;
    color: var(--mj-ink);
    font-size: 15px;
    font-weight: 700;
    text-transform: none;
}

.mj-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 24px 16px;
    border: 1.5px dashed var(--mj-line-strong);
    border-radius: 12px;
    background: var(--mj-canvas);
    color: var(--mj-text);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.mj-dropzone:hover,
.mj-dropzone:focus-within {
    border-color: var(--mj-accent);
    background: var(--mj-accent-wash);
}

.mj-dropzone input[type='file'] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.mj-dropzone-icon {
    color: var(--mj-accent-strong);
    font-size: 26px;
    line-height: 1;
}

.mj-dropzone-title {
    color: var(--mj-ink);
    font-size: 14px;
    font-weight: 600;
}

.mj-dropzone-hint {
    color: var(--mj-muted);
    font-size: 12px;
}

/* Upload starts when files are chosen; the button stays only as a no-JS fallback */
.mj-dropzone-submit {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

#orderimage-upload-message {
    display: block;
    margin-top: 8px;
    color: var(--mj-muted);
    font-size: 12px;
}

.orderimage-existing h4 {
    margin: 16px 0 8px;
    color: var(--mj-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.orderimage-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.orderimage-thumbs li {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 6px;
    border: 1px solid var(--mj-line);
    border-radius: 10px;
    background: var(--mj-surface);
}

.orderimage-thumbs img {
    border-radius: 6px;
}

.orderimage-delete {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: var(--mj-ink);
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

/* Beat the older review-page label/box rules */
#orderimage-container.mj-dropzone-block {
    padding: 0;
    border: 0;
    background: transparent;
}

#orderimage-container .mj-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 400;
}

#orderimage-upload-form {
    display: block;
    width: 100%;
}

#orderimage-container .mj-dropzone {
    width: 100%;
    box-sizing: border-box;
}

/* Review cards: left-aligned headings on phones too */
.d4w-review-page .d4w-review-section,
.d4w-review-page .d4w-review-section>* {
    text-align: left;
}

/* --- Account pages -------------------------------------------------------------- */

#my-account .breadcrumb,
#history .breadcrumb,
#order-detail .breadcrumb,
#module-d4wb2b-templates .breadcrumb {
    display: none;
}

#my-account #center_column,
#history #center_column,
#order-detail #center_column,
#module-d4wb2b-templates #center_column {
    padding-top: 0;
}

/* Order detail page: the hero already shows the reference, keep only the reorder button in the bar */
#order-detail #center_column>.box:first-child p {
    display: none;
}

#order-detail #center_column>.box:first-child {
    justify-content: flex-end;
    background: transparent;
    border: 0;
    padding: 0;
}

/* Feature icons (heating, seats, size, shape) */
.mj-card-chips li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mj-card-chips li .icon {
    color: var(--mj-accent-strong);
    font-size: 12px;
    line-height: 1;
}

.mj-spec-label .icon {
    margin-right: 2px;
    color: var(--mj-accent-strong);
}

/* --- Header: language flags and user menu ---------------------------------------- */

#header.mj-header .mj-header-user>li>a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mj-flag {
    display: inline-block;
    width: 24px;
    height: 16px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
    object-fit: cover;
    vertical-align: middle;
}

/* Language dropdown: light panel, readable text, flag only items */
#header.mj-header #blocklanguages .dropdown-menu {
    min-width: 0;
    margin-top: 8px;
    padding: 6px;
    border: 1px solid var(--mj-line);
    border-radius: 12px;
    background: var(--mj-surface);
    box-shadow: var(--mj-shadow-2);
    z-index: 999;
}

#header.mj-header #blocklanguages .dropdown-menu>li>a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: transparent;
    color: var(--mj-ink);
}

#header.mj-header #blocklanguages .dropdown-menu>li>a:hover,
#header.mj-header #blocklanguages .dropdown-menu>li>a:focus {
    background: var(--mj-surface-muted);
    color: var(--mj-ink);
}

#header.mj-header #blocklanguages .dropdown-menu>li.active>a,
#header.mj-header #blocklanguages .dropdown-menu>li.active>a:hover {
    background: var(--mj-accent-wash);
    color: var(--mj-ink);
}

#header.mj-header #blocklanguages .dropdown-menu .mj-flag {
    box-shadow: 0 0 0 1px var(--mj-line);
}

/* User: avatar + name, logout as an icon button */
.mj-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--mj-accent-strong);
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
}

#header.mj-header .mj-header-user #blockuserinfo-customer>a {
    padding-left: 6px;
}

#header.mj-header .mj-header-user .mj-icon-link {
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    font-size: 15px;
}

#header.mj-header .mj-header-user .mj-icon-link:hover,
#header.mj-header .mj-header-user .mj-icon-link:focus {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

@media (max-width: 991px) {
    #header.mj-header #blocklanguages .dropdown-menu {
        position: static;
        float: none;
        margin-top: 6px;
    }
}

/* --- Catalogue toolbar: search, filters, sort, view ---------------------------------- */

.mj-catalog-grid-item[hidden],
.mj-catalog-empty[hidden],
.mj-link-btn[hidden] {
    display: none !important;
}

.mj-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0 20px;
    padding: 16px;
    border: 1px solid var(--mj-line);
    border-radius: var(--mj-r-card);
    background: var(--mj-surface);
    box-shadow: var(--mj-shadow-1);
}

.mj-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.mj-search {
    position: relative;
    flex: 1 1 260px;
    max-width: 420px;
}

.mj-search .icon {
    position: absolute;
    top: 50%;
    left: 14px;
    color: var(--mj-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.mj-search input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 38px;
    border: 1px solid transparent;
    border-radius: var(--mj-r-input);
    background: var(--mj-surface-muted);
    color: var(--mj-ink);
    font-size: 14px;
}

.mj-search input:focus {
    border-color: var(--mj-accent);
    background: var(--mj-surface);
    box-shadow: 0 0 0 3px var(--mj-accent-ring);
    outline: 0;
}

.mj-filter-chips {
    display: flex;
    flex: 2 1 320px;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.mj-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: var(--mj-r-btn);
    background: var(--mj-surface-muted);
    color: var(--mj-text);
    font-family: var(--mj-font);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mj-chip-btn:hover,
.mj-chip-btn:focus {
    background: var(--mj-line);
    color: var(--mj-ink);
}

.mj-chip-btn.is-active {
    border-color: var(--mj-ink);
    background: var(--mj-ink);
    color: #ffffff;
}

.mj-chip-btn[data-group].is-active {
    border-color: var(--mj-accent);
    background: var(--mj-accent);
}

.mj-filter-dd {
    position: relative;
}

.mj-filter-pop {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    display: none;
    min-width: 200px;
    max-height: 280px;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid var(--mj-line);
    border-radius: 12px;
    background: var(--mj-surface);
    box-shadow: var(--mj-shadow-2);
}

.mj-filter-dd.is-open .mj-filter-pop {
    display: block;
}

.mj-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--mj-ink);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.mj-check:hover {
    background: var(--mj-surface-muted);
}

.mj-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--mj-accent);
}

.mj-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.mj-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.mj-sort-label {
    color: var(--mj-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mj-select {
    height: 40px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: var(--mj-r-input);
    background: var(--mj-surface-muted);
    color: var(--mj-ink);
    font-family: var(--mj-font);
    font-size: 13px;
    font-weight: 600;
}

.mj-view-toggle {
    display: inline-flex;
    padding: 4px;
    border-radius: 10px;
    background: var(--mj-surface-muted);
}

.mj-view-toggle button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--mj-muted);
    cursor: pointer;
}

.mj-view-toggle button[aria-pressed='true'] {
    background: var(--mj-surface);
    color: var(--mj-ink);
    box-shadow: var(--mj-shadow-1);
}

.mj-toolbar-feedback {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding-top: 10px;
    border-top: 1px solid var(--mj-surface-muted);
    color: var(--mj-muted);
    font-size: 13px;
}

.mj-feedback-count strong {
    color: var(--mj-ink);
}

.mj-feedback-note {
    margin-left: auto;
}

.mj-link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--mj-accent-strong);
    font-family: var(--mj-font);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.mj-catalog-empty {
    margin: 0 0 24px;
    padding: 32px 16px;
    border: 1px dashed var(--mj-line-strong);
    border-radius: var(--mj-r-card);
    background: var(--mj-canvas);
    color: var(--mj-text);
    text-align: center;
}

/* List view */
.mj-catalog-grid.is-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.mj-catalog-grid.is-list .mj-card {
    flex-direction: row;
}

.mj-catalog-grid.is-list .mj-card-media {
    flex: 0 0 280px;
    margin: 12px 0 12px 12px;
    aspect-ratio: 4 / 3;
}

.mj-catalog-grid.is-list .mj-card-body {
    justify-content: center;
}

.mj-catalog-grid.is-list .mj-card-foot {
    margin-top: 12px;
}

@media (max-width: 767px) {
    .mj-toolbar {
        padding: 12px;
    }

    .mj-search {
        flex-basis: 100%;
        max-width: none;
    }

    .mj-toolbar-right {
        flex: 1 1 100%;
        justify-content: space-between;
        margin-left: 0;
    }

    .mj-sort-label {
        display: none;
    }

    .mj-feedback-note {
        margin-left: 0;
    }

    .mj-view-toggle {
        display: none;
    }

    .mj-catalog-grid.is-list .mj-card {
        flex-direction: column;
    }

    .mj-catalog-grid.is-list .mj-card-media {
        flex-basis: auto;
        margin: 12px 12px 0;
    }
}

/* Theme hides raw checkboxes; the filter dropdown needs them visible */
.mj-check input[type='checkbox'] {
    position: static;
    display: inline-block;
    opacity: 1;
    -webkit-appearance: checkbox;
    appearance: auto;
    flex: 0 0 16px;
}

/* ==========================================================================
   Stitch look pass: slate panels with blended wave, lighter type weights
   ========================================================================== */

:root {
    --mj-slate-900: #0f172a;
    --mj-slate-800: #1e293b;
    --mj-cyan-soft: #b1ebff;
}

/* Header: translucent slate with blur */
#header.mj-header {
    background: rgba(15, 23, 42, 0.95);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
}

#header.mj-header #block_top_menu ul.sf-menu>li>a,
#header.mj-header .mj-header-user>li>a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

#header.mj-header .mj-header-user #blockuserinfo-customer .mj-user-name {
    color: #ffffff;
    font-weight: 600;
}

/* Hero panels: slate base + wave image blended on top (as in the Stitch export) */
.mj-page-hero,
.mj-catalog-hero {
    background: var(--mj-slate-800);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.mj-page-hero::before,
.mj-catalog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/header-wave.webp') center top / cover no-repeat;
    opacity: 0.45;
    mix-blend-mode: screen;
    pointer-events: none;
}

.mj-page-hero-title,
.mj-catalog-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.mj-page-hero-sub,
.mj-catalog-tagline {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

.mj-breadcrumb {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Category tabs in the catalogue hero */
.mj-catalog-tabs .mj-chip {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.mj-catalog-tabs .mj-chip:hover,
.mj-catalog-tabs .mj-chip:focus {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.mj-catalog-tabs .mj-chip.is-active {
    border-color: #ffffff;
    background: #ffffff;
    color: #000000;
}

.mj-chip-count {
    padding: 2px 8px;
    border-radius: 9999px;
    background: var(--mj-cyan-soft);
    color: #001f27;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.mj-chip.is-active .mj-chip-count {
    background: #000000;
    color: #ffffff;
}

/* Lighter weights across catalogue controls */
.mj-chip-btn,
.mj-select,
.mj-btn,
.mj-chip {
    font-weight: 500;
}

.mj-hero-steps {
    font-weight: 500;
}

/* --- Catalogue hero (Stitch layout), menu active state, user company ---------------- */

.mj-catalog-hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 16px;
    padding: 24px;
    border-radius: 16px;
}

.mj-hero-top,
.mj-hero-mid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}

.mj-hero-mid {
    align-items: flex-end;
}

.mj-hero-title-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 16px;
}

.mj-hero-label {
    color: var(--mj-cyan-soft);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mj-catalog-tagline {
    max-width: 760px;
    margin: 6px 0 0;
}

.mj-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mj-hero-pill i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mj-cyan-soft);
}

.mj-hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.mj-hero-stats>div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 20px;
}

.mj-hero-stats>div:first-child {
    padding-left: 0;
}

.mj-hero-stats>div:last-child {
    padding-right: 0;
}

.mj-hero-stats>div+div {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.mj-hero-stats dt {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.mj-hero-stats .is-accent dt {
    color: var(--mj-cyan-soft);
}

.mj-hero-stats dd {
    margin: 0;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* Header menu: active page */
#header.mj-header #block_top_menu ul.sf-menu>li.is-active>a {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* User: name with company below */
.mj-user-text {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.25;
}

.mj-user-company {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

@media (max-width: 991px) {
    .mj-hero-stats {
        align-self: flex-start;
    }

    .mj-user-text {
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .mj-catalog-hero {
        padding: 18px;
    }
}

/* Use the full width from tablet landscape up (bootstrap fixes .container at 970px) */
@media (min-width: 992px) {
    .container {
        width: 100%;
        max-width: var(--mj-wrap);
        padding-right: 32px;
        padding-left: 32px;
    }
}

/* Buttons and controls share the 12px radius; badges, counters and feature tags stay pills */
.d4w-btn-primary,
.d4w-btn-danger-link,
.mj-view-toggle button,
#header.mj-header .mj-header-user .mj-icon-link {
    border-radius: var(--mj-r-btn);
}

.mj-view-toggle {
    border-radius: var(--mj-r-btn);
}

/* --- Catalogue: feedback line dot and soft wave behind the grid ------------------------- */

.mj-feedback-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--mj-accent-strong);
    vertical-align: middle;
}

.mj-feedback-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mj-feedback-count strong {
    margin: 0 2px;
}

.mj-catalog-body {
    position: relative;
}

.mj-catalog-body>* {
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .mj-catalog-body::before {
        content: '';
        position: absolute;
        top: -64px;
        right: -32px;
        bottom: -64px;
        left: -32px;
        z-index: 0;
        background: url('../img/page-wave.webp') center top / contain repeat-y;
        opacity: 0.3;
        pointer-events: none;
    }
}

#module-d4wb2b-products,
#module-d4wb2b-warehouse {
    overflow-x: hidden;
}
/* Delivery address manager (checkout step) */
.d4w-address-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 8px; }
.d4w-address-row .d4w-address-option { flex: 1 1 auto; margin: 0; }
.d4w-address-actions { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.d4w-address-action { width: 36px; height: 36px; padding: 0; border: 1px solid var(--mj-line-strong); border-radius: var(--mj-r-btn); background: var(--mj-surface); color: var(--mj-text); cursor: pointer; }
.d4w-address-action:hover, .d4w-address-action:focus { border-color: var(--mj-accent); color: var(--mj-accent-strong); }
.d4w-address-action--danger:hover, .d4w-address-action--danger:focus { border-color: var(--mj-danger); color: var(--mj-danger); }
button.d4w-add-address-link { background: transparent; border: 1px dashed var(--mj-line-strong); color: var(--mj-accent-strong); padding: 10px 14px; border-radius: var(--mj-r-btn); cursor: pointer; font-weight: 600; }
.d4w-address-editor-host { margin-top: 14px; padding: 16px; border: 1px solid var(--mj-line); border-radius: var(--mj-r-card); background: var(--mj-surface); }
.d4w-address-editor-host[hidden], .d4w-address-feedback[hidden], .d4wb2b-field-error[hidden], [data-address-state-group][hidden] { display: none; }
.d4wb2b-address-form legend { border: 0; font-size: 18px; font-weight: 700; color: var(--mj-ink); }
.d4wb2b-address-form .form-group.has-error .form-control { border-color: var(--mj-danger); }
.d4wb2b-field-error { color: var(--mj-danger); }
.d4wb2b-address-form-actions { display: flex; gap: 10px; margin-top: 14px; }
.d4wb2b-address-form-actions .is-loading { opacity: 0.6; pointer-events: none; }
.d4w-address-feedback { margin-top: 10px; }

/* Header dropdowns (language, account) must paint above the page hero. */
#header.mj-header { position: relative; z-index: 100; }
#header.mj-header .dropdown-menu { z-index: 1001; }

/* Optional panel: variant groups first, standalone products below them. */
.d4w-standalone-products--after-groups { margin-top: 24px; }

/* Required sections: standalone cards and group cards share one grid of equal cards. */
.d4w-required-sections .d4w-options-grid,
.d4w-required-sections .d4w-component-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    align-items: stretch;
}
.d4w-required-sections .d4w-options-grid > .d4w-card { height: 100%; min-width: 0; }
.d4w-required-sections .d4w-card-media { aspect-ratio: 4 / 3; }
.d4w-required-sections .component-product-group { cursor: pointer; }
.d4w-required-sections .d4w-card-swatches { margin-top: auto; padding-top: 10px; }
.d4w-required-sections .component-product-group .d4w-card-footer { min-height: 24px; }

.d4w-required-sections .d4w-component-section, #d4w-optional-sections { scroll-margin-top: 76px; }

/* Configurator stage B: rule hint, group filter chips, summary edit, variant-switch modal */
.d4w-rule-hint { margin: 2px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--mj-muted); }
.d4w-group-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.d4w-group-filter-chip { padding: 6px 12px; border: 1px solid var(--mj-line); border-radius: var(--mj-r-btn); background: var(--mj-surface); color: var(--mj-text); font: 600 13px/1.2 var(--mj-font); cursor: pointer; }
.d4w-group-filter-chip:hover, .d4w-group-filter-chip:focus-visible { border-color: var(--mj-accent); outline: none; }
.d4w-group-filter-chip.is-active { background: var(--mj-accent); border-color: var(--mj-accent); color: #fff; }
[data-filter-key][hidden] { display: none !important; }
.d4w-summary-edit { padding: 2px 6px; color: var(--mj-muted); }
.d4w-summary-edit:hover, .d4w-summary-edit:focus { color: var(--mj-accent-strong); }
.d4w-modal-backdrop { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(17, 24, 39, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.d4w-modal { width: 100%; max-width: 440px; padding: 24px; border-radius: var(--mj-r-card); background: var(--mj-surface); box-shadow: 0 24px 48px rgba(17, 24, 39, 0.25); }
.d4w-modal-title { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--mj-ink); }
.d4w-modal-text { margin: 0 0 20px; color: var(--mj-text); line-height: 1.5; }
.d4w-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* Merged flow: every section is an accordion item with a number */
.d4w-section-number { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; background: var(--mj-ink); color: #fff; font-size: 13px; font-weight: 700; vertical-align: middle; }
.d4w-section-number:empty { display: none; }
.d4w-sections-flow .d4w-component-section { margin-bottom: 16px; }
.d4w-sections-flow .d4w-component-section.is-optional .d4w-active-category-workspace { padding: 0; box-shadow: none; border: 0; background: transparent; }
.d4w-sections-flow .d4w-accordion-body { overflow: visible; }

/* Phone: comfortable touch targets and two columns of option cards */
@media (max-width: 767px) {
    .d4w-jump-chip { min-height: 44px; }
    .d4w-sections-flow .d4w-btn-select,
    .d4w-sections-flow .d4w-group-filter-chip,
    .d4w-sections-flow .d4w-swatch-btn { min-height: 44px; min-width: 44px; }
    .d4w-required-sections .d4w-options-grid,
    .d4w-required-sections .d4w-component-option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .d4w-required-sections .d4w-card { padding: 12px; }
    .d4w-sections-flow .d4w-card-title { font-size: 14px; }
}
@media (max-width: 767px) {
    .d4w-required-sections .d4w-card-footer { flex-direction: column; align-items: stretch; gap: 8px; }
    .d4w-required-sections .d4w-card-footer .d4w-btn-select { width: 100%; padding: 0 8px; }
    .d4w-required-sections .d4w-card-price { white-space: normal; }
}

/* Summary split: required components / selected extras */
.d4w-summary-list > .d4w-summary-divider { padding: 12px 2px 6px; margin: 0; list-style: none; border: 0; background: transparent; box-shadow: none; }
.d4w-summary-divider-title { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mj-muted); }
.d4w-summary-list > .d4w-summary-divider:first-child { padding-top: 0; }

/* Configurator layout (Stitch round 2): compact flow bar, full-width product header, grid below */
.mj-configurator-hero { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; border-radius: var(--mj-r-card); justify-content: space-between; gap: 8px 24px; padding: 12px 24px; margin-bottom: 16px; }
.mj-configurator-hero .mj-breadcrumb { margin: 0; }
.mj-configurator-hero .mj-page-hero-row { margin: 0; justify-content: flex-end; flex: 0 1 auto; }

.d4w-configurator-shell > .d4w-product-overview { margin-bottom: 24px; background: var(--mj-surface); background-image: none; border-radius: var(--mj-r-card); padding: 24px; grid-template-columns: minmax(300px, 5fr) 7fr; gap: 32px; }
.d4w-configurator-shell > .d4w-product-overview .d4w-product-title { font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; }
.d4w-configurator-shell .mj-overview-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.d4w-product-intro.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.d4w-intro-toggle { align-self: flex-start; margin-top: -8px; padding: 0; background: none; border: 0; color: var(--mj-accent-strong); font-weight: 600; cursor: pointer; }
.d4w-configurator-grid { margin-left: -12px; margin-right: -12px; }
@media (max-width: 991px) {
    .d4w-configurator-shell > .d4w-product-overview { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
    .d4w-configurator-shell > .d4w-product-overview .d4w-product-title { font-size: 26px; }
}
.d4w-configurator-shell { display: block; }
.d4w-configurator-shell > .d4w-product-overview { width: 100%; }
@media (max-width: 575px) {
    .d4w-configurator-shell .mj-overview-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* Section header (Stitch round 2): title + badge + hint on the left, current choice pill + chevron on the right */
.d4w-sections-flow .d4w-component-section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 2px; align-items: center; }
.d4w-sections-flow .d4w-component-head-row { grid-column: 1; grid-row: 1; }
.d4w-sections-flow .d4w-rule-hint { grid-column: 1; grid-row: 2; margin: 0; }
.d4w-sections-flow .d4w-component-description { grid-column: 1; grid-row: 3; margin: 0; }
.d4w-sections-flow .d4w-component-section-toggle { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: auto; max-width: 46vw; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 6px 8px 6px 10px; border: 1px solid var(--mj-line); border-radius: var(--mj-r-btn); background: var(--mj-accent-wash); }
.d4w-sections-flow .d4w-component-selection-label { display: none; }
.d4w-sections-flow .d4w-component-selection-summary { min-width: 0; }
.d4w-sections-flow .d4w-component-selection-value { display: flex; align-items: center; gap: 10px; min-width: 0; }
.d4w-sections-flow .d4w-summary-item-body { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.d4w-sections-flow .d4w-summary-image { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; overflow: hidden; }
.d4w-sections-flow .d4w-summary-image img { width: 100%; height: 100%; object-fit: cover; }
.d4w-sections-flow .d4w-summary-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.d4w-sections-flow .d4w-summary-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.d4w-sections-flow .d4w-summary-price { font-size: 12px; color: var(--mj-accent-strong); }
.d4w-sections-flow .d4w-summary-empty { font-size: 13px; color: var(--mj-muted); }
.d4w-summary-more { padding: 2px 8px; border-radius: 999px; background: var(--mj-surface); border: 1px solid var(--mj-line); font-size: 12px; font-weight: 700; }
.d4w-sections-flow .d4w-component-toggle-label { display: inline-flex; align-items: center; gap: 6px; }
.d4w-sections-flow .d4w-toggle-text-collapsed, .d4w-sections-flow .d4w-toggle-text-expanded { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* No grey wrapper around the sections */
.d4w-configurator-stage { background: transparent; padding: 0; border: 0; box-shadow: none; }
.d4w-configurator-stage-header { display: none; }

@media (max-width: 767px) {
    .d4w-sections-flow .d4w-component-section-head { grid-template-columns: 1fr; }
    .d4w-sections-flow .d4w-component-section-toggle { grid-column: 1; grid-row: auto; width: 100%; max-width: none; justify-content: space-between; margin-top: 10px; }
    .d4w-sections-flow .d4w-summary-name { max-width: 55vw; }
}
.d4w-sections-flow .d4w-component-title { text-transform: none; font-size: 18px; letter-spacing: -0.005em; }
.d4w-sections-flow .d4w-component-section-head { padding: 14px 20px; }
.d4w-sections-flow .d4w-component-section.is-expanded .d4w-component-section-head { padding-bottom: 14px; }
.d4w-sections-flow .d4w-component-section-toggle { min-height: 44px; }

/* ==========================================================================
   Reference match (Stitch round 3): light header, flow bar, product header,
   section cards, option cards and the summary. Colours/type follow the export
   (secondary #00677c, secondary-fixed #b1ebff, Plus Jakarta Sans scale).
   ========================================================================== */
:root {
    --ref-surface: #f8f9fa;
    --ref-low: #f3f4f5;
    --ref-container: #edeeef;
    --ref-high: #e7e8e9;
    --ref-highest: #e1e3e4;
    --ref-ink: #191c1d;
    --ref-ink-soft: #45464c;
    --ref-outline: rgba(198, 198, 205, 0.45);
    --ref-secondary: #00677c;
    --ref-secondary-fixed: #b1ebff;
    --ref-on-secondary-fixed: #001f27;
}

/* Header: light, 80px */
#header.mj-header { background: rgba(248, 249, 250, 0.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 0; box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04); }
#header.mj-header .mj-header-inner { min-height: 80px; }
#header.mj-header .mj-logo img { height: 40px; width: auto; }
#header.mj-header #block_top_menu ul.sf-menu > li > a { color: var(--ref-ink-soft); font-size: 13px; font-weight: 500; letter-spacing: 0.01em; background: transparent; font-family: var(--mj-font); }
#header.mj-header #block_top_menu ul.sf-menu > li > a:hover,
#header.mj-header #block_top_menu ul.sf-menu > li > a:focus,
#header.mj-header #block_top_menu ul.sf-menu > li.sfHover > a { color: var(--ref-ink); background: var(--ref-container); }
#header.mj-header #block_top_menu ul.sf-menu > li.is-active > a { color: #000; font-weight: 600; background: var(--ref-container); }
#header.mj-header .mj-header-user > li > a { color: var(--ref-ink); background: var(--ref-container); border-radius: 999px; }
#header.mj-header .mj-header-user #blockuserinfo-customer > a { background: #fff; border: 1px solid var(--ref-outline); }
#header.mj-header .mj-header-user #blockuserinfo-customer .mj-user-name { color: var(--ref-ink); font-weight: 600; font-size: 13px; }
#header.mj-header .mj-header-user .mj-user-company { color: var(--ref-ink-soft); }
#header.mj-header .mj-header-user .mj-icon-link { background: transparent; color: var(--ref-ink-soft); }
#header.mj-header .mj-header-user .mj-icon-link:hover,
#header.mj-header .mj-header-user .mj-icon-link:focus { background: var(--ref-container); color: var(--ref-ink); }
#header.mj-header .mj-flag { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); }
#header.mj-header .mj-toggle .icon-bar { background: var(--ref-ink); }

/* Flow bar (breadcrumb + steps): full-width light strip */
.mj-configurator-hero { margin: 0 0 24px; padding: 14px 0; border-radius: 0; background: var(--ref-low); border-bottom: 1px solid var(--ref-outline); box-shadow: none; color: var(--ref-ink); }
.mj-configurator-hero::before { display: none; }
.mj-configurator-hero .mj-breadcrumb { color: var(--ref-ink-soft); font-size: 13px; }
.mj-configurator-hero .mj-breadcrumb a { color: var(--ref-ink-soft); }
.mj-configurator-hero .mj-breadcrumb a:hover { color: #000; }
.mj-configurator-hero .mj-breadcrumb .is-current { color: #000; font-weight: 600; }
.mj-configurator-hero .mj-hero-steps { color: var(--ref-ink-soft); }
.mj-configurator-hero .mj-hero-steps li.is-current { color: #000; background: #fff; border: 1px solid var(--ref-outline); border-radius: 999px; padding: 4px 12px 4px 4px; }
.mj-configurator-hero .mj-hero-step-num { background: var(--ref-high); color: var(--ref-ink-soft); }
.mj-configurator-hero .is-current .mj-hero-step-num { background: #000; color: #fff; }

/* Product header: no outer card; media card + specs like the export */
.d4w-configurator-shell > .d4w-product-overview { border: 0; box-shadow: none; background: transparent; padding: 0 0 8px; }
.d4w-configurator-shell > .d4w-product-overview .d4w-product-title { font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -0.02em; color: var(--ref-ink); text-transform: none; }
.d4w-configurator-shell .d4w-product-kicker { display: none; }
.d4w-configurator-shell .mj-badge { border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.d4w-configurator-shell .mj-badge-soft { background: var(--ref-secondary-fixed); color: var(--ref-on-secondary-fixed); }
.d4w-configurator-shell .mj-overview-specs li { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--ref-low); border: 0; border-radius: 12px; }
.d4w-configurator-shell .mj-spec-label { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--ref-ink-soft); text-transform: none; }
.d4w-configurator-shell .d4w-product-intro { color: var(--ref-ink-soft); font-size: 14px; line-height: 20px; }
.d4w-configurator-shell .d4w-configurator-step-card { background: var(--ref-low); border: 0; border-radius: 16px; box-shadow: none; }

/* Section cards */
.d4w-sections-flow .d4w-component-section { background: #fff; border: 1px solid var(--ref-outline); border-radius: 16px; box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04); }
.d4w-sections-flow .d4w-component-title { font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.005em; color: #000; }
.d4w-sections-flow .d4w-section-number { background: #000; color: #fff; width: 28px; height: 28px; }
.d4w-sections-flow .is-optional .d4w-section-number { background: var(--ref-highest); color: #000; }
.d4w-sections-flow .d4w-status-pill { border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: none; }
.d4w-sections-flow .d4w-status-pill.is-pending { background: #000; color: #fff; }
.d4w-sections-flow .d4w-status-pill.is-optional { background: var(--ref-high); color: var(--ref-ink-soft); }
.d4w-sections-flow .d4w-status-pill.is-complete { background: var(--ref-secondary-fixed); color: var(--ref-on-secondary-fixed); }
.d4w-sections-flow .d4w-rule-hint { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--ref-ink-soft); }
.d4w-sections-flow .d4w-component-section-toggle { background: var(--ref-secondary-fixed); border: 0; border-radius: 999px; color: var(--ref-on-secondary-fixed); }
.d4w-sections-flow .d4w-component-section-toggle .d4w-summary-price { color: var(--ref-on-secondary-fixed); }
.d4w-sections-flow .d4w-toggle-chevron { background: transparent; }
.d4w-sections-flow .d4w-toggle-chevron:before { border-color: var(--ref-ink-soft, #44474b); }

/* Option cards: 16:9 image, name + price on one row, whole card clickable */
.d4w-sections-flow .d4w-options-grid,
.d4w-sections-flow .d4w-component-option-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; padding: 0 24px 24px; }
.d4w-sections-flow .product-component-block .product-component-products .d4w-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; row-gap: 4px; column-gap: 8px; padding: 12px; background: var(--ref-low); border: 0; border-radius: 12px; box-shadow: none; transition: background 0.15s ease; }
.d4w-sections-flow .product-component-block .product-component-products .d4w-card:hover { background: var(--ref-container); box-shadow: none; }
.d4w-sections-flow .product-component-block .product-component-products .d4w-card.selected,
.d4w-sections-flow .product-component-block .product-component-products .d4w-card.is-selected { background: var(--ref-low); box-shadow: 0 0 0 2px var(--ref-secondary), 0 1px 3px rgba(0, 0, 0, 0.1); }
.d4w-sections-flow .product-component-block .product-component-products .d4w-card-media { grid-column: 1 / -1; aspect-ratio: 16 / 9; margin: 0 0 8px; border-radius: 8px; background: var(--ref-highest); }
.d4w-sections-flow .product-component-block .product-component-products .d4w-card .product-component-name-block { grid-column: 1; min-width: 0; }
.d4w-sections-flow .product-component-block .product-component-products .d4w-card .d4w-card-title { margin: 0; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.01em; text-transform: none; color: #000; }
.d4w-sections-flow .product-component-block .product-component-products .d4w-card .d4w-card-footer { grid-column: 2; grid-row: auto; display: block; padding: 0; margin: 0; border: 0; }
.d4w-sections-flow .product-component-block .product-component-products .d4w-card .d4w-card-price { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--ref-ink-soft); white-space: nowrap; }
.d4w-sections-flow .product-component-block .product-component-products .d4w-card .d4w-btn-select { display: none; }
.d4w-sections-flow .product-component-block .product-component-products .d4w-choice-indicator { position: absolute; top: 20px; right: 20px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.9); background: rgba(0, 0, 0, 0.18); }
.d4w-sections-flow .product-component-block .product-component-products .d4w-card.is-multiple .d4w-choice-indicator { border-radius: 5px; }
.d4w-sections-flow .product-component-block .product-component-products .d4w-card.selected .d4w-choice-indicator { background: var(--ref-secondary); border-color: var(--ref-secondary); }
.d4w-sections-flow .product-component-block .product-component-products .d4w-card.selected .d4w-choice-indicator::after { content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.d4w-sections-flow .product-component-block .product-component-products .d4w-card-swatches { grid-column: 1 / -1; }

/* Summary: receipt */
.d4w-summary-panel { top: 96px; padding: 24px; background: #fff; border: 0; border-radius: 16px; box-shadow: 0 4px 6px -1px rgba(17, 24, 39, 0.08), 0 2px 4px -2px rgba(17, 24, 39, 0.05); }
.d4w-summary-panel-header .d4w-step-label { display: none; }
.d4w-summary-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.d4w-summary-panel-header h2 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; text-transform: none; color: #000; }
.d4w-summary-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(177, 235, 255, 0.4); color: #004e5e; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; }
.d4w-summary-panel-header p { margin: 6px 0 0; font-size: 13px; line-height: 18px; color: var(--ref-ink-soft); }
.d4w-config-progress { margin: 16px 0; padding: 0; background: transparent; border: 0; }
.d4w-config-progress-bar, .d4w-config-progress-head { display: none; }
.d4w-config-progress.is-ready .d4w-config-progress-status { display: none; }
.d4w-config-progress.is-pending .d4w-config-progress-status { padding: 10px 12px; border-radius: 12px; background: var(--ref-secondary-fixed); color: var(--ref-on-secondary-fixed); font-size: 12px; }
#summary .d4w-summary-list-wrap { padding: 14px; background: rgba(237, 238, 239, 0.6); border: 1px solid var(--ref-outline); border-radius: 12px; }
#summary .d4w-summary-divider-title { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: #000; }
#summary .d4w-summary-item { background: #fff; border: 1px solid rgba(198, 198, 205, 0.3); border-radius: 8px; box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04); padding: 10px 12px; margin-bottom: 8px; }
#summary .d4w-summary-category { font-size: 13px; font-weight: 600; color: #000; }
#summary .d4w-summary-image { display: none; }
#summary .d4w-summary-name { font-size: 14px; font-weight: 500; color: #000; }
#summary .d4w-summary-price { font-size: 16px; font-weight: 700; color: var(--ref-secondary); }
#summary .d4w-summary-edit { background: var(--ref-container); border-radius: 8px; color: var(--ref-secondary); }
.d4w-summary-totals { padding: 14px 16px; background: var(--ref-low); border-radius: 12px; }
.d4w-summary-totals .pricing-row { font-size: 13px; color: var(--ref-ink-soft); }
.d4w-summary-totals .total-prices-wrap { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--ref-high); }
.d4w-summary-totals .total-price-title p { font-size: 13px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: #000; }
.d4w-summary-totals #total-price-display { font-size: 24px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; color: #000; }
#add-to-order-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border-radius: var(--mj-r-btn); background: #000; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0.01em; }
.d4w-config-cta-note { font-size: 12px; color: var(--ref-ink-soft); }
.d4w-sections-flow .d4w-component-section-toggle:has(.d4w-summary-empty) { background: var(--ref-container); color: var(--ref-ink-soft); }
.d4w-product-title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.d4w-product-from-price { font-size: 24px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--ref-secondary); }
.d4w-product-vat-note { font-size: 13px; color: var(--ref-ink-soft); }
.d4w-configurator-shell .d4w-variant-step .d4w-step-label { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ref-secondary); }
.d4w-configurator-shell .d4w-variant-step h3 { margin: 2px 0 0; font-size: 18px; line-height: 24px; font-weight: 600; text-transform: none; color: #000; }
.d4w-configurator-shell .d4w-step-hint { font-size: 13px; color: var(--ref-ink-soft); }
.d4w-configurator-shell .d4w-variant-choice { border-radius: 999px; font-size: 13px; font-weight: 500; }
.d4w-sections-flow .d4w-card-media img { width: 100%; height: 100%; object-fit: cover; transform: none; }
@media (max-width: 767px) {
    .d4w-sections-flow .d4w-options-grid,
    .d4w-sections-flow .d4w-component-option-grid { padding: 0 12px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .d4w-summary-panel { top: auto; }
    #header.mj-header .mj-logo img { height: 32px; }
}
@media (max-width: 767px) {
    .d4w-sections-flow .product-component-block .product-component-products .d4w-card { grid-template-columns: minmax(0, 1fr); }
    .d4w-sections-flow .product-component-block .product-component-products .d4w-card .d4w-card-footer { grid-column: 1; }
}

/* Alternative variant card (export: "Alternatyvus variantas") */
.d4w-variant-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; margin-top: 8px; background: var(--ref-low); border-radius: 16px; box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05); }
.d4w-variant-card-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 260px; }
.d4w-variant-card-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ref-secondary); }
.d4w-variant-card-title { font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.005em; color: #000; }
.d4w-variant-card-hint { margin: 0; font-size: 13px; line-height: 18px; color: var(--ref-ink-soft); }
.d4w-variant-card-btn { flex: 0 0 auto; padding: 10px 20px; border: 0; border-radius: var(--mj-r-btn); background: #fff; color: #000; font-size: 13px; font-weight: 500; letter-spacing: 0.01em; cursor: pointer; box-shadow: 0 1px 2px rgba(17, 24, 39, 0.1); transition: background 0.15s ease; }
.d4w-variant-card-btn:hover, .d4w-variant-card-btn:focus-visible { background: var(--ref-container); outline: none; }

/* Summary receipt boxes (export: lock icon header, edit/add buttons, dashed empty rows) */
.d4w-summary-list-wrap { max-height: max(220px, calc(100vh - 540px)); overflow-y: auto; padding: 0 4px 0 0; background: transparent; border: 0; scrollbar-width: thin; scrollbar-color: var(--ref-outline, #c4c6cd) transparent; }
#summary .d4w-sum-box { margin-bottom: 14px; padding: 14px; background: rgba(237, 238, 239, 0.6); border: 1px solid var(--ref-outline); border-radius: 12px; }
#summary .d4w-sum-optional { background: transparent; border: 0; padding: 0; }
.d4w-sum-box-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 10px; }
.d4w-sum-box-title { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #000; }
.d4w-sum-optional .d4w-sum-box-title { color: var(--ref-ink-soft); }
.d4w-sum-box-note { padding: 2px 8px; border-radius: 999px; background: var(--ref-container); font-size: 11px; font-weight: 500; color: var(--ref-ink-soft); white-space: nowrap; }
.d4w-sum-optional .d4w-sum-box-note { padding: 0; background: transparent; }
.d4w-sum-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px; margin-bottom: 8px; background: #fff; border: 1px solid rgba(198, 198, 205, 0.3); border-radius: 10px; box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04); }
.d4w-sum-row.is-required { border-radius: 8px; }
.d4w-sum-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.d4w-sum-row-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.d4w-sum-row-name { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.01em; color: #000; }
.d4w-sum-row-value { font-size: 13px; line-height: 18px; font-weight: 500; color: #000; }
.d4w-sum-row-sub { font-size: 12px; color: var(--ref-ink-soft); }
.d4w-sum-chip { padding: 1px 6px; border-radius: 4px; background: var(--ref-high); font-size: 11px; font-weight: 600; color: var(--ref-ink-soft); }
.d4w-sum-chip.is-accent { background: var(--ref-secondary-fixed); color: var(--ref-on-secondary-fixed); }
.d4w-sum-row-side { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.d4w-sum-price { font-size: 16px; line-height: 20px; font-weight: 700; letter-spacing: -0.01em; color: #000; white-space: nowrap; }
.d4w-sum-price.is-small { font-size: 13px; }
.d4w-sum-row.is-required .d4w-sum-price { color: var(--ref-secondary); }
.d4w-sum-icon-btn, .d4w-sum-remove { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: var(--ref-container); color: var(--ref-secondary); cursor: pointer; }
.d4w-sum-remove { background: transparent; color: var(--ref-ink-soft); width: 28px; height: 28px; }
.d4w-sum-icon-btn:hover, .d4w-sum-icon-btn:focus-visible { background: var(--ref-high); color: #000; outline: none; }
.d4w-sum-remove:hover, .d4w-sum-remove:focus-visible { color: var(--mj-danger); outline: none; }
.d4w-sum-subrows { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.d4w-sum-subrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; background: var(--ref-low); border-radius: 8px; }
.d4w-sum-subside { display: inline-flex; align-items: center; gap: 4px; }
.d4w-sum-row.is-empty { background: rgba(243, 244, 245, 0.6); border: 1px dashed rgba(118, 119, 125, 0.4); box-shadow: none; align-items: center; }
.d4w-sum-add-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border: 1px solid rgba(198, 198, 205, 0.5); border-radius: var(--mj-r-btn); background: #fff; color: var(--ref-secondary); font-size: 12px; font-weight: 600; cursor: pointer; }
.d4w-sum-add-btn:hover, .d4w-sum-add-btn:focus-visible { background: #000; color: #fff; outline: none; }

/* CTA + save as template */
#add-to-order-button::after { content: '\2192'; font-size: 16px; }
.d4w-save-template-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 8px; padding: 10px 16px; border: 0; border-radius: var(--mj-r-btn); background: var(--ref-container); color: var(--ref-ink); font-size: 13px; font-weight: 500; cursor: pointer; }
.d4w-save-template-btn:hover:not(:disabled) { background: var(--ref-high); }
.d4w-save-template-btn:disabled { opacity: 0.6; cursor: wait; }
.d4w-sum-box-title { white-space: nowrap; font-size: 10.5px; }
.d4w-sum-box-note { font-size: 10.5px; }
.d4w-sum-row-main { overflow-wrap: anywhere; }

/* Collapsed section preview (export): current choice + thumbnails of the other options */
.d4w-collapsed-preview { display: none; grid-column: 1 / -1; grid-row: 4; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(198, 198, 205, 0.3); cursor: pointer; }
.d4w-component-section:not(.is-expanded) .d4w-collapsed-preview { display: flex; }
.d4w-collapsed-current { display: flex; align-items: center; gap: 12px; min-width: 0; }
.d4w-collapsed-thumb { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 8px; overflow: hidden; background: var(--ref-highest); box-shadow: 0 0 0 1px rgba(0, 103, 124, 0.4); }
.d4w-collapsed-thumb img { width: 100%; height: 100%; object-fit: cover; }
.d4w-collapsed-name { font-size: 13px; font-weight: 700; color: #000; }
.d4w-collapsed-empty { font-size: 13px; color: var(--ref-ink-soft); }
.d4w-collapsed-others { display: flex; align-items: center; gap: 6px; }
.d4w-collapsed-others-label { margin-right: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--ref-ink-soft); }
.d4w-collapsed-other { width: 28px; height: 28px; border-radius: 8px; overflow: hidden; background: var(--ref-highest); box-shadow: 0 0 0 1px rgba(198, 198, 205, 0.5); }
.d4w-collapsed-other img { width: 100%; height: 100%; object-fit: cover; }
.d4w-collapsed-more { padding: 2px 8px; border-radius: 999px; background: var(--ref-container); font-size: 11px; font-weight: 500; color: var(--ref-ink-soft); }
@media (max-width: 767px) {
    .d4w-collapsed-preview { grid-row: auto; }
}
.d4w-collapsed-empty { display: none; }
.d4w-collapsed-current:empty, .d4w-collapsed-current:has(> .d4w-collapsed-empty:only-child) { display: none; }

/* Header pill: text only (no photo), "name · price" like the export */
.d4w-sections-flow .d4w-component-section-toggle { padding: 6px 10px 6px 14px; }
.d4w-pill-text { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; line-height: 14px; }
.d4w-pill-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.d4w-pill-price::before { content: '\00b7'; margin-right: 6px; }
/* Narrow summary column (tablet / small laptop): let rows wrap instead of breaking words */
.d4w-sum-row { flex-wrap: wrap; }
.d4w-sum-row-main { flex: 1 1 130px; overflow-wrap: break-word; word-break: normal; }
.d4w-sum-row-side { margin-left: auto; }
.d4w-sum-box-head { flex-wrap: wrap; }

/* Round-3 measurement fixes (reference at 1440 px) */
.d4w-sections-flow .d4w-component-title { line-height: 24px; }
.d4w-sections-flow .d4w-status-pill.is-required { background: #000; color: #fff; padding: 2px 8px; font-size: 11px; line-height: 14px; }
.d4w-sections-flow .d4w-status-pill.is-pending { background: #fff; color: #000; border: 1px solid #000; }
.d4w-sections-flow .d4w-status-pill.is-selected { background: var(--ref-secondary); color: #fff; padding: 2px 8px; }
.d4w-sections-flow .d4w-status-pill.is-optional { padding: 2px 8px; }
/* header choice: the pill is the text part only; chevron sits outside */
.d4w-sections-flow .d4w-component-section-toggle { background: transparent; border: 0; padding: 0; min-height: 0; gap: 8px; }
.d4w-sections-flow .d4w-component-selection-summary { padding: 4px 10px; border-radius: 999px; background: var(--ref-secondary-fixed); }
.d4w-sections-flow .d4w-component-section-toggle:has(.d4w-summary-empty) { background: transparent; }
.d4w-sections-flow .d4w-component-section-toggle:has(.d4w-summary-empty) .d4w-component-selection-summary { background: var(--ref-container); }
.d4w-sections-flow .d4w-summary-empty { font-size: 11px; font-weight: 500; letter-spacing: 0.04em; color: var(--ref-ink-soft); }
@media (max-width: 767px) { .d4w-sections-flow .d4w-component-section-toggle { min-height: 44px; } }
/* spec tiles: icon left, label + value stacked, 8 px radius */
.d4w-configurator-shell .mj-overview-specs li { border-radius: 8px; padding: 12px; gap: 8px; align-items: center; }
.d4w-configurator-shell .mj-spec-icon { font-size: 18px; color: var(--ref-secondary); }
.d4w-configurator-shell .mj-spec-text { display: flex; flex-direction: column; min-width: 0; }
.d4w-configurator-shell .mj-spec-label { display: block; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.04em; color: var(--ref-ink-soft); }
.d4w-configurator-shell .mj-spec-value { display: block; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.01em; color: #000; }
.d4w-variant-card { border-radius: 12px; }
/* CTA 42 px / 13 px like the export */
#add-to-order-button { min-height: 42px; padding: 10px 24px; font-size: 13px; line-height: 16px; }
/* totals: compact rows */
.d4w-summary-totals .pricing-row { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 8px; padding: 0; }
.d4w-summary-totals .pricing-row p { margin: 0; font-size: 13px; line-height: 18px; }
.d4w-summary-totals .product-prices, .d4w-summary-totals .standard-price { font-size: 13px; line-height: 18px; margin: 0; }
.d4w-summary-totals .total-prices-wrap { margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--ref-high); align-items: baseline; }
.d4w-configurator-shell .mj-overview-specs li { flex-direction: row; text-align: left; }
.d4w-configurator-shell .mj-overview-specs li .mj-spec-text { align-items: flex-start; }
#product-components-sections .d4w-sections-flow .d4w-component-section .d4w-component-title { line-height: 24px; }

/* Quantity groups: one card, a chip per amount (same product in different quantities) */
.d4w-sections-flow .d4w-qty-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 20px;
    margin-bottom: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--ref-outline);
    border-radius: 16px;
}
.d4w-sections-flow .d4w-qty-card.is-selected { border: 2px solid #00677c; padding: 15px; background: #fff; }
.d4w-sections-flow .d4w-qty-media { width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: #f3f4f5; }
.d4w-sections-flow .d4w-qty-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.d4w-sections-flow .d4w-qty-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.d4w-sections-flow .d4w-qty-title { margin: 0; text-transform: none; letter-spacing: 0; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--ref-ink); }
.d4w-sections-flow .d4w-qty-badge { padding: 2px 10px; border-radius: 999px; background: #00677c; color: #fff; font-size: 11px; line-height: 14px; font-weight: 600; }
.d4w-sections-flow .d4w-qty-desc { margin: 4px 0 0; font-size: 13px; line-height: 18px; color: var(--ref-ink-soft); }
.d4w-sections-flow .d4w-qty-active { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 13px; line-height: 16px; }
.d4w-sections-flow .d4w-qty-active-label { color: #00677c; font-weight: 600; }
.d4w-sections-flow .d4w-qty-active-price { font-size: 16px; font-weight: 700; color: var(--ref-ink); }
.d4w-sections-flow .d4w-qty-controls { display: flex; align-items: center; gap: 10px; }
.d4w-sections-flow .d4w-qty-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #f3f4f5; border: 1px solid var(--ref-outline); border-radius: 12px; }
.d4w-sections-flow .d4w-qty-chip {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 76px; min-height: 44px; padding: 4px 12px;
    background: transparent; border: 0; border-radius: 8px; color: var(--ref-ink);
    font-size: 13px; line-height: 16px; font-weight: 600; cursor: pointer;
}
.d4w-sections-flow .d4w-qty-chip:hover { background: #fff; }
.d4w-sections-flow .d4w-qty-chip.is-selected { background: #00677c; color: #fff; }
.d4w-sections-flow .d4w-qty-chip-label { white-space: nowrap; }
.d4w-sections-flow .d4w-qty-chip-price { font-size: 11px; line-height: 14px; font-weight: 500; opacity: .85; }
.d4w-sections-flow .d4w-qty-chip:focus-visible,
.d4w-sections-flow .d4w-qty-clear:focus-visible { outline: 2px solid #00677c; outline-offset: 2px; }
.d4w-sections-flow .d4w-qty-clear { width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--ref-ink-soft); font-size: 22px; line-height: 1; cursor: pointer; }
.d4w-sections-flow .d4w-qty-clear:hover { background: #f3f4f5; color: var(--ref-ink); }
@media (max-width: 767px) {
    .d4w-sections-flow .d4w-qty-card { grid-template-columns: 64px minmax(0, 1fr); }
    .d4w-sections-flow .d4w-qty-media { width: 64px; height: 64px; }
    .d4w-sections-flow .d4w-qty-controls { grid-column: 1 / -1; }
    .d4w-sections-flow .d4w-qty-chips { flex: 1 1 auto; }
    .d4w-sections-flow .d4w-qty-chip { flex: 1 1 0; min-width: 0; padding: 4px 2px; }
    .d4w-sections-flow .d4w-qty-chip-price { white-space: nowrap; font-size: 10.5px; }
    .d4w-sections-flow .d4w-qty-clear { flex: 0 0 44px; }
}

/* Collapsed section with several selected components: all thumbnails, joined names, section total */
.d4w-collapsed-thumbs { display: inline-flex; flex: 0 0 auto; }
.d4w-collapsed-thumbs .d4w-collapsed-thumb + .d4w-collapsed-thumb { margin-left: -8px; }
.d4w-collapsed-thumbs .d4w-collapsed-thumb { background: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(198, 198, 205, 0.7); }
.d4w-collapsed-multi-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.d4w-collapsed-preview.is-multi .d4w-collapsed-name { font-size: 15px; line-height: 20px; font-weight: 700; }
.d4w-collapsed-total { font-size: 14px; line-height: 20px; font-weight: 500; color: #00677c; }
.d4w-collapsed-change { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 12px; background: #edeeef; color: var(--ref-ink); font-size: 13px; font-weight: 600; }
.d4w-collapsed-change .d4w-toggle-chevron { width: 14px; height: 14px; background: transparent; }
.d4w-collapsed-change .d4w-toggle-chevron:before { width: 6px; height: 6px; border-color: var(--ref-ink-soft, #45464c); }
.d4w-collapsed-preview.is-multi { flex-wrap: nowrap; gap: 16px; }
.d4w-collapsed-preview.is-multi .d4w-collapsed-current { flex: 1 1 auto; }
.d4w-collapsed-preview.is-multi .d4w-collapsed-change { flex: 0 0 auto; margin-left: auto; }
.d4w-collapsed-thumbs .d4w-collapsed-thumb { background: #f3f4f5; }
@media (max-width: 767px) {
    .d4w-collapsed-preview.is-multi { flex-wrap: wrap; }
    .d4w-collapsed-preview.is-multi .d4w-collapsed-change { width: 100%; justify-content: center; }
}

/* Desktop: the summary column stretches to the full height of the sections column,
   so the sticky summary panel stays in view for the whole scroll (floated columns would end it early). */
@media (min-width: 992px) {
    .d4w-configurator-grid { display: flex; flex-wrap: nowrap; align-items: stretch; }
    .d4w-configurator-grid:before,
    .d4w-configurator-grid:after { display: none; }
    .d4w-configurator-grid > .d4w-configurator-sidebar { float: none; align-self: stretch; }
    .d4w-configurator-grid > .d4w-configurator-main { float: none; }
    .d4w-configurator-sidebar .d4w-summary-panel { position: sticky; top: 24px; }
}

/* Colour groups: one row, big image of the selected colour, swatches from the option cover images */
.d4w-sections-flow .d4w-color-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 20px;
    margin-bottom: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--ref-outline);
    border-radius: 16px;
}
.d4w-sections-flow .d4w-color-card.is-selected { border: 2px solid #00677c; padding: 15px; }
.d4w-sections-flow .d4w-color-media { width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: #f3f4f5; }
.d4w-sections-flow .d4w-color-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.d4w-sections-flow .d4w-color-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.d4w-sections-flow .d4w-color-title { margin: 0; text-transform: none; letter-spacing: 0; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--ref-ink); }
.d4w-sections-flow .d4w-color-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.d4w-sections-flow .d4w-color-swatch {
    position: relative; width: 44px; height: 44px; padding: 0; overflow: hidden;
    border: 2px solid transparent; border-radius: 12px; background: #f3f4f5; cursor: pointer;
    box-shadow: 0 0 0 1px rgba(198, 198, 205, 0.7);
}
.d4w-sections-flow .d4w-color-swatch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.d4w-sections-flow .d4w-color-swatch:hover { box-shadow: 0 0 0 1px #00677c; }
.d4w-sections-flow .d4w-color-swatch.is-selected { border-color: #fff; box-shadow: 0 0 0 2px #00677c; }
.d4w-sections-flow .d4w-color-swatch:focus-visible { outline: 2px solid #00677c; outline-offset: 3px; }
.d4w-sections-flow .d4w-color-swatch-text { font-size: 10px; line-height: 12px; font-weight: 600; padding: 2px; }
.d4w-sections-flow .d4w-color-active { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 13px; line-height: 16px; }
.d4w-sections-flow .d4w-color-hint { color: var(--ref-ink-soft); }
@media (max-width: 767px) {
    .d4w-sections-flow .d4w-color-card { grid-template-columns: 64px minmax(0, 1fr); }
    .d4w-sections-flow .d4w-color-media { width: 64px; height: 64px; }
}

/* Sections with quantity/colour groups: one column of rows; standalone options and legacy group cards use the same row shape */
.d4w-sections-flow .d4w-options-grid.has-rows { display: grid; grid-template-columns: 1fr; gap: 16px; }
.d4w-sections-flow .d4w-options-grid.has-rows > .d4w-color-card,
.d4w-sections-flow .d4w-options-grid.has-rows > .d4w-qty-card { margin-bottom: 0; }
.d4w-sections-flow .d4w-options-grid.has-rows > .d4w-component-option-card,
.d4w-sections-flow .d4w-options-grid.has-rows > .component-product-group {
    display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 8px 20px;
    width: 100%; max-width: none; margin: 0; padding: 16px; flex: none;
}
.d4w-sections-flow .d4w-options-grid.has-rows > .d4w-component-option-card .d4w-card-media,
.d4w-sections-flow .d4w-options-grid.has-rows > .component-product-group .d4w-card-media { grid-row: 1 / span 2; width: 88px; height: 88px; margin: 0; border-radius: 12px; overflow: hidden; }
.d4w-sections-flow .d4w-options-grid.has-rows > .d4w-component-option-card .d4w-card-img,
.d4w-sections-flow .d4w-options-grid.has-rows > .component-product-group .d4w-card-img { width: 100%; height: 100%; object-fit: cover; }
.d4w-sections-flow .d4w-options-grid.has-rows > .d4w-component-option-card .d4w-choice-indicator { position: absolute; top: 12px; right: 12px; }
.d4w-sections-flow .d4w-options-grid.has-rows > .d4w-component-option-card { position: relative; }
.d4w-sections-flow .d4w-options-grid.has-rows > .component-product-group .d4w-card-swatches { grid-column: 2; }
@media (max-width: 767px) {
    .d4w-sections-flow .d4w-options-grid.has-rows > .d4w-component-option-card,
    .d4w-sections-flow .d4w-options-grid.has-rows > .component-product-group { grid-template-columns: 64px minmax(0, 1fr); }
    .d4w-sections-flow .d4w-options-grid.has-rows > .d4w-component-option-card .d4w-card-media,
    .d4w-sections-flow .d4w-options-grid.has-rows > .component-product-group .d4w-card-media { width: 64px; height: 64px; }
    .d4w-sections-flow .d4w-options-grid.has-rows > .d4w-component-option-card .d4w-card-footer { grid-column: 1 / -1; }
}
.d4w-sections-flow .d4w-color-swatch { box-sizing: border-box; padding: 0; }
.d4w-sections-flow .d4w-color-swatch.is-selected { border: 2px solid #fff; }

/* Standalone option in a row layout: same look as the quantity/colour rows */
.d4w-sections-flow .d4w-options-grid.has-rows > .d4w-component-option-card {
    background: #fff; border: 1px solid var(--ref-outline); border-radius: 16px; box-shadow: none; min-height: 0;
}
.d4w-sections-flow .d4w-options-grid.has-rows > .d4w-component-option-card.is-selected,
.d4w-sections-flow .d4w-options-grid.has-rows > .d4w-component-option-card.selected { border: 2px solid #00677c; padding: 15px; }
.d4w-sections-flow .d4w-options-grid.has-rows > .d4w-component-option-card .product-component-name-block { grid-column: 2; grid-row: 1 / span 2; padding: 0; min-width: 0; }
.d4w-sections-flow .d4w-options-grid.has-rows > .d4w-component-option-card .d4w-card-title { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.d4w-sections-flow .d4w-options-grid.has-rows > .d4w-component-option-card .d4w-card-footer {
    grid-column: 3; grid-row: 1 / span 2; display: flex; align-items: center; gap: 14px; margin: 0; padding: 0; border: 0; background: transparent;
}
@media (max-width: 767px) {
    .d4w-sections-flow .d4w-options-grid.has-rows > .d4w-component-option-card .d4w-card-footer { grid-column: 1 / -1; grid-row: auto; justify-content: space-between; }
    .d4w-sections-flow .d4w-options-grid.has-rows > .d4w-component-option-card .product-component-name-block { grid-row: auto; }
}

/* Open section: the section card already pads the content, so the body and grid add no side padding (cards were indented ~60px) */
.d4w-sections-flow .d4w-component-section-body.d4w-accordion-body { padding-left: 0; padding-right: 0; }
.d4w-sections-flow .d4w-component-section-body .d4w-options-grid { padding-left: 0; padding-right: 0; }

/* Colour options as mini cards: round texture, name, price */
.d4w-sections-flow .d4w-color-swatches { gap: 8px; }
.d4w-sections-flow .d4w-color-swatch {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    width: 112px; height: auto; min-height: 44px; padding: 10px 6px 8px; overflow: visible;
    border: 2px solid transparent; border-radius: 12px; background: #f3f4f5; box-shadow: none; text-align: center;
}
.d4w-sections-flow .d4w-color-swatch:hover { border-color: rgba(0, 103, 124, 0.45); box-shadow: none; }
.d4w-sections-flow .d4w-color-swatch.is-selected { background: #fff; border: 2px solid #00677c; box-shadow: none; }
.d4w-sections-flow .d4w-color-swatch-img { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: #e1e3e4; box-shadow: 0 0 0 1px rgba(198, 198, 205, 0.7); }
.d4w-sections-flow .d4w-color-swatch.is-selected .d4w-color-swatch-img { box-shadow: 0 0 0 2px #00677c; }
.d4w-sections-flow .d4w-color-swatch-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.d4w-sections-flow .d4w-color-swatch-name { font-size: 14px; line-height: 18px; font-weight: 600; color: var(--ref-ink); }
.d4w-sections-flow .d4w-color-swatch-price { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ref-ink-soft); }
.d4w-sections-flow .d4w-color-swatch.is-selected .d4w-color-swatch-price { color: #00677c; font-weight: 600; }
@media (max-width: 767px) {
    .d4w-sections-flow .d4w-color-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
    .d4w-sections-flow .d4w-color-swatch { width: auto; }
}
@media (max-width: 767px) {
    .d4w-sections-flow .d4w-color-body { display: contents; }
    .d4w-sections-flow .d4w-color-title-row,
    .d4w-sections-flow .d4w-color-body > .d4w-qty-desc { grid-column: 2; align-self: center; }
    .d4w-sections-flow .d4w-color-swatches,
    .d4w-sections-flow .d4w-color-active { grid-column: 1 / -1; }
    .d4w-sections-flow .d4w-color-media { grid-row: 1 / span 2; }
}

/* Images and thumbnails use the project radius (12 px; 8 px for small thumbnails), not circles */
.d4w-sections-flow .d4w-swatch-btn { border-radius: 12px; }
.d4w-sections-flow .d4w-color-swatch.is-selected .d4w-color-swatch-img { box-shadow: 0 0 0 2px #00677c; }

/* Colour group without the big image: bigger option cards */
.d4w-sections-flow .d4w-color-card { grid-template-columns: minmax(0, 1fr) auto; }
.d4w-sections-flow .d4w-color-swatches { gap: 10px; }
.d4w-sections-flow .d4w-color-swatch { width: 128px; padding: 10px 8px 10px; }
.d4w-sections-flow .d4w-color-swatch-img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
@media (max-width: 767px) {
    .d4w-sections-flow .d4w-color-card { grid-template-columns: minmax(0, 1fr); }
    .d4w-sections-flow .d4w-color-title-row,
    .d4w-sections-flow .d4w-color-body > .d4w-qty-desc { grid-column: 1; }
    .d4w-sections-flow .d4w-color-swatches { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
    .d4w-sections-flow .d4w-color-swatch { width: auto; }
}

/* No checkboxes / check circles on cards: the selected state is the teal border plus a "Selected" tag on the top edge */
.d4w-sections-flow .d4w-choice-indicator,
.d4w-sections-flow .check-icon { display: none !important; }
.d4w-sections-flow .d4w-component-option-card,
.d4w-sections-flow .d4w-qty-card,
.d4w-sections-flow .d4w-color-card { position: relative; overflow: visible; }
.d4w-sections-flow .d4w-selected-tag {
    position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); z-index: 2;
    padding: 2px 12px; border-radius: 999px; background: #00677c; color: #fff;
    font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; pointer-events: none;
}

/* Section header like the export: [number] Title [status pill] hint / description under the title;
   right: (clear) "Selected:" [pill] chevron */
.d4w-sections-flow .d4w-component-head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; grid-column: 1; grid-row: 1; }
.d4w-sections-flow .d4w-component-head-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.d4w-sections-flow .d4w-rule-hint { grid-column: auto; grid-row: auto; margin: 0; font-size: 13px; line-height: 18px; font-weight: 400; color: var(--ref-ink-soft); }
.d4w-sections-flow .d4w-component-description { grid-column: 1; grid-row: 2; margin: 2px 0 0; padding-left: 38px; font-size: 14px; line-height: 20px; color: var(--ref-ink-soft); }
.d4w-sections-flow .d4w-component-description p { margin: 0; }
.d4w-sections-flow .d4w-component-head-actions { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 14px; min-width: 0; }
.d4w-sections-flow .d4w-component-head-actions .d4w-component-section-toggle { grid-column: auto; grid-row: auto; }
.d4w-sections-flow .d4w-component-selection-label { display: inline; flex: 0 0 auto; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ref-ink-soft); }
.d4w-sections-flow .d4w-component-section-toggle:has(.d4w-summary-empty) .d4w-component-selection-label { display: none; }
@media (max-width: 767px) {
    .d4w-sections-flow .d4w-component-head-actions { grid-column: 1; grid-row: auto; flex-wrap: wrap; margin-top: 10px; justify-content: space-between; }
    .d4w-sections-flow .d4w-component-head-actions .d4w-component-section-toggle { margin-top: 0; width: auto; flex: 1 1 auto; justify-content: space-between; }
    .d4w-sections-flow .d4w-component-description { padding-left: 0; grid-row: auto; }
}
.d4w-sections-flow .d4w-component-selection-label { text-transform: none; letter-spacing: 0; }
.d4w-sections-flow .d4w-component-head-row > .d4w-rule-hint { flex: 0 0 100%; padding-left: 38px; margin-top: -2px; }
@media (max-width: 767px) { .d4w-sections-flow .d4w-component-head-row > .d4w-rule-hint { padding-left: 0; } }
.d4w-sections-flow .d4w-pill-text { flex-wrap: nowrap; max-width: 100%; }
.d4w-sections-flow .d4w-pill-name { flex: 0 1 auto; min-width: 0; }
.d4w-sections-flow .d4w-pill-price { flex: 0 0 auto; white-space: nowrap; }
.d4w-sections-flow .d4w-component-selection-summary,
.d4w-sections-flow .d4w-component-selection-value { min-width: 0; max-width: 100%; }

/* Audit fixes (2026-10-13) */
/* Visible keyboard focus on every configurator control: 2 px #00677c ring (>= 3:1 on white and on #f3f4f5) */
.d4w-configurator-shell :is(a, button, input, select, [role="button"], [tabindex]:not([tabindex="-1"])):focus-visible {
    outline: 2px solid #00677c !important;
    outline-offset: 2px;
    box-shadow: none;
}
/* "Rodyti daugiau" link text: 4.39:1 -> above 4.5:1 on #f9fafb, and a 44 px target */
.d4w-intro-toggle { color: #176a82; min-height: 44px; display: inline-flex; align-items: center; }
/* Section clear/reset links: 44 px target on phones */
@media (max-width: 767px) {
    .d4w-sections-flow .d4w-reset-section-button { min-height: 44px; padding: 0 8px; display: inline-flex; align-items: center; }
}
/* Legacy side cart: off-screen drawer with a stale total; keep it out of the tab order and the accessibility tree until opened */
#cd-cart:not(.speed-in) { visibility: hidden; }

/* Phones: an empty optional section collapses to one tappable row (title, status pill, chevron);
   the hint, "other options" thumbnails and the "nothing selected" pill appear once it is opened or has a selection */
@media (max-width: 767px) {
    .d4w-sections-flow .d4w-component-section.is-optional:not(.has-selection):not(.is-expanded) .d4w-component-section-head {
        position: relative; display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 16px;
        min-height: 56px;
    }
    .d4w-sections-flow .d4w-component-section.is-optional:not(.has-selection):not(.is-expanded) .d4w-component-head-row { flex: 1 1 auto; min-width: 0; }
    .d4w-sections-flow .d4w-component-section.is-optional:not(.has-selection):not(.is-expanded) .d4w-component-head-row > .d4w-rule-hint,
    .d4w-sections-flow .d4w-component-section.is-optional:not(.has-selection):not(.is-expanded) .d4w-component-description,
    .d4w-sections-flow .d4w-component-section.is-optional:not(.has-selection):not(.is-expanded) .d4w-collapsed-preview,
    .d4w-sections-flow .d4w-component-section.is-optional:not(.has-selection):not(.is-expanded) .d4w-component-selection-summary,
    .d4w-sections-flow .d4w-component-section.is-optional:not(.has-selection):not(.is-expanded) .d4w-component-selection-label { display: none; }
    .d4w-sections-flow .d4w-component-section.is-optional:not(.has-selection):not(.is-expanded) .d4w-component-head-actions { margin: 0; flex: 0 0 auto; }
    .d4w-sections-flow .d4w-component-section.is-optional:not(.has-selection):not(.is-expanded) .d4w-component-section-toggle { width: 44px; min-height: 44px; justify-content: center; margin: 0; flex: 0 0 44px; }
    .d4w-sections-flow .d4w-component-section.is-optional:not(.has-selection):not(.is-expanded) .d4w-component-head-row { flex-wrap: nowrap; }
    .d4w-sections-flow .d4w-component-section.is-optional:not(.has-selection):not(.is-expanded) .d4w-component-title { flex: 0 1 auto; min-width: 0; }
    .d4w-sections-flow .d4w-component-section.is-optional:not(.has-selection):not(.is-expanded) .d4w-component-head-meta { flex: 0 0 auto; }
    .d4w-sections-flow .d4w-component-section.is-optional:not(.has-selection):not(.is-expanded) { padding-top: 0; padding-bottom: 0; }
    .d4w-sections-flow .d4w-component-section.is-optional:not(.has-selection):not(.is-expanded) .d4w-component-title { font-size: 16px; line-height: 22px; }
}

/* A collapsed section opens when its header is tapped (not only the chevron button) */
.d4w-sections-flow .d4w-component-section:not(.is-expanded) .d4w-component-section-head { cursor: pointer; }


/* Section display mode: segmented control above the sections */
.d4w-view-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px; }
.d4w-view-mode-label { margin-right: 4px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ref-ink-soft); }
.d4w-view-mode-btn {
    min-height: 40px; padding: 0 14px; border: 1px solid var(--ref-outline); border-radius: 12px;
    background: #fff; color: var(--ref-ink); font-size: 13px; line-height: 18px; font-weight: 600; cursor: pointer;
}
.d4w-view-mode-btn:hover { border-color: rgba(0, 103, 124, 0.45); }
.d4w-view-mode-btn.is-active { background: #00677c; border-color: #00677c; color: #fff; }
@media (max-width: 767px) {
    .d4w-view-mode { gap: 6px; }
    .d4w-view-mode-label { flex: 0 0 100%; }
    .d4w-view-mode-btn { flex: 1 1 0; min-height: 44px; padding: 0 8px; }
}

/* Lighter option cards: white card with a hairline border, very light image tile; prices in the accent colour, larger */
.d4w-sections-flow .product-component-block .product-component-products .d4w-card { background: #fff; border: 1px solid var(--ref-outline); }
.d4w-sections-flow .product-component-block .product-component-products .d4w-card:hover { background: #fff; border-color: rgba(0, 103, 124, 0.45); }
.d4w-sections-flow .product-component-block .product-component-products .d4w-card.selected,
.d4w-sections-flow .product-component-block .product-component-products .d4w-card.is-selected { background: #fff; border-color: #00677c; box-shadow: 0 0 0 1px #00677c; }
.d4w-sections-flow .product-component-block .product-component-products .d4w-card-media { background: #f6f7f8; border: 1px solid rgba(198, 198, 205, 0.35); }
.d4w-sections-flow .d4w-color-swatch-img { background: #f6f7f8; }
.d4w-sections-flow .d4w-color-swatch { background: #fff; border-color: var(--ref-outline); }
.d4w-sections-flow .d4w-color-swatch.is-selected { border-color: #00677c; }
.d4w-sections-flow .d4w-qty-media, .d4w-sections-flow .d4w-color-media { background: #f6f7f8; border: 1px solid rgba(198, 198, 205, 0.35); }
.d4w-sections-flow .d4w-qty-chips { background: #f6f7f8; }

.d4w-sections-flow .product-component-block .product-component-products .d4w-card .d4w-card-price { font-size: 16px; line-height: 20px; font-weight: 700; letter-spacing: 0; color: #00677c; }
.d4w-sections-flow .product-component-block .product-component-products .d4w-card .d4w-card-price.is-included { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.02em; color: var(--ref-ink-soft); }
.d4w-sections-flow .d4w-color-swatch-price { font-size: 13px; line-height: 16px; font-weight: 700; color: #00677c; }
.d4w-sections-flow .d4w-color-swatch-price.is-included { font-size: 12px; font-weight: 500; color: var(--ref-ink-soft); }
.d4w-sections-flow .d4w-qty-chip-price { font-size: 12px; font-weight: 700; color: #00677c; opacity: 1; }
.d4w-sections-flow .d4w-qty-chip-price.is-included { font-weight: 500; color: var(--ref-ink-soft); }
.d4w-sections-flow .d4w-qty-chip.is-selected .d4w-qty-chip-price { color: #fff; }
.d4w-sections-flow .d4w-qty-active-price { font-size: 17px; font-weight: 700; color: #00677c; }
