/* Fprint — compiled CSS Snapshot 2026. Версія збірки: v2.66.6. */
/* Factor Print — базові стилі інтерфейсу та складського ядра. Версія останньої зміни: v2.53.2. CSS Snapshot 2026. */
/* Factor Print — керована сітка послуг і замовницькі дії замовлень. Версія останньої зміни: v2.48.15. CSS Snapshot 2026. */
/* Factor Print — плаваюча кнопка «Допомога» в нижньому правому куті. Версія останньої зміни: v2.48.13. CSS Snapshot 2026. */
/* Factor Print — уніфіковані SVG-іконки верхньої панелі адмінки. Версія останньої зміни: v2.48.11. CSS Snapshot 2026. */
/* Factor Print — простий калькулятор, редактор полів та схема; остання зміна: v2.48.7. CSS Snapshot 2026. */
/* Factor Print — CSS Snapshot 2026: компактний мобільний список товарів. Версія останньої зміни: v2.48. */
/* Factor Print — оформлення перемикача мов публічного сайту. Версія останньої зміни: 2.46.0. CSS Snapshot 2026. */
/* Factor Print v2.44.8 — адаптивні вкладки редактора товару та нижня панель дій; CSS Snapshot 2026. */
/* Factor Print v2.44.7 — вставлення зображень у спільному вікні вибору медіатеки; CSS Snapshot 2026. */
/* Factor Print v2.43.14.5 — геометрія таблиці оформлення замовлення; CSS Snapshot 2026. */
/* Factor Print v2.42.1 — вибір матеріалів картками й кольоровими зразками; CSS Snapshot 2026. */
/* Factor Print v2.40.7 — розподіл атрибутів у замовленні менеджера; CSS Snapshot 2026. */
/* Factor Print v2.40.6 — віджети персонального робочого місця; CSS Snapshot 2026. */
/* Factor Print v2.39.5 — Адаптивний вихід і ID у кабінеті; CSS Snapshot 2026. */
/* Factor Print v2.39.4 — мініатюри галереї товару: повний кадр без обрізання, CSS Snapshot 2026. */
/* Factor Print v2.38.4 — єдина шапка адміністратора без номера версії, CSS Snapshot 2026. */
/* Factor Print v2.38.3 — CSS Snapshot 2026: адміністративні акти, повернення і реєстр фінансових запитів; остання зміна v2.38.3. */
/* Factor Print v2.38.2 — CSS Snapshot 2026: вибір повних замовлень і спільних накладних. */
/* Factor Print v2.38.1 — CSS Snapshot 2026: документи та друковані форми А4. */
/* Factor Print v2.38.0 — CSS Snapshot 2026; мініатюри без обрізання. */
/* Factor Print v2.37.2 — форма замовлення та опції рахунку, CSS Snapshot 2026. */
/* Factor Print v2.36.21.4 — український алфавітний покажчик і групи довідки; CSS Snapshot 2026. */
/* Factor Print v2.36.21.3 — головна сторінка: картки піктограм і послуг; CSS Snapshot 2026. */
/* Основні стилі публічного сайту, кабінету та листування; CSS Snapshot 2026. Factor Print v2.36.21.1. */
/* Factor Print v2.36.20.3 — публічний дизайн та SVG-напрямні приватних прев’ю JPG/PNG/PDF; CSS Snapshot 2026. */
/* Основні стилі та текстові посилання картки товару. CSS Snapshot 2026. Остання зміна: Factor Print v2.36.3. */
/* Factor Print: стилі інтерфейсу CSS Snapshot 2026. Остання зміна: v2.36.2. */
/* Загальні стилі сайту й адмінки Factor Print, CSS Snapshot 2026.
 * Остання зміна: v2.36.2.
 */
@font-face {
    font-family: "Factor Sans";
    src: local("Factor Sans Regular"), local("FactorSans-Regular"), url("fonts/FactorSans-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Factor Sans";
    src: local("Factor Sans Medium"), local("FactorSans-Medium"), url("fonts/FactorSans-Medium.woff2") format("woff2");
    font-weight: 500 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Factor Sans";
    src: local("Factor Sans Bold"), local("FactorSans-Bold"), url("fonts/FactorSans-Bold.woff2") format("woff2");
    font-weight: 700 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Factor Print brand system — primary #142933 */
    --fp-brand: #142933;
    --fp-brand-hover: #0f2028;
    --fp-brand-active: #0b181e;
    --fp-brand-2: #244653;
    --fp-brand-3: #365c6a;
    --fp-brand-contrast: #ffffff;

    --fp-ink: #142933;
    --fp-ink-2: #294752;
    --fp-muted: #667d86;
    --fp-muted-2: #84969d;

    --fp-line: #d5e0e4;
    --fp-line-strong: #bccdd3;
    --fp-bg: #f3f6f7;
    --fp-surface: #ffffff;
    --fp-surface-alt: #f8fafb;
    --fp-soft: #eaf0f2;
    --fp-soft-strong: #dfe9ec;

    --fp-success: #2f6b57;
    --fp-success-bg: #e8f4ef;
    --fp-warning: #8a6426;
    --fp-warning-bg: #fff4dc;
    --fp-incoming: var(--fp-warning);
    --fp-incoming-bg: var(--fp-warning-bg);
    --fp-danger: #944b48;
    --fp-danger-bg: #f9eceb;
    --fp-info: #35697a;
    --fp-info-bg: #e8f3f6;
    --fp-heading: var(--fp-ink);
    --fp-link: var(--fp-brand);
    --fp-price: var(--fp-ink);
    --fp-default-badge-bg: var(--fp-brand);
    --fp-default-badge-text: #fff;

    --bs-body-color: var(--fp-ink);
    --bs-body-bg: var(--fp-bg);
    --bs-border-color: var(--fp-line);
    --bs-dark: var(--fp-brand);
    --bs-dark-rgb: 20, 41, 51;
    --bs-primary: var(--fp-brand);
    --bs-primary-rgb: 20, 41, 51;
    --bs-link-color: var(--fp-link);
    --bs-link-hover-color: var(--fp-brand-hover);
    --bs-secondary-color: var(--fp-muted);
    --bs-font-sans-serif: "Factor Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);

    --catalog-radius: 1rem;
    --catalog-shadow: 0 .7rem 2rem rgb(20 41 51 / .08);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100dvh;
    font-family: var(--bs-font-sans-serif);
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 88% 0%, rgb(20 41 51 / .04), transparent 26rem),
        var(--fp-bg);
}

body > main {
    flex: 1 0 auto;
}

.site-header {
    z-index: 1040;
    isolation: isolate;
}

.site-header .navbar {
    min-height: 4.75rem;
    background: var(--fp-surface) !important;
    backdrop-filter: blur(14px);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin: 0;
}

.brand-symbol {
    display: grid;
    place-items: center;
    width: 2.9rem;
    aspect-ratio: 1;
    border-radius: .8rem;
    background: var(--fp-ink);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .03em;
}

.brand-copy {
    display: grid;
    line-height: 1.05;
}

.brand-copy strong {
    letter-spacing: .06em;
}

.brand-copy small {
    margin-top: .25rem;
    color: var(--fp-muted);
    font-size: .68rem;
}

.catalog-search {
    max-width: 52rem;
    margin-inline: auto;
}

.search-group .form-control,
.search-group .input-group-text,
.search-group .btn {
    min-height: 2.85rem;
}

.search-group .form-control:focus {
    box-shadow: none;
    border-color: var(--bs-border-color);
}

.filters-sticky {
    position: sticky;
    top: 6.25rem;
    height: max-content;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.category-nav {
    display: grid;
    gap: .2rem;
}

.category-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .65rem;
    min-height: 2.35rem;
    padding:
        .45rem
        .55rem
        .45rem
        calc(.55rem + var(--category-depth, 0) * .78rem);
    border-radius: .65rem;
    color: var(--fp-ink-2);
    text-decoration: none;
    transition:
        background-color .15s ease,
        color .15s ease;
}

.category-link:hover {
    background: var(--fp-soft);
}

.category-link.active {
    background: var(--fp-ink);
    color: #fff;
}

.category-name {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .45rem;
    overflow: hidden;
}

.category-name-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    min-width: 0;
}

.category-nav-image {
    flex: 0 0 auto;
    width: var(--category-image-size, 40px);
    height: var(--category-image-size, 40px);
    object-fit: contain;
    border-radius: .45rem;
    background: #fff;
}

.category-link.active .category-nav-image {
    box-shadow: 0 0 0 1px rgb(255 255 255 / .22);
}

.category-dot {
    display: inline-block;
    width: .32rem;
    aspect-ratio: 1;
    margin-right: .3rem;
    border-radius: 50%;
    background: currentColor;
    opacity: .45;
    vertical-align: middle;
}

.category-count {
    min-width: 1.8rem;
    padding: .15rem .4rem;
    border-radius: 999px;
    background: rgb(20 41 51 / .07);
    text-align: center;
    font-size: .68rem;
    font-weight: 700;
}

.category-link.active .category-count {
    background: rgb(255 255 255 / .15);
}

.catalog-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.catalog-toolbar {
    border-radius: var(--catalog-radius);
}

.catalog-toolbar .form-select {
    width: auto;
    min-width: 9rem;
}

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

.product-card {
    overflow: hidden;
    border-radius: var(--catalog-radius);
    box-shadow: var(--catalog-shadow) !important;
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 1rem 2.75rem rgb(20 41 51 / .11) !important;
}

.product-media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(180deg, var(--fp-surface), var(--fp-surface-alt));
}

.product-media img {
    width: 100%;
    height: 100%;
    padding: clamp(.75rem, 2vw, 1.25rem);
    object-fit: var(--product-image-fit, contain);
    transition: transform .2s ease;
}

.product-card:hover .product-media img {
    transform: scale(1.025);
}

.media-placeholder {
    width: 100%;
    height: 100%;
    min-height: 15rem;
    display: grid;
    place-items: center;
    color: var(--fp-muted-2);
    background:
        linear-gradient(
            135deg,
            var(--fp-bg) 25%,
            var(--fp-soft) 25% 50%,
            var(--fp-bg) 50% 75%,
            var(--fp-soft) 75%
        );
    background-size: 1.5rem 1.5rem;
}

.availability-badge,
.variant-badge {
    position: absolute;
    top: .75rem;
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: .25rem .55rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 750;
}

.availability-badge {
    left: .75rem;
}

.availability-badge.static {
    position: static;
}

.availability-badge.is-stock {
    background: var(--fp-success-bg);
    color: var(--fp-success);
}

.availability-badge.is-incoming {
    background: var(--fp-incoming-bg);
    color: var(--fp-incoming);
}

.availability-badge.is-empty {
    background: var(--fp-danger-bg);
    color: var(--fp-danger);
}

.variant-badge {
    right: .75rem;
    background: rgb(20 41 51 / .08);
    color: var(--fp-ink);
}

.product-custom-badge {
    position: absolute;
    left: .75rem;
    bottom: .75rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 1.5rem);
    min-height: 1.8rem;
    padding: .3rem .65rem;
    border-radius: 999px;
    background: var(--badge-bg, var(--fp-default-badge-bg));
    color: var(--badge-text, var(--fp-default-badge-text));
    box-shadow: 0 .35rem 1rem rgb(20 41 51 / .16);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-detail-badge {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: .38rem .78rem;
    border-radius: 999px;
    background: var(--badge-bg, var(--fp-default-badge-bg));
    color: var(--badge-text, var(--fp-default-badge-text));
    box-shadow: 0 .35rem 1rem rgb(20 41 51 / .12);
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .01em;
}

.product-code {
    color: var(--fp-muted);
    font-size: .72rem;
    font-weight: 650;
}

.product-title {
    line-height: 1.38;
}

.product-title a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--fp-ink);
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.product-title a:hover {
    text-decoration: underline;
    text-underline-offset: .15em;
}

.option-name {
    color: var(--fp-ink-2);
    font-size: .76rem;
}

.category-breadcrumb-mini {
    display: -webkit-box;
    overflow: hidden;
    color: var(--fp-muted);
    font-size: .69rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: .75rem;
}

.product-price {
    color: var(--fp-price);
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    font-weight: 800;
}

.product-stock {
    margin-top: .18rem;
    color: var(--fp-muted);
    font-size: .72rem;
}

.incoming-text {
    color: var(--fp-incoming);
}

.catalog-grid.list-view {
    grid-template-columns: 1fr;
}

.catalog-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
}

.catalog-grid.list-view .product-media {
    aspect-ratio: 1;
}

.catalog-grid.list-view .card-body {
    padding: 1.25rem 1.5rem;
}

.empty-state {
    border-radius: var(--catalog-radius);
}

.empty-symbol {
    display: grid;
    place-items: center;
    width: 4rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--fp-soft);
    color: var(--fp-muted);
    font-size: 2rem;
}

.page-link {
    border: 0;
    border-radius: .6rem !important;
    color: var(--fp-ink);
}

.page-item.active .page-link {
    background: var(--fp-ink);
}

/* Detail */

.breadcrumb a {
    color: var(--fp-muted);
    text-decoration: none;
}

.product-main-image {
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 1.2rem;
    background: #fff;
    min-height: clamp(18rem, 42vw, 34rem);
}

.product-main-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(78vh, 52rem);
    padding: clamp(1rem, 3vw, 2rem);
    object-fit: contain;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .55rem;
}

.gallery-thumb {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    padding: .2rem;
    overflow: hidden;
    border: 1px solid var(--fp-line);
    border-radius: .7rem;
    background: #fff;
    cursor: pointer;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--fp-ink);
    box-shadow: 0 0 0 .12rem rgb(20 41 51 / .08);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.related-arrow {
    position: absolute;
    right: .2rem;
    top: .15rem;
    display: grid;
    place-items: center;
    width: 1.1rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--fp-ink);
    color: #fff;
    font-size: .6rem;
}

.product-summary {
    position: sticky;
    top: 6.25rem;
    border-radius: 1.2rem;
}

.option-pill {
    display: inline-flex;
    width: fit-content;
    padding: .4rem .65rem;
    border-radius: .55rem;
    background: var(--fp-soft);
    color: var(--fp-ink-2);
    font-size: .8rem;
}

.product-detail-price {
    color: var(--fp-price);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 850;
    letter-spacing: -.03em;
}

.stock-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem 1rem;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    padding: .27rem .5rem;
    border-radius: .45rem;
    background: var(--fp-soft);
    color: var(--fp-ink-2);
    font-size: .7rem;
}

.category-chip:hover {
    color: var(--fp-ink);
}

.related-products-list {
    display: grid;
    gap: .45rem;
}

.related-product-row {
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem;
    padding: .45rem;
    border: 1px solid var(--fp-line);
    border-radius: .75rem;
    color: var(--fp-ink);
    text-decoration: none;
    transition:
        border-color .15s ease,
        background-color .15s ease;
}

.related-product-row:hover {
    border-color: var(--fp-line-strong);
    background: var(--fp-surface-alt);
}

.related-product-row img {
    width: 3.2rem;
    aspect-ratio: 1;
    padding: .2rem;
    border-radius: .5rem;
    object-fit: contain;
    background: #fff;
}

.related-product-copy {
    min-width: 0;
    display: grid;
}

.related-product-copy strong {
    overflow: hidden;
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-product-copy small {
    color: var(--fp-muted);
    font-size: .68rem;
}

.related-product-price {
    color: var(--fp-price);
    font-size: .78rem;
    font-weight: 750;
    white-space: nowrap;
}

.product-meta-table {
    border-top: 1px solid var(--fp-line);
}

.product-meta-table > div {
    display: grid;
    grid-template-columns: minmax(8rem, .8fr) 1.2fr;
    gap: 1rem;
    padding-block: .78rem;
    border-bottom: 1px solid var(--fp-line);
    font-size: .84rem;
}

.product-meta-table span {
    color: var(--fp-muted);
}

.product-meta-table strong {
    text-align: right;
    overflow-wrap: anywhere;
}

.property-table {
    container-type: inline-size;
}

.property-row {
    display: grid;
    grid-template-columns: minmax(13rem, 32%) 1fr;
    border-bottom: 1px solid var(--fp-line);
}

.property-row:last-child {
    border-bottom: 0;
}

.property-key,
.property-values {
    padding: .75rem 1.25rem;
    overflow-wrap: anywhere;
}

.property-key {
    background: var(--fp-surface-alt);
    color: var(--fp-muted);
}

@container (max-width: 36rem) {
    .property-row {
        grid-template-columns: 1fr;
    }

    .property-key {
        padding-bottom: .3rem;
    }

    .property-values {
        padding-top: .3rem;
    }
}

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

    .gallery-thumbs {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .site-header .navbar {
        min-height: auto;
        padding-block: .65rem;
    }

    .brand-copy small {
        display: none;
    }

    .catalog-search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .product-summary {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .container-xxl {
        --bs-gutter-x: 1rem;
    }

    .brand-symbol {
        width: 2.35rem;
    }

    .search-group .btn {
        padding-inline: .9rem !important;
    }

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

    .catalog-hero {
        align-items: flex-start;
    }

    .catalog-toolbar .card-body {
        align-items: stretch !important;
    }

    .catalog-toolbar .form-select {
        width: 100%;
    }

    .catalog-grid.list-view .product-card {
        grid-template-columns: 7.5rem minmax(0, 1fr);
    }

    .catalog-grid.list-view .card-body {
        padding: .9rem;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .product-meta-table > div {
        grid-template-columns: 1fr;
        gap: .2rem;
    }

    .product-meta-table strong {
        text-align: left;
    }

    .related-product-row {
        grid-template-columns: 2.8rem minmax(0, 1fr);
    }

    .related-product-row img {
        width: 2.8rem;
    }

    .related-product-price {
    color: var(--fp-price);
        grid-column: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}


/* Hidden settings page */

.settings-login-page {
    display: grid;
    place-items: center;
    min-height: 100dvh;
}

.settings-login-card {
    width: min(100%, 29rem);
    border-radius: 1.25rem;
}

.settings-container {
    max-width: 980px;
}

.settings-card {
    border-radius: 1.1rem;
}

.tier-table-head,
.tier-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: .85rem;
    align-items: center;
}

.tier-table-head {
    display: grid;
    padding: 0 .15rem .55rem;
    color: var(--fp-muted);
    font-size: .75rem;
    font-weight: 700;
}

.tiers-container {
    display: grid;
    gap: .65rem;
}

.tier-row {
    display: grid;
    padding: .75rem;
    border: 1px solid var(--fp-line);
    border-radius: .8rem;
    background: var(--fp-surface-alt);
}

.tier-actions {
    display: flex;
    justify-content: flex-end;
}

.empty-tier-message {
    padding: 2rem;
    border: 1px dashed var(--fp-line-strong);
    border-radius: .8rem;
    color: var(--fp-muted);
    text-align: center;
    background: var(--fp-surface-alt);
}

.settings-example {
    padding: .9rem 1rem;
    border-radius: .75rem;
    background: var(--fp-soft);
    color: var(--fp-muted);
    font-size: .82rem;
}

.settings-save-bar {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 767.98px) {
    .tier-row {
        grid-template-columns: repeat(var(--catalog-columns-mobile, 1), minmax(0, 1fr));
    }

    .tier-actions .btn,
    .settings-save-bar .btn {
        width: 100%;
    }
}


.application-rule-floating-actions {
    position: fixed;
    right: max(1rem, calc((100vw - 1320px) / 2 + 1rem));
    bottom: 1rem;
    z-index: 1035;
    max-width: calc(100vw - 2rem);
    padding: .75rem;
    border: 1px solid var(--fp-line);
    border-radius: 1rem;
    background: rgb(255 255 255 / .96);
    box-shadow: 0 1rem 2.5rem rgb(20 41 51 / .18);
    backdrop-filter: blur(10px);
}

.application-rule-floating-actions::before {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: .25rem;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .application-rule-floating-actions {
        left: .75rem;
        right: .75rem;
        bottom: .75rem;
        display: grid;
        grid-template-columns: 1fr;
        max-width: none;
    }
}


/* Pre-release pen quote calculator */

.quote-modal-content {
    border-radius: 1.2rem;
    box-shadow: 0 1.5rem 4rem rgb(20 41 51 / .2);
}

.quote-breakdown {
    display: grid;
    gap: .8rem;
    padding: 1rem;
    border-radius: .9rem;
    background: var(--fp-soft);
}

.quote-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.quote-row span {
    color: var(--fp-muted);
}

.quote-row strong {
    text-align: right;
    white-space: nowrap;
}

.quote-divider {
    height: 1px;
    background: rgb(20 41 51 / .12);
}

.quote-row-total {
    padding-top: .1rem;
    font-size: 1.05rem;
}

.quote-row-total span,
.quote-row-total strong {
    color: var(--fp-ink);
    font-weight: 800;
}

.quote-row-unit strong {
    font-size: 1.2rem;
    color: var(--fp-ink);
}



/* Advertising agency discount switch */

.agency-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border: 1px solid var(--fp-line);
    border-radius: .85rem;
    background: var(--fp-surface-alt);
}

.agency-toggle .form-check-input {
    width: 2.65rem;
    height: 1.4rem;
    margin-right: .45rem;
    cursor: pointer;
}

.agency-toggle .form-check-input:checked {
    background-color: var(--fp-ink);
    border-color: var(--fp-ink);
}

.agency-toggle-note {
    color: var(--fp-muted);
    font-size: .75rem;
    text-align: right;
}

@media (max-width: 575.98px) {
    .agency-toggle {
        align-items: flex-start;
        flex-direction: column;
    }

    .agency-toggle-note {
        text-align: left;
    }
}


/* Settings: category menu tab */

.settings-tabs .nav-link {
    color: var(--fp-muted);
    font-weight: 650;
}

.settings-tabs .nav-link.active {
    color: var(--fp-ink);
}

.menu-category-list {
    display: block;
    column-count: 3;
    column-gap: .75rem;
}

.menu-category-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem;
    width: 100%;
    min-height: 2.8rem;
    margin: 0 0 .5rem;
    padding: .55rem .65rem;
    break-inside: avoid;
    page-break-inside: avoid;
    border: 1px solid var(--fp-line);
    border-radius: .7rem;
    background: var(--fp-surface-alt);
    cursor: pointer;
}

.menu-category-item:hover {
    border-color: var(--fp-line-strong);
    background: var(--fp-surface-alt);
}

.menu-category-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-category-level {
    color: var(--fp-muted);
    font-size: .7rem;
    white-space: nowrap;
}

.menu-category-level strong {
    color: var(--fp-ink);
    font-size: .76rem;
}

@media (max-width: 991.98px) {
    .menu-category-list {
        column-count: 2;
    }
}

@media (max-width: 575.98px) {
    .menu-category-list {
        column-count: 1;
    }

    .menu-category-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .menu-category-level-detail {
        display: none;
    }
}


/* Catalog authentication/users */

.header-user {
    max-width: 18rem;
}

.header-user-copy {
    min-width: 0;
    display: grid;
    line-height: 1.1;
    text-align: right;
}

.header-user-copy strong,
.header-user-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-user-copy strong {
    font-size: .78rem;
}

.header-user-copy small {
    margin-top: .2rem;
    color: var(--fp-muted);
    font-size: .66rem;
}

.users-table {
    min-width: 850px;
}

.users-table th {
    color: var(--fp-muted);
    font-size: .74rem;
    font-weight: 700;
    white-space: nowrap;
}


/* Personal account */

.account-container {
    max-width: 820px;
}


/* Registration/auth */

.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--fp-muted);
    font-size: .75rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--fp-line);
}


/* Site footer */

.site-footer {
    flex: 0 0 auto;
    margin-top: 2.5rem;
    border-top: 1px solid var(--fp-line);
    background: rgb(255 255 255 / .72);
}

.site-footer-inner {
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--fp-muted);
    font-size: .78rem;
}

.site-footer-release {
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .site-footer-inner {
        min-height: 4.5rem;
        flex-direction: column;
        justify-content: center;
        gap: .25rem;
        text-align: center;
    }
}


/* Settings: application price groups */

.application-settings-layout {
    align-items: start;
}

.application-group-list {
    display: grid;
    gap: .45rem;
}

.application-group-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .8rem .85rem;
    border: 1px solid var(--fp-line);
    border-radius: .8rem;
    color: var(--fp-ink);
    text-decoration: none;
    background: var(--fp-surface-alt);
}

.application-group-card:hover {
    border-color: var(--fp-line-strong);
    background: var(--fp-surface-alt);
}

.application-group-card.is-active {
    border-color: var(--fp-ink);
    box-shadow: inset 0 0 0 1px var(--fp-ink);
    background: #fff;
}

.application-group-card-copy {
    min-width: 0;
    display: grid;
    gap: .18rem;
}

.application-group-card-copy strong,
.application-group-card-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.application-group-card-copy small {
    color: var(--fp-muted);
    font-size: .72rem;
}

.application-product-list {
    max-height: 36rem;
    overflow: auto;
    border: 1px solid var(--fp-line);
    border-radius: .85rem;
    background: #fff;
}

.application-product-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    min-height: 3.5rem;
    padding: .7rem .8rem;
    border-bottom: 1px solid var(--fp-line);
    cursor: pointer;
}

.application-product-item:last-child {
    border-bottom: 0;
}

.application-product-item:hover {
    background: var(--fp-surface-alt);
}

.application-product-item[hidden] {
    display: none !important;
}

.application-product-copy {
    min-width: 0;
    display: grid;
    gap: .1rem;
}

.application-product-copy strong,
.application-product-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.application-product-copy small {
    color: var(--fp-muted);
    font-size: .7rem;
}

.application-product-current-group {
    max-width: 11rem;
    overflow: hidden;
    padding: .25rem .45rem;
    border-radius: .45rem;
    background: var(--fp-soft);
    color: var(--fp-muted);
    font-size: .68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 992px) {
    .application-settings-layout > .col-lg-4 > .settings-card {
        position: sticky;
        top: 6rem;
    }
}

@media (max-width: 767.98px) {
    .application-product-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .application-product-current-group {
        grid-column: 2;
        max-width: 100%;
        justify-self: start;
    }
}


/* v19: application assignment by category or individual product */

.application-category-copy {
    padding-left: calc(min(var(--application-category-level, 0), 4) * .6rem);
}

.application-assignment-badges {
    display: grid;
    gap: .25rem;
    justify-items: end;
}

.application-product-current-group.is-inherited {
    background: var(--fp-soft);
    border: 1px dashed var(--fp-line-strong);
}

@media (max-width: 767.98px) {
    .application-assignment-badges {
        grid-column: 2;
        justify-items: start;
    }
}


/* v21 importer diagnostics */

.import-runs-table,
.category-anomaly-table {
    min-width: 820px;
}

.import-runs-table th,
.category-anomaly-table th {
    color: var(--fp-muted);
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.category-anomaly-table td {
    max-width: 28rem;
}


/* Release v2.1.2: quote product preview */

.quote-modal-dialog {
    --bs-modal-width: 760px;
}

.quote-product-preview {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding: .8rem;
    border: 1px solid var(--fp-line);
    border-radius: .95rem;
    background: var(--fp-surface-alt);
}

.quote-product-thumbnail {
    width: 4.5rem;
    height: 4.5rem;
    display: block;
    object-fit: contain;
    border-radius: .75rem;
    background: #fff;
}

.quote-product-thumbnail-placeholder {
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--fp-ink);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.quote-product-preview-copy {
    min-width: 0;
    display: grid;
    gap: .2rem;
}

.quote-product-preview-copy strong {
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.35;
}

.quote-product-preview-copy small {
    color: var(--fp-muted);
}

@media (max-width: 575.98px) {
    .quote-product-preview {
        grid-template-columns: 4rem minmax(0, 1fr);
    }

    .quote-product-thumbnail {
        width: 4rem;
        height: 4rem;
    }
}


/* Release v2.1.1: category menu level filters */

.category-menu-tools {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .7rem;
}

.category-level-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .55rem 1rem;
}

.menu-category-item[hidden] {
    display: none !important;
}

@media (max-width: 767.98px) {
    .category-menu-tools {
        align-items: flex-start;
    }

    .category-level-filters {
        justify-content: flex-start;
    }
}


/* Release v2.1.3: application group options */

.application-group-switches {
    display: grid;
    gap: .55rem;
    padding-bottom: .15rem;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .application-group-switches {
        white-space: normal;
    }
}


/* Release v2.4.0 — admin */
.admin-products-table { min-width: 1050px; }
.admin-product-thumb { width: 3.5rem; height: 3.5rem; object-fit: contain; display:block; border-radius:.6rem; background:#fff; }
.admin-product-thumb-empty { display:grid; place-items:center; background:var(--fp-ink); color:#fff; font-weight:800; }
.admin-product-edit-image { max-height: 20rem; object-fit:contain; }
.admin-save-bar { position:sticky; bottom:1rem; z-index:20; display:flex; justify-content:flex-end; gap:.75rem; padding:.75rem; border:1px solid var(--fp-line); border-radius:1rem; background:rgb(255 255 255 / .94); backdrop-filter:blur(8px); box-shadow:0 .6rem 2rem rgb(20 41 51 / .08); }
@media(max-width:575.98px){.admin-save-bar{bottom:.5rem}.admin-save-bar .btn{flex:1}}


/* Release v2.4.1: simplify Shift range selection UX. */
.application-product-item {
    user-select: none;
}


/* Release v2.4.2: service / backup */

.service-status-list {
    display: grid;
    gap: .75rem;
}

.service-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--fp-line);
}

.service-status-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.backup-table {
    min-width: 980px;
}

.backup-table th {
    color: var(--fp-muted);
    font-size: .72rem;
    white-space: nowrap;
}


/* Release v2.4.3: compact backup actions */

.backup-action-btn {
    --bs-btn-padding-y: .18rem;
    --bs-btn-padding-x: .42rem;
    --bs-btn-font-size: .68rem;
    --bs-btn-border-radius: .35rem;
    line-height: 1.25;
}


/* Release v2.4.4: selective backup restore */

.restore-scope-options {
    display: grid;
    gap: .55rem;
}

.restore-scope-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: .75rem;
    padding: .8rem;
    border: 1px solid var(--fp-line);
    border-radius: .75rem;
    cursor: pointer;
}

.restore-scope-option:hover {
    background: var(--fp-surface-alt);
}

.restore-scope-option span {
    display: grid;
    gap: .15rem;
}

.restore-scope-option small {
    color: var(--fp-muted);
}


/* Release v2.5: public pages, WYSIWYG and configurable calculation prices */
.public-page-menu { position: relative; z-index: 2; }
.public-page-menu-link { flex: 0 0 auto; padding: .35rem .7rem; border-radius: .55rem; color: var(--fp-ink-2); text-decoration: none; font-size: .88rem; font-weight: 600; }
.public-page-menu-link:hover, .public-page-menu-link.active { background: #142933; color: #fff; }
.cms-page { width: 100%; max-width: none; margin-inline: 0; }
.cms-content { font-size: 1.03rem; line-height: 1.75; }
.cms-content h2, .cms-content h3, .cms-content h4 { margin-top: 1.7em; margin-bottom: .65em; }
.cms-content img { max-width: 100%; height: auto; }
.admin-section-links { display: flex; gap: .35rem; flex-wrap: wrap; }
.admin-section-links a { text-decoration: none; color: var(--fp-ink-2); border: 1px solid var(--fp-line); padding: .42rem .72rem; border-radius: .55rem; font-size: .86rem; font-weight: 600; background: #fff; }
.admin-section-links a.active, .admin-section-links a:hover { color: #fff; background: #142933; border-color: #142933; }
.wysiwyg-toolbar { display: flex; gap: .35rem; flex-wrap: wrap; padding: .55rem; border: 1px solid var(--fp-line); border-bottom: 0; border-radius: .65rem .65rem 0 0; background: var(--fp-surface-alt); }
.wysiwyg-toolbar button { border: 1px solid var(--fp-line-strong); background: #fff; border-radius: .4rem; padding: .32rem .55rem; font-size: .84rem; }
.wysiwyg-editor { min-height: 360px; border: 1px solid var(--fp-line); border-radius: 0 0 .65rem .65rem; padding: 1rem; outline: none; background: #fff; line-height: 1.65; }
.wysiwyg-editor:focus { border-color: var(--fp-muted-2); box-shadow: 0 0 0 .2rem rgba(20,41,51,.08); }
.calculation-price-choice-list { display: grid; gap: .6rem; }
.calculation-price-choice { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .7rem; align-items: start; padding: .75rem; border: 1px solid var(--fp-line); border-radius: .65rem; cursor: pointer; }
.calculation-price-choice span { display: grid; gap: .1rem; }
.calculation-price-choice small { color: var(--fp-muted); }


/* Release v2.5.2: wide percentage-based layout.
   Bootstrap row/column proportions stay intact; only page containers
   stop being limited by Bootstrap's fixed max-width breakpoints. */
:root {
    --fp-page-width: 80%;
}

.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl,
.settings-container,
.account-container {
    width: var(--fp-page-width);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767.98px) {
    :root {
        --fp-page-width: calc(100% - 1rem);
    }
}

.update-install-drop {
    border: 1px dashed var(--fp-muted-2);
    border-radius: .9rem;
    padding: 1rem;
    background: var(--fp-surface-alt);
}

.update-install-notes {
    display: grid;
    gap: .4rem;
}

.application-minimum-order {
    width: min(100%, 14rem);
}


/* Release v2.5.2.2: larger CMS page editor */
#pageContent {
    min-height: 760px;
}


/* Release v2.6.0: project settings */
.api-key-setting {
    max-width: 58rem;
}

.api-key-setting .badge {
    white-space: nowrap;
}


/* Release v2.6.1b: company settings */
.company-logo-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: 1rem;
    border: 1px solid var(--fp-line);
    border-radius: .75rem;
    background: #fff;
}

.company-logo-preview img {
    max-height: 180px;
    object-fit: contain;
}





/* Release v2.7.0: cart and orders */
.cart-table th,
.cart-table td,
.admin-orders-table th,
.admin-orders-table td {
    vertical-align: middle;
}

.cart-thumb {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    object-fit: contain;
    border: 1px solid var(--fp-line);
    border-radius: .65rem;
    background: #fff;
}

.cart-thumb-empty {
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--fp-muted);
}

.cart-summary-card {
    position: sticky;
    top: 6.5rem;
}

.product-cart-form {
    max-width: 28rem;
}

.product-cart-form input[type="number"] {
    max-width: 8rem;
}

.order-history {
    display: grid;
    gap: 1rem;
}

.order-history-item {
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid var(--fp-line);
}

.checkout-items {
    max-height: 34rem;
    overflow: auto;
}

@media (max-width: 1199.98px) {
    .cart-summary-card {
        position: static;
    }
}


/* v2.7.0a: icon-only cart in public header */
.cart-icon-link {
    min-width: 2.45rem;
    height: 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: 0 .65rem;
    border-radius: .65rem;
    white-space: nowrap;
}

.cart-icon-link .fa-cart-shopping {
    font-size: 1rem;
}

.cart-total-badge {
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
}


/* Release v2.7.0c: personal account vertical navigation */
.account-vertical-tabs {
    position: sticky;
    top: 6.5rem;
    gap: .4rem;
}

.account-vertical-tabs .nav-link {
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: .75rem .9rem;
    border: 1px solid transparent;
    color: var(--fp-ink-2);
    font-weight: 600;
}

.account-vertical-tabs .nav-link:hover {
    border-color: var(--fp-line);
    background: #fff;
    color: #142933;
}

.account-vertical-tabs .nav-link.active {
    background: #142933;
    color: #fff;
}

.account-vertical-tabs .nav-link.active .badge {
    color: #142933 !important;
}

.account-empty-icon {
    font-size: 2rem;
    color: var(--fp-muted);
}

@media (max-width: 991.98px) {
    .account-vertical-tabs {
        position: static;
    }
}


/* Release v2.7.0d: order layouts and expandable order composition */
.cart-layout-box {
    max-width: 42rem;
    padding: .75rem;
    border: 1px dashed var(--fp-line-strong);
    border-radius: .65rem;
    background: var(--fp-surface-alt);
}

.order-number-toggle {
    color: #142933;
}

.order-number-toggle:hover,
.order-number-toggle:focus {
    color: #142933;
}

.order-composition-table {
    font-size: .9rem;
}

.order-composition-row > td {
    border-top: 0;
}

/* Release v2.7.1: invoice PDF template */
.invoice-render-stage {
    position: fixed;
    left: -20000px;
    top: 0;
    width: 794px;
    pointer-events: none;
}

.invoice-sheet {
    width: 794px;
    min-height: 1123px;
    box-sizing: border-box;
    padding: 28px 36px 34px;
    background: #fff;
    color: var(--fp-brand-active);
    font-family: "Factor Sans", Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.25;
}

.invoice-top-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 36px;
    align-items: start;
}

.invoice-logo-area {
    min-height: 70px;
    display: flex;
    align-items: center;
}

.invoice-logo-area img {
    display: block;
    max-width: 245px;
    max-height: 72px;
    object-fit: contain;
}

.invoice-fallback-logo {
    font-size: 27px;
    font-weight: 900;
    letter-spacing: .06em;
    color: var(--fp-brand-active);
}

.invoice-attention-box {
    border: 1px solid var(--fp-ink);
    padding: 6px 8px;
    font-size: 10px;
    line-height: 1.28;
}

.invoice-attention-box > strong:first-child {
    display: block;
    text-align: center;
    margin-bottom: 1px;
}

.invoice-title {
    margin: 42px 0 20px;
    text-align: center;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.invoice-rule {
    border-top: 2px solid var(--fp-ink);
    margin: 0 0 10px;
}

.invoice-party-row {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 12px;
    margin: 8px 0;
}

.invoice-party-label {
    font-size: 12px;
}

.invoice-party-data {
    font-size: 12px;
    font-weight: 600;
}

.invoice-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 28px;
    font-size: 11px;
}

.invoice-items-table th,
.invoice-items-table td {
    border: 1px solid var(--fp-ink);
    padding: 4px 5px;
    vertical-align: top;
}

.invoice-items-table th {
    text-align: center;
    font-weight: 700;
}

.invoice-col-num {
    width: 34px;
}

.invoice-col-code {
    width: 90px;
}

.invoice-col-qty {
    width: 62px;
}

.invoice-col-unit {
    width: 48px;
}

.invoice-col-money {
    width: 108px;
}

.invoice-total-block {
    width: 47%;
    margin-left: auto;
    display: grid;
    grid-template-columns: 1fr 120px;
    row-gap: 4px;
    column-gap: 12px;
    padding-top: 10px;
    font-size: 12px;
}

.invoice-total-block > div:nth-child(even) {
    text-align: right;
}

.invoice-summary-text {
    margin-top: 12px;
    font-size: 11px;
    line-height: 1.35;
}

.invoice-notes {
    margin-top: 28px;
    font-size: 10px;
    line-height: 1.35;
}

.invoice-rule-bottom {
    margin-top: 16px;
    margin-bottom: 14px;
    border-top-width: 1px;
}

.invoice-signature-row {
    display: grid;
    grid-template-columns: 120px 1fr 220px;
    gap: 16px;
    align-items: end;
    font-size: 11px;
}

.invoice-signature-line {
    display: block;
    height: 20px;
    border-bottom: 1px solid var(--fp-muted);
}


/* Release v2.7.2: vertical top-level admin navigation */
.admin-main-nav-wrap {
    float: left;
    width: 220px;
    margin: 0 1.5rem 2rem 0;
    position: sticky;
    top: 6.25rem;
    z-index: 5;
}

.admin-main-nav {
    gap: .35rem;
}

.admin-main-nav .nav-link {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    padding: .65rem .85rem;
    border: 1px solid transparent;
    color: var(--fp-muted);
    font-weight: 600;
    border-radius: .65rem;
}

.admin-main-nav .nav-link:hover {
    color: #142933;
    border-color: var(--fp-line);
    background: #fff;
}

.admin-main-nav .nav-link.active {
    color: #fff;
    background: #142933;
}

.admin-main-nav-wrap ~ * {
    margin-left: 244px !important;
}

/* Keep nested tabs horizontal inside the shifted content area. */
.admin-main-nav-wrap ~ .settings-tabs {
    width: auto;
}

/* Dashboard */
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.admin-dashboard-card {
    display: flex;
    flex-direction: column;
    min-height: 155px;
    padding: 1.25rem;
    border: 1px solid var(--fp-line);
    border-radius: 1rem;
    background: #fff;
    color: #142933;
    text-decoration: none;
    box-shadow: 0 .35rem 1.2rem rgba(20, 41, 51, .05);
    transition: transform .15s ease, box-shadow .15s ease;
}

.admin-dashboard-card:hover {
    color: #142933;
    transform: translateY(-2px);
    box-shadow: 0 .55rem 1.6rem rgba(20, 41, 51, .09);
}

.admin-dashboard-card-label {
    font-weight: 700;
}

.admin-dashboard-card strong {
    margin: auto 0 .15rem;
    font-size: 2.6rem;
    line-height: 1;
}

.admin-dashboard-card small {
    color: var(--fp-muted);
}

@media (max-width: 991.98px) {
    .admin-main-nav-wrap {
        float: none;
        width: auto;
        position: static;
        margin: 0 0 1.5rem;
    }

    .admin-main-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-main-nav-wrap ~ * {
        margin-left: 0 !important;
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .admin-main-nav {
        grid-template-columns: 1fr;
    }
}


/* Release v2.7.2b: order approval images */
.order-approval-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.order-approval-card {
    overflow: hidden;
    border: 1px solid var(--fp-line);
    border-radius: .8rem;
    background: #fff;
}

.order-approval-image-link {
    text-decoration: none;
}

.order-approval-card img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: contain;
    background: var(--fp-surface-alt);
}

@media (max-width: 575.98px) {
    .order-approval-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-approval-card img {
        height: 120px;
    }
}


/* Release v2.7.2c: account order spoiler + approval lightbox */
.account-order-toggle {
    color: #142933;
}

.account-order-toggle:hover,
.account-order-toggle:focus {
    color: #142933;
}

.account-order-composition-table {
    font-size: .9rem;
}

.account-order-composition-row > td {
    border-top: 0;
}

body.approval-lightbox-open {
    overflow: hidden;
}

.approval-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.approval-lightbox.is-open {
    display: block;
}

.approval-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 15, 19, .9);
}

