:root {
    --bg: #fafafa;
    --surface: #ffffff;
    --text: #1a1a1a;
    --muted: #6b6b6b;
    --border: #e5e5e5;
    --accent: #1a1a1a;
    --accent-contrast: #ffffff;
    --success: #1b7a3d;
    --error: #b3261e;
    --radius: 8px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a.link { color: var(--accent); text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
header.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}
.logo { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
nav.main-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
nav.main-nav a { color: var(--muted); transition: color .15s; }
nav.main-nav a:hover, nav.main-nav a.active { color: var(--text); }
.cart-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent); color: var(--accent-contrast);
    border-radius: 999px; font-size: 11px; min-width: 18px; height: 18px;
    padding: 0 5px; margin-left: 6px;
}
/* Бургер-кнопка и бейдж корзины в ней — только для мобильного меню */
.burger-btn {
    display: none;
    flex-direction: column; align-items: flex-end;
    background: none; border: none; cursor: pointer; padding: 6px 0;
    position: relative;
}
.burger-btn .burger-icon { display: flex; flex-direction: column; gap: 5px; }
.burger-btn .burger-icon span {
    width: 24px; height: 2px; background: var(--text); border-radius: 2px; display: block;
}
.burger-cart-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent); color: var(--accent-contrast);
    border-radius: 999px; font-size: 10px; min-width: 16px; height: 16px;
    padding: 0 4px; position: absolute; top: -6px; right: -8px;
}

/* ---------- Layout ---------- */
main { padding: 32px 0 64px; }
h1 { font-size: 24px; margin: 0 0 20px; letter-spacing: -0.01em; }
h2 { font-size: 18px; margin: 0 0 14px; }

/* Видео (страница «О производстве») — адаптивно под ширину контейнера */
.video-wrap {
    position: relative; width: 100%; max-width: 1040px;
    aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
    background: #000; border: 1px solid var(--border);
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 1px solid #474a51; background: #474a51; color: var(--accent-contrast);
    padding: 9px 16px; border-radius: var(--radius); font-size: 14px; cursor: pointer;
    transition: opacity .15s;
}
.btn:hover { opacity: .85; }
.btn.btn-outline { background: transparent; color: var(--text); }
.btn.btn-danger { background: var(--error); border-color: var(--error); }
.btn.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Forms ---------- */
label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--muted); }
input[type=text], input[type=password], input[type=email], input[type=number],
input[type=tel], input[type=search], textarea, select {
    width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 14px; background: var(--surface); color: var(--text); font-family: inherit;
}
textarea { resize: vertical; min-height: 90px; }
.field { margin-bottom: 16px; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row .field { flex: 1; min-width: 200px; }

/* ---------- Cards / auth ---------- */
.auth-wrap {
    min-height: 80vh; display: flex; align-items: center; justify-content: center;
}
.auth-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    padding: 36px; width: 100%; max-width: 380px;
}
.auth-card h1 { text-align: center; }
.auth-sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 24px; }

