﻿/* B2BConnect Webshop.
   Built to feel like B2B Connect's own pages (client settings): Helvetica Neue, Tailwind's gray scale,
   white rounded-xl/2xl cards with soft shadows, tabs with the active tab in the client's button colour.
   --b2b-button-color / --b2b-text-color / --b2b-menu-color come from the client's theme (SDK, PluginThemeHost). */
:root {
    --ws-accent: var(--b2b-button-color, #cd0037);
    --ws-on-accent: var(--b2b-text-color, #ffffff);
    --ws-menu: var(--b2b-menu-color, #350c0c);
    --ws-accent-50: color-mix(in srgb, var(--ws-accent) 6%, #fff);
    --ws-accent-100: color-mix(in srgb, var(--ws-accent) 12%, #fff);
    --ws-accent-200: color-mix(in srgb, var(--ws-accent) 24%, #fff);
    --ws-accent-ring: color-mix(in srgb, var(--ws-accent) 35%, transparent);
    --ws-gray-50: #f9fafb; --ws-gray-100: #f3f4f6; --ws-gray-200: #e5e7eb; --ws-gray-300: #d1d5db; --ws-gray-400: #9ca3af;
    --ws-gray-500: #6b7280; --ws-gray-600: #4b5563; --ws-gray-700: #374151; --ws-gray-800: #1f2937; --ws-gray-900: #111827;
    --ws-green: #16a34a; --ws-green-50: #f0fdf4; --ws-amber: #d97706; --ws-amber-50: #fffbeb; --ws-red: #b91c1c; --ws-red-50: #fef2f2;
    --ws-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
    --ws-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
    --ws-shadow-glow: 0 12px 32px -12px color-mix(in srgb, var(--ws-accent) 45%, transparent);
    --ws-radius: .75rem;
    --ws-radius-lg: 1rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    color: var(--ws-gray-900); background: var(--ws-gray-50);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--ws-accent); }
button { font: inherit; }
h1, h2, h3 { margin: 0; color: var(--ws-gray-900); }
p { margin: 0; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--ws-accent); outline-offset: 2px; }
.ws-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ws-muted { color: var(--ws-gray-500); }
.ws-small { font-size: .875rem; }
.ws-xs { font-size: .75rem; }
.ws-right { text-align: right; }

/* ── Forms (as in B2B Connect: border rounded-lg px-3 py-2) ─────────────────────────────── */
label { display: block; margin: 0 0 .25rem; font-size: .875rem; font-weight: 500; color: var(--ws-gray-700); }
input, select, textarea {
    display: block; width: 100%; padding: .5rem .75rem; border: 1px solid var(--ws-gray-200); border-radius: .5rem;
    background: #fff; color: var(--ws-gray-900); font: inherit; font-size: .9375rem; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ws-accent); box-shadow: 0 0 0 3px var(--ws-accent-ring); }
input:disabled, select:disabled, textarea:disabled { background: var(--ws-gray-100); color: var(--ws-gray-500); }
textarea { resize: vertical; }
.ws-field { margin-bottom: 1rem; }
.ws-field small { display: block; margin-top: .25rem; font-size: .75rem; color: var(--ws-gray-500); }
.ws-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ws-address > label, .ws-address__row > label { margin-bottom: 1rem; }
.ws-address input { margin-top: .25rem; font-weight: 400; }
.ws-address__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Buttons ─────────────────────────────────────────────────────────────────────────────── */
.ws-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .5rem 1.25rem;
    border: 1px solid transparent; border-radius: .5rem; font-weight: 600; font-size: .9375rem; line-height: 1.4;
    text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background-color .15s, opacity .15s; white-space: nowrap;
}
.ws-btn:disabled { opacity: .5; cursor: not-allowed; }
.ws-btn--primary { background: var(--ws-accent); color: var(--ws-on-accent); }
.ws-btn--primary:hover:not(:disabled) { transform: scale(1.02); box-shadow: var(--ws-shadow-glow); }
.ws-btn--secondary { background: #fff; color: var(--ws-gray-700); border-color: var(--ws-gray-300); }
.ws-btn--secondary:hover:not(:disabled) { background: var(--ws-gray-50); }
.ws-btn--ghost { background: transparent; color: var(--ws-gray-600); padding-inline: .5rem; }
.ws-btn--ghost:hover:not(:disabled) { color: var(--ws-gray-900); background: var(--ws-gray-100); }
.ws-btn--block { width: 100%; }
.ws-btn--lg { padding: .75rem 1.5rem; font-size: 1rem; border-radius: .75rem; }
.ws-btn--sm { padding: .375rem .75rem; font-size: .8125rem; }
.ws-icon-btn {
    display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 0; border-radius: .5rem;
    background: transparent; color: var(--ws-gray-400); cursor: pointer; transition: background-color .15s, color .15s;
}
.ws-icon-btn:hover:not(:disabled) { background: var(--ws-red-50); color: var(--ws-red); }
.ws-link { border: 0; padding: 0; background: none; color: var(--ws-accent); font-size: .875rem; font-weight: 500; cursor: pointer; }
.ws-link:hover { text-decoration: underline; }

/* ── App shell and tab bar (as ClientSettingsHub: white shadow rounded-2xl p-2, rounded-xl tabs) ── */
.ws-app { max-width: 96rem; margin: 0 auto; padding: 1.5rem 1.5rem 3rem; }
.ws-nav {
    display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; padding: .5rem;
    background: #fff; border-radius: var(--ws-radius-lg); box-shadow: var(--ws-shadow);
}
.ws-nav a {
    display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: .75rem;
    background: var(--ws-gray-100); color: var(--ws-gray-700); font-weight: 500; font-size: .9375rem; text-decoration: none;
    transition: background-color .15s, color .15s, box-shadow .15s;
}
.ws-nav a:hover { background: var(--ws-gray-200); }
.ws-nav a.active { background: var(--ws-accent); color: var(--ws-on-accent); box-shadow: var(--ws-shadow); }
.ws-count {
    display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 999px;
    background: var(--ws-accent); color: var(--ws-on-accent); font-size: .75rem; font-weight: 700;
}
.ws-nav a.active .ws-count { background: var(--ws-on-accent); color: var(--ws-accent); }
.ws-nav__spacer { flex: 1; }

/* ── Cards and section headers (as B2B Connect settings cards) ─────────────────────────── */
.ws-panel { padding: 1.5rem; background: #fff; border-radius: var(--ws-radius); box-shadow: var(--ws-shadow-lg); }

.ws-panel__title {
    display: flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; padding-bottom: .5rem;
    border-bottom: 1px solid var(--ws-gray-200); font-size: 1.25rem; font-weight: 600;
}
.ws-panel__title i { color: var(--ws-accent); }
.ws-page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.ws-page-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
.ws-page-sub { margin-top: .2rem; font-size: .9375rem; color: var(--ws-gray-500); }

/* ── Messages ────────────────────────────────────────────────────────────────────────────── */
.ws-alert { display: flex; gap: .75rem; padding: 1rem; border-radius: .5rem; font-size: .875rem; border: 1px solid; margin-bottom: 1.5rem; }
.ws-alert--error { background: var(--ws-red-50); border-color: #fecaca; color: #991b1b; }
.ws-alert--warning { background: var(--ws-amber-50); border-color: #fde68a; color: #92400e; }
.ws-alert--info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.ws-alert ul { margin: .25rem 0 .75rem; padding-left: 1.1rem; }
.ws-alert h2 { font-size: .9375rem; color: inherit; margin-bottom: .25rem; }
.ws-saved { color: var(--ws-green); font-size: .875rem; font-weight: 500; }
.ws-loading { display: grid; place-items: center; gap: .75rem; padding: 4rem 1rem; color: var(--ws-gray-500); }
.ws-loading i { font-size: 1.5rem; color: var(--ws-accent); }

/* ── Otto: the same orb and launcher as B2B Connect (OttoCore + AskMrB2B), clean white surfaces ── */
.otto-core { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.otto-core--xs { width: 18px; height: 18px; }
.otto-core--sm { width: 28px; height: 28px; }
.otto-core--md { width: 40px; height: 40px; }
.otto-core__layer { position: absolute; inset: 0; border-radius: 50%; will-change: transform, opacity; }
.otto-core__layer--outer { background: radial-gradient(circle, var(--ws-accent) 0%, transparent 72%); opacity: .32; filter: blur(2px); }
.otto-core__layer--mid { inset: 14%; background: radial-gradient(circle, var(--ws-accent) 0%, transparent 75%); opacity: .55; }
.otto-core__layer--core { inset: 32%; background: var(--ws-accent); box-shadow: 0 0 10px 2px var(--ws-accent); opacity: .9; }
.otto-core--xs .otto-core__layer--core { box-shadow: 0 0 5px 1px var(--ws-accent); }
.otto-core--idle .otto-core__layer--outer, .otto-core--idle .otto-core__layer--mid { animation: otto-pulse-slow 4s ease-in-out infinite; }
@keyframes otto-pulse-slow { 0%, 100% { transform: scale(.97); opacity: .28; } 50% { transform: scale(1.03); opacity: .42; } }

.ws-otto-launcher {
    position: relative; isolation: isolate; display: inline-grid; flex: none; place-items: center; width: 3.5rem; height: 3.5rem;
    border: 1px solid rgb(255 255 255 / .92); border-radius: 9999px; background: linear-gradient(145deg, #fff 4%, #fff8fa 100%);
    box-shadow: 0 12px 28px rgb(15 23 42 / .16), inset 0 1px 0 rgb(255 255 255 / .95);
}
.ws-otto-launcher--lg { width: 4rem; height: 4rem; }
.ws-otto-launcher .otto-core { z-index: 2; }
.ws-otto-launcher__halo, .ws-otto-launcher__ring { position: absolute; border-radius: inherit; pointer-events: none; }
.ws-otto-launcher__halo {
    z-index: -2; inset: -.7rem; animation: ws-launcher-glow 2.8s ease-in-out infinite;
    background: radial-gradient(circle, color-mix(in srgb, var(--ws-accent) 22%, transparent) 0%, color-mix(in srgb, var(--ws-accent) 6%, transparent) 45%, transparent 72%);
}
.ws-otto-launcher__ring { z-index: -1; inset: -.2rem; border: 1px solid color-mix(in srgb, var(--ws-accent) 20%, transparent); animation: ws-launcher-ring 2.8s ease-out infinite; }
@keyframes ws-launcher-glow { 0%, 100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes ws-launcher-ring { 0% { opacity: .65; transform: scale(.84); } 70%, 100% { opacity: 0; transform: scale(1.22); } }
@media (prefers-reduced-motion: reduce) {
    .otto-core__layer, .ws-otto-launcher__halo, .ws-otto-launcher__ring { animation: none !important; transform: none !important; }
}

/* Otto card on the shop page: white, like Otto's own window */
.ws-otto {
    display: flex; flex-direction: column; gap: 1.1rem; padding: 1.5rem; background: #fff;
    border: 1px solid rgb(209 213 219 / .95); border-radius: 1.35rem; box-shadow: 0 18px 45px -24px rgb(15 23 42 / .35);
}
.ws-otto__head { display: flex; align-items: center; gap: 1rem; }
.ws-otto__eyebrow { display: block; font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ws-gray-500); }
.ws-otto__title { margin-top: .15rem; font-size: 1.125rem; font-weight: 600; line-height: 1.3; color: var(--ws-gray-900); }
.ws-otto__text { color: var(--ws-gray-600); font-size: .9375rem; }
.ws-otto__list { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; font-size: .875rem; color: var(--ws-gray-700); }
.ws-otto__list li { display: flex; align-items: center; gap: .6rem; }
.ws-otto__list i { width: 1rem; text-align: center; color: var(--ws-accent); font-size: .8rem; }
.ws-otto__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding-top: 1rem; border-top: 1px solid var(--ws-gray-100); }
.ws-otto__price { font-size: .8125rem; color: var(--ws-gray-500); }
.ws-otto-btn {
    display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1.1rem; border: 1px solid transparent; border-radius: .75rem;
    background: var(--ws-accent); color: var(--ws-on-accent); font-weight: 600; cursor: pointer; transition: transform .15s, box-shadow .15s, background-color .15s;
}
.ws-otto-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--ws-shadow-glow); }
.ws-otto-btn--on { background: var(--ws-green-50); color: #166534; border-color: #bbf7d0; }
.ws-otto-btn--on:hover:not(:disabled) { box-shadow: none; }
.ws-otto-btn--on i { color: var(--ws-green); }

/* Otto card on the product page and in the checkout: a regular white card */
.ws-otto-card { padding: 1.25rem 1.5rem; border-radius: var(--ws-radius); background: #fff; box-shadow: var(--ws-shadow-lg); border: 1px solid transparent; transition: border-color .2s; }
.ws-otto-card--off { box-shadow: var(--ws-shadow); }
.ws-otto-card__head { display: flex; align-items: center; gap: 1rem; }
.ws-otto-card__title { font-size: 1rem; font-weight: 600; }
.ws-otto-card__text { margin-top: .15rem; font-size: .875rem; color: var(--ws-gray-500); }
.ws-otto-card__lines { display: grid; gap: .35rem; margin: 1.1rem 0 0; padding: .8rem 1rem; border-radius: .75rem; background: var(--ws-gray-50); border: 1px solid var(--ws-gray-100); list-style: none; font-size: .875rem; }
.ws-otto-card__lines li { display: flex; justify-content: space-between; gap: 1rem; }
.ws-otto-card__lines strong { white-space: nowrap; }
.ws-otto-card__includes { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1rem 0 0; padding: 0; list-style: none; font-size: .8125rem; color: var(--ws-gray-600); }
.ws-otto-card__includes li { display: flex; align-items: center; gap: .45rem; }
.ws-otto-card__includes i { color: var(--ws-accent); font-size: .75rem; }
.ws-recommended { margin-left: .5rem; padding: .1rem .5rem; border-radius: 999px; background: var(--ws-gray-100); color: var(--ws-gray-600); font-size: .6875rem; font-weight: 600; vertical-align: middle; }

/* "Approved by B2B Automation": a quiet quality mark, not a sticker */
.ws-approved {
    display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .6rem .2rem .45rem; border-radius: 999px;
    border: 1px solid var(--ws-gray-200); background: rgb(255 255 255 / .92); backdrop-filter: blur(4px);
    color: var(--ws-gray-600); font-size: .6875rem; font-weight: 500; letter-spacing: .01em; white-space: nowrap;
}
.ws-approved svg { flex: none; width: .95rem; height: .95rem; color: var(--ws-accent); }
.ws-approved strong { font-weight: 600; color: var(--ws-gray-800); }
.ws-product__media .ws-approved { position: absolute; left: .75rem; bottom: .75rem; }
.ws-approved-block { display: flex; align-items: flex-start; gap: .75rem; padding: .9rem 1rem; border-radius: var(--ws-radius); background: #fff; border: 1px solid var(--ws-gray-200); }
.ws-approved-block svg { flex: none; width: 1.75rem; height: 1.75rem; color: var(--ws-accent); }
.ws-approved-block strong { display: block; font-size: .875rem; font-weight: 600; }
.ws-approved-block span { display: block; font-size: .8125rem; color: var(--ws-gray-500); }
/* Switch */
.ws-switch { position: relative; display: inline-flex; flex: none; align-items: center; cursor: pointer; margin: 0; }
.ws-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ws-switch__track { width: 2.75rem; height: 1.5rem; border-radius: 999px; background: var(--ws-gray-300); transition: background-color .2s; }
.ws-switch__track::after {
    content: ""; position: absolute; top: .1875rem; left: .1875rem; width: 1.125rem; height: 1.125rem; border-radius: 50%;
    background: #fff; box-shadow: var(--ws-shadow); transition: transform .2s;
}
.ws-switch input:checked + .ws-switch__track { background: var(--ws-accent); }
.ws-switch input:checked + .ws-switch__track::after { transform: translateX(1.25rem); }
.ws-switch input:focus-visible + .ws-switch__track { outline: 2px solid var(--ws-accent); outline-offset: 2px; }
.ws-switch input:disabled + .ws-switch__track { opacity: .5; }

/* ── Shop: hero ──────────────────────────────────────────────────────────────────────────── */
.ws-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(20rem, 1fr); gap: 1.5rem; margin-bottom: 1.5rem; }
.ws-hero__main {
    position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; padding: 1.75rem; overflow: hidden;
    background: #fff; border-radius: var(--ws-radius-lg); box-shadow: var(--ws-shadow);
}

.ws-eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ws-accent); }
.ws-hero h1 { margin-top: .35rem; font-size: 1.875rem; font-weight: 700; letter-spacing: -.01em; }
.ws-hero__sub { margin-top: .35rem; max-width: 38rem; color: var(--ws-gray-600); }
.ws-usps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--ws-gray-100); }
.ws-usp { display: flex; align-items: flex-start; gap: .65rem; }
.ws-usp > i { width: 1.25rem; margin-top: .15rem; text-align: center; color: var(--ws-accent); font-size: 1rem; }

.ws-usp strong { display: block; font-size: .875rem; font-weight: 600; }
.ws-usp span { display: block; font-size: .75rem; color: var(--ws-gray-500); }

/* ── Shop: search, layout, filters ───────────────────────────────────────────────────────── */
.ws-search { position: relative; margin-bottom: 1.5rem; }
.ws-search i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ws-gray-400); }
.ws-search input { height: 3rem; padding-left: 2.75rem; border-radius: .75rem; box-shadow: var(--ws-shadow); border-color: transparent; font-size: 1rem; }
.ws-layout { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.ws-sidebar { position: sticky; top: 1rem; padding: 1.25rem; background: #fff; border-radius: var(--ws-radius); box-shadow: var(--ws-shadow); }
.ws-sidebar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.ws-sidebar__head h2 { display: flex; align-items: center; gap: .5rem; font-size: 1rem; font-weight: 600; }
.ws-sidebar__head h2 i { color: var(--ws-accent); }
.ws-filter-group { padding: 1rem 0; border-top: 1px solid var(--ws-gray-100); }
.ws-filter-group h3 { margin-bottom: .5rem; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ws-gray-500); }
.ws-check { display: flex; align-items: center; gap: .6rem; margin: 0; padding: .3rem .4rem; border-radius: .5rem; font-weight: 400; font-size: .875rem; color: var(--ws-gray-700); cursor: pointer; }
.ws-check:hover { background: var(--ws-gray-50); }
.ws-check input { flex: none; width: 1rem; height: 1rem; margin: 0; padding: 0; accent-color: var(--ws-accent); }
.ws-check__label { flex: 1; min-width: 0; }
.ws-check__count { font-size: .75rem; color: var(--ws-gray-400); }
.ws-mine {
    display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; padding: .75rem; border-radius: .75rem;
    background: var(--ws-accent-50); border: 1px solid var(--ws-accent-100);
}
.ws-mine strong { display: block; font-size: .8125rem; }
.ws-mine span { display: block; font-size: .75rem; color: var(--ws-gray-500); }
.ws-mine--empty { background: var(--ws-gray-50); border-color: var(--ws-gray-200); }

.ws-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.ws-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.ws-pill {
    display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border: 0; border-radius: .75rem;
    background: #fff; color: var(--ws-gray-700); font-size: .875rem; font-weight: 500; box-shadow: var(--ws-shadow); cursor: pointer;
    transition: background-color .15s, color .15s;
}
.ws-pill:hover { background: var(--ws-gray-100); }
.ws-pill span { color: var(--ws-gray-400); font-size: .8125rem; }
.ws-pill--active, .ws-pill--active:hover { background: var(--ws-accent); color: var(--ws-on-accent); }
.ws-pill--active span { color: inherit; opacity: .8; }
.ws-sort { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .8125rem; font-weight: 400; color: var(--ws-gray-500); white-space: nowrap; }
.ws-sort select { width: auto; min-width: 11rem; padding: .4rem .6rem; font-size: .875rem; }
.ws-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.ws-chip {
    display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .4rem .25rem .7rem; border: 1px solid var(--ws-accent-200); border-radius: 999px;
    background: var(--ws-accent-50); color: var(--ws-gray-800); font-size: .8125rem; cursor: pointer;
}
.ws-chip i { display: grid; place-items: center; width: 1.1rem; height: 1.1rem; border-radius: 50%; color: var(--ws-gray-500); font-size: .7rem; }
.ws-chip:hover i { background: var(--ws-accent); color: var(--ws-on-accent); }
.ws-results-count { font-size: .875rem; color: var(--ws-gray-500); }

/* ── Shop: product cards ─────────────────────────────────────────────────────────────────── */
.ws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.25rem; }
.ws-product {
    position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: var(--ws-radius-lg);
    box-shadow: var(--ws-shadow); transition: transform .2s, box-shadow .2s;
}
.ws-product:hover { transform: translateY(-3px); box-shadow: var(--ws-shadow-lg), 0 0 0 1px var(--ws-accent-200); }
.ws-product__media {
    position: relative; display: grid; place-items: center; height: 11rem; padding: 1rem;
    background: radial-gradient(circle at 50% 60%, #fff 0, var(--ws-gray-50) 70%); border-bottom: 1px solid var(--ws-gray-100);
    color: var(--ws-gray-300); font-size: 2.75rem; text-decoration: none;
}
.ws-product__media img { max-height: 100%; object-fit: contain; transition: transform .3s; }
.ws-product:hover .ws-product__media img { transform: scale(1.04); }
.ws-tech {
    position: absolute; top: .75rem; left: .75rem; padding: .2rem .55rem; border-radius: .4rem;
    background: rgb(255 255 255 / .9); border: 1px solid var(--ws-gray-200); color: var(--ws-gray-700);
    font-size: .6875rem; font-weight: 700; letter-spacing: .03em; backdrop-filter: blur(4px);
}
.ws-fit {
    position: absolute; top: .75rem; right: .75rem; display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 999px;
    background: var(--ws-accent); color: var(--ws-on-accent); font-size: .6875rem; font-weight: 600;
}
.ws-product__body { display: flex; flex-direction: column; gap: .35rem; flex: 1; padding: 1rem 1.1rem .5rem; }
.ws-brand { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ws-gray-400); }
.ws-product__name { color: var(--ws-gray-900); font-weight: 700; font-size: 1rem; line-height: 1.3; text-decoration: none; }
.ws-product__name:hover { color: var(--ws-accent); }
.ws-product__lead { color: var(--ws-gray-600); font-size: .8125rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ws-features { display: grid; gap: .4rem; margin: .4rem 0 0; padding: 0; list-style: none; }
.ws-features li { display: flex; align-items: center; gap: .55rem; font-size: .8125rem; color: var(--ws-gray-700); min-width: 0; }
.ws-features li span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ws-feature-icon { display: grid; place-items: center; flex: none; width: 1rem; color: var(--ws-accent); font-size: .8rem; }
.ws-product__footer { padding: .75rem 1.1rem 1.1rem; }
.ws-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.ws-price { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.ws-stock { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; color: var(--ws-gray-500); white-space: nowrap; }
.ws-stock::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--ws-gray-400); }
.ws-stock--instock { color: var(--ws-green); }
.ws-stock--instock::before { background: #22c55e; box-shadow: 0 0 0 3px #dcfce7; }
.ws-stock--outofstock::before { background: #f59e0b; box-shadow: 0 0 0 3px #fef3c7; }
.ws-otto-line { display: flex; align-items: center; gap: .45rem; margin-bottom: .75rem; font-size: .75rem; color: var(--ws-gray-500); }

.ws-otto-line--on { color: var(--ws-gray-800); font-weight: 500; }
.ws-vat { margin-top: 1.25rem; font-size: .8125rem; color: var(--ws-gray-500); }
.ws-empty { display: grid; place-items: center; gap: .75rem; padding: 3.5rem 1rem; text-align: center; background: #fff; border-radius: var(--ws-radius-lg); box-shadow: var(--ws-shadow); }
.ws-empty > i { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--ws-accent-50); color: var(--ws-accent); font-size: 1.5rem; }
.ws-empty h2 { font-size: 1.125rem; font-weight: 600; }

/* ── Product page ────────────────────────────────────────────────────────────────────────── */
.ws-back { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; color: var(--ws-gray-500); font-size: .875rem; font-weight: 500; text-decoration: none; }
.ws-back:hover { color: var(--ws-gray-900); }
.ws-pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; align-items: start; margin-bottom: 1.5rem; }
.ws-gallery { position: sticky; top: 1rem; padding: 1.5rem; background: #fff; border-radius: var(--ws-radius-lg); box-shadow: var(--ws-shadow); }
.ws-gallery__main {
    display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: .75rem; color: var(--ws-gray-300); font-size: 5rem;
    background: radial-gradient(circle at 50% 55%, #fff 0, var(--ws-gray-50) 72%);
}
.ws-gallery__main img { max-height: 100%; object-fit: contain; }
.ws-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.ws-thumb { width: 4.5rem; height: 4.5rem; padding: .35rem; border: 2px solid var(--ws-gray-200); border-radius: .75rem; background: #fff; cursor: pointer; }
.ws-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ws-thumb--active { border-color: var(--ws-accent); box-shadow: 0 0 0 3px var(--ws-accent-100); }
.ws-pdp__info { display: flex; flex-direction: column; gap: 1.25rem; }
.ws-pdp__title { font-size: 1.875rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.ws-pdp__lead { font-size: 1.0625rem; color: var(--ws-gray-600); }
.ws-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.ws-tag { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px; background: var(--ws-gray-100); color: var(--ws-gray-700); font-size: .75rem; font-weight: 500; }
.ws-tag--accent { background: var(--ws-accent-50); color: var(--ws-accent); }
.ws-feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.ws-feature-list li { display: flex; align-items: center; gap: .75rem; padding: .75rem; border-radius: .75rem; background: #fff; box-shadow: var(--ws-shadow); font-size: .875rem; font-weight: 500; }
.ws-feature-list .ws-feature-icon { width: 1.25rem; font-size: 1rem; }
.ws-buybox { padding: 1.5rem; background: #fff; border-radius: var(--ws-radius-lg); box-shadow: var(--ws-shadow-lg); }
.ws-buybox__price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.ws-buybox__price strong { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; }
.ws-buybox__row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1rem; }
.ws-buybox__row .ws-btn { flex: 1; }
.ws-stepper { display: inline-flex; align-items: center; border: 1px solid var(--ws-gray-200); border-radius: .75rem; background: #fff; overflow: hidden; }
.ws-stepper button { width: 2.5rem; height: 2.75rem; border: 0; background: transparent; color: var(--ws-gray-600); cursor: pointer; }
.ws-stepper button:hover:not(:disabled) { background: var(--ws-gray-100); color: var(--ws-gray-900); }
.ws-stepper input { width: 3.5rem; height: 2.75rem; padding: 0; border: 0; border-radius: 0; text-align: center; font-weight: 600; box-shadow: none; -moz-appearance: textfield; }
.ws-stepper input::-webkit-outer-spin-button, .ws-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ws-stepper--sm button { width: 2rem; height: 2.25rem; }
.ws-stepper--sm input { width: 2.75rem; height: 2.25rem; font-size: .875rem; }
.ws-added { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; font-size: .875rem; color: var(--ws-green); }
.ws-specs { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.5rem; margin: 0; font-size: .9375rem; }
.ws-specs dt { color: var(--ws-gray-500); }
.ws-specs dd { margin: 0; font-weight: 500; }
.ws-description { white-space: pre-line; color: var(--ws-gray-700); line-height: 1.7; }
.ws-pdp-sections { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }

/* ── Checkout ────────────────────────────────────────────────────────────────────────────── */
.ws-steps { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; counter-reset: step; }
.ws-step { display: flex; align-items: center; gap: .5rem; padding: .4rem .9rem .4rem .45rem; border-radius: 999px; background: #fff; box-shadow: var(--ws-shadow); font-size: .8125rem; font-weight: 500; color: var(--ws-gray-500); }
.ws-step::before {
    counter-increment: step; content: counter(step); display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%;
    background: var(--ws-gray-100); color: var(--ws-gray-500); font-size: .75rem; font-weight: 700;
}
.ws-step--done { color: var(--ws-gray-800); }
.ws-step--done::before { content: "✓"; background: var(--ws-accent); color: var(--ws-on-accent); }
.ws-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 24rem; gap: 1.5rem; align-items: start; }
.ws-checkout__main { display: grid; gap: 1.5rem; }
.ws-cart-list { display: grid; margin: 0; padding: 0; list-style: none; }
.ws-cart-row { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto auto auto; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--ws-gray-100); }
.ws-cart-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ws-cart-row:first-child { padding-top: 0; }
.ws-cart-row__media { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: .75rem; background: var(--ws-gray-50); color: var(--ws-gray-300); font-size: 1.5rem; overflow: hidden; }
.ws-cart-row__media img { max-height: 100%; object-fit: contain; }
.ws-cart-row__name { font-weight: 600; color: var(--ws-gray-900); text-decoration: none; }
.ws-cart-row__name:hover { color: var(--ws-accent); }
.ws-cart-row__meta { font-size: .75rem; color: var(--ws-gray-500); }
.ws-cart-row__total { min-width: 6.5rem; text-align: right; font-weight: 700; }
.ws-cart-row__unit { display: block; font-size: .75rem; font-weight: 400; color: var(--ws-gray-500); }
.ws-hint { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.25rem; border-radius: var(--ws-radius); background: #fff; box-shadow: var(--ws-shadow); border-left: 4px solid var(--ws-accent); }
.ws-hint > i { margin-top: .15rem; color: var(--ws-accent); }
.ws-hint strong { display: block; font-size: .9375rem; }
.ws-hint p { font-size: .875rem; color: var(--ws-gray-600); }
.ws-summary { position: sticky; top: 1rem; }
.ws-summary__rows { display: grid; gap: .6rem; font-size: .9375rem; }
.ws-summary__row { display: flex; justify-content: space-between; gap: 1rem; }
.ws-summary__row span:first-child { color: var(--ws-gray-600); }
.ws-summary__row--otto span:first-child { display: inline-flex; align-items: center; gap: .4rem; }
.ws-summary__row--otto i { color: var(--ws-accent); }
.ws-summary__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--ws-gray-200); }
.ws-summary__total strong { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
.ws-summary .ws-btn--lg { margin-top: 1.25rem; }
.ws-trust { display: grid; gap: .5rem; margin: 1.25rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--ws-gray-100); list-style: none; font-size: .8125rem; color: var(--ws-gray-600); }
.ws-trust i { width: 1.2rem; color: var(--ws-accent); }
.ws-note { margin-top: 1rem; padding: .75rem 1rem; border-radius: .75rem; background: #eff6ff; color: #1e40af; font-size: .875rem; }
.ws-placed { max-width: 40rem; margin: 2rem auto; text-align: center; }
.ws-placed__icon { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; margin: 0 auto 1rem; border-radius: 50%; background: var(--ws-green-50); color: var(--ws-green); font-size: 2rem; box-shadow: 0 0 0 8px #dcfce7; }
.ws-placed h1 { font-size: 1.5rem; font-weight: 700; }
.ws-placed p { margin-top: .5rem; color: var(--ws-gray-600); }
.ws-placed .ws-otto-card { margin-top: 1.5rem; text-align: left; }
.ws-placed__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.5rem; }

/* ── Orders ──────────────────────────────────────────────────────────────────────────────── */
.ws-orders { display: grid; gap: 1rem; }
.ws-order { background: #fff; border-radius: var(--ws-radius); box-shadow: var(--ws-shadow); overflow: hidden; }
.ws-order__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; }
.ws-order__number { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-weight: 700; font-size: 1rem; }
.ws-order__meta { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; margin-top: .3rem; font-size: .8125rem; color: var(--ws-gray-500); }
.ws-order__meta i { margin-right: .3rem; }
.ws-order__total { text-align: right; }
.ws-order__total strong { display: block; font-size: 1.125rem; }
.ws-order__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem; margin-top: .25rem; }
.ws-order__body { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--ws-gray-100); background: var(--ws-gray-50); }
.ws-order__lines { display: grid; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: .875rem; }
.ws-order__lines li { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: .75rem; }
.ws-order__lines li span:first-child { color: var(--ws-gray-500); }
.ws-status { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--ws-gray-100); color: var(--ws-gray-600); }
.ws-status::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.ws-status--pending { background: #dbeafe; color: #1d4ed8; }
.ws-status--ordered { background: #dcfce7; color: #166534; }
.ws-status--rejected { background: #fee2e2; color: var(--ws-red); }
.ws-status--created { background: #fef3c7; color: #92400e; }
.ws-otto-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .15rem .6rem .15rem .35rem; border-radius: 999px; border: 1px solid var(--ws-gray-200); background: #fff; color: var(--ws-gray-700); font-size: .75rem; font-weight: 600; }


/* ── Settings ────────────────────────────────────────────────────────────────────────────── */

.b2b-access-denied { padding: 1.5rem; border-radius: var(--ws-radius); background: #fff; box-shadow: var(--ws-shadow); }

/* ── Responsive ──────────────────────────────────────────────────────────────────────────── */
/* Only on phones: the filter button and the "show n products" button in the filter panel. */
.ws-filter-toggle, .ws-sidebar__done { display: none; }
.ws-product__name, .ws-pdp__title, .ws-cart-row__name, .ws-order__number, .ws-otto-instructions p { overflow-wrap: anywhere; }
.ws-cart-row__info { min-width: 0; }


@media (max-width: 75rem) {
    .ws-hero { grid-template-columns: 1fr; }
    .ws-checkout { grid-template-columns: 1fr; }
    .ws-summary { position: static; }
}

/* Tablet and phone */
@media (max-width: 56rem) {
    .ws-app { padding: 1rem 1rem 2rem; }
    .ws-layout, .ws-pdp, .ws-pdp-sections, .ws-settings__section { grid-template-columns: 1fr; }
    .ws-settings__section { gap: 1rem; padding: 1.25rem; }
    .ws-gallery { position: static; }
    .ws-usps, .ws-grid-2, .ws-address__row { grid-template-columns: 1fr; }
    .ws-usps { gap: .75rem; }
    .ws-hero__main, .ws-otto { padding: 1.25rem; }
    .ws-hero h1, .ws-page-title, .ws-pdp__title { font-size: 1.5rem; }
    .ws-panel { padding: 1.25rem; }
    .ws-buybox { padding: 1.25rem; }
    .ws-buybox__price strong { font-size: 1.75rem; }

    /* 16px in form fields: smaller text makes iPhone zoom in when a field is tapped. */
    input, select, textarea, .ws-stepper--sm input { font-size: 16px; }

    /* Filters: a button that opens the panel above the products instead of a long list. */
    .ws-filter-toggle {
        display: flex; align-items: center; gap: .6rem; width: 100%; margin-bottom: 1rem; padding: .75rem 1rem;
        border: 0; border-radius: .75rem; background: #fff; box-shadow: var(--ws-shadow); color: var(--ws-gray-800);
        font-weight: 600; cursor: pointer;
    }
    .ws-filter-toggle > i:first-child { color: var(--ws-accent); }
    .ws-filter-toggle__chevron { margin-left: auto; color: var(--ws-gray-400); }
    .ws-sidebar { position: static; display: none; }
    .ws-sidebar--open { display: block; }
    .ws-sidebar__done { display: flex; margin-top: 1rem; }

    /* Category pills and sort: one swipeable row, full-width sort. */
    .ws-toolbar { flex-direction: column; align-items: stretch; }
    .ws-pills { flex-wrap: nowrap; overflow-x: auto; margin: -.25rem -1rem; padding: .25rem 1rem .5rem; scrollbar-width: none; scroll-snap-type: x proximity; }
    .ws-pills::-webkit-scrollbar { display: none; }
    .ws-pill { flex: none; scroll-snap-align: start; }
    .ws-sort { width: 100%; }
    .ws-sort select { flex: 1; min-width: 0; }

    /* Cart rows: picture | name + stepper | total + remove */
    .ws-cart-row { grid-template-columns: 3.5rem minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: .5rem .75rem; }
    .ws-cart-row__media { grid-column: 1; grid-row: 1 / span 2; width: 3.5rem; height: 3.5rem; align-self: start; }
    .ws-cart-row__info { grid-column: 2; grid-row: 1; }
    .ws-cart-row__remove { grid-column: 3; grid-row: 1; justify-self: end; align-self: start; margin: -.35rem -.35rem 0 0; }
    .ws-cart-row .ws-stepper { grid-column: 2; grid-row: 2; justify-self: start; }
    .ws-cart-row__total { grid-column: 3; grid-row: 2; min-width: 0; align-self: center; }

    /* Orders: stack number/meta and total */
    .ws-order__head { grid-template-columns: 1fr; gap: .75rem; }
    .ws-order__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .5rem; text-align: left; }
    .ws-order__actions { width: 100%; justify-content: flex-start; margin: 0 0 0 -.5rem; }

    .ws-otto-card__head { align-items: flex-start; }
    .ws-steps { gap: .35rem; }
    .ws-step { padding-right: .7rem; font-size: .75rem; }
}

/* Phone */
@media (max-width: 40rem) {
    /* Tabs as in B2B Connect on small screens: icons only (the label stays for screen readers). */
    .ws-nav { flex-wrap: nowrap; }
    .ws-nav a { flex: 1; justify-content: center; padding: .6rem .5rem; }
    .ws-nav__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .ws-grid { grid-template-columns: 1fr; gap: 1rem; }
    .ws-product__media { height: 12rem; }
    .ws-otto__head { align-items: flex-start; }
    .ws-otto-btn { width: 100%; justify-content: center; }
    .ws-buybox__row { flex-direction: column; align-items: stretch; }
    .ws-buybox__row .ws-stepper { justify-content: space-between; }
    .ws-buybox__row .ws-stepper input { flex: 1; }
    .ws-specs { grid-template-columns: 1fr; gap: .15rem; }
    .ws-specs dd { margin-bottom: .6rem; }
    .ws-placed__actions .ws-btn, .ws-page-head > .ws-btn { width: 100%; }
    .ws-step:not(.ws-step--done) { display: none; }
    .ws-step:last-child { display: flex; }
}

/* Touch screens: larger tap targets */
@media (pointer: coarse) {
    .ws-check { padding: .55rem .4rem; }
    .ws-icon-btn { width: 2.75rem; height: 2.75rem; }
    .ws-stepper--sm button { width: 2.5rem; height: 2.75rem; }
    .ws-stepper--sm input { height: 2.75rem; }
    .ws-chip { padding-block: .4rem; }
    .ws-thumb { width: 4rem; height: 4rem; }
}
/* Instructions to Otto (checkout textarea and order details) */
.ws-otto-card__extra { margin-top: 1rem; }
.ws-otto-card__extra label { display: flex; align-items: center; gap: .4rem; }
.ws-otto-card__extra label i { color: var(--ws-gray-400); }
.ws-otto-card__extra small { display: block; margin-top: .35rem; }
.ws-otto-instructions { margin-bottom: .75rem; padding: .75rem 1rem; border-radius: .75rem; background: #fff; border: 1px solid var(--ws-gray-200); font-size: .875rem; }
.ws-otto-instructions strong { display: block; margin-bottom: .2rem; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ws-gray-500); }
.ws-otto-instructions p { white-space: pre-line; color: var(--ws-gray-800); }

/* A filter option that would give no products with the other filters selected */
.ws-check--empty { opacity: .45; }
.ws-check--empty:hover { opacity: .7; }

/* ── Setup choice: Otto (free) · configuration by B2B Automation (paid) · myself ─────────── */
.ws-setup { padding: 1.25rem 1.5rem 1.5rem; border-radius: var(--ws-radius); background: #fff; box-shadow: var(--ws-shadow-lg); }
.ws-setup__head { margin-bottom: 1rem; }
.ws-setup__title { font-size: 1rem; font-weight: 600; }
.ws-setup__text { margin-top: .15rem; font-size: .875rem; color: var(--ws-gray-500); }
.ws-setup__options { display: grid; gap: .6rem; }
.ws-option {
    position: relative; display: flex; align-items: center; gap: .9rem; margin: 0; padding: .85rem 1rem; border: 1px solid var(--ws-gray-200);
    border-radius: .85rem; background: #fff; font-weight: 400; cursor: pointer; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.ws-option:hover { border-color: var(--ws-gray-300); }
.ws-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ws-option:has(input:focus-visible) { outline: 2px solid var(--ws-accent); outline-offset: 2px; }
.ws-option--selected { border-color: var(--ws-accent); box-shadow: 0 0 0 1px var(--ws-accent); background: var(--ws-accent-50); }
.ws-option--selected::after {
    content: "\f00c"; font: var(--fa-font-solid); position: absolute; top: .85rem; right: 1rem; display: grid; place-items: center;
    width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--ws-accent); color: var(--ws-on-accent); font-size: .65rem;
}
.ws-option .ws-otto-launcher { width: 2.75rem; height: 2.75rem; }
.ws-option__icon {
    display: inline-grid; flex: none; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
    background: var(--ws-gray-100); color: var(--ws-gray-600); font-size: 1rem;
}
.ws-option__body { display: grid; gap: .1rem; min-width: 0; padding-right: 1.75rem; }
.ws-option__title { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-size: .9375rem; font-weight: 600; color: var(--ws-gray-900); }
.ws-option__text { font-size: .8125rem; color: var(--ws-gray-500); }
.ws-option__price { font-size: .8125rem; font-weight: 600; color: var(--ws-gray-700); }
.ws-free { display: inline-flex; align-items: center; padding: .05rem .5rem; border-radius: 999px; background: var(--ws-green-50); color: #166534; border: 1px solid #bbf7d0; font-size: .6875rem; font-weight: 700; letter-spacing: .02em; }
.ws-setup__lines { display: grid; gap: .35rem; margin: 1rem 0 0; padding: .8rem 1rem; border-radius: .75rem; background: var(--ws-gray-50); border: 1px solid var(--ws-gray-100); list-style: none; font-size: .875rem; }
.ws-setup__lines li { display: flex; justify-content: space-between; gap: 1rem; }
.ws-setup__lines strong { white-space: nowrap; }
.ws-setup__extra { margin-top: 1rem; }
.ws-setup__extra small { display: block; margin-top: .35rem; }
.ws-expert-icon { color: var(--ws-gray-500); font-size: .8rem; }
.ws-otto__expert { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--ws-gray-500); }
.ws-otto__expert i { color: var(--ws-gray-400); }
.ws-otto-card__head .ws-option__icon { width: 3.5rem; height: 3.5rem; font-size: 1.2rem; }
@media (max-width: 40rem) {
    .ws-setup { padding: 1.1rem; }
    .ws-option { align-items: flex-start; }
}
/* A picture that could not be loaded: show the same placeholder as products without pictures */
.ws-img-failed::before { content: "\f2db"; font: var(--fa-font-solid); color: var(--ws-gray-300); }
.ws-gallery__main img, .ws-product__media img, .ws-cart-row__media img { font-size: .75rem; color: var(--ws-gray-400); }

/* Product page: picture and description on the left, buying on the right, specifications full width below */
.ws-pdp__media { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.ws-pdp__media .ws-gallery { position: static; }
.ws-specs-panel { margin-bottom: 1.5rem; }
.ws-specs { display: block; columns: 2; column-gap: 3rem; column-rule: 1px solid var(--ws-gray-100); margin: 0; font-size: .875rem; }
.ws-spec { display: grid; grid-template-columns: minmax(7rem, 38%) minmax(0, 1fr); gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--ws-gray-100); break-inside: avoid; }
.ws-spec dt { color: var(--ws-gray-500); }
.ws-spec dd { margin: 0; font-weight: 500; color: var(--ws-gray-900); overflow-wrap: anywhere; }
@media (max-width: 56rem) {
    .ws-specs { columns: 1; }
}

/* Pictures always fit their box: flex containers with a definite height, so max-height: 100% works
   (in a grid with an auto row it does not, and large pictures spilled over the card text). */
.ws-product__media { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ws-product__media img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ws-gallery__main { display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 1rem; }
.ws-gallery__main img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.ws-cart-row__media { display: flex; align-items: center; justify-content: center; }
.ws-cart-row__media img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.ws-thumb img { display: block; }

/* Settings: one card with sections – small title and help on the left, fields on the right, save in the footer */
.ws-settings { max-width: 64rem; padding: 0; overflow: hidden; }
.ws-settings__section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; padding: 1.5rem; }
.ws-settings__section + .ws-settings__section { border-top: 1px solid var(--ws-gray-100); }
.ws-settings__intro h2 { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: .9375rem; font-weight: 600; color: var(--ws-gray-800); }
.ws-settings__intro h2 i { color: var(--ws-gray-400); font-size: .8rem; }
.ws-settings__intro p { margin-top: .25rem; font-size: .8125rem; color: var(--ws-gray-500); }
.ws-settings__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 1rem; padding: 1rem 1.5rem; border-top: 1px solid var(--ws-gray-100); background: var(--ws-gray-50); }
.ws-prefilled { display: flex; align-items: center; gap: .6rem; max-width: 64rem; margin-bottom: 1rem; padding: .7rem 1rem; border-radius: .75rem; background: #eff6ff; border: 1px solid #dbeafe; color: #1e40af; font-size: .875rem; }
@media (max-width: 56rem) {
    .ws-settings__section { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem; }
}

/* Purchase orders per supplier on an order */
.ws-shipments { margin-bottom: .75rem; padding: .75rem 1rem; border-radius: .75rem; background: #fff; border: 1px solid var(--ws-gray-200); font-size: .875rem; }
.ws-shipments > strong { display: block; margin-bottom: .35rem; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ws-gray-500); }
.ws-shipments ul { display: grid; gap: .3rem; margin: 0 0 .25rem; padding: 0; list-style: none; }
.ws-shipments li { display: flex; justify-content: space-between; gap: 1rem; }
.ws-ship { font-size: .75rem; font-weight: 600; color: var(--ws-gray-500); }
.ws-ship--sent { color: var(--ws-green); }
.ws-ship--waiting { color: #1d4ed8; }
.ws-ship--failed { color: var(--ws-red); }