.approval-lightbox-dialog {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(48px, 80px) minmax(0, 1fr) minmax(48px, 80px);
    align-items: center;
    gap: .5rem;
    padding: 2rem 1rem;
}

.approval-lightbox-figure {
    grid-column: 2;
    min-width: 0;
    width: 100%;
    max-width: min(1600px, calc(100vw - 180px));
    max-height: calc(100vh - 4rem);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.approval-lightbox-image {
    display: block;
    width: 100%;
    height: calc(100vh - 8rem);
    max-width: min(1600px, calc(100vw - 180px));
    max-height: calc(100vh - 8rem);
    object-fit: contain;
    object-position: center center;
    border-radius: .75rem;
    background: transparent;
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .35);
}

.approval-lightbox-caption {
    min-height: 1.5rem;
    margin-top: .75rem;
    color: #fff;
    text-align: center;
    font-size: .9rem;
}

.approval-lightbox-close,
.approval-lightbox-nav {
    position: relative;
    z-index: 2;
    border: 0;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-radius: 999px;
    cursor: pointer;
}

.approval-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 2rem;
    line-height: 1;
}

.approval-lightbox-nav {
    width: 3rem;
    height: 3rem;
    margin: auto;
    font-size: 1.6rem;
}

.approval-lightbox-prev {
    grid-column: 1;
}

.approval-lightbox-next {
    grid-column: 3;
}

.approval-lightbox-close:hover,
.approval-lightbox-nav:hover,
.approval-lightbox-close:focus,
.approval-lightbox-nav:focus {
    background: rgba(255, 255, 255, .24);
    outline: 2px solid rgba(255, 255, 255, .55);
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    .approval-lightbox-dialog {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        padding: 3.5rem .35rem 1rem;
    }

    .approval-lightbox-figure {
        width: 100%;
        max-width: calc(100vw - 96px);
    }

    .approval-lightbox-image {
        width: 100%;
        height: calc(100vh - 9rem);
        max-width: calc(100vw - 96px);
        max-height: calc(100vh - 9rem);
        object-fit: contain;
    }

    .approval-lightbox-nav {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
}


/* Release v2.7.2d: approval description */
.order-approval-description {
    padding: 1rem;
    border: 1px solid var(--fp-line);
    border-radius: .8rem;
    background: var(--fp-surface-alt);
    line-height: 1.55;
}


/* Release v2.7.3.5: invoice payment details spoiler */
.account-invoice-toggle {
    color: #142933;
}

.account-invoice-toggle:hover,
.account-invoice-toggle:focus {
    color: #142933;
}

.account-invoice-payment-row > td {
    border-top: 0;
}


/* Factor Print Bootstrap refinements */
.btn-dark,
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--fp-brand);
    --bs-btn-border-color: var(--fp-brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--fp-brand-hover);
    --bs-btn-hover-border-color: var(--fp-brand-hover);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--fp-brand-active);
    --bs-btn-active-border-color: var(--fp-brand-active);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--fp-muted-2);
    --bs-btn-disabled-border-color: var(--fp-muted-2);
}

.btn-outline-dark,
.btn-outline-primary {
    --bs-btn-color: var(--fp-brand);
    --bs-btn-border-color: var(--fp-brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--fp-brand);
    --bs-btn-hover-border-color: var(--fp-brand);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--fp-brand-hover);
    --bs-btn-active-border-color: var(--fp-brand-hover);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--fp-brand-3);
    box-shadow: 0 0 0 .2rem rgb(20 41 51 / .12);
}

.form-check-input:checked {
    background-color: var(--fp-brand);
    border-color: var(--fp-brand);
}

a {
    color: var(--fp-brand);
}

a:hover {
    color: var(--fp-brand-hover);
}

.text-bg-dark {
    background-color: var(--fp-brand) !important;
}

.bg-body-tertiary {
    background-color: var(--fp-surface-alt) !important;
}

/* FAQ */
.faq-category-picker {
    display: grid;
    gap: .65rem;
}

.faq-category-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .75rem;
    align-items: start;
    padding: .85rem 1rem;
    border: 1px solid var(--fp-line);
    border-radius: .8rem;
    background: var(--fp-surface-alt);
    cursor: pointer;
    transition:
        border-color .15s ease,
        background-color .15s ease,
        box-shadow .15s ease;
}

.faq-category-option:hover {
    border-color: var(--fp-line-strong);
    background: var(--fp-soft);
}

.faq-category-option:has(.form-check-input:checked) {
    border-color: var(--fp-brand);
    background: rgb(20 41 51 / .045);
    box-shadow: 0 0 0 .12rem rgb(20 41 51 / .06);
}

.faq-answer-preview {
    max-width: 42rem;
}

.faq-accordion {
    --bs-accordion-border-color: var(--fp-line);
    --bs-accordion-btn-color: var(--fp-ink);
    --bs-accordion-active-color: var(--fp-brand);
    --bs-accordion-active-bg: var(--fp-soft);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgb(20 41 51 / .10);
}

.faq-accordion .accordion-item {
    overflow: hidden;
    border-radius: .8rem;
    margin-bottom: .65rem;
    background: var(--fp-surface);
}

.faq-accordion .accordion-button {
    font-weight: 700;
}

.faq-accordion .accordion-body {
    color: var(--fp-ink-2);
    line-height: 1.7;
}


/* v2.7.4.1 FAQ typography */
.faq-accordion .accordion-button {
    font-weight: 700;
}

.faq-accordion .accordion-body {
    font-weight: 400;
}


/* v2.7.4.3: multiple values in option/attribute price rules */
#optionRuleValue[multiple] {
    min-height: 12rem;
}

#optionRuleValue[multiple] option {
    padding: .35rem .45rem;
}


/* v2.7.4.4: quick value search + product admin edit action */
#optionRuleValueSearch:disabled {
    background-color: var(--fp-soft);
}

.product-admin-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.product-admin-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
    border: 1px solid var(--fp-line);
    border-radius: .7rem;
    color: var(--fp-brand);
    background: var(--fp-surface-alt);
    text-decoration: none;
    transition:
        color .15s ease,
        background-color .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.product-admin-edit:hover,