/* ---------- Alerts ---------- */
.alert { padding: 11px 14px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; }
.alert-error { background: #fdeceb; color: var(--error); border: 1px solid #f4c6c2; }
.alert-success { background: #eaf6ee; color: var(--success); border: 1px solid #c3e6cd; }

/* ---------- Catalog: view toggle & filters ---------- */
.view-toggle { display: flex; gap: 6px; }
.view-toggle a {
    padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; color: var(--muted);
}
.view-toggle a.active { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }

.filters-bar {
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
    padding: 14px 16px; margin-bottom: 20px;
}
.filter-form { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.filter-form .field { min-width: 160px; }
.filter-form .field:first-child { min-width: 200px; }

.catalog-grid-layout { display: flex; gap: 24px; align-items: flex-start; }
.catalog-grid-main { flex: 1; min-width: 0; }
.catalog-grid-filters {
    width: 260px; flex-shrink: 0; background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 18px;
}
.catalog-grid-filters .filter-form { flex-direction: column; align-items: stretch; }
.catalog-grid-filters .filter-form .field { min-width: 0; }
.catalog-grid-filters h2 { margin-top: 0; }

@media (max-width: 860px) {
    /* Мобильное меню: показываем бургер, прячем навигацию */
    .burger-btn { display: flex; }
    .header-inner { position: relative; flex-wrap: wrap; }
    nav.main-nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--surface); border-bottom: 1px solid var(--border);
        padding: 6px 0; box-shadow: 0 10px 20px rgba(0,0,0,.08);
    }
    nav.main-nav.open { display: flex; }
    nav.main-nav a { padding: 13px 16px; border-bottom: 1px solid var(--border); }
    nav.main-nav a:last-child { border-bottom: none; }
    .cart-badge { margin-left: 8px; }

    .catalog-grid-layout { flex-direction: column-reverse; }
    .catalog-grid-filters { width: 100%; }
}

/* ---------- Catalog ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.filters a {
    padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--muted);
}
.filters a.active, .filters a:hover { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }

.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px;
}
.product-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
    display: flex; flex-direction: column;
}
.product-card .thumb {
    aspect-ratio: 1 / 1; background: #f2f2f2; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.product-card .thumb .noimg { color: #bbb; font-size: 12px; }
.product-card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.product-card .cat { font-size: 12px; color: var(--muted); }
.product-card .price { font-size: 16px; font-weight: 700; margin-top: auto; }
.product-card .stock { font-size: 12px; color: var(--muted); }
.qty-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.qty-row input { width: 60px; text-align: center; padding: 6px; }

/* ---------- Alternatives (товара временно нет, предлагаем названия-ссылки) ---------- */
.product-alternatives { margin-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.product-alternatives .alt-label { font-weight: 600; }
.product-alternatives a { white-space: normal; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
table th, table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
table th { background: #f5f5f5; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
table tr:last-child td { border-bottom: none; }
.text-right { text-align: right; }
.text-center { text-align: center; }

.status-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.status-new { background: #eef1fd; color: #3a4bc4; }
.status-under_review { background: #e0f2f1; color: #00695c; }
.status-invoiced { background: #fff4e0; color: #a86a00; }
.status-paid { background: #eaf6ee; color: var(--success); }
.status-assembling { background: #ede7f6; color: #5e35b1; }
.status-assembled { background: #e8f5e9; color: #2e7d32; }
.status-shipped { background: #e3f2fd; color: #1565c0; }
.status-completed { background: #ececec; color: #555; }
.status-cancelled { background: #fdeceb; color: var(--error); }

/* ---------- Cart summary ---------- */
.cart-summary { display: flex; justify-content: flex-end; margin-top: 18px; }
.cart-summary .box { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px; min-width: 260px; }
.cart-summary .total-row { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; margin-bottom: 14px; }

/* ---------- Misc ---------- */
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.between { justify-content: space-between; }
.center { align-items: center; }

/* Клиенты: форма и список вертикально, чтобы не наезжали друг на друга */
.users-widget { display: block; }
.users-form-card,
.users-list-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.users-form-card h2,
.users-list-card h2 { margin-top: 0; }
.users-form-card { margin-bottom: 22px; }
.table-scroll { overflow-x: auto; }
.users-list-card table { margin: 0; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-block; background: #f0f0f0; border-radius: 999px; padding: 2px 10px; font-size: 12px; color: var(--muted); }

/* ---------- Admin ---------- */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 220px; background: #171717; color: #ddd; padding: 20px 0; flex-shrink: 0;
}
.admin-sidebar .brand { padding: 0 20px 20px; font-weight: 700; color: #fff; font-size: 15px; border-bottom: 1px solid #2c2c2c; margin-bottom: 10px; }
.admin-sidebar a { display: block; padding: 10px 20px; font-size: 14px; color: #bbb; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: #262626; color: #fff; }
.admin-content { flex: 1; padding: 30px 34px; max-width: 1200px; }
.admin-content h1 { display: flex; align-items: center; justify-content: space-between; }

.img-thumb-sm { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: #f0f0f0; }
.img-preview { width: 140px; height: 140px; object-fit: cover; border-radius: 8px; background: #f0f0f0; border: 1px solid var(--border); margin-bottom: 10px; }

/* ---------- Related products picker (admin) ---------- */
.related-picker { max-width: 560px; }
.related-search-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.related-search-wrap input[type=search] { flex: 1; }
.related-count { font-size: 12px; white-space: nowrap; flex-shrink: 0; }
.related-list {
    border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
    max-height: 360px; overflow-y: auto; padding: 6px;
}
.related-item {
    display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px;
    cursor: pointer; font-size: 14px;
}
.related-item:hover { background: #f5f5f5; }
.related-item.checked { background: #eef1fd; }
.related-item input[type=checkbox] { width: auto; margin: 0; flex-shrink: 0; }
.related-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: #f0f0f0; flex-shrink: 0; }
.related-thumb-empty { display: inline-flex; align-items: center; justify-content: center; color: #bbb; font-size: 14px; }
.related-name { flex: 1; min-width: 0; line-height: 1.3; }
.related-selected-block { margin-top: 14px; }
.related-selected-title { font-size: 13px; margin-bottom: 8px; }
.related-selected { display: flex; flex-wrap: wrap; gap: 8px; }
.related-chip {
    display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border);
    background: var(--surface); border-radius: 8px; padding: 5px 8px 5px 5px; font-size: 13px;
}
.related-chip .related-thumb { width: 30px; height: 30px; border-radius: 5px; }
.related-chip .related-thumb-empty { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; color: #bbb; font-size: 12px; }
.related-chip-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-chip-remove { border: none; background: none; cursor: pointer; color: var(--muted); font-size: 13px; padding: 2px; line-height: 1; }
.related-chip-remove:hover { color: var(--error); }
.related-list-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- Gallery (admin) ---------- */
.gallery-grid { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.gallery-item {
    position: relative; width: 72px; height: 72px; border-radius: 8px;
    border: 2px solid var(--border); overflow: hidden;
    cursor: grab; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.gallery-item:active { cursor: grabbing; }
.gallery-item.dragging { opacity: .35; border: 2px dashed var(--accent); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.gallery-item-del {
    position: absolute; top: 4px; right: 4px; width: 20px; height: 20px;
    border: none; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff;
    font-size: 12px; line-height: 1; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
}
.gallery-item-del:hover { background: var(--error); }
.gallery-item.deleting { border-color: var(--error); opacity: .45; }
.gallery-item.deleting::after {
    content: 'Будет удалена'; position: absolute; left: 0; right: 0; bottom: 0;
    background: var(--error); color: #fff; font-size: 9px; text-align: center;
    padding: 2px 0; line-height: 1.2;
}

/* ---------- Upload progress (admin) ---------- */
.upload-progress {
    height: 10px; background: #e5e5e5; border-radius: 999px; overflow: hidden;
}
.upload-progress-fill {
    height: 100%; width: 0%; background: var(--accent); border-radius: 999px;
    transition: width .15s ease;
}

@media (max-width: 720px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; display: flex; overflow-x: auto; padding: 10px 0; }
    .admin-sidebar .brand { display: none; }
    .admin-sidebar a { white-space: nowrap; padding: 8px 14px; }
    .admin-content { padding: 20px; }
    nav.main-nav { gap: 12px; font-size: 13px; }
}

/* ---------- Footer ---------- */
.site-footer { background: #171717; color: #ccc; margin-top: 50px; }
.footer-inner { display: flex; gap: 40px; flex-wrap: wrap; padding: 26px 0; font-size: 14px; }
.footer-col { flex: 1; min-width: 180px; }
.footer-brand { color: #fff; font-weight: 700; margin-bottom: 6px; }
.site-footer .muted { color: #999; }
.site-footer a.link { color: #ccc; text-decoration: none; display: inline-block; margin-right: 12px; }
.site-footer a.link:hover { color: #fff; text-decoration: underline; }
.footer-social { display: flex; flex-direction: column; gap: 4px; }

/* ---------- Banner ---------- */
.site-banner { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.site-banner img { width: 100%; display: block; }

/* Слайдер баннеров */
.site-banner-slider { position: relative; margin-bottom: 22px; }
.site-banner-slider .site-banner { margin-bottom: 0; }
.site-banner-track { position: relative; }
.site-banner-slide { display: none; }
.site-banner-slide.active { display: block; animation: bannerFade .45s ease; }
@keyframes bannerFade { from { opacity: 0; } to { opacity: 1; } }

.banner-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; padding: 0;
    border: none; border-radius: 50%;
    background: rgba(17, 17, 17, .38); color: #fff;
    font-size: 30px; line-height: 1; font-family: Arial, sans-serif;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 2;
    transition: background .2s ease;
}
.banner-arrow:hover { background: rgba(17, 17, 17, .68); }
.banner-arrow.prev { left: 12px; }
.banner-arrow.next { right: 12px; }

.banner-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.banner-dot {
    position: relative; width: 32px; height: 7px; padding: 0;
    border: none; border-radius: 4px; overflow: hidden;
    background: #e3e3e3; cursor: pointer;
}
.banner-dot-fill {
    position: absolute; inset: 0;
    background: var(--accent, #111);
    transform-origin: left center; transform: scaleX(0);
}
.banner-dot.active .banner-dot-fill {
    animation: bannerDotFill var(--banner-interval, 5s) linear forwards;
}
@keyframes bannerDotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Badges on products ---------- */
.badge-pill {
    display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600;
    margin-right: 4px; margin-bottom: 3px; white-space: nowrap;
}
.product-card .thumb { position: relative; }
.card-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 2; align-items: flex-start; }
.table-badges { display: block; margin-top: 2px; }
.table-badges .badge-pill { font-size: 10px; padding: 1px 7px; }

/* ---------- Product tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 24px 0 16px; }
.tab-btn {
    padding: 9px 16px; font-size: 14px; color: var(--muted); border: none; background: none; cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab-btn.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.spec-table td:first-child { color: var(--muted); width: 40%; }

/* ---------- Login logo ---------- */
.auth-logo { display: block; width: 100%; height: auto; margin: 0 auto 16px; }
.dealer-link { text-align: center; margin-top: 14px; font-size: 13px; }

/* ---------- Product gallery & lightbox ---------- */
.product-main-image { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-main-image img { width: 100%; height: 100%; object-fit: contain; }
.product-main-image .noimg { color: #bbb; font-size: 12px; }
.product-thumb.active { border-color: var(--accent) !important; }

.lightbox-overlay {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, .85);
}
.lightbox-content {
    max-width: 90vw; max-height: 90vh; display: flex;
    align-items: center; justify-content: center;
}
.lightbox-content img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 6px; }
.lightbox-close {
    position: absolute; top: 16px; right: 20px; z-index: 2;
    border: none; background: rgba(255, 255, 255, .15); color: #fff;
    width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .3); }
.lightbox-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 52px; height: 52px; padding: 0;
    border: none; border-radius: 50%;
    background: rgba(255, 255, 255, .15); color: #fff;
    font-size: 36px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-arrow:hover { background: rgba(255, 255, 255, .3); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: 14px; background: rgba(0, 0, 0, .5);
    padding: 4px 12px; border-radius: 999px;
}

@media (max-width: 720px) {
    .lightbox-arrow { width: 42px; height: 42px; font-size: 28px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* ---------- Акционные цены («Акция») ---------- */
/* Вертикальный блок: сверху крупная новая цена, под ней — старая перечёркнутая */
.promo-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
td.text-right .promo-price-block {
    align-items: flex-end;
}
.promo-new {
    color: var(--error);
    font-weight: 700;
    font-size: 1.3em;
    white-space: nowrap;
}
.promo-old-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.promo-old {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85em;
    font-weight: 400;
    white-space: nowrap;
}
.promo-discount {
    display: inline-block;
    background: var(--error);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 999px;
    white-space: nowrap;
    vertical-align: middle;
}


/* Условия бесплатной доставки: постоянное уведомление при выборе товаров. */
.delivery-notice {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    width: 340px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    padding: 16px 18px;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 12px;
    background: #fef2f2;
    color: #991b1b;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
    font-size: 13px;
    line-height: 1.45;
    transition: background-color .2s, border-color .2s, color .2s;
}
.delivery-notice strong { display: block; margin-bottom: 5px; font-size: 14px; }
.delivery-notice p { margin: 0 0 8px; }
.delivery-notice a { color: inherit; }
.delivery-notice__progress { height: 5px; margin-top: 10px; overflow: hidden; border-radius: 8px; background: rgba(0, 0, 0, .08); }
.delivery-notice__progress span { display: block; height: 100%; background: #dc2626; transition: width .25s; }
.delivery-notice--free { background: #f0fdf4; border-color: #bbf7d0; border-left-color: #16a34a; color: #166534; }
.delivery-notice--free .delivery-notice__progress span { background: #16a34a; }
body:has(.delivery-notice) { padding-bottom: 170px; }
body:has(.delivery-notice) .scroll-toggle-btn { bottom: 190px; }
@media (max-width: 600px) {
    .delivery-notice { right: 16px; bottom: max(12px, env(safe-area-inset-bottom)); padding: 12px 14px; font-size: 12px; }
    .delivery-notice strong { font-size: 13px; }
}