.product-admin-edit:focus-visible {
    color: var(--fp-brand-contrast, #fff);
    background: var(--fp-brand);
    border-color: var(--fp-brand);
    transform: translateY(-1px);
}


/* v2.8: configurable quote summary rows */
.quote-row-component {
    color: var(--fp-ink-2);
}

.quote-row-component strong {
    color: var(--fp-brand);
    font-weight: 700;
}


/* v2.9 returned-from-review order */
.admin-orders-table tr.order-returned-row > td { background: #fff3cd !important; }
.admin-orders-table tr.order-returned-row:hover > td { background: #ffecb5 !important; }

/* Release v2.10.0: grouped admin navigation */
.admin-main-nav .admin-nav-group {
    border-radius: .75rem;
}

.admin-main-nav .admin-nav-parent {
    justify-content: space-between;
}

.admin-main-nav .admin-nav-group.is-active > .admin-nav-parent:not(.active) {
    color: #142933;
    background: #fff;
    border-color: var(--fp-line);
}

.admin-subnav {
    gap: .15rem;
    margin: .15rem 0 .45rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(20, 41, 51, .12);
}

.admin-main-nav .admin-subnav .nav-link {
    min-height: 2.2rem;
    padding: .42rem .65rem;
    font-size: .9rem;
    font-weight: 500;
    border-radius: .5rem;
}

.admin-main-nav .admin-subnav .nav-link.active {
    color: #142933;
    background: rgba(20, 41, 51, .09);
    border-color: transparent;
}

/* Release v2.10.0: reusable drag-and-drop multi upload */
.file-dropzone {
    position: relative;
    border: 1.5px dashed #9aabb3;
    border-radius: .9rem;
    background: #f8fafb;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
    overflow: hidden;
}

.file-dropzone.is-dragover {
    border-color: #142933;
    background: #eef3f5;
    box-shadow: 0 0 0 .2rem rgba(20, 41, 51, .08);
}

.file-dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-dropzone-copy {
    min-height: 145px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: 1.25rem;
    text-align: center;
    color: var(--fp-muted);
    pointer-events: none;
}

.file-dropzone-copy i {
    font-size: 1.6rem;
    color: #142933;
}

.file-dropzone-copy strong {
    color: #142933;
}

.file-dropzone-copy.compact {
    min-height: 92px;
}

.file-dropzone-list {
    position: relative;
    z-index: 3;
    display: grid;
    gap: .45rem;
    padding: 0 1rem 1rem;
}

.file-dropzone-list:empty {
    display: none;
}

.file-dropzone-file {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .7rem;
    border: 1px solid var(--fp-line);
    border-radius: .6rem;
    background: #fff;
    font-size: .9rem;
}

.file-dropzone-file-name {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-dropzone-file-remove {
    border: 0;
    background: transparent;
    color: #b42318;
    padding: .15rem .35rem;
    cursor: pointer;
}

/* Release v2.10.0: correspondence */
.messaging-list-card,
.messaging-thread-card {
    overflow: hidden;
}

.messaging-list-card .list-group-item {
    padding: 1rem;
}

.messaging-list-card .list-group-item.active {
    background: #142933;
    border-color: #142933;
}

.messaging-thread {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 280px;
    max-height: 62vh;
    overflow-y: auto;
    background: #f5f7f8;
}

.message-bubble {
    width: min(78%, 760px);
    padding: .9rem 1rem;
    border-radius: 1rem;
    border: 1px solid var(--fp-line);
    background: #fff;
    box-shadow: 0 .15rem .5rem rgba(20, 41, 51, .04);
}

.message-bubble-user {
    align-self: flex-end;
    background: #142933;
    color: #fff;
    border-color: #142933;
}

.message-bubble-admin {
    align-self: flex-start;
}

.message-bubble-system {
    align-self: center;
    width: min(92%, 880px);
    background: #eef3f5;
    border-style: dashed;
}

.message-bubble-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .5rem;
    font-size: .78rem;
    opacity: .75;
}

.message-body {
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.message-quote {
    margin: 0 0 .7rem;
    padding: .6rem .75rem;
    border-left: 3px solid currentColor;
    border-radius: .4rem;
    background: rgba(127, 127, 127, .1);
    font-size: .88rem;
    opacity: .9;
}

.message-attachments {
    display: grid;
    gap: .4rem;
    margin-top: .8rem;
}

.message-attachment {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: inherit;
    text-decoration: none;
    padding: .45rem .6rem;
    border-radius: .55rem;
    background: rgba(127, 127, 127, .1);
}

.message-attachment span {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-attachment small {
    opacity: .7;
    white-space: nowrap;
}

.order-file-list {
    display: grid;
    gap: .4rem;
}

.order-file-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    text-decoration: none;
}

/* v2.30c: make customer layout files unmistakable in the admin order view. */
.order-layout-file {
    width: 100%;
    max-width: 44rem;
    padding: .55rem .7rem;
    border: 1px solid rgba(var(--bs-warning-rgb), .62);
    border-radius: .7rem;
    background: rgba(var(--bs-warning-rgb), .12);
    color: var(--bs-body-color);
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.order-layout-file:hover,
.order-layout-file:focus-visible {
    color: var(--bs-body-color);
    background: rgba(var(--bs-warning-rgb), .2);
    border-color: rgba(var(--bs-warning-rgb), .9);
    box-shadow: 0 0 0 .2rem rgba(var(--bs-warning-rgb), .12);
}

.order-layout-badge {
    flex: 0 0 auto;
}

.order-layout-file-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.order-layout-file-size {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .order-layout-file {
        flex-wrap: wrap;
    }

    .order-layout-file-name {
        flex: 1 1 calc(100% - 7rem);
    }
}

@media (max-width: 767.98px) {
    .message-bubble {
        width: 94%;
    }

    .message-bubble-system {
        width: 100%;
    }
}

/* Release v2.10.3: header actions, admin navigation icons and message recipient picker */
.site-header .header-icon-link {
    min-width: 2.35rem;
    min-height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .35rem .45rem;
    border: 0 !important;
    border-radius: .55rem;
    background: transparent !important;
    color: var(--fp-ink-2);
    text-decoration: none;
    box-shadow: none !important;
}

.site-header .header-icon-link:hover,
.site-header .header-icon-link:focus-visible {
    color: var(--fp-brand);
    background: rgb(20 41 51 / .07) !important;
}

.site-header .header-icon-link > i {
    font-size: 1.05rem;
}

.site-header .header-icon-link.cart-icon-link {
    width: auto;
    min-width: 2.35rem;
    height: 2.35rem;
}

.admin-nav-label,
.admin-main-nav .admin-subnav .nav-link {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.admin-menu-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 1.05rem;
}

.admin-main-nav .admin-subnav .admin-menu-icon {
    width: .95rem;
    height: .95rem;
    flex-basis: .95rem;
    opacity: .8;
}

.admin-recipient-select {
    min-height: 10rem;
}

.admin-recipient-search-help {
    min-height: 1.2rem;
}


/* Release v2.11.2: compact header admin/account actions */
.site-header .header-account-link {
    position: relative;
    overflow: visible;
    margin-right: .65rem;
}

.site-header .header-account-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    min-height: 1.35rem;
}

.site-header .header-user-id {
    position: absolute;
    top: 1.15rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: .08rem .28rem;
    border-radius: .32rem;
    background: var(--fp-brand);
    color: var(--fp-brand-contrast, #fff);
    font-size: .58rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .01em;
    box-shadow: 0 1px 3px rgb(20 41 51 / .2);
}

@media (max-width: 575.98px) {
    .site-header .header-account-link {
        margin-right: .45rem;
    }

    .site-header .header-user-id {
        font-size: .54rem;
    }
}

/* v2.12.3: company logo in the public header */
.brand-company-logo {
    display: block;
    width: auto;
    max-width: 250px;
    max-height: 58px;
    object-fit: contain;
}

.brand-copy-with-logo {
    flex: 0 0 auto;
}

@media (max-width: 575.98px) {
    .brand-company-logo {
        max-width: 180px;
        max-height: 48px;
    }
}

/* v2.12.4: logo caption and live catalog search */
.brand-lockup:has(.brand-company-logo) {
    flex-direction: column;
    align-items: center;
    gap: .12rem;
}

.brand-lockup:has(.brand-company-logo) .brand-copy-with-logo {
    width: 100%;
    text-align: center;
    line-height: 1;
}

.brand-lockup:has(.brand-company-logo) .brand-copy-with-logo small {
    display: block;
    margin-top: .12rem;
    white-space: nowrap;
}

.catalog-search {
    position: relative;
    z-index: 4;
}

/* v2.25.3: keep live-search results above the public navigation strip. */
.catalog-search:focus-within {
    z-index: 1105;
}

.search-suggestions {
    position: absolute;
    z-index: 1060;
    top: calc(100% + .35rem);
    right: 0;
    left: 0;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 .75rem 2rem rgb(20 41 51 / .16);
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 58px;
    padding: .5rem .75rem;
    color: var(--fp-ink);
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.search-suggestion-thumb {
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border: 1px solid var(--fp-line, var(--bs-border-color));
    border-radius: .55rem;
    background: var(--fp-surface-alt, var(--bs-tertiary-bg));
}

.search-suggestion-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.search-suggestion-thumb.is-empty::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 2px solid var(--fp-muted, #667d86);
    border-radius: .2rem;
    opacity: .3;
}

.search-suggestion-title {
    min-width: 0;
    flex: 1 1 auto;
}

.search-suggestion-item + .search-suggestion-item {
    border-top: 1px solid var(--bs-border-color-translucent);
}

.search-suggestion-item:hover,
.search-suggestion-item.is-active {
    background: var(--bs-tertiary-bg);
    color: var(--fp-ink);
}

.search-suggestion-empty {
    padding: .72rem .9rem;
    color: var(--fp-muted);
    font-size: .88rem;
}

@media (max-width: 991.98px) {
    .brand-lockup:has(.brand-company-logo) .brand-copy-with-logo small {
        display: block;
    }
}

/* v2.14.0 delivery address autocomplete */
.delivery-autocomplete {
    position: relative;
}
.delivery-suggestions {
    display: none;
    position: absolute;
    z-index: 1080;
    top: calc(100% + .25rem);
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: var(--bs-body-bg, #fff);
    border-radius: .5rem;
}
.delivery-suggestions.is-open {
    display: block;
}
.delivery-suggestions .list-group-item {
    text-align: left;
    font-size: .925rem;
}
.delivery-address-option {
    cursor: pointer;
}

/* v2.14.7 shipment / TTN controls */
.shipping-method-icon {
    position: relative;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    font-size: 16px;
    line-height: 1;
}
.shipping-method-icon-np {
    background: #fff1f1;
    color: #dc1f2e;
}
.shipping-np-mark {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -.04em;
}
.shipping-method-icon-up {
    background: #fff8df;
    color: #8a6a00;
}
.shipping-ttn-dot {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #198754;
    border: 2px solid #fff;
}
.shipment-icon-button:hover .shipping-method-icon,
.shipment-icon-button:focus .shipping-method-icon {
    box-shadow: 0 0 0 .2rem rgba(20, 41, 51, .12);
    transform: translateY(-1px);
}
.shipment-place {
    background: var(--bs-tertiary-bg);
}


.account-address-strip {
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}

.account-address-card {
    width: min(360px, 86vw);
    scroll-snap-align: start;
}

.account-address-card .card {
    min-height: 100%;
}

/* v2.15: configurable catalog menu + mobile catalog panel */
.catalog-side-panel {
    min-width: 0;
}

.catalog-menu {
    display: grid;
    gap: .22rem;
}

.catalog-menu-all,
.catalog-menu-link {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    min-height: 2.35rem;
    padding: .46rem .58rem;
    border-radius: .65rem;
    color: var(--fp-ink-2);
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.catalog-menu-all:hover,
.catalog-menu-link:hover {
    background: var(--fp-soft);
    color: var(--fp-ink);
}

.catalog-menu-all.active,
.catalog-menu-link.active {
    background: var(--fp-ink);
    color: #fff;
}

.catalog-menu-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.1rem;
    align-items: center;
    gap: .15rem;
}

.catalog-menu-row > .catalog-menu-link:only-child {
    grid-column: 1 / -1;
}

.catalog-menu-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-menu-count {
    flex: 0 0 auto;
    min-width: 1.8rem;
    padding: .14rem .4rem;
    border-radius: 999px;
    background: rgb(20 41 51 / .07);
    color: inherit;
    text-align: center;
    font-size: .68rem;
    font-weight: 700;
}

.catalog-menu-all.active .catalog-menu-count,
.catalog-menu-link.active .catalog-menu-count {
    background: rgb(255 255 255 / .15);
}

.catalog-menu-toggle {
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border: 0;
    border-radius: .55rem;
    background: transparent;
    color: var(--fp-muted);
}

.catalog-menu-toggle:hover {
    background: var(--fp-soft);
    color: var(--fp-ink);
}

.catalog-menu-toggle span {
    display: block;
    font-size: 1.35rem;
    line-height: 1;
    transition: transform .15s ease;
}

.catalog-menu-toggle.is-open span {
    transform: rotate(90deg);
}

.catalog-menu-children {
    display: none;
    margin: .18rem 0 .15rem .78rem;
    padding-left: .42rem;
    border-left: 1px solid var(--fp-line);
}

.catalog-menu-children.is-open {
    display: grid;
    gap: .18rem;
}

.catalog-menu-node[data-depth="3"] .catalog-menu-link {
    font-size: .9rem;
}

.catalog-menu-mobile-button {
    width: 2.45rem;
    height: 2.35rem;
    padding: 0;
}

.catalog-menu-offcanvas {
    width: min(90vw, 410px) !important;
}

.catalog-menu-offcanvas .offcanvas-body {
    padding: 1.15rem;
}

/* v2.15: admin catalog menu builder */
.catalog-menu-admin-available-card {
    position: sticky;
    top: 6.25rem;
}

.catalog-menu-category-pool {
    display: grid;
    gap: .5rem;
    max-height: 62vh;
    overflow: auto;
    padding-right: .2rem;
    scrollbar-width: thin;
}

.catalog-menu-pool-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem;
    padding: .65rem .7rem;
    border: 1px solid var(--fp-line);
    border-radius: .7rem;
    background: var(--fp-surface-alt);
}

.catalog-menu-pool-item strong,
.catalog-menu-pool-item small,
.catalog-menu-admin-copy strong,
.catalog-menu-admin-copy small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-menu-pool-item small,
.catalog-menu-admin-copy small {
    margin-top: .12rem;
    color: var(--fp-muted);
    font-size: .72rem;
}

.catalog-menu-admin-list {
    display: grid;
    gap: .55rem;
    min-height: .8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.catalog-menu-admin-root {
    min-height: 3rem;
}

.catalog-menu-admin-item {
    min-width: 0;
}

.catalog-menu-admin-row {
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr) auto auto 2.2rem;
    align-items: center;
    gap: .6rem;
    padding: .62rem .65rem;
    border: 1px solid var(--fp-line);
    border-radius: .75rem;
    background: #fff;
}

.catalog-menu-admin-item.sortable-ghost > .catalog-menu-admin-row {
    opacity: .45;
}

.catalog-menu-drag {
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border: 1px solid var(--fp-line);
    border-radius: .55rem;
    background: var(--fp-surface-alt);
    color: var(--fp-muted);
    cursor: grab;
    touch-action: none;
}

.catalog-menu-drag:active {
    cursor: grabbing;
}

.catalog-menu-admin-count {
    color: var(--fp-muted);
    font-size: .72rem;
    white-space: nowrap;
}

.catalog-menu-admin-children {
    min-height: .9rem;
    margin-top: .45rem;
    margin-left: 1.35rem;
    padding-left: .75rem;
    border-left: 1px dashed var(--fp-line-strong);
}

.catalog-menu-admin-children:empty {
    min-height: .7rem;
}

.catalog-menu-admin-item[data-depth="3"] > .catalog-menu-admin-children {
    display: none;
}

.catalog-menu-admin-empty.d-none {
    display: none !important;
}

@media (max-width: 767.98px) {
    .catalog-menu-admin-row {
        grid-template-columns: 2.2rem minmax(0, 1fr) 2.2rem;
    }

    .catalog-menu-admin-row [data-depth-badge],
    .catalog-menu-admin-count {
        display: none;
    }

    .catalog-menu-admin-children {
        margin-left: .8rem;
        padding-left: .5rem;
    }
}

@media (max-width: 1199.98px) {
    .catalog-menu-admin-available-card {
        position: static;
    }
}

/* Release v2.16: collapsible admin navigation */
.admin-nav-details {
    display: block;
}

.admin-nav-details > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.admin-nav-details > summary::-webkit-details-marker {
    display: none;
}

.admin-main-nav .admin-nav-toggle {
    width: 100%;
}

.admin-main-nav .admin-nav-collapsible.is-active > .admin-nav-details > .admin-nav-toggle {
    color: #142933;
    background: #fff;
    border-color: var(--fp-line);
}

.admin-nav-chevron {
    width: .55rem;
    height: .55rem;
    flex: 0 0 .55rem;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .15s ease;
    opacity: .65;
}

.admin-nav-details[open] > .admin-nav-toggle .admin-nav-chevron {
    transform: rotate(225deg) translate(-2px, -2px);
}

.admin-nav-details:not([open]) > .admin-subnav {
    display: none;
}

/* v2.16.6: full admin dashboard */
.admin-dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.admin-dashboard-kpi {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 145px;
    padding: 1.2rem;
    overflow: hidden;
    border: 1px solid var(--fp-line);
    border-radius: 1rem;
    background: #fff;
    color: #142933;
    text-decoration: none;
    box-shadow: 0 .35rem 1.2rem rgba(20, 41, 51, .05);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.admin-dashboard-kpi::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #6c757d;
}

.admin-dashboard-kpi.is-primary::before { background: #0d6efd; }
.admin-dashboard-kpi.is-dark::before { background: #142933; }
.admin-dashboard-kpi.is-warning::before { background: #ffc107; }
.admin-dashboard-kpi.is-success::before { background: #198754; }
.admin-dashboard-kpi.is-danger::before { background: #dc3545; }
.admin-dashboard-kpi.is-info::before { background: #0dcaf0; }
.admin-dashboard-kpi.is-secondary::before { background: #6c757d; }

.admin-dashboard-kpi:hover {
    color: #142933;
    transform: translateY(-2px);
    box-shadow: 0 .55rem 1.6rem rgba(20, 41, 51, .09);
}

.admin-dashboard-kpi strong {
    margin: auto 0 .35rem;
    font-size: clamp(1.65rem, 2.3vw, 2.5rem);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.admin-dashboard-kpi small {
    color: var(--fp-muted);
}

.admin-dashboard-panel .card-header {
    padding-bottom: 1rem;
}

.admin-dashboard-panel table th,
.admin-dashboard-panel table td {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.admin-dashboard-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.admin-dashboard-stat-list {
    display: grid;
    gap: .15rem;
}

.admin-dashboard-stat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .72rem 0;
    border-bottom: 1px solid var(--fp-line);
    color: inherit;
    text-decoration: none;
}

.admin-dashboard-stat-list a:first-child {
    padding-top: 0;
}

.admin-dashboard-stat-list a:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.admin-dashboard-stat-list a:hover span {
    text-decoration: underline;
}

.admin-dashboard-stat-list strong {
    font-size: 1.15rem;
}

.admin-dashboard-import-list {
    display: grid;
    gap: .9rem;
}

.admin-dashboard-import-list > div {
    padding-bottom: .8rem;
    border-bottom: 1px solid var(--fp-line);
}

.admin-dashboard-import-list > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

@media (max-width: 1199.98px) {
    .admin-dashboard-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-dashboard-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .admin-dashboard-kpi-grid,
    .admin-dashboard-info-grid {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-kpi {
        min-height: 125px;
    }
}

/* Admin related-product picker */
.admin-related-picker {
    background: var(--bs-tertiary-bg);
}
.admin-related-search-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}
.admin-related-search-item,
.admin-related-selected-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
    padding: .7rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    background: var(--bs-body-bg);
}
.admin-related-search-thumb,
.admin-related-thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    object-fit: contain;
    border: 1px solid var(--bs-border-color);
    border-radius: .6rem;
    background: #fff;
}
.admin-related-search-thumb.admin-related-thumb-placeholder,
.admin-related-thumb.admin-related-thumb-placeholder {
    display: grid;
    place-items: center;
    color: var(--bs-secondary-color);
}
.admin-related-copy {
    flex: 1 1 auto;
    overflow: hidden;
}
.admin-related-selected {
    display: grid;
    gap: .6rem;
}
.admin-related-actions {
    display: flex;
    flex: 0 0 auto;
    gap: .35rem;
}
.admin-related-empty {
    padding: .85rem;
    border: 1px dashed var(--bs-border-color);
    border-radius: .75rem;
    text-align: center;
}
.admin-related-manual > summary {
    cursor: pointer;
}
@media (max-width: 991.98px) {
    .admin-related-search-results {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 575.98px) {
    .admin-related-search-item,
    .admin-related-selected-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .admin-related-actions {
        width: 100%;
        justify-content: flex-end;
    }
}


/* v2.17.1: public home page */
.home-section { margin-bottom: 3rem; }
.home-section:last-child { margin-bottom: 0; }
.home-section-heading { display:flex; align-items:end; justify-content:space-between; gap:1rem; margin-bottom:1.25rem; }
.home-category-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.home-category-card { display:flex; min-height:148px; flex-direction:column; align-items:center; justify-content:flex-start; gap:.75rem; padding:1rem .75rem; color:inherit; text-align:center; text-decoration:none; background:var(--fp-surface); border:1px solid var(--fp-line); border-radius:1rem; transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.home-category-card:hover { color:inherit; transform:translateY(-2px); border-color:var(--fp-brand); box-shadow:0 .75rem 1.75rem rgba(20,41,51,.09); }
.home-category-icon { width:96px; height:96px; flex:0 0 96px; display:grid; place-items:center; overflow:hidden; border-radius:.9rem; background:transparent; }
.home-category-icon img { width:100%; height:100%; object-fit:contain; padding:.4rem; }
.home-category-icon i { font-size:1.8rem; color:var(--fp-muted); }
.home-category-name { max-width:100%; font-weight:700; line-height:1.25; }
.home-latest-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.home-latest-card { overflow:hidden; }
.home-latest-media { display:block; aspect-ratio:1/1; background:#f6f7f8; overflow:hidden; }
.home-latest-media img { width:100%; height:100%; object-fit:contain; }
.home-text-block { background:#fff; border-radius:1rem; padding:clamp(1.25rem,3vw,2.25rem); box-shadow:0 .5rem 1.5rem rgba(20,41,51,.06); }
.home-text-block .cms-content > :first-child { margin-top:0; }
.home-text-block .cms-content > :last-child { margin-bottom:0; }
@media (min-width: 768px) { .home-category-grid { grid-template-columns:repeat(var(--home-category-columns-tablet,4),minmax(0,1fr)); } .home-latest-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (min-width: 1200px) { .home-category-grid { grid-template-columns:repeat(var(--home-category-columns,6),minmax(0,1fr)); } }


/* v2.18: customer work-order total in the public header */
.header-orders-link { position:relative; min-width:2.35rem; overflow:visible; margin-right:.65rem; }
.header-orders-icon { position:relative; display:inline-grid; place-items:center; min-width:1.35rem; min-height:1.35rem; }
.header-orders-total { position:absolute; top:1.15rem; left:50%; transform:translateX(-50%); z-index:2; display:inline-flex; align-items:center; justify-content:center; min-width:max-content; max-width:9rem; padding:.08rem .28rem; border-radius:.32rem; background:var(--fp-brand); color:#fff; font-size:.58rem; font-weight:700; line-height:1.2; letter-spacing:.01em; white-space:nowrap; box-shadow:0 1px 3px rgb(20 41 51 / .2); }
@media (max-width: 575.98px) { .header-orders-link { margin-right:.45rem; } .header-orders-total { font-size:.54rem; max-width:7.5rem; } }

/* Release v2.21.1: AJAX release installer */
.update-ajax-progress {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--fp-line);
    border-radius: .9rem;
    background: #fff;
}

.update-progress-bar {
    height: .7rem;
    border-radius: 999px;
    overflow: hidden;
}

.update-stage-list {
    display: grid;
    gap: .55rem;
}

.update-stage {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: var(--fp-muted);
    font-size: .86rem;
}

.update-stage-dot {
    width: .72rem;
    height: .72rem;
    border-radius: 50%;
    border: 2px solid var(--fp-line-strong);
    background: #fff;
    flex: 0 0 auto;
}

.update-stage.is-active {
    color: var(--fp-ink);
    font-weight: 700;
}

.update-stage.is-active .update-stage-dot {
    border-color: var(--fp-ink);
    box-shadow: 0 0 0 .2rem rgb(20 41 51 / .08);
}

.update-stage.is-done {
    color: var(--fp-ink-2);
}

.update-stage.is-done .update-stage-dot {
    border-color: var(--bs-success);
    background: var(--bs-success);
}

.update-result-box code {
    overflow-wrap: anywhere;
}

/* v2.22.1: configurable public catalog appearance */
h1,h2,h3,h4,h5,h6,.display-1,.display-2,.display-3,.display-4,.display-5,.display-6 { color:var(--fp-heading); }
.product-title a,.home-category-name { color:var(--fp-heading); }
.catalog-load-more-wrap { display:flex; justify-content:center; margin-top:2rem; }
.catalog-load-more { min-width:12rem; }

.card { --bs-card-bg: var(--fp-surface); }


/* ==========================================================================
   v2.23.1b — Forms / controls refresh (CSS Snapshot 2026 progressive UI)
   Modern browsers get enhanced selectors/color mixing/custom pickers;
   Bootstrap-compatible fallbacks remain functional everywhere else.
   ========================================================================== */

:root {
    --fp-control-height: 2.75rem;
    --fp-control-radius: .78rem;
    --fp-control-radius-sm: .64rem;
    --fp-control-border: color-mix(in srgb, var(--fp-line-strong) 72%, transparent);
    --fp-control-bg: color-mix(in srgb, var(--fp-surface) 96%, var(--fp-soft));
    --fp-control-bg-hover: color-mix(in srgb, var(--fp-surface) 88%, var(--fp-soft));
    --fp-control-focus: color-mix(in srgb, var(--fp-brand) 18%, transparent);
    --fp-control-shadow: 0 .16rem .5rem rgb(20 41 51 / .045);
    --fp-control-shadow-focus: 0 0 0 .22rem var(--fp-control-focus), 0 .35rem 1rem rgb(20 41 51 / .08);
    --fp-button-shadow: 0 .28rem .7rem rgb(20 41 51 / .10);
}

/* Unified fields ---------------------------------------------------------- */
:where(.form-control, .form-select) {
    min-height: var(--fp-control-height);
    border-color: var(--fp-control-border);
    border-radius: var(--fp-control-radius);
    background-color: var(--fp-control-bg);
    color: var(--fp-ink);
    box-shadow: var(--fp-control-shadow);
    transition:
        border-color .16s ease,
        background-color .16s ease,
        box-shadow .16s ease,
        translate .16s ease;
}

:where(.form-control, .form-select):hover:not(:disabled):not([readonly]) {
    border-color: color-mix(in srgb, var(--fp-brand) 32%, var(--fp-line-strong));
    background-color: var(--fp-control-bg-hover);
}

:where(.form-control, .form-select):focus {
    border-color: color-mix(in srgb, var(--fp-brand) 72%, white);
    background-color: var(--fp-surface);
    box-shadow: var(--fp-control-shadow-focus);
}

:where(.form-control, .form-select):disabled,
:where(.form-control, .form-select)[readonly] {
    background-color: color-mix(in srgb, var(--fp-soft) 82%, var(--fp-surface));
    color: var(--fp-muted);
    box-shadow: none;
    opacity: .82;
}

.form-control-sm,
.form-select-sm {
    min-height: 2.35rem;
    border-radius: var(--fp-control-radius-sm);
}

.form-control-lg,
.form-select-lg {
    min-height: 3.25rem;
    border-radius: .9rem;
}

textarea.form-control {
    min-height: 7rem;
    resize: vertical;
}

.form-label {
    margin-bottom: .42rem;
    color: var(--fp-ink-2);
    font-weight: 650;
    letter-spacing: .005em;
}

.form-text {
    color: var(--fp-muted);
    line-height: 1.4;
}

::placeholder {
    color: color-mix(in srgb, var(--fp-muted) 76%, transparent);
    opacity: 1;
}

.form-control[type="file"] {
    padding: .34rem;
}

.form-control[type="file"]::file-selector-button {
    min-height: 2rem;
    margin: -.08rem .65rem -.08rem -.08rem;
    padding-inline: .8rem;
    border: 0;
    border-radius: .55rem;
    background: var(--fp-soft);
    color: var(--fp-ink);
    font-weight: 650;
    transition: background-color .16s ease, color .16s ease;
}

.form-control[type="file"]:hover::file-selector-button {
    background: var(--fp-brand);
    color: var(--fp-brand-contrast, #fff);
}

input[type="color"].form-control,
.form-control-color {
    inline-size: 3.25rem;
    padding: .28rem;
}

/* Selects ---------------------------------------------------------------- */
.form-select:not([multiple]) {
    cursor: pointer;
    background-position: right .85rem center;
    padding-inline-end: 2.55rem;
}

.form-select[multiple] {
    min-height: 8.5rem;
    padding: .35rem;
    background-image: none;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--fp-brand) 28%, transparent) transparent;
}

.form-select[multiple] option {
    margin-block: .18rem;
    padding: .5rem .62rem;
    border-radius: .55rem;
    color: var(--fp-ink-2);
}

.form-select[multiple] option:checked {
    background: var(--fp-brand) linear-gradient(0deg, var(--fp-brand), var(--fp-brand));
    color: #fff;
}

/* CSS UI customizable select. Browsers without it keep the rules above. */
@supports (appearance: base-select) {
    select.form-select:not([multiple]) {
        appearance: base-select;
        background-image: none;
        padding-inline-end: .8rem;
    }

    select.form-select:not([multiple])::picker(select) {
        appearance: base-select;
        margin-block: .38rem;
        padding: .35rem;
        border: 1px solid var(--fp-line-strong);
        border-radius: .85rem;
        background: var(--fp-surface);
        box-shadow: 0 1rem 2.4rem rgb(20 41 51 / .16);
    }

    select.form-select:not([multiple]) option {
        padding: .62rem .72rem;
        border-radius: .55rem;
    }

    select.form-select:not([multiple]) option:hover,
    select.form-select:not([multiple]) option:focus-visible {
        background: var(--fp-soft);
    }

    select.form-select:not([multiple]) option:checked {
        background: color-mix(in srgb, var(--fp-brand) 12%, var(--fp-surface));
        color: var(--fp-brand);
        font-weight: 700;
    }
}

/* Checkbox, radio, switch ------------------------------------------------ */
.form-check-input {
    inline-size: 1.15rem;
    block-size: 1.15rem;
    margin-block-start: .15rem;
    border-width: 1.5px;
    border-color: color-mix(in srgb, var(--fp-line-strong) 82%, var(--fp-brand));
    background-color: var(--fp-surface);
    accent-color: var(--fp-brand);
    box-shadow: 0 .1rem .25rem rgb(20 41 51 / .06);
    cursor: pointer;
    transition:
        border-color .15s ease,
        background-color .15s ease,
        box-shadow .15s ease,
        scale .15s ease;
}

.form-check-input[type="checkbox"] {
    border-radius: .34rem;
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input:hover:not(:disabled) {
    border-color: var(--fp-brand);
    scale: 1.045;
}

.form-check-input:checked {
    border-color: var(--fp-brand);
    background-color: var(--fp-brand);
}

.form-check-input:focus-visible {
    border-color: var(--fp-brand);
    box-shadow: 0 0 0 .22rem var(--fp-control-focus);
}

.form-check-label {
    color: var(--fp-ink-2);
    cursor: pointer;
}

.form-switch .form-check-input {
    inline-size: 2.6rem;
    block-size: 1.38rem;
    border-radius: 999px;
    background-position: left center;
}

.form-switch .form-check-input:checked {
    background-position: right center;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
    border-radius: .72rem;
    font-weight: 650;
    letter-spacing: .005em;
    box-shadow: 0 .12rem .3rem rgb(20 41 51 / .035);
    transition:
        color .16s ease,
        background-color .16s ease,
        border-color .16s ease,
        box-shadow .16s ease,
        translate .16s ease;
}

.btn:not(.btn-link):not(:disabled):hover {
    translate: 0 -1px;
    box-shadow: var(--fp-button-shadow);
}

.btn:not(.btn-link):not(:disabled):active {
    translate: 0 0;
    box-shadow: 0 .08rem .2rem rgb(20 41 51 / .07);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 .22rem var(--fp-control-focus), var(--fp-button-shadow);
}

.btn-sm {
    border-radius: .6rem;
}

.btn-lg {
    border-radius: .88rem;
}

.btn-group {
    gap: .22rem;
}

.btn-group > .btn {
    border-radius: .62rem !important;
}

.btn-outline-secondary {
    --bs-btn-color: var(--fp-ink-2);
    --bs-btn-border-color: var(--fp-line-strong);
    --bs-btn-hover-color: var(--fp-ink);
    --bs-btn-hover-bg: var(--fp-soft);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--fp-brand) 28%, var(--fp-line-strong));
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--fp-brand);
    --bs-btn-active-border-color: var(--fp-brand);
}

/* Input groups keep a single visual outline. */
.input-group {
    border-radius: var(--fp-control-radius);
}

.input-group-text {
    border-color: var(--fp-control-border);
    background: color-mix(in srgb, var(--fp-soft) 68%, var(--fp-surface));
    color: var(--fp-muted);
}

/* Native modern validation only after the user interacted with a field. */
@supports selector(:user-invalid) {
    :where(.form-control, .form-select):user-invalid {
        border-color: color-mix(in srgb, var(--fp-danger) 76%, var(--fp-line));
        box-shadow: 0 0 0 .18rem color-mix(in srgb, var(--fp-danger) 13%, transparent);
    }

    :where(.form-control, .form-select):user-valid:not(:placeholder-shown) {
        border-color: color-mix(in srgb, var(--fp-success) 42%, var(--fp-line-strong));
    }
}

/* Catalog filters -------------------------------------------------------- */
.catalog-price-filter,
.catalog-property-filters {
    --fp-filter-control-bg: color-mix(in srgb, var(--fp-surface) 92%, var(--fp-soft));
}

.catalog-price-filter .form-control {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.catalog-property-filters .catalog-filter-group {
    padding: .72rem !important;
    border: 1px solid color-mix(in srgb, var(--fp-line) 82%, transparent) !important;
    border-radius: .9rem;
    background: color-mix(in srgb, var(--fp-surface) 84%, var(--fp-surface-alt));
}

.catalog-property-filters .catalog-filter-group > legend {
    width: auto;
    max-width: 100%;
    margin: 0 0 .55rem;
    padding: 0 .12rem;
    color: var(--fp-ink);
    font-weight: 750;
}

.catalog-property-filters .vstack {
    gap: .42rem !important;
}

.catalog-property-filters .form-check {
    position: relative;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.catalog-property-filters .form-check-input {
    position: absolute;
    z-index: 1;
    inset-inline-start: .72rem;
    inset-block-start: 50%;
    margin: 0;
    translate: 0 -50%;
}

.catalog-property-filters .form-check-label {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
    width: 100%;
    min-height: 2.42rem;
    padding: .5rem .6rem .5rem 2.35rem;
    border: 1px solid transparent;
    border-radius: .68rem;
    background: transparent;
    color: var(--fp-ink-2);
    line-height: 1.25;
    transition:
        color .15s ease,
        background-color .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}

.catalog-property-filters .form-check:hover .form-check-label {
    border-color: color-mix(in srgb, var(--fp-line-strong) 74%, transparent);
    background: var(--fp-filter-control-bg);
}

.catalog-property-filters .form-check:has(.form-check-input:checked) .form-check-label {
    border-color: color-mix(in srgb, var(--fp-brand) 34%, var(--fp-line));
    background: color-mix(in srgb, var(--fp-brand) 7%, var(--fp-surface));
    color: var(--fp-brand);
    box-shadow: inset 3px 0 0 var(--fp-brand);
    font-weight: 650;
}

.catalog-property-filters .form-check-label > .text-body-secondary {
    min-width: 1.7rem;
    padding: .1rem .4rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--fp-brand) 7%, var(--fp-soft));
    color: var(--fp-muted) !important;
    text-align: center;
    font-size: .7rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.catalog-property-filters .form-check:has(.form-check-input:checked) .form-check-label > .text-body-secondary {
    background: color-mix(in srgb, var(--fp-brand) 12%, var(--fp-surface));
    color: var(--fp-brand) !important;
}

.catalog-property-filters .form-select {
    width: 100%;
}

/* CSS-only multiselect dropdown used by catalog facets. */
.fp-multiselect {
    position: relative;
}

.fp-multiselect-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .65rem;
    min-height: 2.45rem;
    padding: .5rem .72rem;
    border: 1px solid var(--fp-control-border);
    border-radius: var(--fp-control-radius-sm);
    background: var(--fp-control-bg);
    color: var(--fp-ink-2);
    box-shadow: var(--fp-control-shadow);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition:
        border-color .16s ease,
        background-color .16s ease,
        box-shadow .16s ease;
}

.fp-multiselect-summary::-webkit-details-marker {
    display: none;
}

.fp-multiselect-summary::marker {
    content: "";
}

.fp-multiselect-summary:hover {
    border-color: color-mix(in srgb, var(--fp-brand) 34%, var(--fp-line-strong));
    background: var(--fp-control-bg-hover);
}

.fp-multiselect[open] > .fp-multiselect-summary,
.fp-multiselect:has(input:checked) > .fp-multiselect-summary {
    border-color: color-mix(in srgb, var(--fp-brand) 50%, var(--fp-line));
}

.fp-multiselect[open] > .fp-multiselect-summary {
    box-shadow: var(--fp-control-shadow-focus);
}

.fp-multiselect-caret {
    display: inline-block;
    inline-size: .52rem;
    block-size: .52rem;
    border-inline-end: 1.7px solid currentColor;
    border-block-end: 1.7px solid currentColor;
    rotate: 45deg;
    translate: 0 -.12rem;
    color: var(--fp-muted);
    transition: rotate .16s ease, translate .16s ease;
}

.fp-multiselect[open] .fp-multiselect-caret {
    rotate: 225deg;
    translate: 0 .12rem;
}

.fp-multiselect-menu {
    display: grid;
    gap: .28rem;
    max-height: 15rem;
    margin-top: .38rem;
    padding: .42rem;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--fp-line-strong);
    border-radius: .8rem;
    background: var(--fp-surface);
    box-shadow: 0 .85rem 2rem rgb(20 41 51 / .13);
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--fp-brand) 26%, transparent) transparent;
}

.fp-multiselect-option {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .55rem;
    min-height: 2.25rem;
    padding: .42rem .5rem;
    border: 1px solid transparent;
    border-radius: .62rem;
    color: var(--fp-ink-2);
    cursor: pointer;
    transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}

.fp-multiselect-option:hover {
    border-color: var(--fp-line);
    background: var(--fp-soft);
}

.fp-multiselect-option:has(.form-check-input:checked) {
    border-color: color-mix(in srgb, var(--fp-brand) 30%, var(--fp-line));
    background: color-mix(in srgb, var(--fp-brand) 7%, var(--fp-surface));
    color: var(--fp-brand);
    font-weight: 650;
}

.fp-multiselect-option .form-check-input {
    margin: 0;
}

.fp-multiselect-count,
.fp-filter-count {
    min-width: 1.7rem;
    padding: .1rem .4rem;
    border-radius: 999px;
    background: var(--fp-soft);
    color: var(--fp-muted);
    text-align: center;
    font-size: .7rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.fp-multiselect-selected-count {
    color: var(--fp-muted);
    font-size: .78rem;
    white-space: nowrap;
}

.fp-multiselect:has(input:checked) .fp-multiselect-selected-count {
    color: var(--fp-brand);
    font-weight: 700;
}

/* Toolbar/pagination/buttons read as one component family. */
.catalog-toolbar {
    border: 1px solid color-mix(in srgb, var(--fp-line) 70%, transparent) !important;
    background: color-mix(in srgb, var(--fp-surface) 94%, var(--fp-soft));
}

.pagination {
    --bs-pagination-border-radius: .65rem;
    --bs-pagination-color: var(--fp-ink-2);
    --bs-pagination-hover-color: var(--fp-brand);
    --bs-pagination-hover-bg: var(--fp-soft);
    --bs-pagination-active-bg: var(--fp-brand);
    --bs-pagination-active-border-color: var(--fp-brand);
}

.page-link {
    min-width: 2.4rem;
    border-radius: .62rem !important;
    text-align: center;
    font-weight: 650;
}

/* Pointer/touch and accessibility ---------------------------------------- */
:where(button, .btn, .form-check-input, .form-select, summary):focus-visible {
    outline: 2px solid color-mix(in srgb, var(--fp-brand) 58%, white);
    outline-offset: 2px;
}

@media (pointer: coarse) {
    .btn-sm,
    .form-control-sm,
    .form-select-sm,
    .catalog-property-filters .form-check-label,
    .fp-multiselect-summary,
    .fp-multiselect-option {
        min-height: 2.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    :where(.btn, .form-control, .form-select, .form-check-input, .form-check-label, .fp-multiselect-summary, .fp-multiselect-caret) {
        transition-duration: .001ms !important;
    }
}

/* v2.23.2: catalog sidebar + filter activation modes ---------------------- */
.filters-sticky {
    top: var(--fp-catalog-sticky-top, 7rem);
    align-self: flex-start;
    padding-bottom: clamp(2.25rem, 5vh, 4rem);
}

/* A panel taller than the usable viewport must stay in normal page flow.
   This avoids the sticky element being clamped against the bottom edge while
   still keeping short filter panels conveniently pinned on desktop. */
.filters-sticky.filters-sticky--flow {
    position: static;
    top: auto;
}

.catalog-filters-form {
    display: block;
}

.catalog-filter-actions {
    margin-top: .45rem;
    padding-top: .25rem;
}

.catalog-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
}

.catalog-filter-button {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    width: auto;
    min-height: 2rem;
    padding: .34rem .62rem;
    border: 1px solid color-mix(in srgb, var(--fp-line-strong) 78%, transparent);
    border-radius: .62rem;
    background: var(--fp-filter-control-bg);
    color: var(--fp-ink-2);
    line-height: 1.15;
    white-space: normal;
}

.catalog-filter-button:hover {
    border-color: color-mix(in srgb, var(--fp-brand) 38%, var(--fp-line-strong));
    background: color-mix(in srgb, var(--fp-brand) 5%, var(--fp-surface));
    color: var(--fp-brand);
}

.catalog-filter-buttons .btn-check:focus-visible + .catalog-filter-button {
    outline: 2px solid color-mix(in srgb, var(--fp-brand) 48%, transparent);
    outline-offset: 2px;
}

.catalog-filter-buttons .btn-check:checked + .catalog-filter-button {
    border-color: color-mix(in srgb, var(--fp-brand) 52%, var(--fp-line));
    background: color-mix(in srgb, var(--fp-brand) 12%, var(--fp-surface));
    color: var(--fp-brand);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fp-brand) 14%, transparent);
    font-weight: 700;
}

.catalog-filter-button-count {
    min-width: 1.35rem;
    padding: .08rem .32rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--fp-brand) 7%, var(--fp-soft));
    color: var(--fp-muted);
    text-align: center;
    font-size: .68rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.catalog-filter-buttons .btn-check:checked + .catalog-filter-button .catalog-filter-button-count {
    background: color-mix(in srgb, var(--fp-brand) 17%, var(--fp-surface));
    color: var(--fp-brand);
}

.catalog-filter-mode-badge {
    flex: 0 0 auto;
    padding: .16rem .42rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--fp-brand) 9%, var(--fp-surface));
    color: var(--fp-brand);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

/* Keep the dropdown indicator at the physical right edge. The opt-in
   customizable-select experiment from v2.23.1b is deliberately bypassed for
   normal .form-select controls because current implementations can place the
   picker indicator inconsistently. */
select.form-select:not([multiple]) {
    -webkit-appearance: none !important;
    appearance: none !important;
    padding-right: 2.65rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' viewBox='0 0 16 12'%3E%3Cpath fill='none' stroke='%23667D86' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3 4 5 5 5-5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right .82rem center !important;
    background-size: 1rem .75rem !important;
}

@media (max-width: 991.98px) {
    .filters-sticky {
        position: static;
        padding-bottom: 0;
    }
}


/* v2.23.3: cart table geometry + compact one-line layout upload */
.cart-table {
    width: 100%;
    min-width: 820px;
    table-layout: fixed;
}

.cart-table .cart-col-product { width: 55%; }
.cart-table .cart-col-quantity { width: 15%; }
.cart-table .cart-col-price { width: 13%; }
.cart-table .cart-col-total { width: 13%; }
.cart-table .cart-col-remove { width: 4%; }

.cart-table > :not(caption) > * > * {
    padding: .95rem .7rem;
}

.cart-table thead th {
    vertical-align: bottom;
    white-space: nowrap;
}

.cart-table tbody td {
    vertical-align: top;
}

.cart-product-cell {
    min-width: 0;
}

.cart-product-main {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    min-width: 0;
}

.cart-product-main > :last-child {
    min-width: 0;
    flex: 1 1 auto;
}

.cart-quantity-cell .form-control {
    width: 100%;
    min-width: 0;
}

.cart-money-cell,
.cart-remove-cell {
    padding-top: 1.1rem !important;
}

.cart-remove-cell {
    text-align: center;
}

.cart-layout-inline {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    padding: .45rem .5rem;
    border: 1px solid var(--fp-line);
    border-radius: .72rem;
    background: color-mix(in srgb, var(--fp-surface-alt) 72%, var(--fp-surface));
}

.cart-layout-inline-title {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    flex: 0 0 auto;
    white-space: nowrap;
}

.cart-layout-attached {
    display: flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
}

.cart-layout-file-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    min-width: 0;
    max-width: 12rem;
    padding: .3rem .42rem;
    border: 1px solid color-mix(in srgb, var(--fp-success) 25%, var(--fp-line));
    border-radius: .55rem;
    background: color-mix(in srgb, var(--fp-success) 8%, var(--fp-surface));
    color: var(--fp-ink-2);
    font-size: .76rem;
    line-height: 1.1;
}

.cart-layout-file-chip-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-layout-file-remove {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--fp-danger);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.cart-layout-file-remove:hover,
.cart-layout-file-remove:focus-visible {
    background: color-mix(in srgb, var(--fp-danger) 10%, transparent);
    outline: none;
}

.cart-layout-dropzone-inline {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 10.5rem;
    border-style: solid;
    border-radius: .62rem;
    overflow: hidden;
    background: var(--fp-surface);
}

.cart-layout-dropzone-inline .cart-layout-dropzone-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .38rem;
    min-height: 2.25rem;
    padding: .35rem .62rem;
    color: var(--fp-brand);
    pointer-events: none;
    white-space: nowrap;
}

.cart-layout-dropzone-inline .cart-layout-dropzone-copy i {
    font-size: .95rem;
}

.cart-layout-dropzone-inline .cart-layout-dropzone-copy strong {
    font-size: .8rem;
}

.cart-layout-dropzone-inline .cart-layout-dropzone-copy span {
    color: var(--fp-muted);
    font-size: .7rem;
}

.cart-layout-file-list-inline {
    display: none !important;
}

.cart-layout-inline-help {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    color: var(--fp-muted);
    font-size: .72rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .cart-table {
        min-width: 760px;
    }

    .cart-layout-inline-help {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .cart-layout-inline {
        flex-wrap: wrap;
    }
}


/* v2.23.4 — Appearance theme selector + public dark theme ---------------- */
.appearance-theme-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.appearance-theme-choice {
    display: grid;
    grid-template-columns: auto 4.25rem minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    padding: .8rem;
    border: 1px solid var(--fp-line);
    border-radius: .9rem;
    background: var(--fp-surface);
    cursor: pointer;
}

.appearance-theme-choice:has(.form-check-input:checked) {
    border-color: var(--fp-brand);
    box-shadow: 0 0 0 .18rem color-mix(in srgb, var(--fp-brand) 12%, transparent);
}

.appearance-theme-choice small {
    display: block;
    margin-top: .18rem;
    color: var(--fp-muted);
    line-height: 1.25;
}

.appearance-theme-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: .55rem 1.15rem;
    gap: .2rem;
    width: 4.25rem;
    padding: .45rem;
    border: 1px solid var(--fp-line);
    border-radius: .65rem;
}

.appearance-theme-preview i:first-child { grid-column: 1 / -1; }
.appearance-theme-preview i { display:block; border-radius:.2rem; }
.appearance-theme-preview-light { background:#f3f6f7; }
.appearance-theme-preview-light i:first-child { background:#142933; }
.appearance-theme-preview-light i:nth-child(2) { background:#fff; }
.appearance-theme-preview-light i:nth-child(3) { background:#d5e0e4; }
.appearance-theme-preview-dark { background:#0b1216; border-color:#2b3d44; }
.appearance-theme-preview-dark i:first-child { background:#78bcd0; }
.appearance-theme-preview-dark i:nth-child(2) { background:#111c21; }
.appearance-theme-preview-dark i:nth-child(3) { background:#2b3d44; }

/* Public dark theme is activated from site_public_theme_head(). Admin pages
   stay light because they never receive data-fp-theme="dark". */
html[data-fp-theme="dark"] body {
    background:
        radial-gradient(circle at 88% 0%, rgb(120 188 208 / .055), transparent 28rem),
        var(--fp-bg);
}

html[data-fp-theme="dark"] .bg-white,
html[data-fp-theme="dark"] .bg-light {
    background-color: var(--fp-surface) !important;
}

html[data-fp-theme="dark"] .text-dark,
html[data-fp-theme="dark"] .link-dark {
    color: var(--fp-ink) !important;
}

html[data-fp-theme="dark"] .text-bg-light {
    color: var(--fp-ink-2) !important;
    background-color: var(--fp-soft) !important;
    border-color: var(--fp-line) !important;
}

html[data-fp-theme="dark"] .border,
html[data-fp-theme="dark"] .border-top,
html[data-fp-theme="dark"] .border-bottom,
html[data-fp-theme="dark"] .border-start,
html[data-fp-theme="dark"] .border-end {
    border-color: var(--fp-line) !important;
}

html[data-fp-theme="dark"] .card,
html[data-fp-theme="dark"] .modal-content,
html[data-fp-theme="dark"] .dropdown-menu,
html[data-fp-theme="dark"] .list-group-item {
    color: var(--fp-ink);
    background-color: var(--fp-surface);
    border-color: var(--fp-line);
}

html[data-fp-theme="dark"] .table {
    --bs-table-color: var(--fp-ink);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--fp-line);
    --bs-table-striped-color: var(--fp-ink);
    --bs-table-striped-bg: rgb(255 255 255 / .025);
    --bs-table-hover-color: var(--fp-ink);
    --bs-table-hover-bg: rgb(120 188 208 / .055);
}

html[data-fp-theme="dark"] .form-control,
html[data-fp-theme="dark"] .form-select,
html[data-fp-theme="dark"] .input-group-text {
    --bs-body-bg: var(--fp-surface);
    --bs-body-color: var(--fp-ink);
}

html[data-fp-theme="dark"] {
    --fp-control-bg: color-mix(in srgb, var(--fp-surface) 92%, var(--fp-soft));
    --fp-control-bg-hover: color-mix(in srgb, var(--fp-surface) 78%, var(--fp-soft));
    --fp-control-shadow: 0 .16rem .5rem rgb(0 0 0 / .20);
    --fp-control-shadow-focus: 0 0 0 .22rem color-mix(in srgb, var(--fp-brand) 22%, transparent), 0 .35rem 1rem rgb(0 0 0 / .28);
    --fp-button-shadow: 0 .28rem .7rem rgb(0 0 0 / .26);
    --catalog-shadow: 0 .8rem 2.2rem rgb(0 0 0 / .26);
}

html[data-fp-theme="dark"] .btn-outline-secondary {
    --bs-btn-color: var(--fp-ink-2);
    --bs-btn-border-color: var(--fp-line-strong);
    --bs-btn-hover-color: var(--fp-ink);
    --bs-btn-hover-bg: var(--fp-soft);
    --bs-btn-hover-border-color: var(--fp-brand-2);
}

html[data-fp-theme="dark"] .navbar-toggler-icon {
    filter: invert(1) grayscale(1) brightness(1.7);
}
/* Factor Print v2.59.0 — єдина сітка сторінок і композиція блоків; CSS Snapshot 2026. */


html[data-fp-theme="dark"] .catalog-sidebar-panel,
html[data-fp-theme="dark"] .catalog-toolbar,
html[data-fp-theme="dark"] .home-category-card,
html[data-fp-theme="dark"] .product-gallery,
html[data-fp-theme="dark"] .product-summary,
html[data-fp-theme="dark"] .cart-layout-upload-line {
    border-color: var(--fp-line);
}

@media (max-width: 575.98px) {
    .appearance-theme-grid { grid-template-columns: 1fr; }
}

html[data-fp-theme="dark"] :where(
    .category-nav-image,
    .product-main-image,
    .gallery-thumb,
    .related-product-row img,
    .quote-product-thumbnail,
    .order-approval-card,
    .search-suggestions,
    .home-text-block,
    .home-latest-media
) {
    background: var(--fp-surface) !important;
}

html[data-fp-theme="dark"] :where(
    .account-invoice-toggle,
    .order-number-toggle,
    .account-order-toggle
) {
    color: var(--fp-ink) !important;
}

html[data-fp-theme="dark"] .account-vertical-tabs .nav-link:hover {
    color: var(--fp-ink);
    border-color: var(--fp-line);
    background: var(--fp-soft);
}

html[data-fp-theme="dark"] .account-vertical-tabs .nav-link.active,
html[data-fp-theme="dark"] .public-page-menu-link:hover,
html[data-fp-theme="dark"] .public-page-menu-link.active {
    color: var(--fp-brand-contrast, #fff);
    background: var(--fp-brand);
}

html[data-fp-theme="dark"] .account-vertical-tabs .nav-link.active .badge {
    color: #fff !important;
}

html[data-fp-theme="dark"] .file-dropzone,
html[data-fp-theme="dark"] .messaging-thread {
    background: var(--fp-surface-alt);
    border-color: var(--fp-line-strong);
}

html[data-fp-theme="dark"] .file-dropzone-file,
html[data-fp-theme="dark"] .message-bubble {
    background: var(--fp-surface);
    border-color: var(--fp-line);
}

html[data-fp-theme="dark"] .message-bubble-user,
html[data-fp-theme="dark"] .messaging-list-card .list-group-item.active {
    background: var(--fp-brand);
    border-color: var(--fp-brand);
    color: #fff;
}

html[data-fp-theme="dark"] .message-bubble-system {
    background: var(--fp-soft);
}

html[data-fp-theme="dark"] .search-suggestions {
    box-shadow: 0 .75rem 2rem rgb(0 0 0 / .34);
}

html[data-fp-theme="dark"] .page-link {
    background: var(--fp-surface);
    color: var(--fp-ink);
}

html[data-fp-theme="dark"] .page-item.active .page-link {
    color: var(--fp-brand-contrast, #fff);
    background: var(--fp-brand);
}

/* v2.24.1: configurable public navigation menu */
.public-site-menu {
    position: relative;
    z-index: 1030;
    background: var(--fp-surface, #fff);
    border-color: var(--fp-line, #d5e0e4) !important;
}

.public-site-menu-inner {
    min-height: 46px;
    display: flex;
    align-items: stretch;
}

.public-site-menu-desktop {
    display: flex;
    align-items: stretch;
    gap: .15rem;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
}

.public-site-menu-item {
    position: relative;
    display: flex;
    align-items: center;
}

.public-site-menu-link {
    display: inline-flex;
    align-items: center;
    min-height: 45px;
    padding: .55rem .85rem;
    border-radius: .65rem;
    color: var(--fp-ink-2, #29434e);
    font-size: .9rem;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .16s ease, color .16s ease;
}

.public-site-menu-item.has-children > .public-site-menu-link {
    padding-right: 1.95rem;
}

.public-site-menu-link:hover,
.public-site-menu-link:focus-visible,
.public-site-menu-item.is-active > .public-site-menu-link {
    color: var(--fp-brand-contrast, #fff);
    background: var(--fp-brand, #142933);
    outline: none;
}

.public-site-menu-chevron {
    position: absolute;
    right: .7rem;
    top: 50%;
    width: .45rem;
    height: .45rem;
    border-right: 1.7px solid currentColor;
    border-bottom: 1.7px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
    transition: transform .16s ease;
}

.public-site-menu-item:hover .public-site-menu-chevron,
.public-site-menu-item:focus-within .public-site-menu-chevron {
    transform: translateY(-35%) rotate(225deg);
}

.public-site-submenu {
    position: absolute;
    top: calc(100% + .25rem);
    left: 0;
    min-width: 230px;
    max-width: 360px;
    padding: .45rem;
    border: 1px solid var(--fp-line, #d5e0e4);
    border-radius: .85rem;
    background: var(--fp-surface, #fff);
    box-shadow: 0 .9rem 2rem rgb(20 41 51 / .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-.35rem);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.public-site-menu-item:hover > .public-site-submenu,
.public-site-menu-item:focus-within > .public-site-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.public-site-submenu-link {
    display: block;
    padding: .65rem .75rem;
    border-radius: .6rem;
    color: var(--fp-ink, #142933);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 550;
}

.public-site-submenu-link:hover,
.public-site-submenu-link:focus-visible,
.public-site-submenu-link.active {
    color: var(--fp-brand, #142933);
    background: var(--fp-soft, #eef3f5);
    outline: none;
}

.public-site-menu-mobile-toggle {
    display: none;
    align-items: center;
    gap: .65rem;
    margin: .35rem 0;
    padding: .5rem .75rem;
    border: 0;
    border-radius: .65rem;
    color: var(--fp-ink, #142933);
    background: transparent;
    font-weight: 700;
}

.public-site-menu-hamburger {
    display: grid;
    gap: 3px;
    width: 19px;
}
.public-site-menu-hamburger i {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.public-site-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1084;
    background: rgb(0 0 0 / .42);
    opacity: 0;
    transition: opacity .2s ease;
}
.public-site-menu-backdrop.is-open { opacity: 1; }

.public-site-menu-drawer {
    position: fixed;
    z-index: 1085;
    top: 0;
    left: 0;
    right: auto;
    width: min(88vw, 390px);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--fp-surface, #fff);
    border-right: 1px solid var(--fp-line, #d5e0e4);
    border-left: 0;
    box-shadow: 1rem 0 2.5rem rgb(0 0 0 / .18);
    transform: translateX(-104%);
    visibility: hidden;
    transition: transform .22s ease, visibility .22s ease;
}
.public-site-menu-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.public-site-menu-drawer-head {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--fp-line, #d5e0e4);
    font-size: 1.05rem;
}
.public-site-menu-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--fp-ink, #142933);
    background: var(--fp-soft, #eef3f5);
    font-size: 1.7rem;
    line-height: 1;
}
.public-site-menu-mobile-list {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .75rem;
}
.public-site-menu-mobile-item {
    border-bottom: 1px solid var(--fp-line, #d5e0e4);
}
.public-site-menu-mobile-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}
.public-site-menu-mobile-row > a,
.public-site-menu-mobile-submenu a {
    display: block;
    color: var(--fp-ink, #142933);
    text-decoration: none;
    font-weight: 650;
}
.public-site-menu-mobile-row > a { padding: .85rem .45rem; }
.public-site-menu-mobile-row > button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: .6rem;
    color: var(--fp-ink, #142933);
    background: transparent;
}
.public-site-menu-mobile-row > button span {
    display: inline-block;
    font-size: 1.25rem;
    transition: transform .16s ease;
}
.public-site-menu-mobile-row > button[aria-expanded="true"] span { transform: rotate(180deg); }
.public-site-menu-mobile-item.is-active > .public-site-menu-mobile-row > a,
.public-site-menu-mobile-submenu a.active { color: var(--fp-brand, #142933); }
.public-site-menu-mobile-submenu {
    display: none;
    padding: 0 0 .55rem .75rem;
}
.public-site-menu-mobile-submenu.is-open { display: grid; gap: .15rem; }
.public-site-menu-mobile-submenu a {
    padding: .65rem .75rem;
    border-radius: .55rem;
    font-weight: 550;
    background: var(--fp-soft, #eef3f5);
}
body.public-site-menu-open { overflow: hidden; }

@media (max-width: 991.98px) {
    .public-site-menu-inner { min-height: 45px; }
    .public-site-menu-desktop { display: none; }
    .public-site-menu-mobile-toggle { display: inline-flex; }
}

@media (min-width: 992px) {
    .public-site-menu-backdrop,
    .public-site-menu-drawer { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    .public-site-menu-drawer,
    .public-site-menu-backdrop,
    .public-site-submenu,
    .public-site-menu-chevron { transition: none; }
}

/* Admin builder for the public menu. */
.site-menu-builder-list,
.site-menu-builder-children {
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: .65rem;
}
.site-menu-builder-list { display: grid; gap: .65rem; }
.site-menu-builder-children {
    display: grid;
    gap: .5rem;
    margin: .55rem 0 0 2.1rem;
    padding-left: .75rem;
    border-left: 2px solid var(--fp-line, #d5e0e4);
}
.site-menu-builder-item {
    border: 1px solid var(--fp-line, #d5e0e4);
    border-radius: .8rem;
    background: #fff;
}
.site-menu-builder-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem;
}
.site-menu-builder-drag {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid var(--fp-line, #d5e0e4);
    border-radius: .55rem;
    background: #fff;
    cursor: grab;
    color: var(--fp-muted, #667d86);
}
.site-menu-builder-drag:active { cursor: grabbing; }
.site-menu-builder-copy { min-width: 0; flex: 1 1 auto; }
.site-menu-builder-copy strong,
.site-menu-builder-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-menu-builder-copy small { color: var(--fp-muted, #667d86); }
.site-menu-sortable-ghost { opacity: .35; }

/* v2.25 — Knowledge base / Support */
.support-page-shell {
    min-height: calc(100vh - 120px);
    background: var(--fp-bg, #f3f6f7);
    padding-bottom: 3rem;
}
.support-section-tabs-wrap {
    background: var(--fp-bg, #f3f6f7);
    padding-top: 1rem;
}
.support-section-tabs,
.support-subsection-tabs {
    display: flex;
    align-items: stretch;
    gap: 1px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    border-bottom: 1px solid var(--fp-line, #d5e0e4);
}
.support-section-tab,
.support-subsection-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 50px;
    padding: .75rem 1.35rem;
    color: var(--fp-muted, #667d86);
    background: var(--fp-surface, #fff);
    border: 0;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    font-weight: 650;
    letter-spacing: .01em;
    transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.support-section-tab:hover,
.support-subsection-tab:hover {
    color: var(--fp-ink, #142933);
    background: color-mix(in srgb, var(--fp-surface, #fff) 90%, var(--fp-brand, #142933) 10%);
}
.support-section-tab.active,
.support-subsection-tab.active {
    color: #fff;
    background: var(--fp-brand, #142933);
    border-bottom-color: var(--fp-brand, #142933);
}
.support-subsection-tabs-wrap {
    background: var(--fp-bg, #f3f6f7);
    padding-top: 1.25rem;
}
.support-subsection-tabs {
    background: var(--fp-surface, #fff);
}
.support-subsection-tab {
    min-height: 48px;
    background: transparent;
    border-bottom-width: 2px;
}
.support-content-container {
    padding-top: 1.1rem;
}
.support-layout {
    display: grid;
    grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
    min-height: 560px;
    background: var(--fp-surface, #fff);
    border: 1px solid var(--fp-line, #d5e0e4);
    box-shadow: 0 8px 28px rgba(20, 41, 51, .06);
}
.support-article-nav {
    min-width: 0;
    background: color-mix(in srgb, var(--fp-surface, #fff) 92%, var(--fp-ink, #142933) 8%);
    border-right: 1px solid var(--fp-line, #d5e0e4);
}
.support-article-nav-title {
    padding: 1.2rem 1.35rem;
    background: color-mix(in srgb, var(--fp-ink, #142933) 68%, var(--fp-surface, #fff) 32%);
    color: #fff;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.support-article-links {
    display: flex;
    flex-direction: column;
}
.support-article-link {
    display: block;
    padding: 1.05rem 1.35rem;
    color: var(--fp-muted, #667d86);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--fp-line, #d5e0e4) 78%, transparent);
    line-height: 1.35;
    transition: color .16s ease, background-color .16s ease, padding-left .16s ease;
}
.support-article-link:hover {
    color: var(--fp-ink, #142933);
    background: color-mix(in srgb, var(--fp-brand, #142933) 5%, var(--fp-surface, #fff));
}
.support-article-link.active {
    color: var(--fp-ink, #142933);
    background: var(--fp-surface, #fff);
    font-weight: 750;
    box-shadow: inset 4px 0 0 var(--fp-brand, #142933);
}
.support-article-panel {
    min-width: 0;
    padding: clamp(1.5rem, 3.5vw, 3rem);
    color: var(--fp-ink, #142933);
}
.support-article-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--fp-line, #d5e0e4);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}
.support-article-header h1 {
    margin: 0;
    color: var(--fp-heading, #142933);
    font-weight: 800;
    line-height: 1.18;
}
.support-article-updated {
    flex: 0 0 auto;
    color: var(--fp-muted, #667d86);
    font-size: .82em;
    padding-top: .35rem;
}
.support-article-content {
    max-width: 1050px;
    line-height: 1.72;
}
.support-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: .75rem;
}
.support-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.support-article-content th,
.support-article-content td {
    padding: .65rem .8rem;
    border: 1px solid var(--fp-line, #d5e0e4);
    vertical-align: top;
}
.support-attachments {
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--fp-line, #d5e0e4);
}
.support-attachment-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: .75rem;
}
.support-attachment-card {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .85rem 1rem;
    border: 1px solid var(--fp-line, #d5e0e4);
    border-radius: .8rem;
    background: color-mix(in srgb, var(--fp-surface, #fff) 95%, var(--fp-brand, #142933) 5%);
    color: var(--fp-ink, #142933);
    text-decoration: none;
}
.support-attachment-card:hover {
    border-color: color-mix(in srgb, var(--fp-brand, #142933) 35%, var(--fp-line, #d5e0e4));
    background: color-mix(in srgb, var(--fp-surface, #fff) 90%, var(--fp-brand, #142933) 10%);
}
.support-attachment-icon {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: .65rem;
    background: var(--fp-brand, #142933);
    color: #fff;
}
.support-attachment-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.support-attachment-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.support-attachment-copy small { color: var(--fp-muted, #667d86); }
.support-admin-files { display: grid; gap: .5rem; }
.support-admin-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .65rem .75rem;
    border: 1px solid var(--fp-line, #d5e0e4);
    border-radius: .65rem;
}
.support-admin-file > span:first-child { min-width: 0; display: flex; flex-direction: column; }
.support-admin-file strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-admin-file small { color: var(--fp-muted, #667d86); }

@media (max-width: 991.98px) {
    .support-layout { grid-template-columns: 1fr; min-height: 0; }
    .support-article-nav { border-right: 0; border-bottom: 1px solid var(--fp-line, #d5e0e4); }
    .support-article-links { flex-direction: row; overflow-x: auto; }
    .support-article-link { flex: 0 0 auto; max-width: 270px; border-bottom: 0; border-right: 1px solid var(--fp-line, #d5e0e4); }
    .support-article-link.active { box-shadow: inset 0 -4px 0 var(--fp-brand, #142933); }
    .support-article-panel { padding: 1.5rem; }
}
@media (max-width: 575.98px) {
    .support-section-tabs-wrap { padding-top: .5rem; }
    .support-section-tab,.support-subsection-tab { min-height: 44px; padding: .65rem .9rem; }
    .support-content-container { padding-left: .75rem; padding-right: .75rem; }
    .support-layout { border-radius: .75rem; overflow: hidden; }
    .support-article-header { display: block; }
    .support-article-updated { margin-top: .5rem; }
}

/* v2.25.3: search settings in Appearance. */
.search-setting-choice {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: .9rem 1rem;
    margin-bottom: .65rem;
    border: 1px solid var(--fp-line, var(--bs-border-color));
    border-radius: .85rem;
    background: var(--fp-surface, #fff);
    cursor: pointer;
}
.search-setting-choice:has(input:checked) {
    border-color: color-mix(in srgb, var(--fp-brand, #142933) 55%, var(--fp-line, #d5e0e4));
    background: color-mix(in srgb, var(--fp-brand, #142933) 5%, var(--fp-surface, #fff));
}
.search-setting-choice .form-check-input { flex: 0 0 auto; margin-top: .18rem; }
.search-setting-choice span { min-width: 0; display: grid; gap: .12rem; }
.search-setting-choice strong { color: var(--fp-ink, #142933); }
.search-setting-choice small { color: var(--fp-muted, #667d86); line-height: 1.35; }


/* v2.26.2 — keep the production-pricing editor inside the admin viewport. */
.production-pricing-page main,
.production-pricing-page .row > *,
.production-pricing-page .card,
.production-pricing-page .card-body {
    min-width: 0;
}

.production-pricing-page .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.production-pricing-page :where(.form-control, .form-select) {
    min-width: 0;
    max-width: 100%;
}

.production-pricing-page select.form-select[multiple] {
    width: 100%;
    overflow-x: hidden;
}

.production-pricing-page select.form-select[multiple] option {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.production-pricing-page .zone-row,
.production-pricing-page .modifier-row {
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .production-pricing-page .card-body {
        padding: 1rem !important;
    }

    .production-pricing-page .d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: .75rem;
    }
}


/* v2.26.5 — scroll long production-pricing create modals inside the viewport. */
.production-pricing-page .modal-dialog-scrollable .production-pricing-modal-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: calc(100dvh - 1rem);
    overflow: hidden;
}

.production-pricing-page .modal-dialog-scrollable .production-pricing-modal-form > .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.production-pricing-page .modal-dialog-scrollable .production-pricing-modal-form > :is(.modal-header, .modal-footer) {
    flex: 0 0 auto;
}

@media (min-width: 576px) {
    .production-pricing-page .modal-dialog-scrollable .production-pricing-modal-form {
        max-height: calc(100dvh - 3.5rem);
    }
}

/* v2.48.13 — кнопка довідки закріплена в нижньому правому куті на всіх ширинах. CSS Snapshot 2026. */
.admin-help-fab {
    position: fixed;
    right: 1rem;
    top: auto;
    bottom: 1rem;
    z-index: 1035;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 46px;
    padding: .55rem .7rem .55rem .65rem;
    margin-left: 0 !important;
    border: 1px solid var(--fp-line);
    border-right: 1px solid var(--fp-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .96);
    color: #142933;
    text-decoration: none;
    box-shadow: 0 .45rem 1.4rem rgba(20, 41, 51, .12);
    backdrop-filter: blur(10px);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.admin-help-fab:hover,
.admin-help-fab.is-active {
    color: #142933;
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 .65rem 1.7rem rgba(20, 41, 51, .16);
}

.admin-help-fab-icon {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    background: #142933;
    color: #fff;
    font-weight: 800;
    line-height: 1;
}

.admin-help-fab-label {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    font-weight: 700;
    transition: max-width .18s ease, opacity .18s ease;
}

.admin-help-fab:hover .admin-help-fab-label,
.admin-help-fab:focus-visible .admin-help-fab-label,
.admin-help-fab.is-active .admin-help-fab-label {
    max-width: 100px;
    opacity: 1;
}

.admin-help-content {
    min-width: 0;
}

.help-hero {
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 15%, rgba(20, 41, 51, .08), transparent 31%),
        #fff;
}

.help-kicker {
    display: inline-flex;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: rgba(20, 41, 51, .08);
    color: #142933;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.help-search-wrap {
    position: relative;
}

.help-search-wrap > span {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fp-muted);
    font-size: 1.2rem;
    pointer-events: none;
}

.help-search-wrap .form-control {
    min-height: 48px;
    padding-left: 2.5rem;
    border-radius: .8rem;
}

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

.help-manual-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 132px;
    padding: 1.25rem;
    border: 1px solid var(--fp-line);
    border-radius: 1rem;
    background: #fff;
    color: #142933;
    text-decoration: none;
    box-shadow: 0 .35rem 1.2rem rgba(20, 41, 51, .05);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.help-manual-card:hover {
    color: #142933;
    transform: translateY(-2px);
    border-color: rgba(20, 41, 51, .25);
    box-shadow: 0 .65rem 1.8rem rgba(20, 41, 51, .1);
}

.help-manual-card-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: .9rem;
    background: #142933;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
}

.help-manual-card-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: .35rem;
}

.help-manual-card-body strong {
    font-size: 1.05rem;
}

.help-manual-card-body small,
.help-manual-meta {
    color: var(--fp-muted);
}

.help-manual-meta {
    margin-top: .2rem;
    font-size: .76rem;
}

.help-manual-arrow {
    font-size: 1.35rem;
    transition: transform .16s ease;
}

.help-manual-card:hover .help-manual-arrow {
    transform: translateX(3px);
}

.help-search-empty {
    padding: 2rem;
    margin-top: 1rem;
    border: 1px dashed var(--fp-line);
    border-radius: 1rem;
    color: var(--fp-muted);
    text-align: center;
}

.help-empty-icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(20, 41, 51, .08);
    color: #142933;
    font-size: 1.75rem;
    font-weight: 800;
}

.help-reader-layout {
    display: grid;
    grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.help-reader-sidebar {
    min-width: 0;
}

.help-reader-sidebar-card {
    position: sticky;
    top: 6.5rem;
    max-height: none;
    overflow: visible;
    padding: 1rem;
    border: 1px solid var(--fp-line);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 .3rem 1rem rgba(20, 41, 51, .04);
}

.help-reader-docs,
.help-reader-toc {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.help-reader-docs a,
.help-reader-toc a {
    padding: .5rem .6rem;
    border-radius: .55rem;
    color: var(--fp-muted);
    text-decoration: none;
    font-size: .9rem;
    line-height: 1.35;
}

.help-reader-docs a:hover,
.help-reader-toc a:hover {
    color: #142933;
    background: rgba(20, 41, 51, .05);
}

.help-reader-docs a.active {
    color: #142933;
    background: rgba(20, 41, 51, .09);
    font-weight: 800;
}

.help-reader-toc a.level-3 { padding-left: 1rem; font-size: .84rem; }
.help-reader-toc a.level-4 { padding-left: 1.4rem; font-size: .8rem; }

.help-reader-article {
    min-width: 0;
}

.help-reader-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--fp-line);
    color: var(--fp-muted);
    font-size: .82rem;
}

.help-markdown {
    max-width: 900px;
    color: #142933;
    line-height: 1.72;
}

.help-markdown .help-manual-title {
    margin: 0 0 1.5rem;
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    line-height: 1.12;
}

.help-markdown h2,
.help-markdown h3,
.help-markdown h4,
.help-markdown h5,
.help-markdown h6 {
    scroll-margin-top: 7rem;
    margin-top: 2.25rem;
    margin-bottom: .9rem;
    line-height: 1.25;
}

.help-markdown h2 { font-size: 1.55rem; }
.help-markdown h3 { font-size: 1.2rem; }
.help-markdown h4 { font-size: 1.05rem; }

.help-markdown p,
.help-markdown ul,
.help-markdown ol {
    margin-bottom: 1rem;
}

.help-markdown li + li {
    margin-top: .35rem;
}

.help-markdown code {
    padding: .12rem .38rem;
    border-radius: .35rem;
    background: rgba(20, 41, 51, .07);
    color: #142933;
    font-size: .88em;
}

.help-manual-table-wrap {
    margin: 1.25rem 0 1.5rem;
    border: 1px solid var(--fp-line);
    border-radius: .8rem;
}

.help-manual-table {
    margin: 0;
}

.help-manual-table th {
    background: rgba(20, 41, 51, .045);
    white-space: nowrap;
}

@media (max-width: 1199.98px) {
    .help-manual-grid { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
    .admin-help-fab {
        top: auto;
        right: .75rem;
        bottom: .75rem;
        border-right: 1px solid var(--fp-line);
        border-radius: 999px;
        padding-right: .65rem;
    }

    .admin-help-fab-label { display: none; }
    .admin-help-fab:hover,
    .admin-help-fab.is-active { transform: translateY(-2px); }

    .help-reader-layout { grid-template-columns: 1fr; }
    .help-reader-sidebar-card {
        position: static;
        max-height: none;
    }
    .help-reader-toc { display: none; }
}

@media (max-width: 575.98px) {
    .help-manual-card {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }
    .help-manual-arrow { display: none; }
}

/* v2.26.7 — Zone ↔ Operation price coefficients. */
.production-pricing-page .production-zone-operation-grid {
    max-height: 18rem;
    overflow: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: .65rem;
    background: var(--bs-body-bg);
}

.production-pricing-page .production-zone-operation-grid thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--bs-tertiary-bg);
    box-shadow: inset 0 -1px 0 var(--bs-border-color);
}

.production-pricing-page .production-zone-operation-grid td,
.production-pricing-page .production-zone-operation-grid th {
    vertical-align: middle;
}

.production-pricing-page .zone-operation-coefficient {
    min-width: 7rem;
}

/* v2.26.8 — Superadmin manual editor in Admin Help. */
.help-reader-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.help-manual-editor {
    min-width: 0;
}

.help-manual-editor-textarea {
    min-height: clamp(28rem, 66vh, 56rem);
    resize: vertical;
    padding: 1rem 1.1rem;
    border-radius: .85rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: .9rem;
    line-height: 1.55;
    tab-size: 4;
    white-space: pre-wrap;
}

.help-manual-editor-textarea:focus {
    border-color: rgba(20, 41, 51, .45);
    box-shadow: 0 0 0 .2rem rgba(20, 41, 51, .08);
}

.help-manual-editor-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--fp-line);
}

@media (max-width: 575.98px) {
    .help-reader-meta {
        align-items: flex-start;
    }

    .help-reader-actions,
    .help-manual-editor-footer > .d-flex {
        width: 100%;
    }

    .help-reader-actions .btn,
    .help-manual-editor-footer > .d-flex .btn {
        flex: 1 1 auto;
    }

    .help-manual-editor-textarea {
        min-height: 60vh;
    }
}


/* Release v2.27 — manager module */
.application-double-sided-legacy { min-width: 0; max-width: 100%; }
.application-double-sided-legacy .form-check-label {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    max-width: calc(100% - 2.5rem);
    white-space: normal;
    overflow-wrap: anywhere;
}
.application-double-sided-legacy .application-legacy-help {
    margin-left: 0;
    padding-left: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}
.manager-client-card { overflow: hidden; }
.manager-client-card .manager-client-avatar {
    width: 5.25rem;
    height: 5.25rem;
    border-radius: 1rem;
    object-fit: cover;
    background: var(--bs-tertiary-bg);
    flex: 0 0 auto;
}
.manager-client-card .manager-client-avatar-placeholder {
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    color: var(--bs-secondary-color);
}
.manager-stat-card { height: 100%; }
.manager-stat-value { font-size: clamp(1.55rem, 2vw, 2.2rem); font-weight: 700; line-height: 1.05; }
.manager-table-avatar { width: 2.35rem; height: 2.35rem; border-radius: .7rem; object-fit: cover; background: var(--bs-tertiary-bg); }
.manager-profile-preview { max-width: 8rem; max-height: 8rem; object-fit: cover; border-radius: 1rem; }
@media (max-width: 575.98px) {
    .manager-client-card .manager-client-avatar { width: 4.25rem; height: 4.25rem; }
}

/* v2.27 manager workspace */
.manager-admin-avatar,
.manager-avatar-placeholder {
    width: 3.25rem;
    height: 3.25rem;
    flex: 0 0 3.25rem;
    border-radius: .9rem;
    object-fit: cover;
    background: var(--bs-tertiary-bg);
}
.manager-admin-avatar-lg,
.manager-avatar-placeholder {
    width: 4.5rem;
    height: 4.5rem;
    flex-basis: 4.5rem;
}
.manager-avatar-placeholder {
    display: grid;
    place-items: center;
    color: var(--bs-secondary-color);
    font-size: 1.25rem;
}
.manager-mini-stat {
    height: 100%;
    padding: .9rem 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .9rem;
    background: var(--bs-tertiary-bg);
}
.manager-mini-stat strong,
.manager-mini-stat span { display: block; }
.manager-mini-stat strong { font-size: 1.15rem; }
.manager-mini-stat span { margin-top: .2rem; font-size: .78rem; color: var(--bs-secondary-color); }
.manager-mini-stat.is-danger { border-color: rgba(220,53,69,.35); }
.manager-dashboard-metric { transition: transform .15s ease, box-shadow .15s ease; }
.manager-dashboard-metric:hover { transform: translateY(-2px); }
.manager-client-row,
.manager-task-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 0;
    border-top: 1px solid var(--bs-border-color);
    text-decoration: none;
    color: inherit;
}
.manager-client-row:first-of-type,
.manager-task-row:first-of-type { border-top: 0; }
.manager-client-row span,
.manager-task-row div { min-width: 0; }
.manager-client-row strong,
.manager-client-row small,
.manager-task-row strong,
.manager-task-row small { display: block; }
.manager-task-row.is-overdue { color: var(--bs-danger); }
.gap-x-4 { column-gap: 1.5rem !important; }

/* v2.27.1 — keep the selected catalog category readable in dark theme. */
html[data-fp-theme="dark"] .catalog-menu-all.active,
html[data-fp-theme="dark"] .catalog-menu-link.active {
    background: var(--fp-brand);
    color: var(--fp-brand-contrast, #fff);
}

html[data-fp-theme="dark"] .catalog-menu-all.active .catalog-menu-count,
html[data-fp-theme="dark"] .catalog-menu-link.active .catalog-menu-count {
    background: rgb(255 255 255 / .18);
    color: #fff;
}

/* v2.27.6: featured production services on the catalog home page. */
.home-service-grid { display:grid; grid-template-columns:1fr; gap:1rem; }
.home-service-card { display:grid; grid-template-columns:104px minmax(0,1fr) auto; align-items:center; gap:1rem; min-width:0; padding:1rem; color:inherit; text-decoration:none; background:var(--fp-surface); border:1px solid var(--fp-line); border-radius:1rem; transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.home-service-card:hover { color:inherit; transform:translateY(-2px); border-color:var(--fp-brand); box-shadow:0 .75rem 1.75rem rgba(20,41,51,.09); }
.home-service-image { width:104px; height:104px; display:grid; place-items:center; overflow:hidden; border-radius:.85rem; background:var(--fp-soft); }
.home-service-image img { width:100%; height:100%; object-fit:contain; padding:.35rem; }
.home-service-image i { font-size:2rem; color:var(--fp-muted); }
.home-service-copy { display:flex; min-width:0; flex-direction:column; gap:.35rem; }
.home-service-name { color:var(--fp-heading); font-size:1.05rem; line-height:1.25; }
.home-service-description { color:var(--fp-muted); font-size:.9rem; line-height:1.35; }
.home-service-price { color:var(--fp-heading); font-weight:700; }
.home-service-arrow { color:var(--fp-muted); font-size:1.4rem; padding:.5rem; }
@media (min-width: 768px) { .home-service-grid { grid-template-columns:repeat(var(--home-service-columns-tablet,2),minmax(0,1fr)); } }
@media (min-width: 1200px) { .home-service-grid { grid-template-columns:repeat(var(--home-service-columns,2),minmax(0,1fr)); } }
@media (max-width: 575.98px) { .home-service-card { grid-template-columns:82px minmax(0,1fr) auto; gap:.75rem; padding:.8rem; } .home-service-image { width:82px; height:82px; } .home-service-description { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; } }


/* v2.59.2.1 — product work examples without image underlay. CSS Snapshot 2026. */
.work-example-tile{position:relative;overflow:hidden;border-radius:14px;background:transparent;aspect-ratio:1/1;box-shadow:none}
.work-example-tile img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s ease}
.work-example-tile:hover img,.work-example-tile:focus img{transform:scale(1.035)}

/* v2.30b — product card template block settings. */
.product-summary.product-summary-static{position:static;top:auto}
.product-template-gallery.thumbs-left,.product-template-gallery.thumbs-right{display:grid;grid-template-columns:var(--fp-gallery-thumb-size,88px) minmax(0,1fr);gap:.75rem;align-items:start}
.product-template-gallery.thumbs-right{grid-template-columns:minmax(0,1fr) var(--fp-gallery-thumb-size,88px)}
.product-template-gallery.thumbs-right .product-gallery-main{order:1}.product-template-gallery.thumbs-right .gallery-thumbs{order:2}
.product-template-gallery.thumbs-left .gallery-thumbs,.product-template-gallery.thumbs-right .gallery-thumbs{display:flex;flex-direction:column;gap:.55rem;max-height:min(72vh,720px);overflow:auto;overscroll-behavior:contain;padding-right:.15rem}
.product-template-gallery.thumbs-left .gallery-thumb,.product-template-gallery.thumbs-right .gallery-thumb{width:var(--fp-gallery-thumb-size,88px);min-width:var(--fp-gallery-thumb-size,88px)}
.product-template-gallery.thumbs-bottom .gallery-thumbs{grid-template-columns:repeat(auto-fit,minmax(min(var(--fp-gallery-thumb-size,88px),100%),var(--fp-gallery-thumb-size,88px)));justify-content:start}
.property-compact-card{padding:.9rem 1rem;border:1px solid var(--fp-line);border-radius:.8rem;background:var(--fp-surface)}
.property-compact-key{color:var(--fp-muted);font-size:.78rem;margin-bottom:.2rem}.property-compact-value{color:var(--fp-ink);font-weight:650;overflow-wrap:anywhere}
.work-example-fit-cover img{object-fit:cover}.work-example-fit-contain img{object-fit:contain;padding:.4rem;background:var(--fp-surface)}
@media(max-width:767.98px){.product-template-gallery.thumbs-left,.product-template-gallery.thumbs-right{display:block}.product-template-gallery.thumbs-left .gallery-thumbs,.product-template-gallery.thumbs-right .gallery-thumbs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(var(--fp-gallery-thumb-size,88px),100%),var(--fp-gallery-thumb-size,88px)));max-height:none;overflow:visible;margin-top:.75rem}.product-template-gallery.thumbs-left .gallery-thumb,.product-template-gallery.thumbs-right .gallery-thumb{width:auto;min-width:0}}

/* v2.30.2 — reusable informational blocks. */
.information-block{margin:0}.information-block--standard{padding:0}.information-block-title{color:inherit}.information-block-content>:last-child{margin-bottom:0}.information-block-content img{max-width:100%;height:auto}.information-block-content table{max-width:100%}.homepage-information-blocks .information-block+.information-block{margin-top:1rem}.product-template-information-block .information-block{margin-bottom:0}

/* v2.30.4: calculator can be rendered directly inside the product-card template. */
.calculator-inline-mount {
    width: 100%;
}

.calculator-inline-wrapper {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    background: transparent !important;
}

.calculator-inline-wrapper .modal-dialog,
.calculator-inline-wrapper .quote-modal-dialog {
    width: 100%;
    max-width: none;
    margin: 0;
    transform: none !important;
}

.calculator-inline-wrapper .modal-content,
.calculator-inline-wrapper .quote-modal-content {
    border: 1px solid var(--fp-line) !important;
    border-radius: 1rem;
    box-shadow: none;
}

.calculator-inline-wrapper .modal-header,
.calculator-inline-wrapper .modal-body,
.calculator-inline-wrapper .modal-footer {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .calculator-inline-wrapper .modal-header,
    .calculator-inline-wrapper .modal-body,
    .calculator-inline-wrapper .modal-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* v2.30.5: full-screen product-card preview must ignore the admin content offset. */
.admin-main-nav-wrap ~ #templatePreviewModal {
    margin-left: 0 !important;
    padding-left: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
}
#templatePreviewModal .modal-dialog.modal-fullscreen {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
}
#templatePreviewModal .modal-content {
    width: 100%;
    min-height: 100vh;
}

/* v2.30.7: size-chart modal must live above its backdrop and fit the chart content. */
.product-size-chart-modal{z-index:1065}
.product-size-chart-modal-dialog{width:max-content;max-width:calc(100vw - 2rem);margin-left:auto;margin-right:auto}
.product-size-chart-modal-dialog .modal-content{width:auto;min-width:min(560px,calc(100vw - 2rem));max-width:min(1200px,calc(100vw - 2rem))}
.product-size-chart-modal .modal-body{overflow:auto}
.product-size-chart-modal .product-size-chart-inner{width:max-content;max-width:100%;margin-inline:auto}
.product-size-chart-modal .size-chart-table-wrap{display:flex;justify-content:center;max-width:100%}
.product-size-chart-modal .size-chart-table{width:auto;min-width:max-content;margin-inline:auto}
@media(max-width:575.98px){.product-size-chart-modal-dialog{width:calc(100vw - 1rem);max-width:calc(100vw - 1rem);margin:.5rem auto}.product-size-chart-modal-dialog .modal-content{min-width:0;max-width:100%;width:100%}}

/* v2.31.8 — configurable SVG status icons, status spoilers and cart layout rows. */
.status-custom-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    object-fit: contain;
    vertical-align: -.125em;
    flex: 0 0 auto;
}

.status-settings-spoiler {
    overflow: clip;
}

.status-settings-summary {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem .9rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.status-settings-summary::-webkit-details-marker {
    display: none;
}

.status-settings-summary::after {
    content: "";
    width: .55rem;
    height: .55rem;
    margin-left: .15rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .18s ease;
    opacity: .65;
}

.status-settings-spoiler[open] > .status-settings-summary::after {
    transform: rotate(225deg);
}

.status-settings-summary-icon,
.status-icon-preview {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    border: 1px solid var(--fp-line);
    border-radius: .55rem;
    background: var(--fp-surface);
}

.status-settings-summary-icon .status-custom-icon,
.status-icon-preview .status-custom-icon {
    width: 1.2rem;
    height: 1.2rem;
}

.status-settings-summary-copy {
    display: grid;
    min-width: 0;
    line-height: 1.15;
}

.status-settings-summary-copy small {
    margin-top: .2rem;
    color: var(--fp-muted);
    font-size: .72rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-settings-summary-badges {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .35rem;
    margin-left: auto;
}

.cart-layout-row > td {
    padding-top: 0 !important;
    padding-bottom: 1rem !important;
    border-top: 0;
}

.cart-layout-panel {
    display: grid;
    gap: .8rem;
    padding: .85rem;
    border: 1px solid var(--fp-line);
    border-radius: .8rem;
    background: color-mix(in srgb, var(--fp-surface-alt) 70%, var(--fp-surface));
}

.cart-layout-file-line,
.cart-layout-url-line {
    display: grid;
    grid-template-columns: minmax(9.5rem, 18%) minmax(0, 1fr);
    gap: .9rem;
    align-items: center;
}

.cart-layout-url-line {
    align-items: start;
    padding-top: .8rem;
    border-top: 1px solid var(--fp-line);
}

.cart-layout-section-label {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
}

.cart-layout-file-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    min-width: 0;
}

.cart-layout-url-control {
    min-width: 0;
}

.cart-layout-url-control .input-group {
    width: 100%;
}

@media (max-width: 767.98px) {
    .status-settings-summary-badges {
        display: none;
    }

    .cart-layout-file-line,
    .cart-layout-url-line {
        grid-template-columns: 1fr;
        gap: .5rem;
    }
}

/* v2.32 managed product badges */
.product-badge-stack {
    position: absolute;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .38rem;
    max-width: calc(100% - 1.5rem);
    pointer-events: none;
}
.product-badge-stack.badge-pos-top_left { left: .75rem; top: .75rem; }
.product-badge-stack.badge-pos-top_right { right: .75rem; top: .75rem; align-items: flex-end; }
.product-badge-stack.badge-pos-bottom_left { left: .75rem; bottom: .75rem; }
.product-badge-stack.badge-pos-bottom_right { right: .75rem; bottom: .75rem; align-items: flex-end; }
.product-media .product-badge-stack.badge-pos-top_left,
.product-media .product-badge-stack.badge-pos-top_right { top: 2.9rem; }
.product-badge-inline {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .65rem;
}
.product-managed-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 1.8rem;
    padding: .3rem .65rem;
    max-width: 100%;
    background: var(--badge-bg, var(--fp-default-badge-bg));
    color: var(--badge-text, var(--fp-default-badge-text));
    border: 1px solid var(--badge-border, var(--badge-bg, var(--fp-default-badge-bg)));
    box-shadow: 0 .35rem 1rem rgb(20 41 51 / .13);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .01em;
    white-space: nowrap;
}
.product-managed-badge.badge-style-pill { border-radius: 999px; }
.product-managed-badge.badge-style-rounded { border-radius: .6rem; }
.product-managed-badge.badge-style-square { border-radius: .15rem; }
.product-managed-badge.badge-style-outline { background: transparent; color: var(--badge-bg, var(--fp-ink)); box-shadow: none; border-width: 2px; }
.product-managed-badge.badge-style-soft { background: color-mix(in srgb, var(--badge-bg, #142933) 12%, white); color: var(--badge-bg, #142933); border-color: color-mix(in srgb, var(--badge-bg, #142933) 22%, white); box-shadow: none; }
.product-managed-badge i { font-size: .9em; }
.product-main-image { position: relative; overflow: hidden; }
.home-builder-section + .home-builder-section { margin-top: 2.5rem; }
.home-builder-column.card { height: 100%; }

/* v2.32.1 category badges and homepage builder additions */
.home-category-card { position: relative; overflow: hidden; }
.home-category-card .product-badge-stack { z-index: 3; }
.home-category-card .product-badge-inline { justify-content: center; }
.home-category-card .product-managed-badge { max-width: 100%; }
.home-custom-html { min-width: 0; }
.home-custom-html img,
.home-custom-html video { max-width: 100%; height: auto; }
.home-catalog-search { max-width: 64rem; margin-inline: auto; }
.homepage-faq details > summary { cursor: pointer; list-style: none; }
.homepage-faq details > summary::-webkit-details-marker { display: none; }

/* v2.32.3: customer order context menu is portalled to <body>.
   This keeps it outside .table-responsive so opening the menu never creates
   an extra scrollbar inside the orders table. */
.account-order-actions-menu {
    display: none;
    position: fixed !important;
    top: 0;
    left: 0;
    right: auto !important;
    min-width: 285px;
    max-width: min(360px, calc(100vw - 16px));
    z-index: 1090;
}
.account-order-actions-menu.is-open {
    display: block;
}
.account-order-actions-menu .dropdown-item {
    white-space: normal;
}

/* v2.33 — property-value images in product details. */
.property-value-media-list {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    align-items: center;
}
.property-value-media {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    padding: .35rem .55rem .35rem .35rem;
    border: 1px solid var(--fp-line);
    border-radius: .75rem;
    background: var(--fp-surface);
    box-shadow: 0 .18rem .55rem rgb(20 41 51 / .04);
}
.property-value-media-thumb {
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: .58rem;
    background: var(--fp-surface-alt);
}
.property-value-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.property-value-media-label {
    min-width: 0;
    font-weight: 650;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

/* v2.33 — CSS Snapshot 2026: quantity distribution surface. */
.quantity-distributions {
    container-type: inline-size;
}
.quantity-distributions-heading {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .7rem;
    color: var(--fp-muted);
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.quantity-distributions-heading::after {
    content: "";
    height: 1px;
    flex: 1 1 auto;
    background: var(--fp-line);
}
.quantity-distributions-stack {
    display: grid;
    gap: 1rem;
}
.quantity-distribution-panel {
    --distribution-accent: var(--fp-brand);
    position: relative;
    overflow: clip;
    padding: clamp(.9rem, 2.4cqi, 1.25rem);
    border: 1px solid var(--fp-line);
    border-radius: clamp(1rem, 2.2cqi, 1.35rem);
    background:
        radial-gradient(circle at 100% 0%, rgb(20 41 51 / .055), transparent 15rem),
        var(--fp-surface);
    box-shadow: 0 .7rem 2.2rem rgb(20 41 51 / .065);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.quantity-distribution-panel.is-complete {
    border-color: color-mix(in srgb, var(--fp-success) 40%, var(--fp-line));
}
.quantity-distribution-panel.has-error {
    border-color: color-mix(in srgb, var(--fp-danger) 42%, var(--fp-line));
}
.quantity-distribution-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}
.quantity-distribution-title {
    color: var(--fp-heading);
    font-size: clamp(1rem, 2.4cqi, 1.18rem);
    font-weight: 800;
    line-height: 1.15;
    text-wrap: balance;
}
.quantity-distribution-rules {
    display: flex;
    flex-wrap: wrap;
    gap: .42rem;
    margin-top: .55rem;
}
.quantity-distribution-rules > span {
    display: inline-flex;
    gap: .28rem;
    align-items: baseline;
    padding: .28rem .5rem;
    border: 1px solid var(--fp-line);
    border-radius: 999px;
    background: rgb(255 255 255 / .66);
    color: var(--fp-muted);
    font-size: .72rem;
    line-height: 1.1;
}
.quantity-distribution-rules strong {
    color: var(--fp-ink);
    font-weight: 750;
}
.quantity-distribution-meter {
    min-width: 8.8rem;
    text-align: right;
}
.quantity-distribution-meter-value {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: .25rem;
    color: var(--fp-muted);
    font-variant-numeric: tabular-nums;
}
.quantity-distribution-meter-value strong {
    color: var(--fp-heading);
    font-size: 1.3rem;
    font-weight: 850;
}
.quantity-distribution-meter-value small {
    margin-left: .12rem;
    font-size: .68rem;
}
.quantity-distribution-progress {
    height: .42rem;
    margin-top: .42rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--fp-soft-strong);
}
.quantity-distribution-progress > span {
    --distribution-progress: 0%;
    display: block;
    width: var(--distribution-progress);
    height: 100%;
    border-radius: inherit;
    background: var(--distribution-accent);
    transition: width .18s ease;
}
.quantity-distribution-panel.is-complete .quantity-distribution-progress > span {
    background: var(--fp-success);
}
.quantity-distribution-remaining {
    min-height: 1.05rem;
    margin-top: .35rem;
    color: var(--fp-muted);
    font-size: .72rem;
}
.quantity-distribution-panel.is-auto-expanded .quantity-distribution-remaining {
    color: var(--fp-info);
    font-weight: 700;
}
.quantity-distribution-auto-note {
    display: flex;
    gap: .55rem;
    align-items: flex-start;
    margin: -.15rem 0 1rem;
    padding: .58rem .7rem;
    border-radius: .75rem;
    background: color-mix(in srgb, var(--fp-info-bg) 72%, transparent);
    color: var(--fp-info);
    font-size: .78rem;
    line-height: 1.35;
}
.quantity-distribution-auto-note i {
    margin-top: .12rem;
}
.quantity-distribution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.75rem), 1fr));
    gap: .72rem;
}
.quantity-distribution-option {
    container-type: inline-size;
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: .65rem;
    padding: .65rem;
    border: 1px solid var(--fp-line);
    border-radius: .95rem;
    background: rgb(255 255 255 / .84);
    box-shadow: 0 .22rem .8rem rgb(20 41 51 / .045);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.quantity-distribution-option:hover {
    transform: translateY(-1px);
    border-color: var(--fp-line-strong);
    box-shadow: 0 .45rem 1rem rgb(20 41 51 / .075);
}
.quantity-distribution-option.is-selected {
    border-color: color-mix(in srgb, var(--fp-brand) 54%, var(--fp-line));
    background: color-mix(in srgb, var(--fp-soft) 52%, white);
    box-shadow: 0 0 0 2px rgb(20 41 51 / .06), 0 .5rem 1.2rem rgb(20 41 51 / .08);
}
.quantity-distribution-option.is-selected::after {
    content: "✓";
    position: absolute;
    top: .52rem;
    right: .52rem;
    display: grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: var(--fp-brand);
    color: var(--fp-brand-contrast, #fff);
    font-size: .72rem;
    font-weight: 850;
    box-shadow: 0 .2rem .55rem rgb(20 41 51 / .18);
}
.quantity-distribution-image {
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: .72rem;
    background: linear-gradient(145deg, var(--fp-surface-alt), var(--fp-soft));
}
.quantity-distribution-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .32rem;
    display: block;
}
.quantity-distribution-option-body {
    min-width: 0;
}
.quantity-distribution-option-name {
    color: var(--fp-heading);
    font-weight: 750;
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}
.quantity-distribution-surcharge {
    width: fit-content;
    margin-top: .38rem;
    padding: .22rem .43rem;
    border-radius: 999px;
    background: var(--fp-warning-bg);
    color: var(--fp-warning);
    font-size: .68rem;
    font-weight: 750;
    line-height: 1.1;
}
.quantity-distribution-surcharge.is-empty {
    background: var(--fp-soft);
    color: var(--fp-muted);
    font-weight: 600;
}
.quantity-distribution-stepper {
    display: grid;
    grid-template-columns: 2.15rem minmax(0, 1fr) 2.15rem;
    align-items: stretch;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--fp-line);
    border-radius: .72rem;
    background: var(--fp-surface);
}
.quantity-distribution-stepper button,
.quantity-distribution-stepper input {
    min-width: 0;
    height: 2.3rem;
    border: 0;
    background: transparent;
    color: var(--fp-ink);
}
.quantity-distribution-stepper button {
    display: grid;
    place-items: center;
    font-size: 1.08rem;
    font-weight: 750;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.quantity-distribution-stepper button:hover {
    background: var(--fp-soft);
}
.quantity-distribution-stepper input {
    width: 100%;
    padding: .3rem .2rem;
    border-inline: 1px solid var(--fp-line);
    text-align: center;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    appearance: textfield;
}
.quantity-distribution-stepper input::-webkit-inner-spin-button,
.quantity-distribution-stepper input::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}
.quantity-distribution-stepper:focus-within {
    border-color: var(--fp-brand);
    box-shadow: 0 0 0 .2rem rgb(20 41 51 / .09);
}
.quantity-distribution-error {
    margin-top: .75rem;
    padding: .62rem .75rem;
    border-radius: .72rem;
    background: var(--fp-danger-bg);
    color: var(--fp-danger);
    font-size: .8rem;
    font-weight: 650;
}
@container (max-width: 31rem) {
    .quantity-distribution-head {
        grid-template-columns: 1fr;
    }
    .quantity-distribution-meter {
        min-width: 0;
        text-align: left;
    }
    .quantity-distribution-meter-value {
        justify-content: flex-start;
    }
}
@media (max-width: 575.98px) {
    .quantity-distribution-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .55rem;
    }
    .quantity-distribution-option {
        padding: .5rem;
        border-radius: .82rem;
    }
    .quantity-distribution-image {
        aspect-ratio: 1 / 1;
    }
}
@media (prefers-reduced-motion: reduce) {
    .quantity-distribution-panel,
    .quantity-distribution-option,
    .quantity-distribution-progress > span {
        transition: none;
    }
}

/* v2.33.1 — configurable columns and uncropped attribute artwork. */
.quantity-distribution-grid.is-fixed-columns {
    grid-template-columns: repeat(var(--distribution-columns, 3), minmax(0, 1fr));
}
.quantity-distribution-image { min-width: 0; aspect-ratio: auto; height: clamp(6rem, 15vw, 11rem); overflow: visible; }
.quantity-distribution-image img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain !important; object-position: center; padding: .45rem; }
@container (max-width: 42rem) {
    .quantity-distribution-grid.is-fixed-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 21rem) {
    .quantity-distribution-grid.is-fixed-columns { grid-template-columns: minmax(0, 1fr); }
}

/* v2.33.2: images in catalog cards always display in full, never crop or zoom. */
.catalog-grid .product-media img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center;
    transform: none !important;
}

/* A separate summary displays variants without counting the amounts twice. */
.quote-distribution-summary:not(:empty) {
    border-block: 1px solid var(--fp-line);
    margin-block: .55rem;
    padding-block: .35rem;
}
.quote-distribution-summary .quote-row { min-width: 0; }
.quote-distribution-summary .quote-row > span { min-width: 0; overflow-wrap: anywhere; }
.quote-distribution-subtotal { background: var(--fp-surface-alt); font-weight: 700; }

/* On mobile the action icons stay on the first row, search occupies the second. */
@media (max-width: 991.98px) {
    .site-header .navbar > .container-xxl {
        display: flex;
        flex-wrap: wrap !important;
        justify-content: space-between;
        align-items: center;
        column-gap: .35rem !important;
        row-gap: .55rem !important;
    }
    .site-header .navbar > .container-xxl > .navbar-brand {
        order: 0;
        flex: 0 1 auto;
        min-width: 0;
        max-width: 32%;
    }
    .site-header .navbar > .container-xxl > .catalog-search {
        order: 10 !important;
        flex: 1 0 100% !important;
        width: 100%;
        max-width: none;
        min-width: 0;
        margin-inline: 0;
    }
    .site-header .navbar > .container-xxl > .catalog-search ~ * { order: 1; }
    .site-header .navbar > .container-xxl > .header-user,
    .site-header .navbar > .container-xxl > .d-flex {
        min-width: 0;
        flex: 0 0 auto;
        gap: .14rem !important;
        flex-wrap: nowrap !important;
        white-space: nowrap;
    }
    .site-header .catalog-search .input-group,
    .site-header .catalog-search .form-control { min-width: 0; }
}
@media (max-width: 575.98px) {
    .site-header .brand-company-logo { max-width: 100px; max-height: 38px; }
    .site-header .brand-copy strong { font-size: .76rem; }
    .site-header .brand-lockup { gap: .25rem; }
    .site-header .brand-symbol { width: 2rem; }
    .site-header .header-icon-link,
    .site-header .header-icon-link.cart-icon-link {
        flex: 0 0 1.85rem;
        min-width: 1.85rem;
        width: 1.85rem;
        min-height: 2rem;
        height: 2rem;
        padding: .2rem;
    }
    .site-header .header-account-link { margin-right: 0; }
    .site-header .header-user-id { display: none; }
    .site-header .catalog-menu-mobile-button { width: 2rem; min-width: 2rem; height: 2rem; }
    .site-header .navbar > .container-xxl > .navbar-brand { max-width: 35%; }
    .site-header .search-group .btn { padding-inline: .6rem !important; }

    /* 2 columns even when the distribution is inside a narrow inline calculator. */
    .quantity-distribution-panel { min-width: 0; padding: .45rem; overflow: hidden; }
    .quantity-distributions, .quantity-distributions-stack, .quantity-distribution-grid { min-width: 0; }
    .quantity-distribution-grid,
    .quantity-distribution-grid.is-fixed-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: .4rem;
    }
    .quantity-distribution-option {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: .35rem;
        padding: .35rem;
        border-radius: .65rem;
        overflow: hidden;
    }
    .quantity-distribution-image {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        height: clamp(4.3rem, 20vw, 6rem);
        overflow: hidden;
        aspect-ratio: auto;
        border-radius: .45rem;
    }
    .quantity-distribution-image img { padding: .16rem; width: 100%; height: 100%; object-fit: contain !important; }
    .quantity-distribution-option-name { font-size: .76rem; }
    .quantity-distribution-surcharge { max-width: 100%; font-size: .62rem; line-height: 1.25; white-space: normal; }
    .quantity-distribution-stepper {
        margin-top: auto;
        width: 100%;
        min-width: 0;
        grid-template-columns: minmax(1.45rem, 28%) minmax(0, 1fr) minmax(1.45rem, 28%);
    }
    .quantity-distribution-stepper button,
    .quantity-distribution-stepper input {
        min-width: 0;
        width: 100%;
        height: 2rem;
        font-size: .77rem;
        padding-inline: 0;
    }
    .quantity-distribution-option.is-selected::after { width: 1rem; height: 1rem; top: .28rem; right: .28rem; font-size: .6rem; }
}


/* v2.33.4: constrain artwork to the actual media box, not grid auto-row intrinsic size. */
.catalog-grid .product-media,
.home-section .product-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}
.catalog-grid .product-media > img,
.home-section .product-media > img {
    position: absolute;
    inset: 0;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    padding: clamp(.4rem, 2vw, .9rem);
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
}
/* The option artwork is a fitted thumbnail; its parent never clips the source photo. */
.quantity-distribution-option .quantity-distribution-image {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    overflow: hidden;
}
.quantity-distribution-option .quantity-distribution-image > img {
    position: absolute;
    inset: 0;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: .25rem;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
}
@media (max-width: 575.98px) {
    .quantity-distribution-option .quantity-distribution-image {
        height: auto;
        aspect-ratio: 1 / 1;
        max-height: 8rem;
    }
    .quantity-distribution-option .quantity-distribution-image > img { padding: .12rem; }
}


/* Factor Print v2.34.1 — CSS Snapshot 2026 / financial documents. */
.fp-finance-docs { --fp-doc-ink: var(--fp-ink, #142933); --fp-doc-line: var(--fp-line, #d5e0e4); --fp-doc-paper: var(--fp-surface, #fff); }
.fp-finance-docs .fp-doc-hero {
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1.5rem;
  padding:clamp(1.4rem,3vw,2.5rem); color:#fff; border-radius:1.25rem;
  background:linear-gradient(125deg,#142933 0%,#244653 74%,#365c6a 100%);
  box-shadow:0 18px 42px rgb(20 41 51 / .16);
}
.fp-finance-docs .fp-doc-hero h1 { color:#fff; letter-spacing:-.035em; }
.fp-doc-card { overflow:hidden; border:1px solid var(--fp-line,#d5e0e4); border-radius:1.1rem; background:var(--fp-surface,#fff); box-shadow:0 8px 30px rgb(20 41 51 / .045); }
.fp-doc-card .card-body { background:var(--fp-surface,#fff); }
.fp-doc-eyebrow { color:var(--fp-info,#35697a); letter-spacing:.12em; text-transform:uppercase; font-size:.72rem; font-weight:800; margin-bottom:.65rem; }
.fp-doc-order-list { display:grid; gap:.5rem; max-height:320px; overflow:auto; padding:.2rem; }
.fp-doc-order-row { display:flex; gap:.85rem; align-items:center; padding:.8rem .95rem; background:var(--fp-surface-alt,#f8fafb); border:1px solid var(--fp-line,#d5e0e4); border-radius:.75rem; cursor:pointer; transition:border-color .16s ease,box-shadow .16s ease; }
.fp-doc-order-row:hover, .fp-doc-order-row:focus-within { border-color:var(--fp-brand-3,#365c6a); box-shadow:0 0 0 3px rgb(54 92 106 / .1); }
.fp-doc-order-row input[type=checkbox] { width:1.2rem; height:1.2rem; flex:none; accent-color:var(--fp-brand,#142933); }
.fp-finance-docs .btn { border-radius:.7rem; font-weight:650; }
.fp-finance-docs .form-control:focus, .fp-finance-docs .form-select:focus { border-color:var(--fp-brand-3,#365c6a); box-shadow:0 0 0 .2rem rgb(54 92 106 / .12); }
@media (max-width: 575.98px) { .fp-finance-docs .fp-doc-hero { padding:1.25rem; } .fp-doc-order-row { flex-wrap:wrap; } .fp-finance-docs .fp-doc-hero .btn { width:100%; } }
@media (prefers-reduced-motion:reduce) { .fp-doc-order-row { transition:none; } }
/* CSS Snapshot 2026 · v2.34.2: bank matching / distribution */
.fp-finance-docs .fp-bank-meta {display:grid;grid-template-columns:minmax(115px,150px) minmax(0,1fr);gap:.35rem 1rem;font-size:.9rem;overflow-wrap:anywhere;}
.fp-bank-meta dt {color:var(--bs-secondary-color,#62717b);font-weight:500;}
.fp-bank-meta dd {margin:0;font-weight:600;}
.fp-bank-clip {max-width:38rem;overflow-wrap:anywhere;}
.fp-finance-docs .fp-bank-suggestion {background:var(--fp-surface-alt,#f8fafb);border:1px solid var(--fp-line,#d5e0e4);padding:1.1rem;border-radius:1rem;}
.fp-finance-docs .fp-bank-total {display:flex;flex-wrap:wrap;justify-content:space-between;gap:.7rem;border-radius:.85rem;background:var(--fp-brand,#142933);color:var(--fp-brand-contrast,#fff);padding:1rem 1.15rem;}
.fp-finance-docs .fp-bank-distribution-form .fp-bank-amount {min-width:135px;max-width:175px;}
@media(max-width:575.98px){.fp-finance-docs .fp-bank-meta{grid-template-columns:1fr;gap:.1rem;}.fp-finance-docs .fp-bank-meta dd{margin-bottom:.5rem;}}

/* Factor Print v2.34.3 · CSS Snapshot 2026 · Finance automation */
.fp-finance-automation{--fp-auto-radius:22px;--fp-auto-soft:color-mix(in srgb,var(--bs-primary) 7%,var(--bs-body-bg));}
.fp-auto-hero{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;padding:1.6rem 1.75rem;border-radius:var(--fp-auto-radius);background:linear-gradient(135deg,#142933 0%,#214653 100%);color:#fff;box-shadow:0 18px 48px rgba(20,41,51,.16)}
.fp-auto-state{display:flex;flex-direction:column;align-items:flex-end;gap:.5rem;text-align:right}.fp-auto-state small{max-width:280px;color:rgba(255,255,255,.72)}
.fp-auto-card{border:1px solid color-mix(in srgb,var(--bs-border-color) 78%,transparent);border-radius:var(--fp-auto-radius);box-shadow:0 12px 36px rgba(20,41,51,.055);overflow:hidden}
.fp-auto-card .card-body{background:linear-gradient(180deg,color-mix(in srgb,var(--bs-body-bg) 98%,#fff),var(--bs-body-bg))}
.fp-auto-switch{padding:1rem 1rem 1rem 3.25rem;border:1px solid var(--bs-border-color);border-radius:16px;background:var(--fp-auto-soft)}
.fp-auto-switch .form-check-input{width:2.5rem;height:1.35rem;margin-left:-2.5rem}.fp-auto-switch label{display:flex;flex-direction:column;gap:.2rem}.fp-auto-switch label span{font-size:.84rem;color:var(--bs-secondary-color)}
.fp-auto-client{display:grid;gap:.15rem;padding:1rem;border-radius:16px;background:var(--fp-auto-soft);border:1px solid color-mix(in srgb,var(--bs-primary) 14%,var(--bs-border-color))}.fp-auto-client span{font-size:.875rem;color:var(--bs-secondary-color)}
@media(max-width:767.98px){.fp-auto-hero{align-items:flex-start;flex-direction:column}.fp-auto-state{align-items:flex-start;text-align:left}}

/* Factor Print v2.34.3.3 · CSS Snapshot 2026 · unified browser PDF and invoice numbering */
.fp-cancel-request{padding:1rem;border:1px solid var(--fp-line,#d5e0e4);border-radius:1rem;background:var(--fp-surface-alt,#f8fafb)}
.account-invoice-cancel>summary{list-style:none;display:inline-flex;align-items:center;cursor:pointer}
.account-invoice-cancel>summary::-webkit-details-marker{display:none}
.account-invoice-cancel[open]>summary{margin-bottom:.25rem}

/* ==========================================================================
   Factor Print v2.34.4 — CSS Snapshot 2026
   Unified public + administration visual layer. Existing page structure stays
   intact; enhanced surfaces are progressive and use the shared design tokens.
   ========================================================================== */

:root {
    --fp-snapshot-radius-xs: .65rem;
    --fp-snapshot-radius-sm: .8rem;
    --fp-snapshot-radius: 1rem;
    --fp-snapshot-radius-lg: 1.35rem;
    --fp-snapshot-shadow: 0 .7rem 2.4rem rgb(20 41 51 / .065);
    --fp-snapshot-shadow-hover: 0 1rem 2.8rem rgb(20 41 51 / .10);
    --fp-snapshot-glass: color-mix(in srgb, var(--fp-surface) 88%, transparent);
    --fp-snapshot-border: color-mix(in srgb, var(--fp-line) 88%, transparent);
    --fp-snapshot-accent-soft: color-mix(in srgb, var(--fp-brand) 8%, var(--fp-surface));
}

body {
    background:
        radial-gradient(circle at 92% -8rem, color-mix(in srgb, var(--fp-brand) 7%, transparent), transparent 30rem),
        linear-gradient(180deg, color-mix(in srgb, var(--fp-bg) 94%, #fff) 0, var(--fp-bg) 26rem);
    color: var(--fp-ink);
}

.site-header .navbar {
    border-color: color-mix(in srgb, var(--fp-line) 78%, transparent) !important;
    background: var(--fp-snapshot-glass) !important;
    box-shadow: 0 .35rem 1.4rem rgb(20 41 51 / .035);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    backdrop-filter: blur(18px) saturate(1.25);
}

:where(main) h1,
:where(main) .h1,
:where(main) .h2 {
    letter-spacing: -.025em;
    text-wrap: balance;
}

:where(main) p,
:where(main) .text-body-secondary {
    text-wrap: pretty;
}

.card {
    border: 1px solid var(--fp-snapshot-border);
    border-radius: var(--fp-snapshot-radius);
    background: color-mix(in srgb, var(--fp-surface) 97%, var(--fp-soft));
    box-shadow: var(--fp-snapshot-shadow);
}

.card-header,
.card-footer {
    border-color: var(--fp-snapshot-border);
    background: color-mix(in srgb, var(--fp-surface) 93%, var(--fp-soft));
}

.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: color-mix(in srgb, var(--fp-soft) 44%, transparent);
    --bs-table-hover-bg: color-mix(in srgb, var(--fp-brand) 4.5%, var(--fp-surface));
    margin-bottom: 0;
}

.table > :not(caption) > * > * {
    padding-block: .82rem;
    padding-inline: .82rem;
    border-bottom-color: color-mix(in srgb, var(--fp-line) 72%, transparent);
    vertical-align: middle;
}

.table > thead > tr > th {
    color: var(--fp-muted);
    background: color-mix(in srgb, var(--fp-soft) 68%, var(--fp-surface));
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .065em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table-responsive {
    border-radius: inherit;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--fp-brand) 26%, transparent) transparent;
}

.alert {
    border-width: 1px;
    border-radius: var(--fp-snapshot-radius-sm);
    box-shadow: 0 .25rem 1rem rgb(20 41 51 / .025);
}

.badge {
    padding: .42em .68em;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .01em;
}

.dropdown-menu,
.popover,
.toast,
.offcanvas,
.modal-content {
    border-color: var(--fp-snapshot-border);
    border-radius: var(--fp-snapshot-radius);
    box-shadow: 0 1.2rem 3.5rem rgb(20 41 51 / .14);
}

.dropdown-menu {
    padding: .45rem;
    background: color-mix(in srgb, var(--fp-surface) 96%, transparent);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.dropdown-item {
    border-radius: .62rem;
    padding-block: .56rem;
}

.pagination {
    gap: .35rem;
}

.page-link {
    min-width: 2.4rem;
    border-radius: .68rem !important;
    border-color: var(--fp-snapshot-border);
    text-align: center;
}

.nav-tabs {
    gap: .35rem;
    padding: .3rem;
    border: 1px solid var(--fp-snapshot-border);
    border-radius: .9rem;
    background: color-mix(in srgb, var(--fp-soft) 58%, var(--fp-surface));
}

.nav-tabs .nav-link {
    border: 0;
    border-radius: .68rem;
    color: var(--fp-muted);
    font-weight: 700;
}

.nav-tabs .nav-link:hover {
    color: var(--fp-ink);
    background: color-mix(in srgb, var(--fp-surface) 84%, transparent);
}

.nav-tabs .nav-link.active {
    color: var(--fp-ink);
    background: var(--fp-surface);
    box-shadow: 0 .18rem .7rem rgb(20 41 51 / .075);
}

/* Administration uses the same Snapshot layer without changing page markup. */
body:has(.admin-main-nav-wrap) main {
    --bs-gutter-x: 1.5rem;
}

body:has(.admin-main-nav-wrap) .admin-main-nav-wrap {
    border-color: var(--fp-snapshot-border);
    background: color-mix(in srgb, var(--fp-surface) 94%, transparent);
    box-shadow: 0 .6rem 2rem rgb(20 41 51 / .055);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

body:has(.admin-main-nav-wrap) .admin-main-nav .nav-link {
    border-radius: .72rem;
    transition: color .16s ease, background-color .16s ease, box-shadow .16s ease, translate .16s ease;
}

body:has(.admin-main-nav-wrap) .admin-main-nav .nav-link:hover {
    translate: 2px 0;
}

body:has(.admin-main-nav-wrap) :where(.card, .settings-panel, .settings-section) {
    border-color: var(--fp-snapshot-border);
}

body:has(.admin-main-nav-wrap) :where(.btn, .form-control, .form-select, .form-check-input) {
    scroll-margin-top: 7rem;
}

body:has(.admin-main-nav-wrap) :where(h1, .h1, .h2) {
    text-wrap: balance;
}

/* Reusable page heading + compact tabs for long administration pages. */
.fp-snapshot-page {
    --fp-snapshot-tab-bg: color-mix(in srgb, var(--fp-soft) 62%, var(--fp-surface));
}

.fp-page-heading,
.fp-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.fp-page-heading {
    padding: .25rem 0;
}

.fp-card-heading {
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--fp-snapshot-border);
    background: color-mix(in srgb, var(--fp-surface) 94%, var(--fp-soft));
}

.fp-page-kicker {
    margin-bottom: .35rem;
    color: var(--fp-info);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.fp-snapshot-tabs {
    display: flex;
    gap: .45rem;
    padding: .38rem;
    overflow-x: auto;
    border: 1px solid var(--fp-snapshot-border);
    border-radius: .95rem;
    background: var(--fp-snapshot-tab-bg);
    box-shadow: 0 .25rem 1rem rgb(20 41 51 / .035);
    scrollbar-width: thin;
}

.fp-snapshot-tab {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: .48rem;
    min-height: 2.55rem;
    padding: .52rem .8rem;
    border: 1px solid transparent;
    border-radius: .7rem;
    color: var(--fp-muted);
    font-size: .88rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.fp-snapshot-tab > span {
    min-width: 1.45rem;
    padding: .08rem .38rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--fp-brand) 7%, var(--fp-surface));
    color: var(--fp-muted);
    font-size: .7rem;
    text-align: center;
}

.fp-snapshot-tab:hover {
    color: var(--fp-ink);
    background: color-mix(in srgb, var(--fp-surface) 75%, transparent);
}

.fp-snapshot-tab.active {
    border-color: color-mix(in srgb, var(--fp-line) 65%, transparent);
    background: var(--fp-surface);
    color: var(--fp-ink);
    box-shadow: 0 .2rem .8rem rgb(20 41 51 / .075);
}

.fp-snapshot-tab.active > span {
    background: var(--fp-brand);
    color: var(--fp-brand-contrast, #fff);
}

.fp-reconcile-block {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--fp-snapshot-border);
    border-radius: .8rem;
    background: color-mix(in srgb, var(--fp-soft) 45%, var(--fp-surface));
}

.fp-code-surface {
    max-height: 28rem;
    margin: .65rem 0 0;
    padding: .85rem;
    overflow: auto;
    border: 1px solid var(--fp-snapshot-border);
    border-radius: .68rem;
    background: color-mix(in srgb, var(--fp-ink) 3.5%, var(--fp-surface));
    white-space: pre-wrap;
}

/* Native dialog = lightweight modal without a second UI framework. */
.fp-snapshot-dialog {
    width: min(1040px, calc(100% - 2rem));
    max-width: none;
    max-height: calc(100% - 2rem);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--fp-snapshot-border);
    border-radius: 1.15rem;
    background: var(--fp-surface);
    color: var(--fp-ink);
    box-shadow: 0 1.5rem 5rem rgb(20 41 51 / .24);
}

.fp-snapshot-dialog::backdrop {
    background: rgb(11 24 30 / .56);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.fp-dialog-shell {
    display: flex;
    max-height: calc(100vh - 2rem);
    flex-direction: column;
}

.fp-dialog-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--fp-snapshot-border);
    background: color-mix(in srgb, var(--fp-surface) 92%, var(--fp-soft));
}

.fp-dialog-body {
    min-height: 0;
    padding: 1.2rem;
    overflow: auto;
    overscroll-behavior: contain;
}

.fp-finance-docs .fp-doc-hero,
.fp-auto-hero {
    border: 1px solid color-mix(in srgb, #fff 10%, transparent);
    box-shadow: 0 1rem 3rem rgb(20 41 51 / .16);
}

.fp-finance-docs .fp-doc-card,
.fp-auto-card {
    box-shadow: var(--fp-snapshot-shadow);
}

@media (hover:hover) and (pointer:fine) {
    .card:has(> a.stretched-link),
    a.card,
    .product-card,
    .home-category-card,
    .home-service-card {
        transition: translate .18s ease, box-shadow .18s ease, border-color .18s ease;
    }

    .card:has(> a.stretched-link):hover,
    a.card:hover,
    .product-card:hover,
    .home-category-card:hover,
    .home-service-card:hover {
        translate: 0 -2px;
        box-shadow: var(--fp-snapshot-shadow-hover);
    }
}

@media (max-width: 767.98px) {
    .fp-page-heading,
    .fp-card-heading,
    .fp-dialog-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .fp-page-heading > .btn,
    .fp-dialog-header > .d-flex {
        width: 100%;
    }

    .fp-dialog-header > .d-flex {
        justify-content: space-between;
    }

    .fp-snapshot-dialog {
        width: calc(100% - 1rem);
        max-height: calc(100% - 1rem);
        border-radius: .9rem;
    }

    .fp-dialog-shell {
        max-height: calc(100vh - 1rem);
    }

    .table > :not(caption) > * > * {
        padding-inline: .68rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
    }

    .fp-snapshot-tab,
    body:has(.admin-main-nav-wrap) .admin-main-nav .nav-link {
        transition: none;
    }
}

/* v2.35 · Media Library · CSS Snapshot 2026 */
.media-library-toolbar{display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(3,minmax(150px,.7fr)) auto;gap:.75rem;align-items:end}.media-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1rem}.media-card{appearance:none;border:1px solid var(--bs-border-color);background:var(--bs-body-bg);border-radius:18px;padding:.55rem;text-align:left;transition:border-color .16s ease,transform .16s ease;min-width:0}.media-card:hover,.media-card:focus-visible{border-color:color-mix(in srgb,var(--bs-body-color) 42%,var(--bs-border-color));transform:translateY(-1px);outline:none}.media-card-thumb{display:block;aspect-ratio:1/1;border-radius:14px;overflow:hidden;background:color-mix(in srgb,var(--bs-secondary-bg) 86%,white);margin-bottom:.65rem}.media-card-thumb img{width:100%;height:100%;object-fit:contain;display:block}.media-card-title{display:block;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-card-meta{display:flex;justify-content:space-between;gap:.5rem;color:var(--bs-secondary-color);font-size:.78rem;margin-top:.25rem}.media-library-dropzone{border:1.5px dashed color-mix(in srgb,var(--bs-border-color) 75%,var(--bs-body-color));border-radius:20px;padding:1.25rem;background:color-mix(in srgb,var(--bs-tertiary-bg) 72%,transparent);text-align:center}.media-library-dropzone.is-dragover{border-color:var(--bs-body-color);background:var(--bs-secondary-bg)}.media-upload-list{display:grid;gap:.5rem;margin-top:1rem}.media-upload-row{display:grid;grid-template-columns:minmax(0,1fr) 90px;gap:.75rem;align-items:center;padding:.65rem .8rem;border:1px solid var(--bs-border-color);border-radius:12px}.media-upload-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-detail-preview{min-height:280px;display:grid;place-items:center;border-radius:18px;background:var(--bs-tertiary-bg);overflow:hidden}.media-detail-preview img{max-width:100%;max-height:460px;object-fit:contain}.media-quality-badge{display:inline-flex;align-items:center;gap:.35rem;border-radius:999px;padding:.35rem .6rem;background:var(--bs-secondary-bg);font-size:.78rem}.media-usage-list{display:grid;gap:.5rem;max-height:220px;overflow:auto}.media-usage-item{padding:.65rem .75rem;border:1px solid var(--bs-border-color);border-radius:12px;background:var(--bs-body-bg)}
.media-picker-dialog{border:0;border-radius:24px;padding:0;width:min(1040px,calc(100% - 2rem));max-width:none;max-height:90vh;overflow:auto;background:var(--bs-body-bg);color:var(--bs-body-color);box-shadow:0 24px 80px rgba(18,36,44,.24)}.media-picker-dialog::backdrop{background:rgba(20,41,51,.48);backdrop-filter:blur(3px)}.media-picker-shell{padding:1rem}.media-picker-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.25rem .25rem 1rem}.media-picker-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,.55fr) auto;gap:.75rem;margin-bottom:.7rem}.media-picker-status{min-height:1.4rem;margin-bottom:.7rem}.media-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.8rem;max-height:min(64vh,680px);overflow:auto;padding:.1rem}.media-picker-item{appearance:none;border:1px solid var(--bs-border-color);background:var(--bs-body-bg);border-radius:16px;padding:.45rem;text-align:left;min-width:0}.media-picker-item:hover,.media-picker-item:focus-visible{border-color:var(--bs-body-color);outline:none}.media-picker-thumb{display:block;aspect-ratio:1/1;border-radius:12px;overflow:hidden;background:var(--bs-tertiary-bg)}.media-picker-thumb img{width:100%;height:100%;object-fit:contain}.media-picker-name{display:block;font-weight:650;font-size:.86rem;margin-top:.45rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-picker-meta{display:block;font-size:.72rem;color:var(--bs-secondary-color);margin-top:.1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:991.98px){.media-library-toolbar{grid-template-columns:1fr 1fr}.media-library-toolbar>*:first-child{grid-column:1/-1}.media-picker-toolbar{grid-template-columns:1fr 1fr}.media-picker-toolbar>*:first-child{grid-column:1/-1}}@media(max-width:575.98px){.media-library-toolbar,.media-picker-toolbar{grid-template-columns:1fr}.media-library-toolbar>*:first-child,.media-picker-toolbar>*:first-child{grid-column:auto}.media-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.media-picker-dialog{width:calc(100% - 1rem);border-radius:18px}.media-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.media-picker-shell{padding:.75rem}}

.cms-featured-media{margin:0;border-radius:20px;overflow:hidden;background:var(--bs-tertiary-bg)}.cms-featured-media img{display:block;width:100%;max-height:640px;object-fit:contain}

/* v2.35.2 · Sortable quantity distribution values */
.distribution-sort-row{transition:border-color .15s ease,background-color .15s ease;cursor:default}.distribution-sort-row.is-dragging{opacity:.58;background:var(--bs-tertiary-bg);border-color:var(--bs-dark)!important}.distribution-drag-handle{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid var(--bs-border-color);border-radius:8px;cursor:grab;user-select:none;background:var(--bs-body-bg)}.distribution-drag-handle:active{cursor:grabbing}

/* Картка товару: компактний блок «Посилання» у стилі CSS Snapshot 2026.
 * Остання зміна: Factor Print v2.36.0.
 */
.product-template-links{min-width:0;margin-block:1.25rem}
.product-template-links-heading{color:var(--fp-heading,var(--fp-ink,#142933));margin-bottom:.85rem}
.fp-card-links-grid{display:grid;grid-template-columns:repeat(var(--fp-links-columns,3),minmax(0,1fr));column-gap:clamp(.65rem,1.4vw,1.15rem);row-gap:.4rem}
.fp-card-link{display:inline-flex;align-items:baseline;gap:.45rem;min-width:0;padding:0;border:0;border-radius:0;background:transparent;color:var(--fp-product-links-color,#142933);text-decoration:underline;text-underline-offset:.2em;font-size:var(--fp-font-product-links,16px);line-height:1.45;font-weight:400;overflow-wrap:anywhere;transition:color .15s ease}
.fp-card-link:hover{background:transparent;color:var(--fp-product-links-color,#142933);text-decoration-thickness:2px}
.fp-card-link:focus-visible{outline:3px solid var(--fp-info,#35697a);outline-offset:3px}
.fp-card-link-icon{color:inherit;flex:0 0 auto;text-align:center;font-size:.85em}
.fp-product-links-modal .modal-content{border:1px solid var(--fp-line,#d5e0e4);border-radius:16px;overflow:hidden}
.fp-product-links-frame{display:block;width:100%;height:min(72vh,760px);border:0;background:#fff}
@media(max-width:991.98px){.fp-card-links-grid{grid-template-columns:repeat(var(--fp-links-columns-tablet,2),minmax(0,1fr))}}
@media(max-width:575.98px){.fp-card-links-grid{grid-template-columns:minmax(0,1fr)}.fp-product-links-frame{height:68vh}.fp-product-links-modal .modal-header{gap:.5rem;flex-wrap:wrap}}

/* Оформлення доставки: вибраний спосіб та всі його параметри в одному блоці.
 * CSS Snapshot 2026 · Остання зміна: Factor Print v2.36.1.
 */
.checkout-delivery-methods{display:flex;flex-direction:column;gap:clamp(.75rem,1.5vw,1rem)}
.checkout-delivery-choice{min-width:0}
.checkout-delivery-choice .delivery-address-option{margin-bottom:0}
.fp-product-links-status{display:grid;place-items:center;min-height:180px;padding:2rem;text-align:center;color:var(--fp-muted,#667d86)}

/* CSS Snapshot 2026 · Сервісні опції під час оформлення замовлення. */
[data-checkout-service] { background: var(--bs-body-bg, #fff); border-color: var(--bs-border-color, #d7e0e7) !important; }
[data-checkout-service]:has([data-service-toggle]:checked) { border-color: var(--bs-primary, #142933) !important; box-shadow: 0 0 0 1px var(--bs-primary, #142933); }
[data-checkout-service] [data-service-fields][hidden] { display: none !important; }
[data-checkout-service] textarea { resize: vertical; }

/* Приватні мініатюри вкладень замовлення · CSS Snapshot 2026 · v2.36.3. */
.order-preview-item{display:flex;align-items:center;gap:.8rem;min-width:0;padding:.55rem 0;border-bottom:1px solid var(--fp-line,#d5e0e4)}
.order-preview-item:last-child{border-bottom:0}
.order-preview-thumbnail{display:block;width:78px;height:78px;object-fit:contain;border:1px solid var(--fp-line,#d5e0e4);border-radius:10px;background:var(--fp-surface,#fff)}
.order-preview-pdf{display:grid;place-items:center;flex:0 0 78px;height:78px;font-size:1.8rem;color:var(--fp-muted,#667d86)}
.order-preview-name{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.checkout-comment-preview>summary{cursor:pointer;list-style:revert;outline-offset:4px}
.checkout-comment-preview>summary:focus-visible{outline:2px solid var(--fp-brand,#142933)}

/* v2.36.10: зображення іконок повністю вписуються у відведену область. */
.home-category-card { min-height: 174px; overflow: visible; }
.home-category-icon { width: min(100%, 128px); height: 112px; flex: 0 0 112px; overflow: visible; box-sizing: border-box; }
.home-category-icon img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; padding: 0; margin: 0; object-fit: contain; object-position: center; box-sizing: border-box; }
.home-service-card { grid-template-columns: 116px minmax(0,1fr) auto; min-height: 148px; overflow: visible; }
.home-service-image { width: 116px; height: 132px; overflow: visible; background: transparent; box-sizing: border-box; }
.home-service-image img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; object-fit: contain; object-position: center; box-sizing: border-box; }
@media (max-width: 575.98px) {
 .home-category-icon { height: 104px; flex-basis: 104px; }
 .home-service-card { grid-template-columns: 92px minmax(0,1fr) auto; min-height: 128px; }
 .home-service-image { width: 92px; height: 112px; }
}

/* Factor Print v2.36.10 — прив’язаний до профілю перегляд макетів; CSS Snapshot 2026. */
.pf-preview summary { cursor:pointer; font-weight:600; padding:.35rem 0; }
.pf-preview-stage { position:relative; display:table; max-width:100%; margin:.6rem 0; border:1px solid var(--fp-line,#dde4eb); border-radius:.55rem; overflow:hidden; background:#fff; }
.pf-preview-img { display:block; max-width:100%; max-height:620px; width:auto; height:auto; object-fit:contain; }
.pf-preview-trim,.pf-preview-safe { position:absolute; pointer-events:none; }
.pf-preview-trim { border:2px solid #f97316; }
.pf-preview-safe { border:2px dashed #16a34a; }
@media(max-width:575.98px){.pf-preview-img{max-height:460px}}

/* Factor Print v2.36.11 — CSS Snapshot 2026: адаптивне JPG/PNG/PDF-прев'ю з рамками по реальних межах відображеного зображення. */
.pf-preview-stage{display:inline-block;width:fit-content;max-width:100%;vertical-align:top;line-height:0;box-sizing:border-box;overflow:hidden}
.pf-preview-stage>.pf-preview-img{display:block;width:auto;height:auto;max-width:100%;max-height:620px;object-fit:contain}
.pf-preview-stage>.pf-preview-trim,.pf-preview-stage>.pf-preview-safe{box-sizing:border-box;z-index:1}
@media(max-width:575.98px){.pf-preview-stage>.pf-preview-img{max-height:460px}}
/* Factor Print v2.36.13 — SVG-напрямні поверх макета; CSS Snapshot 2026. */
.pf-preview-stage > .pf-preview-guides { position:absolute; inset:0; display:block; width:100%; height:100%; pointer-events:none; z-index:2; overflow:visible; }
.pf-preview-stage > .pf-preview-img { vertical-align:top; }

/* Factor Print v2.36.17 — зональні завантаження макетів; CSS Snapshot 2026. */
@layer factor-preflight-zone-upload-2026 {
 .preflight-zone-uploads { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap:clamp(.5rem,1vw,1rem); inline-size:100%; }
 .preflight-zone-upload { min-inline-size:0; background:light-dark(#f8fafc,#1e2932); border-color:light-dark(#dce5eb,#49606d); }
 .preflight-zone-upload :where(input[type="file"],button) { max-inline-size:100%; }
 @media (prefers-reduced-motion:no-preference) { .preflight-zone-upload:focus-within { outline:2px solid currentColor; outline-offset:2px; } }
}

/* Factor Print v2.36.20.3 · CSS Snapshot 2026: попередній перегляд логотипу темної теми. */
.fp-brand-dark-preview {background:#142933;color:#fff;border:1px solid #2a4452;border-radius:12px;padding:16px;min-height:88px;display:flex;align-items:center;justify-content:center}
.fp-brand-dark-preview img {max-width:100%;max-height:120px;object-fit:contain}

/* Factor Print v2.36.21 — особистий кабінет та листування, CSS Snapshot 2026. */
.fp-account-workspace{--fp-account-ink:#142933;--fp-account-accent:#277d89;--fp-account-paper:var(--bs-body-bg);max-width:1320px}
.fp-account-hero{padding:clamp(1.2rem,3vw,2.35rem);border-radius:24px;background:linear-gradient(120deg,#142933,#285668);color:#fff;box-shadow:0 16px 34px rgb(20 41 51 / .13)}
.fp-account-hero h1{font-size:clamp(1.45rem,2.7vw,2.5rem);color:#fff;overflow-wrap:anywhere}
.fp-account-hero .fp-account-eyebrow{color:#cde0e8!important;letter-spacing:.12em}
.fp-account-hero .badge{margin:.15rem .3rem .1rem 0;padding:.5em .75em}
.fp-account-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(.4rem,1vw,.85rem);margin-bottom:1.45rem}
.fp-account-nav-link{position:relative;display:flex;gap:.55rem;align-items:center;justify-content:center;min-width:0;min-height:61px;padding:.8rem .4rem;border:1px solid var(--bs-border-color);border-radius:16px;background:var(--bs-body-bg);color:var(--bs-body-color);text-align:center;text-decoration:none;font-weight:650;box-shadow:0 5px 17px rgb(20 41 51 / .04);transition:background-color .16s,border-color .16s,transform .16s}
.fp-account-nav-link:hover{border-color:#4d8d9c;color:var(--bs-body-color);transform:translateY(-1px)}
.fp-account-nav-link.is-active,.fp-account-nav-link.is-active:hover{background:#142933;border-color:#142933;color:#fff}
.fp-account-nav-link i{font-size:1.12rem;flex-shrink:0}
.fp-account-nav-label{overflow-wrap:anywhere}
.fp-account-unread{position:absolute;right:3px;top:3px;border-radius:999px;background:#cf303f;color:white;font-size:.66rem;padding:.12rem .32rem;min-width:17px}
.fp-account-content{min-width:0}
.fp-account-content>.card,.fp-account-content>section.card{border-radius:18px}
.fp-account-content .settings-card{border-radius:18px}
@media(max-width:767.98px){.fp-account-nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem}.fp-account-nav-link{min-height:53px;padding:.65rem .35rem;border-radius:13px}.fp-account-nav-label{display:none}.fp-account-nav-link i{font-size:1.22rem}.fp-account-workspace{padding-top:1rem!important}.fp-account-hero{border-radius:17px}}
@media(prefers-reduced-motion:reduce){.fp-account-nav-link{transition:none}.fp-account-nav-link:hover{transform:none}}

/* Factor Print v2.36.21.1 — CSS Snapshot 2026: єдина шапка кабінету й вкладення під спойлером. */
.fp-account-hero-details{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .55rem}
.fp-account-balance{display:inline-flex;align-items:center;gap:.45rem;padding:.38rem .7rem;border:1px solid rgb(255 255 255 / .26);border-radius:999px;background:rgb(255 255 255 / .12);color:#fff;font-size:.9rem;line-height:1.3;font-variant-numeric:tabular-nums}
.fp-account-balance strong{color:#fff;white-space:nowrap}
.fp-message-files{border:1px solid var(--bs-border-color);border-radius:12px;padding:.15rem .8rem;background:var(--bs-body-bg);color:var(--bs-body-color)}
.fp-message-files>summary{cursor:pointer;padding:.65rem .3rem;font-weight:600;list-style-position:inside;min-height:42px}
.fp-message-files>summary:focus-visible{outline:2px solid var(--bs-primary);outline-offset:2px;border-radius:4px}
.fp-message-files[open]{padding-bottom:.8rem}
.fp-message-files:not([open]) .file-dropzone{display:none}

/* Factor Print v2.36.21.3: іконки категорій не накладаються на назву/межі картки. */
.home-category-card {
    box-sizing: border-box;
    min-width: 0;
    min-height: 192px;
    padding: 12px 10px;
    gap: 8px;
    overflow: hidden;
    justify-content: flex-start;
}
.home-category-card > .home-category-icon {
    display: grid;
    place-items: center;
    align-self: center;
    width: min(100%, 116px);
    height: 116px;
    min-height: 0;
    flex: 0 0 116px;
    overflow: hidden;
    border-radius: 10px;
}
.home-category-card > .home-category-icon > img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    margin: 0;
    object-fit: contain;
    object-position: center;
}
.home-category-card > .home-category-name {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: auto;
    overflow-wrap: anywhere;
    line-height: 1.25;
}
.home-service-card { min-width: 0; grid-template-columns: 104px minmax(0,1fr) auto; min-height: 140px; overflow: hidden; }
.home-service-card > .home-service-image {
    display: grid; place-items: center; min-width: 0;
    width: 104px; height: 104px; max-height: 104px;
    overflow: hidden; border-radius: 10px;
}
.home-service-card > .home-service-image > img {
    display: block; width: 100%; height: 100%; min-width: 0; min-height: 0;
    max-width: 100%; max-height: 100%; padding: 0; margin: 0;
    object-fit: contain; object-position: center;
}
@media (max-width: 575.98px) {
    .home-category-card { min-height: 166px; padding: 9px 6px; }
    .home-category-card > .home-category-icon { width: min(100%, 92px); height: 92px; flex-basis: 92px; }
    .home-service-card { grid-template-columns: 82px minmax(0,1fr) auto; }
    .home-service-card > .home-service-image { width: 82px; height: 82px; max-height: 82px; }
}


/* CSS Snapshot 2026 — компактний алфавітний покажчик на сторінці мануалів. */
.help-alphabet {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .38rem;
    margin: 0 0 1.35rem;
    padding: .85rem 1rem;
    border: 1px solid var(--fp-line);
    border-radius: 1rem;
    background: var(--fp-surface);
}
.help-alphabet-label { color: var(--fp-muted); font-size: .85rem; font-weight: 700; margin-inline-end: .65rem; }
.help-alphabet-link {
    display: inline-grid;
    place-items: center;
    min-width: 2.15rem;
    min-height: 2.15rem;
    padding: .15rem .35rem;
    border: 1px solid var(--fp-line);
    border-radius: .65rem;
    background: var(--fp-surface-alt);
    color: var(--fp-brand);
    text-decoration: none;
    font-weight: 750;
}
.help-alphabet-link:is(:hover,:focus-visible) { background: var(--fp-brand); color: var(--fp-brand-contrast, #fff); border-color: var(--fp-brand); }
.help-alphabet-link:focus-visible { outline: 3px solid #63cde0; outline-offset: 2px; }
.help-letter-section { scroll-margin-top: 1.5rem; margin-block-end: 1.5rem; }
.help-letter-section:target > .help-letter-heading { color: var(--fp-brand); }
.help-letter-heading { font-size: 1.4rem; font-weight: 800; color: var(--fp-brand); margin: 0 0 .8rem; }
@media (max-width: 575px) {
    .help-alphabet { gap: .3rem; padding: .65rem; }
    .help-alphabet-label { flex-basis: 100%; }
    .help-alphabet-link { min-width: 2.45rem; min-height: 2.45rem; }
}

/* CSS Snapshot 2026 · адаптивні кроки оформлення адміністративного замовлення. */
.fp-admin-order-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem}
.fp-admin-order-steps>span{background:var(--fp-surface-alt,#f4f7f8);border:1px solid var(--fp-line,#d9e2e6);color:var(--fp-brand,#142933);border-radius:.75rem;padding:.8rem .5rem;text-align:center;font-weight:650;font-size:.88rem}
.fp-admin-order-steps>span:last-child{background:var(--fp-brand,#142933);color:var(--fp-brand-contrast,#fff)}
.admin-order-create-line .line-manual-price{border:1px solid var(--fp-line,#d9e2e6);border-radius:.8rem;padding:.75rem 1rem;background:var(--fp-surface-alt,#f7fafb)}
.admin-order-create-line .line-manual-price>summary{cursor:pointer;color:var(--fp-brand,#142933)}
.admin-order-create-line .line-production-zone-card{border:1px solid var(--fp-line,#d9e2e6);border-radius:.75rem;padding:.8rem;min-width:0}
.invoice-layout-presentation{border:1px solid var(--fp-line,#d9e2e6)!important}
@media(max-width:767px){.fp-admin-order-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.fp-admin-order-steps>span{font-size:.8rem;padding:.65rem .4rem}}

/* Factor Print v2.38.0 — CSS Snapshot 2026: повний видимий кадр пов’язаного товару. */
.gallery-thumbs .gallery-thumb.related-thumb { min-width:0; min-height:0; overflow:visible; padding:.35rem; }
.gallery-thumbs .gallery-thumb.related-thumb img { display:block; width:100%; height:100%; max-width:100%; max-height:100%; object-fit:contain; object-position:center; min-width:0; min-height:0; }
.gallery-thumbs .gallery-thumb.related-thumb .related-arrow { right:-.15rem; top:-.15rem; }

/* Factor Print v2.38.0 — CSS Snapshot 2026: адаптивний конструктор правил автоматизації. */
.fp-automation-page { --fp-auto-ink:var(--fp-ink,#142933); --fp-auto-surface:var(--fp-surface,#fff); }
.fp-automation-hero { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:1.25rem; padding:clamp(1.25rem,3vw,2rem); background:var(--fp-auto-ink); color:#fff; border-radius:clamp(1rem,2vw,1.5rem); }
.fp-automation-hero p { color:color-mix(in srgb,#fff 78%,transparent); max-width:65ch; }
.fp-automation-hero small { letter-spacing:.13em; font-weight:650; opacity:.7; }
.fp-automation-tabs { display:flex; flex-wrap:wrap; gap:.5rem; }
.fp-automation-tabs .nav-link { border:1px solid var(--bs-border-color); background:var(--fp-auto-surface); color:var(--fp-auto-ink); border-radius:999px; padding:.6rem 1rem; }
.fp-automation-tabs .nav-link.active { background:var(--fp-auto-ink); border-color:var(--fp-auto-ink); color:#fff; }
.fp-automation-page .card { border-radius:1.1rem; background:var(--fp-auto-surface); }
.fp-automation-page .table td { vertical-align:middle; }
@media (max-width:767.98px) { .fp-automation-hero { flex-direction:column; } .fp-automation-page .table { font-size:.86rem; } .fp-automation-tabs .nav-link { padding:.55rem .75rem; } }

/* Factor Print v2.38.1 — окремий адаптивний інтерфейс документів, CSS Snapshot 2026. */
.fp-business-admin { --fp-document-ink:var(--fp-ink,#142933); }
.fp-business-hero { display:flex;justify-content:space-between;gap:1.3rem;flex-wrap:wrap;background:var(--fp-document-ink);color:#fff;border-radius:1.4rem;padding:clamp(1.25rem,3vw,2rem); }
.fp-business-hero small { font-size:.75rem;letter-spacing:.13em;opacity:.75;font-weight:650; }
.fp-business-hero h1 { color:inherit;font-size:clamp(1.55rem,3vw,2.15rem);margin:.5rem 0; }
.fp-business-hero p { margin:0;opacity:.85;max-width:65ch; }
.fp-business-admin .card { border-radius:1.05rem;background:var(--fp-surface,#fff); }
.fp-business-paper-wrap { overflow-x:auto;max-width:100%;padding:clamp(.25rem,1.5vw,1.5rem);background:var(--fp-soft,#eaf0f2);border-radius:1.1rem; }
.fp-business-sheet { width:794px;min-height:1123px;box-sizing:border-box;padding:50px 49px;color:#172f38;background:#fff;margin:0 auto;box-shadow:0 8px 35px rgba(20,41,51,.12);font:14px/1.48 Arial,'Factor Sans',sans-serif; }
.fp-business-sheet__header { display:flex;justify-content:space-between;gap:1rem;align-items:center;border-bottom:3px solid #142933;padding-bottom:14px; }
.fp-business-sheet__brand { font-size:17px;font-weight:800;letter-spacing:.025em; }
.fp-business-sheet__brand span { color:#66818a;font-size:10px;letter-spacing:.12em; }
.fp-business-sheet__number { font-size:12px;font-weight:700;color:#365c6a; }
.fp-business-sheet h1 { margin:24px 0 4px;color:#142933;font-size:22px;font-weight:750;line-height:1.3; }
.fp-business-sheet__date { color:#667d86;margin:0 0 22px; }
.fp-business-sheet__parties { display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px; }
.fp-business-sheet__parties>div { border:1px solid #d5e0e4;border-radius:9px;padding:14px;overflow-wrap:anywhere; }
.fp-business-sheet__parties small { display:block;letter-spacing:.09em;color:#667d86;margin-bottom:7px;font-size:10px; }
.fp-business-sheet__parties strong { display:block;font-size:14px;line-height:1.4;margin-bottom:7px; }
.fp-business-sheet__parties p { font-size:11px;line-height:1.35;margin:4px 0;color:#36505a; }
.fp-business-sheet__order { border-left:3px solid #142933;background:#f0f4f6;padding:10px 13px;margin:13px 0 16px;font-size:12px; }
.fp-business-sheet__table { width:100%;border-collapse:collapse;table-layout:fixed;font-size:11px; }
.fp-business-sheet__table th { color:#fff;background:#142933;padding:10px 7px;text-align:left; }
.fp-business-sheet__table td { border-bottom:1px solid #d5e0e4;padding:10px 7px;overflow-wrap:anywhere;vertical-align:top; }
.fp-business-sheet__table :is(th,td):first-child { width:30px; }
.fp-business-sheet__table :is(th,td):nth-child(2) { width:42%; }
.fp-business-sheet__table :is(th,td):nth-child(n+3) { text-align:right; }
.fp-business-sheet__table thead { display:table-header-group; }
.fp-business-sheet__table tr { break-inside:avoid;page-break-inside:avoid; }
.fp-business-sheet__total { text-align:right;font-size:17px;font-weight:800;margin:17px 0 25px; }
.fp-business-sheet__note { color:#5c7079;font-size:11px;white-space:normal;margin:15px 0;overflow-wrap:anywhere; }
.fp-business-sheet__signatures { display:grid;grid-template-columns:1fr 1fr;gap:25px;margin:35px 0 45px;font-size:12px; }
.fp-business-sheet__signatures span { display:block;margin-bottom:22px; }
.fp-business-sheet__signatures div>div { color:#667d86; }
.fp-business-sheet>footer { border-top:1px solid #d5e0e4;color:#80929a;font-size:10px;padding-top:10px;text-align:right; }
@media print { .fp-business-sheet { width:210mm;min-height:auto;padding:13mm;box-shadow:none;margin:0; } .fp-business-paper-wrap { background:#fff;padding:0;overflow:visible; } .fp-business-sheet__table tr { break-inside:avoid; } @page { size:A4; margin:0; } }

/* Factor Print v2.38.2 — CSS Snapshot 2026: розкладка спільних накладних. */
.fp-business-selection { border: 1px solid #d5e0e4; border-radius: 12px; padding: 12px 16px; background: #f8fafb; }
.fp-business-selection summary { cursor: pointer; font-weight: 650; color: #142933; }
.fp-business-selection .table-responsive { max-height: 340px; overflow-y: auto; }
.fp-business-sheet__item-order { display: block; font-size: 9px; font-weight: 600; color: #5b727c; margin-top: 4px; }
@media (max-width: 575.98px) { .fp-business-selection { padding: 10px; } .fp-business-admin .badge { white-space: normal; } }

/* Factor Print v2.38.3 — форми актів і повернень, CSS Snapshot 2026; остання зміна v2.38.3. */
.fp-business-admin :is(.card,.alert) { overflow-wrap: anywhere; }
.fp-business-admin .fp-business-sheet { overflow-wrap: anywhere; }
.fp-business-admin .table input[type="number"] { min-inline-size: 7.5rem; max-inline-size: 13rem; }
.fp-business-admin .fp-business-hero { container-type: inline-size; }
@container (max-width: 38rem) { .fp-business-hero h1 { font-size: clamp(1.4rem,5cqi,2rem); } }
@media (max-width: 48rem) { .fp-business-sheet__parties { grid-template-columns: 1fr; } .fp-business-admin .table-responsive { overscroll-behavior-inline: contain; } }

/* Factor Print v2.38.4 — однакова структура заголовка на всіх сторінках адміністратора. */
.fp-admin-unified-hero{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;border-radius:20px;padding:clamp(1.25rem,3vw,2rem);background:linear-gradient(115deg,#142933,#294653);color:#fff;box-shadow:0 14px 35px rgba(20,41,51,.12)}
.fp-admin-unified-hero .fp-admin-unified-title,.fp-admin-unified-hero h1{font-size:clamp(1.45rem,2.2vw,2.2rem)!important;line-height:1.2!important;font-weight:750!important;color:#fff!important;margin:0!important}
.fp-admin-unified-hero p{color:#e2e9eb!important;margin:.55rem 0 0!important;max-width:76ch}
.fp-admin-unified-hero .badge{color:#142933!important;background:#f4f7f9!important}
@media(max-width:640px){.fp-admin-unified-hero{padding:1.3rem;border-radius:16px}}

/* Factor Print v2.39.2 — CSS Snapshot 2026: єдиний дизайн рахунку, видаткової накладної та акта. */
.fp-business-sheet.invoice-sheet{width:794px;min-height:1123px;max-width:100%;box-sizing:border-box;padding:28px 36px 34px;background:#fff;color:#142933;margin:0 auto;box-shadow:0 8px 35px rgba(20,41,51,.12);font:12px/1.25 "Factor Sans",Arial,Helvetica,sans-serif}
.fp-business-sheet.invoice-sheet .invoice-top-row{display:grid;grid-template-columns:1fr 1.2fr;gap:36px;min-height:70px;align-items:start;border:0;padding:0}
.fp-business-sheet.invoice-sheet .invoice-logo-area{min-height:70px;display:flex;align-items:center}
.fp-business-sheet.invoice-sheet .invoice-logo-area img{display:block;max-width:245px;max-height:72px;object-fit:contain}
.fp-business-sheet.invoice-sheet .invoice-fallback-logo{font-size:27px;font-weight:900;letter-spacing:.06em;color:#142933}
.fp-business-sheet.invoice-sheet .invoice-title{margin:42px 0 20px;text-align:center;font-size:20px;line-height:1.2;font-weight:800;color:#142933}
.fp-business-sheet.invoice-sheet .invoice-rule{border-top:2px solid #142933;margin:0 0 10px}
.fp-business-sheet.invoice-sheet .invoice-party-row{display:grid;grid-template-columns:105px minmax(0,1fr);gap:12px;margin:8px 0}
.fp-business-sheet.invoice-sheet .invoice-party-label{font-size:12px}
.fp-business-sheet.invoice-sheet .invoice-party-data{font-size:12px;font-weight:600;overflow-wrap:anywhere}
.fp-business-sheet.invoice-sheet .invoice-items-table{width:100%;border-collapse:collapse;table-layout:auto;margin-top:28px;font-size:11px}
.fp-business-sheet.invoice-sheet .invoice-items-table th,.fp-business-sheet.invoice-sheet .invoice-items-table td{border:1px solid #142933;padding:4px 5px;vertical-align:top;color:#142933;background:#fff;text-align:left;overflow-wrap:anywhere}
.fp-business-sheet.invoice-sheet .invoice-items-table th{text-align:center;font-weight:700}
.fp-business-sheet.invoice-sheet .invoice-items-table .invoice-col-num{width:34px}
.fp-business-sheet.invoice-sheet .invoice-items-table .invoice-col-qty{width:62px}
.fp-business-sheet.invoice-sheet .invoice-items-table .invoice-col-unit{width:48px}
.fp-business-sheet.invoice-sheet .invoice-items-table .invoice-col-money{width:105px}
.fp-business-sheet.invoice-sheet .invoice-total-block{width:47%;margin-left:auto;display:grid;grid-template-columns:1fr 130px;row-gap:4px;column-gap:12px;padding-top:10px;font-size:12px}
.fp-business-sheet.invoice-sheet .invoice-total-block>div:nth-child(even){text-align:right}
.fp-business-sheet.invoice-sheet .invoice-summary-text{margin-top:12px;font-size:11px;line-height:1.35}
.fp-business-sheet.invoice-sheet .invoice-rule-bottom{margin-top:26px;margin-bottom:14px;border-top-width:1px}
.fp-business-sheet.invoice-sheet .fp-business-sheet__order{margin:10px 0 0;padding:0;border:0;background:none;font-size:11px}
.fp-business-sheet.invoice-sheet .fp-business-sheet__signatures{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:18px;font-size:11px}
.fp-business-sheet.invoice-sheet .fp-business-sheet__signatures>div{min-width:0}
.fp-business-sheet.invoice-sheet .invoice-signature-line{display:block;height:20px;border-bottom:1px solid #65757b}
.fp-business-sheet.invoice-sheet .fp-business-sheet__item-order{display:block;font-size:10px;color:#65757b}
@media print{.fp-business-sheet.invoice-sheet{box-shadow:none;margin:0 auto} .fp-business-sheet.invoice-sheet thead{display:table-header-group} .fp-business-sheet.invoice-sheet tr{break-inside:avoid}}

/* v2.39.4 · CSS Snapshot 2026: звичайне фото не обрізається у мініатюрі, у тому числі активній. */
.product-template-gallery .gallery-thumbs .gallery-thumb:not(.related-thumb) {
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:center;
    min-inline-size:0;
    min-block-size:0;
    inline-size:var(--fp-gallery-thumb-size,88px);
    block-size:var(--fp-gallery-thumb-size,88px);
    max-inline-size:100%;
    padding:.4rem;
    overflow:hidden;
}
.product-template-gallery .gallery-thumbs .gallery-thumb:not(.related-thumb) > img {
    display:block;
    flex:0 1 auto;
    inline-size:100%;
    block-size:100%;
    min-inline-size:0;
    min-block-size:0;
    max-inline-size:100%;
    max-block-size:100%;
    object-fit:contain;
    object-position:center;
}

/* Factor Print v2.39.4 — CSS Snapshot 2026: тематичні групи довідки замість алфавітних кнопок. */
.help-alphabet-link { max-inline-size:100%; min-inline-size:0; padding:.45rem .75rem; border-radius:999px; font-size:.88rem; text-align:center; line-height:1.35; }
@media (max-width:575.98px) { .help-alphabet-link { flex:1 1 auto; } }

/* Factor Print v2.39.5 — Кабінет: сім рівних елементів на широких екранах і мобільний вихід над шапкою; CSS Snapshot 2026. */
    .fp-account-workspace .fp-account-nav { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .fp-account-workspace .fp-account-nav-logout { border-color: color-mix(in srgb, #142933 22%, var(--bs-border-color)); }
    .fp-account-workspace .fp-account-nav-logout:hover { background: #142933; border-color: #142933; color: #fff; }
    .fp-account-workspace .fp-account-mobile-logout { display: none; }
    .fp-account-workspace .fp-account-hero-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; }
    .fp-account-workspace .fp-account-hero-intro { flex: 1 1 16rem; min-width: 0; }
    .fp-account-workspace .fp-account-hero-id { display: inline-flex; flex-direction: column; align-items: flex-end; gap: .15rem; flex: 0 0 auto; margin-inline-start: auto; padding: .55rem .85rem; border: 1px solid rgb(255 255 255 / .25); border-radius: 13px; background: rgb(255 255 255 / .10); color: #fff; font-variant-numeric: tabular-nums; }
    .fp-account-workspace .fp-account-hero-id-caption { font-size: .7rem; letter-spacing: .07em; color: #cde0e8; }
    .fp-account-workspace .fp-account-hero-id-number { font-size: 1.1rem; line-height: 1.2; color: #fff; }
    @media (min-width: 768px) and (max-width: 991.98px) {
        .fp-account-workspace .fp-account-nav-link { gap: .35rem; padding-inline: .3rem; font-size: .83rem; }
    }
    @media (max-width: 767.98px) {
        .fp-account-workspace .fp-account-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        .fp-account-workspace .fp-account-nav-logout { display: none; }
        .fp-account-workspace .fp-account-mobile-logout { display: flex; justify-content: flex-end; }
        .fp-account-workspace .fp-account-hero-id { padding: .45rem .65rem; }
    }

/* Factor Print v2.40.6 — адаптивна сітка, стани фокуса і конфігурація віджетів. */
.fp-wg-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:1rem;align-items:stretch}
.fp-wg{min-width:0;border-radius:1rem;background:var(--bs-body-bg,#fff)}
.fp-wg-wide{grid-column:span 2}
.fp-wg-kicker{font-size:.72rem;text-transform:uppercase;letter-spacing:.055em;color:var(--bs-secondary-color,#667085);font-weight:650;margin-bottom:.6rem}
.fp-wg-value{font-size:clamp(1.45rem,2vw,2.25rem);font-weight:750;line-height:1.2;overflow-wrap:anywhere;margin-top:.8rem;font-variant-numeric:tabular-nums}
.fp-wg-open{font-size:.8rem;text-decoration:none;white-space:nowrap;flex-shrink:0}
.fp-wg-list-item{display:flex;flex-direction:column;gap:.2rem;text-decoration:none;padding:.65rem 0;border-top:1px solid var(--bs-border-color,#ddd)}
.fp-wg-list-item span{font-size:.8rem;color:var(--bs-secondary-color,#667085);overflow-wrap:anywhere}
.fp-wg-links{display:flex;gap:.45rem;flex-wrap:wrap}
.fp-wg-config-row{display:flex;align-items:center;gap:1rem;justify-content:space-between;padding:.8rem 0;border-top:1px solid var(--bs-border-color,#ddd);flex-wrap:wrap}
.fp-wg-config-title{min-width:min(100%,215px);flex:1}
.fp-wg a:focus-visible,.fp-wg-config-row input:focus-visible{outline:3px solid var(--bs-primary,#0d6efd);outline-offset:3px}
@media(max-width:640px){.fp-wg-grid{grid-template-columns:minmax(0,1fr)}.fp-wg-wide{grid-column:auto}.fp-wg-config-row{align-items:flex-start}.fp-wg-config-title{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.fp-wg *{transition:none!important}}

/* Factor Print v2.40.6 — мінідіаграми тижневої динаміки; CSS Snapshot 2026. */
.fp-wg-bars{display:flex;align-items:stretch;justify-content:flex-start;gap:.65rem;min-height:155px;padding-top:.5rem}
.fp-wg-bar-column{display:flex;flex-direction:column;align-items:center;min-width:32px;max-width:75px;flex:1;font-variant-numeric:tabular-nums}
.fp-wg-bar-count{font-size:.75rem;font-weight:600}
.fp-wg-bar-track{height:96px;display:flex;align-items:flex-end;width:100%;background:var(--bs-tertiary-bg,#f4f6f9);border-radius:.4rem;overflow:hidden}
.fp-wg-bar{width:100%;min-height:2px;background:var(--bs-primary,#0d6efd);border-radius:.4rem .4rem 0 0}
.fp-wg-bar-column small{margin-top:.4rem;font-size:.72rem;color:var(--bs-secondary-color,#667085)}


/* Factor Print v2.40.7 — CSS Snapshot 2026: адаптивний розподіл кількості у формі менеджера. */
.fp-order-distribution { background:linear-gradient(135deg,#f8fafc,#fff); border-color:#dbe4ec!important; }
.fp-order-distribution legend { color:#173248; max-width:100%; }
.fp-order-distribution .form-control { font-variant-numeric:tabular-nums; border-radius:10px; background:#fff; }
.fp-order-distribution .form-control:focus-visible { outline:2px solid #2563eb; outline-offset:2px; }
.fp-order-distribution [data-distribution-summary] { font-variant-numeric:tabular-nums; }
@media(max-width:575.98px){ .fp-order-distribution { padding:12px!important; } }

/* Factor Print v2.42.1 — візуальний вибір матеріалів; CSS Snapshot 2026. */
.fp-material-options{display:grid;grid-template-columns:repeat(var(--fp-mat-mobile,2),minmax(0,1fr));gap:.65rem}
@media(min-width:640px){.fp-material-options{grid-template-columns:repeat(var(--fp-mat-tablet,4),minmax(0,1fr))}}
@media(min-width:1024px){.fp-material-options{grid-template-columns:repeat(var(--fp-mat-desktop,6),minmax(0,1fr))}}
.fp-material-option{position:relative;display:flex;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:.35rem;padding:.55rem;border:1.5px solid #d5dce6;border-radius:12px;background:#fff;color:#1d2939;text-align:center;cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.fp-material-option[hidden]{display:none}
.fp-material-option:hover{border-color:#8b9ab4;transform:translateY(-1px)}
.fp-material-option:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.fp-material-option.is-selected,.fp-material-option[aria-pressed="true"]{border-color:#2563eb;box-shadow:0 0 0 2px rgba(37,99,235,.13);background:#f4f8ff}
.fp-material-option.is-selected:after{content:'✓';position:absolute;right:4px;top:3px;display:grid;place-items:center;background:#2563eb;color:white;font-size:11px;font-weight:800;border-radius:50%;width:17px;height:17px}
.fp-material-thumbnail,.fp-material-swatch,.fp-material-fallback{display:block;width:100%;max-width:116px;aspect-ratio:1;object-fit:contain;border-radius:7px;background:#f3f6fa;border:1px solid #e6eaf0}
.fp-material-swatch{min-width:30px;max-width:85px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.07)}
.fp-material-fallback{display:grid;place-items:center;color:#98a7b8;font-size:22px}
.fp-material-chooser[data-display="swatches"] .fp-material-option{flex-direction:row;padding:.35rem;gap:.4rem;min-height:42px}
.fp-material-chooser[data-display="swatches"] .fp-material-thumbnail,.fp-material-chooser[data-display="swatches"] .fp-material-swatch,.fp-material-chooser[data-display="swatches"] .fp-material-fallback{width:34px;height:34px;aspect-ratio:1;flex-shrink:0}
.fp-material-name{font-size:.78rem;line-height:1.3;overflow-wrap:anywhere}.fp-material-code{font-size:.69rem;color:#64748b}.fp-material-price{font-size:.72rem;color:#2563eb;font-weight:700}
.fp-material-admin .fp-material-thumbnail{max-width:62px}.fp-material-admin .fp-material-option{min-height:66px}
@media(prefers-reduced-motion:reduce){.fp-material-option{transition:none}.fp-material-option:hover{transform:none}}

/* Factor Print v2.42.1 — прогресивне приховування дубльованого списку після активації карток. */
.production-material-card.fp-material-enhanced>.production-material-select{display:none}


/* Factor Print v2.43.14.5 — геометрія таблиці оформлення замовлення. CSS Snapshot 2026. */
.checkout-order-table .checkout-col-product { width: 62%; }
.checkout-order-table .checkout-col-quantity { width: 10%; }
.checkout-order-table .checkout-col-price { width: 14%; }
.checkout-order-table .checkout-col-total { width: 14%; }
.checkout-order-table td:first-child,
.checkout-order-table th:first-child { min-width: 0; }
.checkout-order-table td:nth-child(2),
.checkout-order-table th:nth-child(2) { white-space: nowrap; }
@media (max-width: 991.98px) {
    .checkout-order-table .checkout-col-product { width: 58%; }
    .checkout-order-table .checkout-col-quantity { width: 12%; }
    .checkout-order-table .checkout-col-price { width: 15%; }
    .checkout-order-table .checkout-col-total { width: 15%; }
}

/* Спільне вікно вибору: зона перетягування й окремий стан завантаження. Factor Print v2.44.7; CSS Snapshot 2026. */
.media-picker-dropzone{border:1.5px dashed color-mix(in srgb,var(--bs-border-color) 75%,var(--bs-body-color));border-radius:16px;padding:.85rem 1rem;margin-block:.45rem .65rem;text-align:center;background:var(--bs-tertiary-bg);transition:background-color .15s ease,border-color .15s ease}
.media-picker-dropzone.is-dragover{border-color:var(--bs-body-color);background:var(--bs-secondary-bg)}
.media-picker-upload-status{min-height:1.2rem;margin-bottom:.35rem;color:var(--bs-secondary-color)}
.media-picker-upload-list{display:grid;gap:.35rem;max-height:135px;overflow:auto;margin-bottom:.4rem}
.media-picker-upload-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(95px,auto);gap:.7rem;align-items:center;padding:.4rem .65rem;border:1px solid var(--bs-border-color);border-radius:10px}
.media-picker-upload-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:575.98px){.media-picker-toolbar{grid-template-columns:1fr}.media-picker-upload-row{grid-template-columns:minmax(0,1fr) minmax(70px,auto)}}
/* Адаптивна панель із чотирма діями. Factor Print v2.44.7; CSS Snapshot 2026. */
.media-picker-toolbar{grid-template-columns:minmax(190px,1fr) minmax(145px,.55fr) auto auto;align-items:center}
@media(max-width:991.98px){.media-picker-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.media-picker-toolbar>*:first-child{grid-column:1/-1}}
@media(max-width:575.98px){.media-picker-toolbar{grid-template-columns:1fr}.media-picker-toolbar>*:first-child{grid-column:auto}}

/* Factor Print v2.44.8 — вкладки додаткових налаштувань товару; CSS Snapshot 2026. */
.fp-product-detail-tabs { min-width:0; }
.fp-product-detail-tab-nav { display:flex; gap:.375rem; padding:.375rem; border:1px solid var(--fp-line, #dce2e6); border-radius:1rem; background:var(--bs-tertiary-bg, #f6f7f8); overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; }
.fp-product-detail-tab { flex:0 0 auto; min-height:2.75rem; padding:.625rem .875rem; border:1px solid transparent; border-radius:.75rem; background:transparent; color:var(--bs-secondary-color, #5e6570); font:inherit; font-weight:600; text-align:center; white-space:nowrap; transition:background-color .16s ease, border-color .16s ease, color .16s ease; }
.fp-product-detail-tab:hover { color:var(--bs-body-color, #142933); background:var(--bs-body-bg, #fff); }
.fp-product-detail-tab.is-active { color:var(--bs-body-color, #142933); background:var(--bs-body-bg, #fff); border-color:var(--fp-line, #dce2e6); box-shadow:0 .15rem .35rem rgb(20 41 51 / .07); }
.fp-product-detail-tab:focus-visible { outline:2px solid var(--bs-primary, #0d6efd); outline-offset:2px; }
.fp-product-detail-tab-panels { padding-top:1rem; }
.fp-product-detail-tab-panel[hidden] { display:none !important; }
.fp-product-detail-tab-panel > .card:last-child { margin-bottom:0 !important; }
@media(max-width:767.98px) { .fp-product-detail-tab { min-height:2.5rem; padding:.5rem .75rem; font-size:.875rem; } .admin-save-bar { flex-wrap:wrap; } .admin-save-bar .btn { min-width:0; } }
@media(prefers-reduced-motion:reduce) { .fp-product-detail-tab { transition:none; } }

/* Factor Print v2.45.0 — роздільні ряди фото та пов’язаних товарів; CSS Snapshot 2026. */
.product-template-gallery .fp-gallery-related-products{grid-column:1 / -1;min-width:0;margin-block-start:.9rem;order:3}
.product-template-gallery .fp-gallery-related-title{font-size:.875rem;font-weight:650;margin:0 0 .55rem;color:var(--bs-body-color)}
.product-template-gallery .fp-gallery-related-thumbs{display:flex;flex-flow:row wrap;gap:.65rem;max-height:none;overflow:visible;margin:0;padding:0}
.product-template-gallery .fp-gallery-related-thumbs .gallery-thumb{flex:0 0 var(--fp-gallery-thumb-size,88px);inline-size:var(--fp-gallery-thumb-size,88px);block-size:var(--fp-gallery-thumb-size,88px)}
@media(max-width:767.98px){.product-template-gallery .fp-gallery-related-products{margin-block-start:1rem}.product-template-gallery .fp-gallery-related-thumbs{display:flex;flex-flow:row wrap}}

/* Factor Print v2.45.0 — окремі горизонтальні ряди для всіх режимів галереї; CSS Snapshot 2026. */
.product-template-gallery.thumbs-left .fp-gallery-related-thumbs,
.product-template-gallery.thumbs-right .fp-gallery-related-thumbs,
.product-template-gallery.thumbs-bottom .fp-gallery-related-thumbs{display:flex;flex-direction:row;flex-wrap:wrap;gap:.65rem;max-height:none;overflow:visible;padding:0;margin:0}
.fp-media-duplicates [hidden]{display:none!important}
/* Factor Print — мовний перемикач публічного сайту. Остання зміна: 2.46.0. CSS Snapshot 2026. */
.fp-lang-switcher{display:inline-flex;align-items:center;gap:.2rem;padding:.22rem;border:1px solid var(--fp-line,#d5e0e4);border-radius:999px;background:var(--fp-surface,#fff);margin-inline-start:auto;flex-shrink:0}
.fp-lang-option{font-size:.72rem;font-weight:700;line-height:1.2;letter-spacing:.035em;padding:.4rem .55rem;color:var(--fp-muted,#667d86);text-decoration:none;border-radius:999px}
.fp-lang-option:hover,.fp-lang-option:focus-visible{background:var(--fp-bg,#f3f6f7);color:var(--fp-ink,#142933)}
.fp-lang-option.is-active{color:var(--fp-surface,#fff);background:var(--fp-brand,#142933)}
/* Factor Print v2.59.0 — токени єдиної основи інтерфейсу; CSS Snapshot 2026. */

@media(max-width:767.98px){.fp-lang-switcher{order:10;margin-inline-start:0}.fp-lang-option{padding:.32rem .43rem}}

/* Factor Print — незалежні меню та фільтри каталогу; остання зміна: v2.46.5. CSS Snapshot 2026. */
.catalog-navigation-panel,.catalog-filters-panel{min-width:0;padding:1.1rem;border:1px solid var(--bs-border-color,#d9e1ed);border-radius:1rem;background:var(--bs-body-bg,#fff);box-shadow:0 4px 18px rgba(25,39,64,.045)}
.catalog-navigation-panel+.catalog-filters-panel{margin-top:1rem}
.catalog-navigation-panel .catalog-menu-link[aria-current="page"],.catalog-navigation-panel .catalog-menu-all[aria-current="page"]{font-weight:650}
.catalog-filters-panel .catalog-filters-form{margin:0}
.catalog-menu-offcanvas .catalog-navigation-panel,.catalog-menu-offcanvas .catalog-filters-panel{padding:0;border:0;border-radius:0;box-shadow:none}
@media(max-width:991.98px){.catalog-menu-offcanvas{max-width:min(420px,92vw)}}

/* Factor Print v2.47.2 — CSS Snapshot 2026: обране місце схеми у картці товару. */
.product-template-layout-preview-slot{min-width:0;max-width:100%;margin-block:1rem}
.product-template-layout-preview-slot[hidden],.product-template-layout-preview-slot .fp-calculation-preview[hidden]{display:none!important}
.product-template-layout-preview-slot .fp-calculation-preview{min-width:0;max-width:100%;margin:0!important}
.product-template-layout-preview-slot svg{max-width:100%;height:auto}




/* Список — початкове відображення на телефоні; явний вибір «Сітка» має пріоритет. */
@media (max-width: 767.98px) {
    .catalog-grid:not(.grid-view):not(.homepage-catalog-grid) {
        grid-template-columns: minmax(0, 1fr);
    }
    .catalog-grid:not(.grid-view):not(.homepage-catalog-grid) .product-card {
        display: grid;
        grid-template-columns: minmax(5.5rem, 30%) minmax(0, 1fr);
        align-items: stretch;
    }
    .catalog-grid:not(.grid-view):not(.homepage-catalog-grid) .product-media {
        aspect-ratio: 1;
        min-width: 0;
    }
    .catalog-grid:not(.grid-view):not(.homepage-catalog-grid) .media-placeholder {
        min-height: 0;
    }
    .catalog-grid:not(.grid-view):not(.homepage-catalog-grid) .card-body {
        min-width: 0;
        padding: .75rem;
    }
}

/* Factor Print v2.48.1 — компактні дії доставок. CSS Snapshot 2026. */
.fp-shipment-icon-btn { min-inline-size: 2.5rem; min-block-size: 2.5rem; inline-size: 2.5rem; display: inline-flex; align-items: center; justify-content: center; padding: .35rem; position: relative; vertical-align: middle; }
.fp-shipment-task-count { position: absolute; inset-block-start: -.45rem; inset-inline-end: -.45rem; min-inline-size: 1.1rem; block-size: 1.1rem; padding: 0 .15rem; display: grid; place-items: center; border-radius: 999px; background: var(--bs-danger, #dc3545); color: #fff; font-size: .62rem; font-weight: 700; line-height: 1; box-shadow: 0 0 0 2px var(--bs-body-bg, #fff); }
.fp-shipment-actions { row-gap: .6rem !important; }

/* Factor Print v2.48.2 — компактна офіційна емблема перевізника у кнопці ТТН; CSS Snapshot 2026. */
.fp-np-brand{display:inline-flex;flex:0 0 27px;width:27px;height:27px;overflow:hidden;align-items:center;justify-content:flex-start;vertical-align:middle;border-radius:3px;color:#da291c;position:relative}
.fp-np-brand-image{display:block;min-width:76px;max-width:none!important;min-height:27px;width:76px;height:27px;object-fit:fill;object-position:left center;flex-shrink:0}
.fp-np-brand-image[hidden]{display:none!important}
.fp-np-brand>i{width:27px;height:27px;display:grid;place-items:center}
.fp-np-brand>i[hidden]{display:none!important}
.fp-shipment-icon-btn .fp-np-brand{flex-shrink:0}

/* Factor Print v2.48.3 — планшетна шапка та швидкий перегляд замовлення; CSS Snapshot 2026. */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .site-header .navbar > .container-xxl {
        display: flex;
        flex-wrap: nowrap !important;
        align-items: center;
        gap: clamp(.25rem, .7vw, .55rem) !important;
    }
    .site-header .navbar > .container-xxl > .navbar-brand {
        order: 0 !important;
        flex: 0 1 165px !important;
        max-width: 165px !important;
        min-width: 0;
    }
    .site-header .navbar > .container-xxl > .catalog-search {
        order: 0 !important;
        flex: 1 1 0 !important;
        width: auto !important;
        max-width: min(32vw, 390px) !important;
        min-width: 0 !important;
        margin: 0;
    }
    .site-header .navbar > .container-xxl > .catalog-search ~ * {
        order: 0 !important;
        flex: 0 0 auto;
        min-width: 0;
    }
    .site-header .navbar > .container-xxl > .d-flex,
    .site-header .navbar > .container-xxl > .header-user { flex-wrap: nowrap !important; gap: .18rem !important; }
    .site-header .catalog-search .input-group, .site-header .catalog-search .form-control { min-width: 0; }
    .site-header .catalog-search .search-group .btn { padding-inline: .45rem !important; }
    .site-header .catalog-search .search-group .input-group-text { padding-inline: .5rem; }
    .site-header .brand-company-logo { max-width: 145px; }
}
.fp-order-inline-composition { max-width: 275px; margin-top: .35rem; font-size: .72rem; line-height: 1.35; color: var(--bs-secondary-color); }
.fp-order-inline-item { display: flex; align-items: baseline; gap: .35rem; min-width: 0; margin-block: .14rem; }
.fp-order-inline-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-order-inline-qty { flex: 0 0 auto; color: var(--bs-body-color); white-space: nowrap; }
.fp-order-icon-btn { width: 2.15rem; min-width: 2.15rem; height: 2.15rem; display: inline-flex; justify-content: center; align-items: center; padding: .2rem; }
.fp-order-preview-modal .modal-dialog { max-width: min(1200px, calc(100vw - 1.25rem)); }
.fp-order-preview-modal .modal-body { max-height: calc(100dvh - 7rem); }
.fp-order-preview-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1.1rem; }
.fp-order-preview-media { max-width: 100%; max-height: 390px; object-fit: contain; background: #f8f9fa; }
.fp-order-preview-thumbs { display: flex; flex-wrap: wrap; gap: .35rem; }
.fp-order-preview-thumbs button { width: 68px; height: 60px; padding: .2rem; border: 1px solid #d8e1e8; background: #fff; border-radius: .4rem; }
.fp-order-preview-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.fp-order-preview-details { font-size: .82rem; }
.fp-order-preview-details dt { font-weight: 500; color: var(--bs-secondary-color); }
.fp-order-preview-details dd { margin: 0; overflow-wrap: anywhere; }
.fp-order-preview-details .fp-order-pair { display: grid; grid-template-columns: minmax(110px,35%) minmax(0,1fr); padding: .44rem .15rem; border-bottom: 1px solid var(--bs-border-color); }
.fp-order-preview-json { max-height: 300px; overflow: auto; font-size: .75rem; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 767.98px) { .fp-order-preview-grid { grid-template-columns: minmax(0,1fr); } .fp-order-preview-modal .modal-dialog { margin: .4rem; } }

/* Factor Print v2.48.3 — узгоджена верхня панель адміністратора, швидкий перегляд. CSS Snapshot 2026. */
.fp-admin-topbar .navbar > .container-xxl,
.fp-admin-topbar .navbar > .container-fluid,
.fp-admin-topbar .navbar > .container { display:flex; align-items:center; justify-content:space-between; gap:.65rem; flex-wrap:nowrap; min-height:3.5rem; }
.fp-admin-topbar .navbar-brand { flex:0 1 auto; min-width:0; margin-inline-end:auto; }
.fp-admin-topbar .brand-copy { min-width:0; }
.fp-admin-topbar .brand-copy small { max-width:46vw; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fp-admin-topbar .fp-admin-topbar-actions { display:flex; flex:0 0 auto; align-items:center; flex-wrap:nowrap!important; margin-inline-start:auto; }
.fp-admin-topbar-icon { display:inline-flex; inline-size:2.5rem; block-size:2.5rem; min-inline-size:2.5rem; align-items:center; justify-content:center; padding:.25rem; }
.fp-admin-topbar-icon .fp-admin-topbar-svg, .fp-admin-topbar-icon .admin-menu-icon { inline-size:1.05rem; block-size:1.05rem; flex:0 0 auto; }
.fp-order-inline-composition { margin-block-start:.35rem; max-inline-size:18rem; font-size:.73rem; line-height:1.3; color:var(--bs-secondary-color,#626e78); }
.fp-order-inline-item { display:flex; gap:.35rem; justify-content:space-between; align-items:baseline; margin-block:.12rem; }
.fp-order-inline-name { overflow-wrap:anywhere; }
.fp-order-inline-qty { flex-shrink:0; white-space:nowrap; }
.fp-order-actions { min-inline-size:max-content; }
.fp-order-icon-btn { display:inline-flex; justify-content:center; align-items:center; block-size:2.25rem; inline-size:2.25rem; min-inline-size:2.25rem; padding:.2rem; }
.fp-order-preview-modal .modal-dialog { max-inline-size:min(94vw,1100px); }
.fp-order-preview-modal .modal-content { max-block-size:94dvh; }
.fp-order-preview-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:1.25rem; }
.fp-order-preview-grid section { min-inline-size:0; }
.fp-order-preview-media { max-inline-size:100%; max-block-size:20rem; object-fit:contain; }
.fp-order-preview-thumbs { display:flex; gap:.4rem; overflow-x:auto; padding-block:.3rem; }
.fp-order-thumbnail { flex:0 0 4rem; inline-size:4rem; block-size:3.6rem; padding:.18rem; border:1px solid var(--bs-border-color,#d4dbe1); border-radius:.3rem; background:transparent; }
.fp-order-thumbnail img { inline-size:100%; block-size:100%; object-fit:contain; }
.fp-order-pair { display:grid; grid-template-columns:minmax(7rem,35%) minmax(0,1fr); border-block-end:1px solid var(--bs-border-color,#d4dbe1); padding:.5rem .15rem; gap:.5rem; font-size:.84rem; }
.fp-order-pair dt { font-weight:400; color:var(--bs-secondary-color,#626e78); }
.fp-order-pair dd { margin:0; overflow-wrap:anywhere; }
.fp-order-preview-json { max-block-size:14rem; overflow:auto; font-size:.72rem; white-space:pre-wrap; overflow-wrap:anywhere; }
@media (max-width:767.98px) {
 .fp-order-preview-grid { grid-template-columns:minmax(0,1fr); }
 .fp-order-preview-modal .modal-dialog { max-inline-size:100%; margin:.4rem; }
 .fp-admin-topbar .brand-copy small { max-width:34vw; }
 .fp-admin-topbar-icon { inline-size:2.25rem; min-inline-size:2.25rem; block-size:2.25rem; }
}
@media (min-width:768px) and (max-width:1199.98px) {
 /* Резервуємо місце для іконок і двох кнопок меню; пошук може звузитися до мінімуму. */
 .site-header:not(.fp-admin-topbar) .navbar > .container-xxl { flex-wrap:nowrap!important; }
 .site-header:not(.fp-admin-topbar) .navbar > .container-xxl > .catalog-search { flex:1 1 0!important; max-width:clamp(145px,29vw,380px)!important; min-width:0!important; }
 .site-header:not(.fp-admin-topbar) .navbar > .container-xxl > .header-user { flex:0 0 auto!important; }
 .site-header:not(.fp-admin-topbar) .brand-company-logo { max-width:125px; }
 .site-header:not(.fp-admin-topbar) .navbar-brand { flex:0 1 145px!important; }
 /* Для планшета скасовуємо order:3 із старого media <=991 px, зберігаємо пошук ПЕРЕД іконками. */
 .site-header:not(.fp-admin-topbar) .catalog-search { order:0!important; flex-basis:0!important; margin-inline:clamp(.3rem,1vw,.8rem)!important; }
 .site-header:not(.fp-admin-topbar) .search-group .form-control { min-width:0!important; }
 .site-header:not(.fp-admin-topbar) .search-group .btn { padding-inline:clamp(.35rem,.9vw,.8rem)!important; }
 .site-header:not(.fp-admin-topbar) .header-user { gap:.25rem!important; }
}

/* Factor Print v2.48.3 — дрібний склад замовлення має пріоритет над спільною типографікою адмінки. */
body:has(.admin-main-nav-wrap) .fp-order-inline-composition, body:has(.admin-main-nav-wrap) .fp-order-inline-composition :is(span,div) { font-size:.73rem!important; line-height:1.35; }

/* Factor Print v2.48.4 — кнопки каталогу та виходу у спільній верхній панелі на вузьких екранах. CSS Snapshot 2026. */
.fp-admin-topbar .navbar > .container-xxl,
.fp-admin-topbar .navbar > .container-xl,
.fp-admin-topbar .navbar > .container-lg,
.fp-admin-topbar .navbar > .container-fluid,
.fp-admin-topbar .navbar > .container { display:flex!important; flex-wrap:nowrap!important; align-items:center; gap:.5rem; }
.fp-admin-topbar .fp-admin-topbar-actions { display:flex!important; flex:0 0 auto!important; margin-inline-start:auto; align-items:center; flex-wrap:nowrap!important; }
.fp-admin-topbar .navbar-brand { min-width:0; max-width:min(55vw,26rem); overflow:hidden; }
/* Factor Print v2.59.0 — автоматичне застосування основи інтерфейсу до адміністративної панелі; CSS Snapshot 2026. */


/* Factor Print — публічний простий калькулятор розмірів; v2.48.6; CSS Snapshot 2026. */
.fp-simple-sizes{container-type:inline-size;display:grid;gap:.8rem}
.fp-simple-size-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:.65rem;align-items:end;border:1px solid var(--bs-border-color,#dde4ee);border-radius:12px;padding:.85rem;background:var(--bs-body-bg,#fff)}
.fp-simple-size-title{grid-column:1/-1}.fp-simple-size-field{display:grid;gap:.3rem;min-inline-size:0;font-size:.86rem;font-weight:600}
.fp-simple-size-field input{inline-size:100%;min-inline-size:0;border:1px solid var(--bs-border-color,#cdd7e4);border-radius:8px;padding:.55rem .6rem;background:var(--bs-body-bg,#fff);color:var(--bs-body-color,#182338)}
.fp-simple-size-totals{display:flex;gap:1rem;flex-wrap:wrap;background:var(--bs-tertiary-bg,#f1f5fb);border-radius:9px;padding:.75rem}
@container (max-width:440px){.fp-simple-size-row{grid-template-columns:repeat(2,minmax(0,1fr))}.fp-simple-size-field:nth-child(4){grid-column:1/-1}.fp-simple-remove{grid-column:1/-1}}

/* Factor Print — поля простого калькулятора та схема розмірів; v2.48.7; CSS Snapshot 2026. */
.fp-simple-dimension-preview{padding:.85rem;border:1px solid var(--bs-border-color,#d6dee9);border-radius:12px;min-width:0}
.fp-simple-dimension-preview[hidden]{display:none}
.fp-simple-preview-note{color:var(--bs-secondary-color,#607086);font-size:.83rem;margin:.35rem 0 .65rem}
.fp-simple-preview-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:.65rem}
.fp-simple-preview-card{margin:0;min-width:0;padding:.5rem;border-radius:10px;background:var(--bs-tertiary-bg,#f1f5fb)}
.fp-simple-preview-card svg{display:block;width:100%;height:100px;max-width:160px;margin-inline:auto}
.fp-simple-preview-card figcaption{font-size:.78rem;overflow-wrap:anywhere}
.fp-simple-preview-item{stroke:var(--bs-primary,#316db2);stroke-width:.5;fill:color-mix(in srgb,var(--bs-primary,#316db2) 40%,transparent)}
.fp-simple-fields-settings{border:1px solid var(--bs-border-color,#d6dee9);border-radius:12px;min-width:0;display:grid;gap:.7rem;padding:1rem;margin-block:1rem}
.fp-simple-fields-settings legend{float:none;width:auto;padding-inline:.4rem;font-size:1.05rem;font-weight:700}
.fp-simple-field-editor{border:1px solid var(--bs-border-color,#d6dee9);border-radius:9px;padding:.7rem}
.fp-simple-field-editor summary{font-weight:650;cursor:pointer}
.fp-simple-field-editor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:.75rem;margin-top:.6rem}
.fp-simple-field-editor-grid label{display:grid;gap:.3rem;min-width:0}
.fp-simple-field-editor-grid input,.fp-simple-field-editor-grid select{width:100%;min-width:0}
.fp-simple-size-field--compact{max-width:9rem}
.fp-simple-size-field--wide{grid-column:span 2}
.fp-simple-test{border-top:1px solid var(--bs-border-color,#d6dee9);padding-top:1rem;margin-top:1rem}
.fp-simple-test form{display:grid;gap:.9rem}
.fp-simple-test-preview{padding:1rem;border:1px solid var(--bs-border-color,#d6dee9);border-radius:12px;margin-top:1rem}
.fp-simple-test-preview .fp-calculation-preview{min-height:3rem}
@container (max-width:440px){.fp-simple-size-field--compact{max-width:none}.fp-simple-size-field--wide{grid-column:1/-1}}


/* Factor Print v2.49.0 — складське ядро, CSS Snapshot 2026. */
.fp-inventory-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.fp-inventory-metric {
  min-width: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
  background: var(--bs-body-bg);
  box-shadow: 0 .25rem 1.25rem color-mix(in srgb, var(--bs-body-color) 6%, transparent);
}
.fp-inventory-metric span {
  display: block;
  margin-bottom: .35rem;
  color: var(--bs-secondary-color);
  font-size: .82rem;
  line-height: 1.35;
}
.fp-inventory-metric strong {
  display: block;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.1;
}
.fp-inventory-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.fp-inventory-table th {
  white-space: nowrap;
}
.fp-inventory-table td {
  vertical-align: middle;
}
.fp-inventory-quantity {
  font-variant-numeric: tabular-nums;
}


@media (max-width: 991.98px) {
  .fp-inventory-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .fp-inventory-metrics { grid-template-columns: 1fr; }
  .fp-inventory-tabs .btn { flex: 1 1 calc(50% - .5rem); }
}

/* Factor Print — модальний попередній перегляд друку етикеток. Версія останньої зміни: v2.53.2. CSS Snapshot 2026. */
.fp-print-dialog{width:min(1180px,calc(100vw - 24px));height:min(860px,calc(100vh - 24px));max-width:none;max-height:none;border:0;border-radius:18px;padding:0;overflow:hidden;background:var(--bs-body-bg,#fff);box-shadow:0 24px 80px rgba(15,23,42,.28)}
.fp-print-dialog::backdrop{background:rgba(15,23,42,.58);backdrop-filter:blur(3px)}
.fp-print-dialog-shell{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr);background:var(--bs-body-bg,#fff)}
.fp-print-dialog-header{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:14px 16px;border-bottom:1px solid var(--bs-border-color,#dee2e6);background:var(--bs-tertiary-bg,#f8f9fa)}
.fp-print-dialog-heading{min-width:190px;margin-right:auto}.fp-print-dialog-heading strong{display:block;font-size:1rem}.fp-print-dialog-heading span{display:block;margin-top:2px;color:var(--bs-secondary-color,#6c757d);font-size:.78rem}
.fp-print-dialog-field{display:grid;gap:4px;min-width:150px}.fp-print-dialog-field span{font-size:.72rem;font-weight:700;color:var(--bs-secondary-color,#6c757d)}.fp-print-dialog-field select{min-height:38px;border:1px solid var(--bs-border-color,#ced4da);border-radius:9px;background:var(--bs-body-bg,#fff);padding:7px 32px 7px 10px;color:inherit}
.fp-print-dialog-actions{display:flex;flex-wrap:wrap;gap:8px}.fp-print-dialog-actions button{min-height:38px;border-radius:9px;padding:7px 12px}.fp-print-dialog-frame{display:block;width:100%;height:100%;border:0;background:#eef2f6}
.fp-print-modal-open{overflow:hidden}
@media(max-width:767.98px){.fp-print-dialog{width:100vw;height:100dvh;border-radius:0}.fp-print-dialog-header{align-items:stretch}.fp-print-dialog-heading{width:100%;margin-right:0}.fp-print-dialog-field{flex:1;min-width:120px}.fp-print-dialog-actions{width:100%}.fp-print-dialog-actions button{flex:1}}
/* Factor Print v2.59.0 — адаптивна поведінка єдиної сітки та компонентів; CSS Snapshot 2026. */
/* Factor Print v2.59.0 — єдині кнопки, поля, картки, таблиці, вкладки, повідомлення та модальні вікна; CSS Snapshot 2026. */
:root {
    --fp-ui-radius-sm: .68rem;
    --fp-ui-radius: .88rem;
    --fp-ui-radius-lg: 1.1rem;
    --fp-ui-border: color-mix(in srgb, var(--fp-line-strong) 78%, transparent);
    --fp-ui-border-soft: color-mix(in srgb, var(--fp-line) 78%, transparent);
    --fp-ui-surface: var(--fp-surface);
    --fp-ui-surface-subtle: color-mix(in srgb, var(--fp-surface-alt) 86%, var(--fp-surface));
    --fp-ui-shadow-sm: 0 .12rem .35rem rgb(20 41 51 / .045);
    --fp-ui-shadow: 0 .65rem 1.8rem rgb(20 41 51 / .075);
    --fp-ui-shadow-lg: 0 1.2rem 3rem rgb(20 41 51 / .14);
    --fp-ui-focus-ring: 0 0 0 .22rem color-mix(in srgb, var(--fp-brand) 17%, transparent);
    --fp-ui-control-height: 2.72rem;
    --fp-ui-control-height-sm: 2.25rem;
    --fp-ui-control-height-lg: 3.1rem;
    --fp-ui-page-gap: clamp(1rem, 1.8vw, 1.5rem);
    --fp-ui-grid-gap: clamp(.85rem, 1.5vw, 1.25rem);
}
.fp-ui-page {
    display: grid;
    gap: var(--fp-ui-page-gap);
    min-inline-size: 0;
    inline-size: 100%;
}
.fp-ui-page-header {
    display: grid;
    gap: .4rem;
    min-inline-size: 0;
    padding-block: .15rem .25rem;
}
.fp-ui-page-header :is(h1, .h1) {
    margin: 0;
    color: var(--fp-heading);
    font-size: clamp(1.5rem, 2.3vw, 2.1rem);
    line-height: 1.15;
    font-weight: 760;
    letter-spacing: -.035em;
}
.fp-ui-page-header > p {
    max-inline-size: 78ch;
    margin: 0;
    color: var(--fp-muted);
    line-height: 1.55;
}
.fp-ui-page-actions,
.fp-ui-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    min-inline-size: 0;
}
.fp-ui-page-actions { justify-content: flex-end; }
.fp-ui-toolbar { justify-content: space-between; }
.fp-ui-toolbar > :is(.fp-ui-toolbar-start, .fp-ui-toolbar-end) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    min-inline-size: 0;
}
.fp-ui-page-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--fp-ui-grid-gap);
    min-inline-size: 0;
}
.fp-ui-span-12 { grid-column: span 12; }
.fp-ui-span-9 { grid-column: span 9; }
.fp-ui-span-8 { grid-column: span 8; }
.fp-ui-span-6 { grid-column: span 6; }
.fp-ui-span-4 { grid-column: span 4; }
.fp-ui-span-3 { grid-column: span 3; }
.fp-ui-stack {
    display: grid;
    gap: var(--fp-ui-grid-gap);
    min-inline-size: 0;
}
.fp-ui-cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    min-inline-size: 0;
}
.fp-ui-cluster--between { justify-content: space-between; }
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .btn:not(.btn-link) {
    min-block-size: var(--fp-ui-control-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    padding-inline: .95rem;
    border-radius: var(--fp-ui-radius);
    font-weight: 680;
    line-height: 1.2;
    box-shadow: none;
    transition: translate .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease, color .15s ease;
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .btn-sm:not(.btn-link) {
    min-block-size: var(--fp-ui-control-height-sm);
    padding-inline: .72rem;
    border-radius: var(--fp-ui-radius-sm);
    font-size: .82rem;
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .btn-lg:not(.btn-link) {
    min-block-size: var(--fp-ui-control-height-lg);
    padding-inline: 1.15rem;
    border-radius: calc(var(--fp-ui-radius) + .08rem);
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .btn-icon {
    inline-size: var(--fp-ui-control-height);
    min-inline-size: var(--fp-ui-control-height);
    padding-inline: 0;
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) :where(.form-control, .form-select) {
    min-block-size: var(--fp-ui-control-height);
    border: 1px solid var(--fp-ui-border);
    border-radius: var(--fp-ui-radius);
    background-color: var(--fp-ui-surface);
    box-shadow: var(--fp-ui-shadow-sm);
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) :where(.form-control, .form-select):focus {
    border-color: color-mix(in srgb, var(--fp-brand) 58%, var(--fp-line-strong));
    box-shadow: var(--fp-ui-focus-ring);
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) :where(.form-control-sm, .form-select-sm) {
    min-block-size: var(--fp-ui-control-height-sm);
    border-radius: var(--fp-ui-radius-sm);
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .form-label {
    margin-block-end: .38rem;
    color: var(--fp-ink-2);
    font-size: .88rem;
    font-weight: 680;
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .form-text {
    margin-block-start: .34rem;
    color: var(--fp-muted);
    font-size: .8rem;
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .input-group > :is(.form-control, .form-select, .input-group-text, .btn) {
    border-radius: 0;
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .input-group > :first-child {
    border-start-start-radius: var(--fp-ui-radius);
    border-end-start-radius: var(--fp-ui-radius);
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .input-group > :last-child {
    border-start-end-radius: var(--fp-ui-radius);
    border-end-end-radius: var(--fp-ui-radius);
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .input-group-text {
    min-block-size: var(--fp-ui-control-height);
    border-color: var(--fp-ui-border);
    background: var(--fp-ui-surface-subtle);
    color: var(--fp-muted);
    font-weight: 600;
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) :where(.card, .fp-ui-card) {
    border: 1px solid var(--fp-ui-border-soft);
    border-radius: var(--fp-ui-radius-lg);
    background: var(--fp-ui-surface);
    box-shadow: var(--fp-ui-shadow-sm);
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) :where(.card-header, .fp-ui-card-header) {
    padding: .9rem 1rem;
    border-block-end: 1px solid var(--fp-ui-border-soft);
    border-start-start-radius: calc(var(--fp-ui-radius-lg) - 1px);
    border-start-end-radius: calc(var(--fp-ui-radius-lg) - 1px);
    background: var(--fp-ui-surface-subtle);
    color: var(--fp-ink);
    font-weight: 700;
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) :where(.card-body, .fp-ui-card-body) { padding: 1rem; }
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) :where(.card-footer, .fp-ui-card-footer) {
    padding: .85rem 1rem;
    border-block-start: 1px solid var(--fp-ui-border-soft);
    border-end-start-radius: calc(var(--fp-ui-radius-lg) - 1px);
    border-end-end-radius: calc(var(--fp-ui-radius-lg) - 1px);
    background: var(--fp-ui-surface-subtle);
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .fp-ui-table-wrap {
    overflow: auto;
    border: 1px solid var(--fp-ui-border-soft);
    border-radius: var(--fp-ui-radius-lg);
    background: var(--fp-ui-surface);
    box-shadow: var(--fp-ui-shadow-sm);
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .fp-ui-table-wrap > .table { margin-block-end: 0; }
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .table {
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--fp-ui-border-soft);
    vertical-align: middle;
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .table > :not(caption) > * > * { padding: .78rem .82rem; }
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .table > thead > tr > th {
    background: var(--fp-ui-surface-subtle);
    color: var(--fp-muted);
    font-size: .76rem;
    font-weight: 760;
    letter-spacing: .035em;
    text-transform: uppercase;
    white-space: nowrap;
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .table-hover > tbody > tr:hover > * {
    --bs-table-bg-state: color-mix(in srgb, var(--fp-brand) 4.5%, var(--fp-ui-surface));
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .nav-tabs,
.fp-ui-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    padding: .3rem;
    border: 1px solid var(--fp-ui-border-soft);
    border-radius: var(--fp-ui-radius);
    background: var(--fp-ui-surface-subtle);
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .nav-tabs .nav-link,
.fp-ui-tabs .nav-link {
    margin: 0;
    border: 0;
    border-radius: var(--fp-ui-radius-sm);
    color: var(--fp-muted);
    font-weight: 680;
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .nav-tabs .nav-link:hover,
.fp-ui-tabs .nav-link:hover { color: var(--fp-ink); background: color-mix(in srgb, var(--fp-surface) 78%, var(--fp-soft)); }
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .nav-tabs .nav-link.active,
.fp-ui-tabs .nav-link.active {
    background: var(--fp-ui-surface);
    color: var(--fp-brand);
    box-shadow: var(--fp-ui-shadow-sm);
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .alert,
.fp-ui-message {
    border: 1px solid var(--fp-ui-border-soft);
    border-radius: var(--fp-ui-radius);
    padding: .85rem 1rem;
    box-shadow: none;
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .alert-success { border-color: color-mix(in srgb, var(--fp-success) 26%, var(--fp-line)); background: var(--fp-success-bg); color: color-mix(in srgb, var(--fp-success) 88%, #000); }
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .alert-warning { border-color: color-mix(in srgb, var(--fp-warning) 28%, var(--fp-line)); background: var(--fp-warning-bg); color: color-mix(in srgb, var(--fp-warning) 90%, #000); }
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .alert-danger { border-color: color-mix(in srgb, var(--fp-danger) 28%, var(--fp-line)); background: var(--fp-danger-bg); color: color-mix(in srgb, var(--fp-danger) 90%, #000); }
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .alert-info { border-color: color-mix(in srgb, var(--fp-info) 26%, var(--fp-line)); background: var(--fp-info-bg); color: color-mix(in srgb, var(--fp-info) 90%, #000); }
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .modal-content {
    border: 1px solid var(--fp-ui-border-soft);
    border-radius: calc(var(--fp-ui-radius-lg) + .12rem);
    background: var(--fp-ui-surface);
    box-shadow: var(--fp-ui-shadow-lg);
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) :where(.modal-header, .modal-footer) {
    padding: .9rem 1rem;
    border-color: var(--fp-ui-border-soft);
}
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .modal-body { padding: 1rem; }
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .modal-title { color: var(--fp-heading); font-weight: 740; }
:where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .modal-backdrop.show { opacity: .48; }

/* Factor Print v2.59.1.3 — безпечний внутрішній відступ дій в inline-калькуляторі. */
.calculator-inline-wrapper .modal-footer {
    padding: 1.15rem 1.5rem 1.5rem;
    gap: .75rem;
}body:has(.admin-main-nav-wrap) main {
    min-inline-size: 0;
}
body:has(.admin-main-nav-wrap) main > :where(.container, .container-fluid, .container-xl, .container-xxl) {
    min-inline-size: 0;
}
body:has(.admin-main-nav-wrap) :where(.settings-card, .admin-dashboard-panel, .fp-business-panel) {
    border-color: var(--fp-ui-border-soft);
    border-radius: var(--fp-ui-radius-lg);
    box-shadow: var(--fp-ui-shadow-sm);
}
body:has(.admin-main-nav-wrap) :where(.btn-group, .btn-group-vertical) > .btn:not(.btn-link) {
    border-radius: 0;
}
body:has(.admin-main-nav-wrap) .btn-group > .btn:first-child { border-start-start-radius: var(--fp-ui-radius); border-end-start-radius: var(--fp-ui-radius); }
body:has(.admin-main-nav-wrap) .btn-group > .btn:last-child { border-start-end-radius: var(--fp-ui-radius); border-end-end-radius: var(--fp-ui-radius); }
body:has(.admin-main-nav-wrap) .btn-group-vertical > .btn:first-child { border-start-start-radius: var(--fp-ui-radius); border-start-end-radius: var(--fp-ui-radius); }
body:has(.admin-main-nav-wrap) .btn-group-vertical > .btn:last-child { border-end-start-radius: var(--fp-ui-radius); border-end-end-radius: var(--fp-ui-radius); }
body:has(.admin-main-nav-wrap) .table-responsive:has(> .table) {
    border-radius: var(--fp-ui-radius-lg);
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--fp-brand) 22%, transparent) transparent;
}
body:has(.admin-main-nav-wrap) :where(.modal-header .btn-close, .alert .btn-close) {
    flex: 0 0 auto;
    border-radius: 999px;
}
body:has(.admin-main-nav-wrap) :where(.card, .fp-ui-card):focus-within {
    border-color: color-mix(in srgb, var(--fp-brand) 18%, var(--fp-ui-border-soft));
}
body:has(.admin-main-nav-wrap) .fp-ui-page + .fp-ui-page { margin-block-start: var(--fp-ui-page-gap); }

/* Factor Print v2.59.1.2 — банківські підключення; CSS Snapshot 2026. */
@media (max-width: 1199.98px) {
    .fp-ui-page-grid > :is(.fp-ui-span-9, .fp-ui-span-8) { grid-column: span 12; }
    .fp-ui-page-grid > .fp-ui-span-4 { grid-column: span 6; }
    .fp-ui-page-grid > .fp-ui-span-3 { grid-column: span 6; }
}
@media (max-width: 767.98px) {
    .fp-ui-page-grid > :is(.fp-ui-span-12, .fp-ui-span-9, .fp-ui-span-8, .fp-ui-span-6, .fp-ui-span-4, .fp-ui-span-3) { grid-column: span 12; }
    .fp-ui-page-actions,
    .fp-ui-toolbar,
    .fp-ui-toolbar > :is(.fp-ui-toolbar-start, .fp-ui-toolbar-end) { align-items: stretch; }
    .fp-ui-page-actions { justify-content: stretch; }
    .fp-ui-page-actions > .btn { flex: 1 1 auto; }
    :where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .nav-tabs,
    .fp-ui-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
    :where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .nav-tabs .nav-link,
    .fp-ui-tabs .nav-link { white-space: nowrap; }
}
@media (max-width: 575.98px) {
    :where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .modal-dialog:not(.modal-fullscreen) { margin: .45rem; }
    :where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .modal-content { border-radius: var(--fp-ui-radius); }
    :where(body:has(.admin-main-nav-wrap), .fp-ui-surface) .table > :not(caption) > * > * { padding: .68rem .7rem; }
}

/* Factor Print v2.59.2 — адаптивна картка товару та калькулятор; CSS Snapshot 2026. */
.fp-catalog-page .catalog-hero {
    align-items: flex-start;
    min-block-size: 4.5rem;
}
.fp-catalog-page .catalog-eyebrow {
    margin-block-end: .4rem;
    color: var(--fp-muted);
    font-size: .75rem;
    font-weight: 760;
    letter-spacing: .055em;
    text-transform: uppercase;
}
.fp-catalog-page .catalog-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    color: var(--fp-muted);
    font-size: .92rem;
}
.fp-catalog-page .catalog-toolbar {
    border: 1px solid var(--fp-ui-border-soft) !important;
    border-radius: var(--fp-ui-radius-lg);
    box-shadow: var(--fp-ui-shadow-sm) !important;
}
.fp-catalog-page .catalog-toolbar .card-body { padding: .78rem .9rem; }
.fp-catalog-page .catalog-toolbar .form-select { min-inline-size: 9.5rem; }
.fp-catalog-page .catalog-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
}
.fp-catalog-page .catalog-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-block-size: 2.15rem;
    padding: .36rem .68rem;
    border: 1px solid color-mix(in srgb, var(--fp-brand) 18%, var(--fp-ui-border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--fp-brand) 5%, var(--fp-ui-surface));
    color: var(--fp-ink);
    font-size: .82rem;
    font-weight: 650;
    text-decoration: none;
}
.fp-catalog-page .catalog-filter-chip:hover {
    border-color: color-mix(in srgb, var(--fp-brand) 38%, var(--fp-ui-border));
    color: var(--fp-brand);
}
.fp-catalog-page .catalog-filter-reset {
    padding: .35rem .25rem;
    color: var(--fp-muted);
    font-size: .82rem;
    font-weight: 650;
    text-decoration: none;
}
.fp-catalog-page .catalog-subcategories {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .72rem .8rem;
    border: 1px solid var(--fp-ui-border-soft);
    border-radius: var(--fp-ui-radius-lg);
    background: var(--fp-ui-surface);
    box-shadow: var(--fp-ui-shadow-sm);
}
.fp-catalog-page .catalog-subcategories-label {
    flex: 0 0 auto;
    color: var(--fp-muted);
    font-size: .78rem;
    font-weight: 760;
}
.fp-catalog-page .catalog-subcategories-list {
    display: flex;
    min-inline-size: 0;
    flex-wrap: wrap;
    gap: .4rem;
}
.fp-catalog-page .catalog-subcategory-link {
    display: inline-flex;
    align-items: center;
    min-block-size: 2rem;
    padding: .3rem .62rem;
    border-radius: 999px;
    background: var(--fp-ui-surface-subtle);
    color: var(--fp-ink);
    font-size: .82rem;
    font-weight: 650;
    text-decoration: none;
}
.fp-catalog-page .catalog-subcategory-link:hover { background: color-mix(in srgb, var(--fp-brand) 9%, var(--fp-ui-surface)); color: var(--fp-brand); }
.fp-catalog-page .catalog-navigation-panel,
.fp-catalog-page .catalog-filters-panel {
    padding: .95rem;
    border: 1px solid var(--fp-ui-border-soft);
    border-radius: var(--fp-ui-radius-lg);
    background: var(--fp-ui-surface);
    box-shadow: var(--fp-ui-shadow-sm);
}
.fp-catalog-page .catalog-navigation-panel + .catalog-filters-panel { margin-block-start: 1rem; }
.fp-catalog-page .fp-catalog-product-card {
    border: 1px solid var(--fp-ui-border-soft) !important;
    border-radius: var(--fp-ui-radius-lg);
    background: var(--fp-ui-surface);
    box-shadow: var(--fp-ui-shadow-sm) !important;
}
.fp-catalog-page .fp-catalog-product-card:hover {
    border-color: color-mix(in srgb, var(--fp-brand) 18%, var(--fp-ui-border-soft)) !important;
    box-shadow: var(--fp-ui-shadow-md) !important;
}
.fp-catalog-page .fp-catalog-product-card .card-body { padding: 1rem; }
.fp-catalog-page .catalog-grid.list-view .fp-catalog-product-card {
    grid-template-columns: minmax(9.5rem, 13rem) minmax(0, 1fr);
}
.fp-catalog-page .catalog-grid.list-view .product-title { font-size: 1rem; }
.fp-catalog-page .catalog-grid.list-view .product-card-footer { margin-block-start: .55rem !important; }
.fp-catalog-page .pagination {
    --bs-pagination-border-color: var(--fp-ui-border-soft);
    --bs-pagination-color: var(--fp-muted);
    --bs-pagination-hover-color: var(--fp-brand);
    --bs-pagination-hover-bg: var(--fp-ui-surface-subtle);
    --bs-pagination-focus-box-shadow: var(--fp-ui-focus-ring);
    --bs-pagination-active-bg: var(--fp-brand);
    --bs-pagination-active-border-color: var(--fp-brand);
}
.fp-catalog-page .pagination .page-link {
    min-inline-size: 2.45rem;
    min-block-size: 2.45rem;
    display: grid;
    place-items: center;
    border-radius: var(--fp-ui-radius-sm) !important;
    font-weight: 680;
}
.fp-catalog-page .catalog-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-block-start: 1.35rem;
}
.fp-catalog-page .catalog-load-more { min-inline-size: min(100%, 15rem); }
.fp-catalog-page .search-group {
    border-radius: var(--fp-ui-radius);
    box-shadow: 0 0 0 1px transparent;
    transition: box-shadow .16s ease;
}
.fp-catalog-page .search-group:focus-within { box-shadow: var(--fp-ui-focus-ring); }
.fp-catalog-page .search-group:focus-within :where(.form-control, .input-group-text, .btn) { border-color: color-mix(in srgb, var(--fp-brand) 45%, var(--fp-ui-border)); }
@media (max-width: 991.98px) {
    .fp-catalog-page .catalog-hero { min-block-size: 0; }
    .fp-catalog-page .catalog-subcategories { align-items: flex-start; flex-direction: column; }
    .fp-catalog-page .catalog-subcategories-list { flex-wrap: nowrap; inline-size: 100%; overflow-x: auto; padding-block-end: .15rem; scrollbar-width: thin; }
    .fp-catalog-page .catalog-subcategory-link { flex: 0 0 auto; }
}
@media (max-width: 767.98px) {
    .fp-catalog-page .catalog-toolbar .card-body { align-items: stretch !important; }
    .fp-catalog-page .catalog-toolbar .card-body > .d-flex { justify-content: space-between; }
    .fp-catalog-page .catalog-toolbar .form-select { inline-size: min(62vw, 13rem); min-inline-size: 0; }
    .fp-catalog-page .view-switcher { inline-size: 100%; }
    .fp-catalog-page .view-switcher .btn { flex: 1 1 50%; }
    .fp-catalog-page .catalog-grid.list-view .fp-catalog-product-card { grid-template-columns: 7.5rem minmax(0, 1fr); }
    .fp-catalog-page .catalog-grid.list-view .card-body { padding: .85rem; }
    .fp-catalog-page .catalog-active-filters { gap: .35rem; }
}

/* Factor Print v2.59.2 — повна візуальна уніфікація публічної картки товару; CSS Snapshot 2026. */
.fp-bank-sticky-editor { top: 6rem; }
.fp-bank-connection-card .badge { white-space: nowrap; }
.fp-bank-account-select { min-inline-size: min(100%, 18rem); }
@media (max-width: 1199.98px) { .fp-bank-sticky-editor { top: auto; } }

/* Factor Print v2.59.4 — Telegram Bot Management + Unified Inbox; CSS Snapshot 2026. */

@media (min-width: 768px) {
    .calculator-inline-wrapper .modal-footer {
        padding-right: 2rem;
        padding-left: 2rem;
    }
}

.fp-product-page {
    --fp-product-surface: var(--fp-ui-surface, #fff);
    --fp-product-surface-soft: var(--fp-ui-surface-subtle, #f6f8f9);
    --fp-product-border: var(--fp-ui-border-soft, #dfe6ea);
    --fp-product-border-strong: var(--fp-ui-border, #cdd8de);
    --fp-product-radius: var(--fp-ui-radius-lg, 1rem);
    --fp-product-radius-sm: var(--fp-ui-radius, .75rem);
    --fp-product-shadow: var(--fp-ui-shadow-sm, 0 .35rem 1.25rem rgb(20 41 51 / .06));
}
.fp-product-main { min-inline-size: 0; }
.fp-product-page .fp-product-template .product-template-section { min-inline-size: 0; }
.fp-product-page .fp-product-template .product-template-section + .product-template-section { margin-top: clamp(2rem, 4vw, 3.5rem) !important; }
.fp-product-page .product-template-block { min-inline-size: 0; }
.fp-product-page .fp-product-summary {
    border: 1px solid var(--fp-product-border) !important;
    border-radius: calc(var(--fp-product-radius) + .2rem);
    background: var(--fp-product-surface);
    box-shadow: var(--fp-product-shadow) !important;
    overflow: clip;
}
.fp-product-page .fp-product-summary > .card-body { display: flex; flex-direction: column; min-inline-size: 0; }
.fp-product-page .fp-product-summary > .card-body > .product-template-block { inline-size: 100%; min-inline-size: 0; align-self: stretch; }
.fp-product-page .fp-product-variant-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    margin-bottom: 1rem;
    padding: .72rem .85rem;
    border: 1px solid var(--fp-product-border);
    border-radius: var(--fp-product-radius-sm);
    background: var(--fp-product-surface-soft);
}
.fp-product-page .fp-product-variant-label { color: var(--fp-muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.fp-product-page .fp-product-variant-value { min-width: 0; color: var(--fp-heading); text-align: right; overflow-wrap: anywhere; }
.fp-product-page .fp-product-variant-summary--compact { justify-content: flex-start; }
.fp-product-page .fp-product-variant-summary--compact .fp-product-variant-value { text-align: left; }
.fp-product-page .fp-product-variants-list {
    padding-top: 1rem;
    border-top: 1px solid var(--fp-product-border);
}
.fp-product-page .fp-product-variants-list .related-products-list { display: grid; gap: .55rem; }
.fp-product-page .fp-product-variants-list .related-product-row {
    border-color: var(--fp-product-border);
    border-radius: var(--fp-product-radius-sm);
    background: var(--fp-product-surface);
    box-shadow: 0 .15rem .55rem rgb(20 41 51 / .035);
}
.fp-product-page .fp-product-variants-list .related-product-row:hover { border-color: color-mix(in srgb, var(--fp-brand) 30%, var(--fp-product-border)); background: var(--fp-product-surface-soft); }
.fp-product-page .fp-product-section { min-inline-size: 0; }
.fp-product-page .fp-product-characteristics { display: grid; gap: .25rem; }
.fp-product-page .fp-product-section-head { display: flex; flex-direction: column; gap: .25rem; }
.fp-product-page .fp-product-section-kicker,
.fp-product-page .fp-product-config-heading {
    color: var(--fp-muted);
    font-size: .75rem;
    font-weight: 760;
    letter-spacing: .055em;
    line-height: 1.25;
    text-transform: uppercase;
}
.fp-product-page .fp-product-config-heading { margin-bottom: .65rem; }
.fp-product-page .fp-product-property-card,
.fp-product-page .property-compact-card {
    border: 1px solid var(--fp-product-border) !important;
    border-radius: var(--fp-product-radius) !important;
    background: var(--fp-product-surface);
    box-shadow: var(--fp-product-shadow) !important;
    overflow: hidden;
}
.fp-product-page .fp-product-property-card .card-header { border-color: var(--fp-product-border) !important; background: var(--fp-product-surface-soft) !important; }
.fp-product-page .fp-product-property-card .property-key { background: var(--fp-product-surface-soft); }
.fp-product-page .fp-product-property-card .property-row { border-color: var(--fp-product-border); }
.fp-product-page .fp-product-calculator {
    border: 1px solid var(--fp-product-border) !important;
    border-radius: calc(var(--fp-product-radius) + .3rem) !important;
    background: var(--fp-product-surface);
    box-shadow: 0 1.5rem 4rem rgb(20 41 51 / .16) !important;
    overflow: hidden;
}
.fp-product-page .fp-product-calculator > .modal-header {
    padding: 1.15rem 1.3rem;
    border-bottom: 1px solid var(--fp-product-border);
    background: var(--fp-product-surface);
}
.fp-product-page .fp-product-calculator-body { padding: 1.25rem; background: var(--fp-product-surface-soft); }
.fp-product-page .fp-product-config-group { min-inline-size: 0; }
.fp-product-page .fp-product-config-card {
    min-inline-size: 0;
    padding: 1rem !important;
    border: 1px solid var(--fp-product-border) !important;
    border-radius: var(--fp-product-radius) !important;
    background: var(--fp-product-surface) !important;
    box-shadow: 0 .2rem .8rem rgb(20 41 51 / .04) !important;
}
.fp-product-page .fp-product-config-card + .fp-product-config-card { margin-top: .65rem; }
.fp-product-page .fp-product-calculator :where(.form-control, .form-select, .input-group-text) {
    min-height: 2.65rem;
    border-color: var(--fp-product-border-strong);
    border-radius: var(--fp-ui-radius-sm, .62rem);
    background-color: var(--fp-product-surface);
}
.fp-product-page .fp-product-calculator :where(.form-control, .form-select):focus {
    border-color: color-mix(in srgb, var(--fp-brand) 52%, var(--fp-product-border-strong));
    box-shadow: var(--fp-ui-focus-ring, 0 0 0 .2rem rgb(20 41 51 / .1));
}
.fp-product-page .fp-product-calculator .form-label { color: var(--fp-heading); }
.fp-product-page .fp-product-calculator .form-text { color: var(--fp-muted); line-height: 1.45; }
.fp-product-page .fp-product-materials .production-material-card { margin-bottom: .7rem !important; }
.fp-product-page .fp-product-materials .production-material-card:last-child { margin-bottom: 0 !important; }
.fp-product-page .fp-material-options { gap: .55rem; }
.fp-product-page .fp-material-option {
    min-height: 4.6rem;
    border-color: var(--fp-product-border);
    border-radius: var(--fp-product-radius-sm);
    background: var(--fp-product-surface);
    box-shadow: none;
}
.fp-product-page .fp-material-option:hover { border-color: color-mix(in srgb, var(--fp-brand) 35%, var(--fp-product-border)); background: var(--fp-product-surface-soft); transform: none; }
.fp-product-page .fp-material-option.is-selected,
.fp-product-page .fp-material-option[aria-pressed="true"] {
    border-color: var(--fp-brand);
    background: color-mix(in srgb, var(--fp-brand) 6%, var(--fp-product-surface));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--fp-brand) 14%, transparent);
}
.fp-product-page .fp-material-option.is-selected::after { background: #fff; }
.fp-product-page .fp-material-name { color: var(--fp-heading); font-weight: 680; }
.fp-product-page .fp-material-price { color: var(--fp-price); font-weight: 760; }
.fp-product-page .fp-product-operations .fp-operation-grid { align-items: stretch; }
.fp-product-page .fp-product-operations .production-zone-card { height: 100%; margin: 0 !important; }
.fp-product-page .fp-product-operations .production-zone-card > .form-label { display: block; margin-bottom: .75rem; color: var(--fp-heading); font-weight: 760 !important; }
.fp-product-page .fp-operation-view-cards .fp-operation-choice {
    border: 1px solid var(--fp-product-border);
    border-radius: var(--fp-ui-radius-sm, .62rem);
    background: var(--fp-product-surface);
}
.fp-product-page .fp-operation-view-cards .fp-operation-choice:has(input:checked) { border-color: var(--fp-brand); background: color-mix(in srgb, var(--fp-brand) 6%, var(--fp-product-surface)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--fp-brand) 12%, transparent); }
.fp-product-page .fp-product-toggle-row {
    min-height: 3rem;
    margin: 0 0 .55rem !important;
    padding: .75rem .85rem .75rem 3rem;
    border: 1px solid var(--fp-product-border);
    border-radius: var(--fp-product-radius-sm);
    background: var(--fp-product-surface);
}
.fp-product-page .fp-product-toggle-row:last-child { margin-bottom: 0 !important; }
.fp-product-page .fp-product-toggle-row .form-check-input { margin-left: -2.15rem; }
.fp-product-page .quote-option-choice.fp-product-config-card { margin: 0; }
.fp-product-page .quote-option-choice [data-option-rule-button-group] .btn {
    min-height: 2.65rem;
    border-color: var(--fp-product-border-strong);
    border-radius: var(--fp-ui-radius-sm, .62rem);
    background: var(--fp-product-surface);
}
.fp-product-page .quote-option-choice [data-option-rule-button][data-selected="1"],
.fp-product-page .quote-option-choice [data-option-rule-button][aria-pressed="true"] { border-color: var(--fp-brand); background: var(--fp-brand); color: var(--fp-brand-contrast, #fff); }
.fp-product-page .fp-product-price-summary {
    gap: .65rem;
    padding: 1rem 1.05rem;
    border: 1px solid color-mix(in srgb, var(--fp-brand) 12%, var(--fp-product-border));
    border-radius: var(--fp-product-radius);
    background: color-mix(in srgb, var(--fp-brand) 3%, var(--fp-product-surface));
}
.fp-product-page .fp-product-price-summary .quote-divider { background: var(--fp-product-border); }
.fp-product-page .fp-product-price-summary .quote-row-total { margin-top: .1rem; padding-top: .5rem; border-top: 1px solid var(--fp-product-border); }
.fp-product-page .fp-product-price-summary .quote-row-total strong { color: var(--fp-price); font-size: 1.15rem; }
.fp-product-page .fp-product-calculator-footer {
    gap: .6rem;
    padding: .9rem 1.25rem;
    border-top: 1px solid var(--fp-product-border);
    background: var(--fp-product-surface);
}
.fp-product-page .fp-product-calculator-footer form { margin: 0; }
.fp-product-page .fp-product-calculator-footer .btn { min-height: 2.7rem; border-radius: var(--fp-ui-radius-sm, .62rem); }
.fp-product-page .calculator-inline-wrapper .fp-product-calculator {
    box-shadow: none !important;
    border-radius: var(--fp-product-radius) !important;
}
.fp-product-page .calculator-inline-wrapper .fp-product-calculator-body { padding: 1rem; }
.fp-product-page .calculator-inline-wrapper .fp-product-calculator-footer { margin: 0; padding-inline: 1rem; }
.fp-product-page .fp-product-calculator .quote-product-preview {
    padding: .75rem;
    border: 1px solid var(--fp-product-border);
    border-radius: var(--fp-product-radius-sm);
    background: var(--fp-product-surface);
}
.fp-product-page .fp-product-calculator .quote-product-thumbnail { border: 1px solid var(--fp-product-border); }
.fp-product-page .fp-product-calculator .alert { border-radius: var(--fp-product-radius-sm); }
@media (max-width: 767.98px) {
    .fp-product-page .fp-product-template .product-template-section + .product-template-section { margin-top: 2rem !important; }
    .fp-product-page .fp-product-summary > .card-body { padding: 1rem !important; }
    .fp-product-page .fp-product-variant-summary { align-items: flex-start; flex-direction: column; gap: .25rem; }
    .fp-product-page .fp-product-variant-value { text-align: left; }
    .fp-product-page .fp-product-calculator-body { padding: .75rem; }
    .fp-product-page .fp-product-config-card { padding: .8rem !important; }
    .fp-product-page .fp-product-calculator-footer { align-items: stretch; padding: .75rem; }
    .fp-product-page .fp-product-calculator-footer > :is(form, .btn) { width: 100%; }
    .fp-product-page .fp-product-calculator-footer form .btn { width: 100%; }
}
@media (max-width: 575.98px) {
    .fp-product-page .fp-product-property-card .property-row { grid-template-columns: minmax(0,1fr); }
    .fp-product-page .fp-product-property-card :is(.property-key, .property-values) { padding: .75rem 1rem; }
    .fp-product-page .fp-product-property-card .property-key { padding-bottom: .35rem; background: var(--fp-product-surface); font-size: .75rem; }
    .fp-product-page .fp-product-property-card .property-values { padding-top: .35rem; }
    .fp-product-page .fp-product-price-summary .quote-row { gap: .7rem; }
    .fp-product-page .fp-product-price-summary .quote-row > span { min-width: 0; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
    .fp-product-page :is(.fp-material-option, .related-product-row, .fp-operation-choice, .btn) { transition: none !important; }
}
.fp-customer-price-gate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
    padding: .9rem 1rem;
    border: 1px solid var(--fp-line, #d9e1e5);
    border-radius: var(--fp-ui-radius, .8rem);
    background: var(--fp-surface-soft, #f7f9fa);
}
.fp-customer-price-gate-copy { display: grid; gap: .15rem; min-width: 0; }
.fp-customer-price-gate-copy strong { color: var(--fp-heading, #142933); }
.fp-customer-price-gate-copy span { color: var(--fp-muted, #6e818b); font-size: .88rem; line-height: 1.35; }
.fp-product-price-gate { display: flex; align-items: center; min-height: 2.3rem; }
.fp-related-price-gate { color: var(--fp-muted, #6e818b); font-weight: 650; }

.fp-customer-price-modal .modal-content { border-radius: var(--fp-ui-radius-lg, 1rem); }
.fp-customer-price-modal .modal-header,
.fp-customer-price-modal .modal-footer { padding: 1rem 1.15rem; }
.fp-customer-price-modal .modal-body { padding: 1.15rem; }
.fp-customer-price-modal-actions { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: flex-end; }
@media (max-width: 575.98px) {
    .fp-customer-price-gate { align-items: stretch; flex-direction: column; }
    .fp-customer-price-gate .btn { width: 100%; }
    .fp-customer-price-modal-actions .btn { flex: 1 1 100%; }
}

.checkout-layout-service { display: grid; gap: .5rem; padding-block: .45rem; }
.checkout-layout-service--creation { padding-top: 0; padding-bottom: .9rem; }
.checkout-layout-service--revision,
.checkout-layout-service--other { margin-top: .75rem; padding-top: .9rem; border-top: 1px solid var(--fp-line, #d9e1e5); }
.checkout-service-check { display: flex; align-items: flex-start; gap: .55rem; min-height: 1.5rem; }
.checkout-service-check .form-check-input { flex: 0 0 auto; margin-top: .2rem; }
[data-layout-source-fields][hidden] { display: none !important; }


.fp-message-shortcode { width: 100%; }
.fp-message-shortcode-inline { margin-block: 1rem; }
.fp-message-form { display: grid; gap: .9rem; }
.fp-message-field { display: grid; gap: .38rem; }
.fp-message-field > span,
.fp-message-recipient > span { color: var(--fp-muted, #6e818b); font-size: .82rem; font-weight: 700; }
.fp-message-field small { color: var(--fp-muted, #6e818b); }
.fp-message-recipient { display: grid; gap: .18rem; padding: .75rem .9rem; border: 1px solid var(--fp-line, #d9e1e5); border-radius: var(--fp-ui-radius, .8rem); background: var(--fp-surface-soft, #f7f9fa); }
.fp-message-actions { display: flex; justify-content: flex-end; gap: .6rem; }
.fp-message-auth { display: grid; gap: .65rem; padding: 1rem; border: 1px solid var(--fp-line, #d9e1e5); border-radius: var(--fp-ui-radius, .8rem); background: var(--fp-surface-soft, #f7f9fa); }
.fp-message-auth p { margin: 0; color: var(--fp-muted, #6e818b); }
.fp-message-auth-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.fp-message-dialog { width: min(720px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: var(--fp-ui-radius-lg, 1rem); background: var(--fp-surface, #fff); box-shadow: 0 26px 80px rgba(20,41,51,.22); }
.fp-message-dialog::backdrop { background: rgba(16, 28, 34, .56); }
.fp-message-dialog-shell { display: grid; max-height: calc(100vh - 2rem); }
.fp-message-dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--fp-line, #d9e1e5); }
.fp-message-dialog-header > div { display: grid; gap: .2rem; }
.fp-message-dialog-header span { color: var(--fp-muted, #6e818b); font-size: .85rem; }
.fp-message-dialog-body { overflow: auto; padding: 1.1rem; }
@media (max-width: 575.98px) {
    .fp-message-actions .btn, .fp-message-auth-actions .btn { width: 100%; }
    .fp-message-dialog-header { align-items: stretch; flex-direction: column; }
}


.fp-message-context { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem .65rem; padding:.55rem .7rem; border:1px solid var(--fp-line,#d9e1e5); border-radius:var(--fp-ui-radius-sm,.62rem); background:var(--fp-surface-soft,#f7f9fa); }
.fp-message-context strong { color:var(--fp-heading,#142933); }
.fp-message-context a { font-size:.84rem; font-weight:700; text-decoration:none; }
.fp-message-auth-dialog .fp-message-auth-actions { width:100%; }
@media(max-width:575.98px){.fp-message-context{align-items:flex-start;flex-direction:column}.fp-message-auth-dialog .fp-message-auth-actions{display:grid}.fp-message-auth-dialog .fp-message-auth-actions .btn{width:100%}}
.fp-telegram-admin .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}
.fp-telegram-admin .nav-tabs .nav-link { white-space: nowrap; }
.fp-telegram-admin .card { border-color: var(--fp-ui-border-soft); }
.fp-telegram-admin .table > :not(caption) > * > * { vertical-align: middle; }
.fp-unified-contact-panel {
    background: color-mix(in srgb, var(--fp-brand) 4%, var(--fp-surface));
}
.fp-unified-contact-panel .form-select { min-inline-size: min(22rem, 48vw); }
@media (max-width: 767.98px) {
    .fp-unified-contact-panel .d-flex { align-items: stretch !important; }
    .fp-unified-contact-panel form { flex-wrap: wrap; }
    .fp-unified-contact-panel .form-select { min-inline-size: 100%; }
}


/* Factor Print v2.59.4.1 — компактне «Листування», фільтри та локальне контекстне меню дій. CSS Snapshot 2026. */
.messaging-layout > .col-xl-3 { min-width: 0; }
.messaging-list-card .list-group-item { padding: .72rem .8rem; }
.fp-message-list-title { font-size: .9rem; max-width: 100%; }
.fp-message-list-person { font-size: .78rem; opacity: .78; }
.fp-message-filters .form-select { min-width: 0; }
.fp-conversation-presence { padding: .45rem .65rem; border-radius: .65rem; background: var(--bs-tertiary-bg); }
.message-bubble-meta { align-items: center; }
.fp-message-actions { position: relative; }
.fp-message-action-trigger { display: inline-flex; align-items: center; gap: .38rem; padding: .2rem .48rem; font-size: .72rem; line-height: 1.15; border-radius: .5rem; opacity: .78; }
.fp-message-action-trigger:hover, .fp-message-actions.is-open .fp-message-action-trigger { opacity: 1; }
.fp-message-actions .dropdown-menu { display: none; position: absolute; inset-inline-end: 0; inset-inline-start: auto; top: calc(100% + .25rem); z-index: 1080; min-width: 12rem; }
.fp-message-actions.is-open .dropdown-menu { display: block; }
.fp-message-actions .dropdown-item { font-size: .875rem; }
.fp-message-actions form { margin: 0; }
.fp-reply-preview { margin-bottom: .75rem; }
@media (max-width: 1199.98px) { .fp-message-filters .d-flex { flex-direction: column; } }

.message-image-preview {
    display: inline-block;
    width: fit-content;
    max-width: min(100%, 30rem);
    border-radius: .8rem;
    overflow: hidden;
    line-height: 0;
}

.message-image-preview img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 24rem;
    object-fit: contain;
    border-radius: inherit;
}

.fp-message-lightbox{width:min(1120px,calc(100vw - 2rem));height:min(92vh,900px);border:0;border-radius:18px;padding:0;background:rgba(10,15,20,.96);box-shadow:0 28px 90px rgba(0,0,0,.42);overflow:hidden}
.fp-message-lightbox::backdrop{background:rgba(10,15,20,.78);backdrop-filter:blur(4px)}
.fp-message-lightbox img{display:block;width:100%;height:100%;object-fit:contain;padding:1.25rem}
.fp-message-lightbox-close{position:absolute;top:.75rem;right:.75rem;z-index:2;width:42px;height:42px;border:0;border-radius:999px;background:rgba(255,255,255,.92);color:#111;display:grid;place-items:center;font-size:1.15rem;box-shadow:0 8px 25px rgba(0,0,0,.2)}
.fp-message-edit-panel{margin-top:.75rem;padding:.75rem;border:1px solid var(--bs-border-color);border-radius:12px;background:var(--bs-tertiary-bg)}
.fp-message-edited{font-size:.76rem;color:var(--bs-secondary-color);white-space:nowrap}
.fp-message-files>summary{cursor:pointer;display:inline-flex;align-items:center;font-weight:600;color:var(--bs-secondary-color);user-select:none}
.fp-message-files[open]>summary{color:var(--bs-body-color)}
@media(max-width:575.98px){.fp-message-lightbox{width:calc(100vw - .75rem);height:calc(100vh - .75rem);border-radius:14px}.fp-message-lightbox img{padding:.5rem}.fp-message-lightbox-close{top:.5rem;right:.5rem}}

/* Fprint v2.59.4.4 — повідомлення у шапці, live-бейдж та діалог переадресації. CSS Snapshot 2026. */
.fp-admin-message-alert {
    overflow: visible;
}
.fp-admin-message-alert .fp-admin-message-badge {
    position: absolute;
    top: -.45rem;
    right: -.5rem;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 .35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    line-height: 1;
    border: 2px solid var(--fp-surface, #fff);
}
.fp-message-transfer-dialog {
    width: min(94vw, 34rem);
    max-width: 34rem;
    border: 0;
    border-radius: 1rem;
    padding: 0;
    background: var(--fp-surface, #fff);
    color: inherit;
    box-shadow: 0 1.5rem 4rem rgb(15 23 42 / .22);
}
.fp-message-transfer-dialog::backdrop {
    background: rgb(15 23 42 / .48);
    backdrop-filter: blur(2px);
}
.fp-message-transfer-form {
    padding: 1.35rem;
}
@media (max-width: 575.98px) {
    .fp-admin-message-alert .fp-admin-message-badge {
        top: -.35rem;
        right: -.35rem;
    }
    .fp-message-transfer-form {
        padding: 1rem;
    }
}

/* Fprint v2.59.5 — контраст меню дій у темній бульбашці листування та фільтр Замовників. CSS Snapshot 2026. */
.message-bubble-user .fp-message-action-trigger {
    color: #fff;
    border-color: rgb(255 255 255 / .55);
    background: rgb(255 255 255 / .08);
}
.message-bubble-user .fp-message-action-trigger:hover,
.message-bubble-user .fp-message-actions.is-open .fp-message-action-trigger {
    color: #fff;
    border-color: rgb(255 255 255 / .9);
    background: rgb(255 255 255 / .16);
}
.message-bubble-user .fp-message-actions .dropdown-menu {
    color: var(--fp-ink, #142933);
    background: var(--fp-surface, #fff);
}
.message-bubble-user .fp-message-actions .dropdown-item { color: var(--fp-ink, #142933); }
.fp-users-filter .form-label { margin-bottom: .35rem; }
.fp-users-filter .input-group-text { min-width: 2.6rem; justify-content: center; }
@media (max-width: 575.98px) {
    .fp-users-filter .btn { width: 100%; }
}

/* Fprint v2.60.0 — компактне листування на одному desktop-екрані та модальна форма нового повідомлення. CSS Snapshot 2026. */
.fp-message-compose-dialog {
    width: min(94vw, 980px);
    max-width: 980px;
    max-height: 92dvh;
    border: 0;
    padding: 0;
    border-radius: 1rem;
    background: transparent;
    color: inherit;
}
.fp-message-compose-dialog::backdrop {
    background: rgb(15 23 42 / .52);
    backdrop-filter: blur(3px);
}
.fp-message-compose-shell {
    max-height: 92dvh;
    overflow: auto;
    border-radius: 1rem;
}
.fp-conversation-info > summary {
    cursor: pointer;
    list-style: none;
    background: var(--bs-tertiary-bg);
}
.fp-conversation-info > summary::-webkit-details-marker { display: none; }
.fp-messages-page .messaging-thread-card .min-w-0 { min-width: 0; }
.fp-messages-page .messaging-thread-card > .card-header { flex: 0 0 auto; }
.fp-messages-page .messaging-thread-card > .card-footer { flex: 0 0 auto; }
@media (min-width: 992px) {
    .fp-messages-page .settings-container { padding-bottom: .75rem !important; }
    .fp-messages-page .messaging-layout {
        height: calc(100dvh - 260px);
        min-height: 500px;
    }
    .fp-messages-page .messaging-layout > [class*="col-"] {
        height: 100%;
        min-height: 0;
    }
    .fp-messages-page .messaging-layout > .col-lg-4,
    .fp-messages-page .messaging-layout > .col-xl-3 {
        display: flex;
        flex-direction: column;
    }
    .fp-messages-page .messaging-list-card {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    .fp-messages-page .messaging-list-card > .list-group {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
    }
    .fp-messages-page .messaging-thread-card {
        height: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    .fp-messages-page .messaging-thread {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
    }
    .fp-messages-page .messaging-thread-card > .card-header,
    .fp-messages-page .messaging-thread-card > .card-footer {
        padding: .75rem 1rem !important;
    }
    .fp-messages-page #adminReplyBody { min-height: 72px; }
    .fp-messages-page .fp-message-files.mt-3 { margin-top: .5rem !important; }
    .fp-messages-page .card-footer .btn.mt-3 { margin-top: .5rem !important; }
}
@media (max-width: 991.98px) {
    .fp-messages-page .messaging-thread { max-height: 62vh; }
    .fp-message-compose-dialog { width: calc(100vw - 1rem); }
}

/* Fprint v2.60.2 — hero-шапка «Листування» з інформацією, активністю та контекстом діалогу. */
.fp-messages-toolbar {
    background: linear-gradient(135deg, #132d3b 0%, #284a5a 100%);
    border-radius: 1.5rem;
    padding: 1.5rem 1.6rem;
    color: #f4f8fb;
}

.fp-messages-toolbar .h5,
.fp-messages-toolbar .h6,
.fp-messages-toolbar .btn {
    margin-bottom: 0;
}

.fp-messages-toolbar-heading {
    display: flex;
    flex: 1 1 48rem;
    flex-direction: column;
    gap: .35rem;
    min-width: 0;
}

.fp-messages-toolbar-kicker {
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(244, 248, 251, .72);
    font-weight: 700;
}

.fp-messages-toolbar-topic {
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
}

.fp-messages-toolbar-summary {
    font-size: .92rem;
    line-height: 1.4;
    color: rgba(244, 248, 251, .92);
}

.fp-messages-toolbar-meta,
.fp-messages-toolbar-context-items {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem .65rem;
}

.fp-messages-toolbar-meta {
    margin-top: .35rem;
}

.fp-messages-toolbar-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .42rem .68rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    color: #f4f8fb;
    font-size: .84rem;
    line-height: 1.2;
}

.fp-messages-toolbar-chip strong {
    color: #fff;
    font-weight: 700;
}

.fp-messages-toolbar-chip i {
    color: rgba(255, 255, 255, .82);
}

.fp-messages-toolbar-chip a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: .15em;
}

.fp-messages-toolbar-chip a:hover,
.fp-messages-toolbar-chip a:focus {
    color: #fff;
    text-decoration-thickness: 2px;
}

.fp-messages-toolbar-context {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    margin-top: .45rem;
    padding-top: .65rem;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.fp-messages-toolbar-context-title {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .78rem;
    font-weight: 700;
    color: rgba(244, 248, 251, .78);
}

.fp-messages-toolbar-chip-context {
    background: rgba(9, 31, 42, .28);
}

.fp-messages-toolbar-note {
    font-size: .9rem;
    color: rgba(244, 248, 251, .78);
}

.fp-messages-toolbar-actions {
    flex: 0 0 auto;
}

.fp-messages-toolbar-actions .btn-dark {
    background: #0f2430;
    border-color: #0f2430;
}

.fp-messages-toolbar-actions .btn-dark:hover,
.fp-messages-toolbar-actions .btn-dark:focus {
    background: #0b1c26;
    border-color: #0b1c26;
}

@media (max-width: 991.98px) {
    .fp-messages-toolbar {
        padding: 1.2rem 1.1rem;
        border-radius: 1.25rem;
    }

    .fp-messages-toolbar-meta,
    .fp-messages-toolbar-context-items {
        gap: .5rem;
    }

    .fp-messages-toolbar-chip {
        width: 100%;
        justify-content: flex-start;
        border-radius: .85rem;
    }

    .fp-messages-toolbar-actions {
        width: 100%;
    }

    .fp-messages-toolbar-actions .btn {
        width: 100%;
    }
}

/* Fprint v2.63.2 — реєстр макетів Центру перевірки: прев’ю та плаваюча панель масових дій. CSS Snapshot 2026. */
/* Fprint v2.60.3 — компактний перемикач Email-сповіщення біля поля відповіді у «Листуванні». */
.fp-message-email-toggle {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    width: fit-content;
    max-width: 100%;
    padding: .62rem .78rem;
    border: 1px solid var(--fp-line, #d9e1e5);
    border-radius: .75rem;
    background: var(--fp-surface-soft, #f7f9fa);
    cursor: pointer;
}
.fp-message-email-toggle .form-check-input {
    flex: 0 0 auto;
    margin: .15rem 0 0;
}
.fp-message-email-toggle-copy {
    display: grid;
    gap: .1rem;
    min-width: 0;
}
.fp-message-email-toggle-copy strong {
    color: var(--fp-heading, #142933);
    font-size: .86rem;
    line-height: 1.25;
}
.fp-message-email-toggle-copy small {
    color: var(--fp-muted, #6e818b);
    font-size: .78rem;
    line-height: 1.35;
}
@media (max-width: 575.98px) {
    .fp-message-email-toggle { width: 100%; }
}
/* Fprint v2.61.6 — палітра кольорів матеріалів у публічному калькуляторі. CSS Snapshot 2026. */
.fp-calculator-color-palette{display:grid;grid-template-columns:repeat(auto-fit,minmax(9.5rem,1fr));gap:.55rem}
.fp-calculator-color-option{display:flex;align-items:center;gap:.65rem;min-width:0;padding:.7rem .75rem;border:1px solid var(--fp-line,#d9e1e5);border-radius:var(--fp-ui-radius-sm,.62rem);background:var(--fp-surface,#fff);color:var(--fp-heading,#142933);text-align:left;transition:border-color .16s ease,box-shadow .16s ease,opacity .16s ease}
.fp-calculator-color-option:hover:not(:disabled){border-color:color-mix(in srgb,var(--bs-primary) 55%,var(--fp-line,#d9e1e5));box-shadow:0 4px 12px rgba(20,41,51,.08)}
.fp-calculator-color-option.is-selected{border-color:var(--bs-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--bs-primary) 18%,transparent)}
.fp-calculator-color-option.is-disabled,.fp-calculator-color-option:disabled{opacity:.55;cursor:not-allowed;background:var(--fp-surface-soft,#f7f9fa)}
.fp-calculator-color-swatch{inline-size:2rem;block-size:2rem;flex:none;border:1px solid color-mix(in srgb,var(--fp-heading,#142933) 28%,transparent);border-radius:50%;background:linear-gradient(135deg,#eef2f4 0 45%,#cbd6dc 45% 55%,#eef2f4 55% 100%)}
.fp-calculator-color-copy{display:grid;min-width:0;gap:.08rem;line-height:1.2}
.fp-calculator-color-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9rem}
.fp-calculator-color-copy small{color:var(--fp-muted,#6e818b);font-size:.75rem}
.fp-calculator-color-status{color:var(--bs-warning-text-emphasis,#664d03)!important}
@media(max-width:575.98px){.fp-calculator-color-palette{grid-template-columns:1fr 1fr}.fp-calculator-color-option{padding:.62rem}.fp-calculator-color-swatch{inline-size:1.65rem;block-size:1.65rem}}
/* Fprint v2.61.13 — компактна палітра dynamic material colors без показу технічних кодів. */
.fp-calculator-color-palette--swatches{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:.65rem;
}
.fp-calculator-color-palette--swatches .fp-calculator-color-option--swatch{
    position:relative;
    inline-size:3rem;
    block-size:3rem;
    min-inline-size:3rem;
    padding:.32rem;
    justify-content:center;
    border-radius:999px;
}
.fp-calculator-color-palette--swatches .fp-calculator-color-option--swatch .fp-calculator-color-swatch{
    inline-size:2.2rem;
    block-size:2.2rem;
    border-radius:999px;
}
.fp-calculator-color-palette--swatches .fp-calculator-color-option--swatch.is-selected::after{
    content:'✓';
    position:absolute;
    right:-.18rem;
    bottom:-.18rem;
    display:grid;
    place-items:center;
    inline-size:1.15rem;
    block-size:1.15rem;
    border-radius:999px;
    background:var(--bs-primary,#0d6efd);
    color:#fff;
    font-size:.72rem;
    font-weight:800;
    line-height:1;
    box-shadow:0 0 0 2px var(--fp-surface,#fff);
}
.fp-calculator-color-palette--swatches .fp-calculator-color-option--swatch:disabled{
    filter:saturate(.2);
}
.fp-preview-color-palette .fp-calculator-color-option--swatch{pointer-events:none}
@media(max-width:575.98px){
    .fp-calculator-color-palette--swatches{gap:.55rem}
    .fp-calculator-color-palette--swatches .fp-calculator-color-option--swatch{inline-size:2.7rem;block-size:2.7rem;min-inline-size:2.7rem}
    .fp-calculator-color-palette--swatches .fp-calculator-color-option--swatch .fp-calculator-color-swatch{inline-size:1.95rem;block-size:1.95rem}
}


/* Fprint v2.62.4 — final search overlay stacking override. */
.site-header { isolation: isolate; }
.site-header .navbar { position: relative; z-index: 3; overflow: visible; }
.catalog-search { position: relative; z-index: 4; }
.catalog-search:focus-within { z-index: 1105; }
.search-suggestions { position: absolute; z-index: 1110; background: var(--fp-surface, #fff); color: var(--fp-ink, #142933); }
.public-site-menu { position: relative; z-index: 2; }


/* Fprint v2.62.6 — password recovery. */
.password-recovery-code{font-variant-numeric:tabular-nums;letter-spacing:.45em;text-align:center;font-weight:800;font-size:1.35rem}
/* Fprint v2.65.2 — вкладки видимих груп матеріалів у калькуляторі. CSS Snapshot 2026. */
.preflight-layouts-table th,
.preflight-layouts-table td { vertical-align: middle; }
.preflight-layouts-table .preflight-layouts-check { inline-size: 2.5rem; text-align: center; }
.preflight-layouts-file-name { max-inline-size: 22rem; }
.preflight-layout-thumb { display: grid; place-items: center; position: relative; inline-size: 4.5rem; block-size: 4.5rem; overflow: hidden; border: 1px solid light-dark(#d8e0e6,#41515b); border-radius: .75rem; background: light-dark(#f6f8fa,#202a31); text-decoration: none; }
.preflight-layout-thumb img { inline-size: 100%; block-size: 100%; object-fit: contain; background: #fff; }
.preflight-layout-thumb-fallback { display: none; font-size: .72rem; font-weight: 700; letter-spacing: .05em; color: light-dark(#52616b,#dbe5ea); }
.preflight-layout-thumb.is-unavailable img { display: none; }
.preflight-layout-thumb.is-unavailable .preflight-layout-thumb-fallback { display: inline; }
.preflight-layouts-bulkbar { position: sticky; z-index: 1030; inset-block-end: 1rem; margin-block: 0 1rem; padding: .75rem 1rem; border: 1px solid light-dark(#d3dde3,#3c4b55); border-radius: 1rem; background: light-dark(rgba(255,255,255,.96),rgba(22,29,34,.96)); backdrop-filter: blur(12px); }
.preflight-layouts-bulkbar[hidden] { display: none !important; }
.preflight-layouts-bulk-note { min-inline-size: min(100%,18rem); flex: 1 1 18rem; }
@media (max-width: 767.98px) {
 .preflight-layout-thumb { inline-size: 3.5rem; block-size: 3.5rem; }
 .preflight-layouts-bulkbar { inset-block-end: .5rem; border-radius: .75rem; }
}

/* Fprint v2.66.0 — searchable token picker для адміністративних multi-select полів. CSS Snapshot 2026. */
.fp-product-page .fp-material-slot-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: .35rem;
    margin: 0 0 .85rem;
    padding: .25rem;
    overflow-x: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: .85rem;
    background: color-mix(in srgb, var(--bs-secondary-bg) 72%, transparent);
    scrollbar-width: thin;
}
.fp-product-page .fp-material-slot-tabs .nav-link {
    flex: 0 0 auto;
    min-height: 2.45rem;
    padding: .55rem .9rem;
    border: 0;
    border-radius: .65rem;
    color: var(--bs-body-color);
    font-weight: 600;
    white-space: nowrap;
}
.fp-product-page .fp-material-slot-tabs .nav-link.active {
    background: var(--bs-body-bg);
    color: var(--bs-emphasis-color);
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.fp-product-page .fp-material-slot-tab-content > .tab-pane > .production-material-card { margin-bottom: 0 !important; }
@media (max-width: 575.98px) {
    .fp-product-page .fp-material-slot-tabs { margin-inline: -.15rem; }
    .fp-product-page .fp-material-slot-tabs .nav-link { padding-inline: .75rem; }
}


/* Fprint v2.66.0 — керований розмір головного зображення галереї картки товару. CSS Snapshot 2026. */
.fp-token-picker {
    display: grid;
    gap: .5rem;
    position: relative;
    min-width: 0;
}
.fp-token-picker-source {
    position: absolute !important;
    inline-size: 1px !important;
    block-size: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.fp-token-picker-selected {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    min-block-size: 2rem;
}
.fp-token-picker-empty {
    color: var(--bs-secondary-color);
    font-size: .82rem;
}
.fp-token-picker-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    max-inline-size: 100%;
    padding: .28rem .4rem .28rem .58rem;
    border: 1px solid color-mix(in srgb, var(--bs-primary) 34%, var(--bs-border-color));
    border-radius: 999px;
    background: color-mix(in srgb, var(--bs-primary-bg-subtle) 74%, var(--bs-body-bg));
    font-size: .78rem;
    line-height: 1.25;
}
.fp-token-picker-chip > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fp-token-picker-chip-remove {
    display: inline-grid;
    place-items: center;
    inline-size: 1.25rem;
    block-size: 1.25rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: currentColor;
    font: inherit;
    font-size: 1rem;
    line-height: 1;
}
.fp-token-picker-chip-remove:hover,
.fp-token-picker-chip-remove:focus-visible {
    background: color-mix(in srgb, currentColor 12%, transparent);
    outline: none;
}
.fp-token-picker-results {
    position: absolute;
    z-index: 1070;
    inset-inline: 0;
    inset-block-start: calc(100% + .25rem);
    max-block-size: min(19rem, 45vh);
    overflow: auto;
    padding: .35rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .7rem;
    background: var(--bs-body-bg);
    box-shadow: 0 .8rem 2rem rgba(0,0,0,.14);
}
.fp-token-picker-results[hidden] { display: none !important; }
.fp-token-picker-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    inline-size: 100%;
    padding: .55rem .65rem;
    border: 0;
    border-radius: .5rem;
    background: transparent;
    color: var(--bs-body-color);
    text-align: start;
    font-size: .86rem;
}
.fp-token-picker-option:hover,
.fp-token-picker-option:focus-visible { background: var(--bs-tertiary-bg); outline: none; }
.fp-token-picker-option.is-selected { background: var(--bs-primary-bg-subtle); font-weight: 600; }
.fp-token-picker-option-label { min-width: 0; overflow-wrap: anywhere; }
.fp-token-picker-option-mark { flex: 0 0 auto; font-weight: 800; }
.fp-token-picker-no-results { padding: .65rem; color: var(--bs-secondary-color); font-size: .82rem; }
.fp-token-picker.is-disabled { opacity: .62; pointer-events: none; }
@media (max-width: 575.98px) {
    .fp-token-picker-results { max-block-size: 52vh; }
    .fp-token-picker-chip { max-inline-size: 100%; }
}
.product-template-gallery.fp-gallery-sized .product-gallery-main {
    inline-size: min(100%, var(--fp-gallery-main-width));
    max-inline-size: 100%;
}
.product-template-gallery.fp-gallery-sized .product-main-image {
    inline-size: 100%;
    min-block-size: 0;
    aspect-ratio: var(--fp-gallery-main-width) / var(--fp-gallery-main-height);
}
.product-template-gallery.fp-gallery-sized .product-main-image > img {
    inline-size: 100%;
    block-size: 100%;
    max-block-size: none;
    object-fit: contain;
}
.product-template-gallery.fp-gallery-sized .product-main-image > .media-placeholder {
    inline-size: 100%;
    block-size: 100%;
    min-block-size: 0;
}
@media (max-width: 575.98px) {
    .product-template-gallery.fp-gallery-sized .product-gallery-main {
        inline-size: min(100%, var(--fp-gallery-main-width));
    }
}


/* Fprint v2.66.6 — зворотний порядок колонок секції на мобільних. CSS Snapshot 2026. */
.production-pricing-page .production-billing-unit-card {
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background: color-mix(in srgb, var(--bs-tertiary-bg) 78%, var(--bs-body-bg));
}
.production-pricing-page .production-billing-unit-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.production-pricing-page .production-billing-unit-card .form-text {
    max-width: 78rem;
}
@media (max-width: 991.98px) {
    .fp-product-page .fp-product-template-row.is-mobile-reverse {
        flex-direction: column-reverse;
    }
}
