:root {
    --ink: #172033;
    --muted: #738096;
    --line: #e7ebf1;
    --blue: #2563eb;
    --soft: #f5f7fb
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--soft);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif
}

a {
    text-decoration: none
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 218px 1fr
}

.sidebar {
    background: #fff;
    border-right: 1px solid var(--line);
    padding: 25px 14px;
    display: flex;
    flex-direction: column
}

.brand {
    display: block;
    color: #152038;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -1px;
    padding: 0 10px 25px
}

.brand span {
    color: var(--blue)
}

.brand-dark {
    padding: 0;
    color: #152038
}

.project-name {
    margin: 0 0 20px;
    padding: 10px;
    background: #f3f6fb;
    border-radius: 9px;
    font-weight: 650;
    overflow-wrap: anywhere
}

.project-name small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
    margin-top: 3px
}

.sidebar .nav a {
    color: #5d6a7d;
    border-radius: 8px;
    padding: 10px;
    margin: 2px 0
}

.sidebar .nav a:hover,
.sidebar .nav a:focus {
    background: #eaf1ff;
    color: #174fc7
}

.sidebar-bottom {
    margin-top: auto;
    padding: 12px 10px 0;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 9px
}

.sidebar-bottom a,
.sidebar-bottom button {
    color: #627087;
    font-size: 13px;
    background: none;
    border: 0;
    padding: 0;
    text-align: left
}

.workspace {
    padding: 30px;
    min-width: 0
}

.page-top,
.landing-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px
}

.page-top h1,
.landing-head h1 {
    font-size: 27px;
    letter-spacing: -.7px;
    margin: 0
}

.page-top p,
.landing-head p {
    color: var(--muted);
    margin: 4px 0 0
}

.btn-primary {
    background: var(--blue);
    border-color: var(--blue);
    font-weight: 600
}

.btn-light {
    background: #fff;
    border: 1px solid #e3e8f0;
    color: #40506a
}

.content-card {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: 20px
}

.content-card h2 {
    font-size: 16px;
    margin: 0 0 18px
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px
}

.card-head h2 {
    margin: 0
}

.card-head a {
    font-size: 13px
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px
}

.stats>div {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 17px
}

.stats b {
    font-size: 23px;
    display: block;
    letter-spacing: -.5px
}

.stats span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px
}

.preview-frame {
    width: 100%;
    height: 470px;
    border: 1px solid var(--line);
    border-radius: 8px
}

.form-card {
    max-width: 650px
}

.form-card input,
.form-card select,
.form-card textarea,
.auth-card input,
.auth-card select {
    display: block;
    width: 100%;
    padding: .5rem .75rem;
    border: 1px solid #ced4da;
    border-radius: .375rem
}

.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px
}

.category-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--line)
}

.category-row span {
    display: grid;
    gap: 2px
}

.category-row small,
.product-cell small,
.order span,
.order small,
.muted {
    color: var(--muted)
}

.link-danger,
.actions button {
    border: 0;
    background: none;
    color: #dc3545;
    padding: 0;
    font-size: 13px
}

.product-cell {
    display: flex;
    gap: 10px;
    align-items: center
}

.product-cell img,
.product-cell i {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 8px;
    background: linear-gradient(135deg, #d59c63, #74432a)
}

.product-cell span {
    display: grid;
    gap: 2px
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center
}

.actions a,
.actions button {
    font-size: 12px;
    color: #47617f
}

.actions .danger {
    color: #dc3545
}

.published {
    font-size: 12px;
    color: #27824d
}

.table th {
    font-size: 11px;
    color: #8491a3;
    text-transform: uppercase;
    letter-spacing: .4px
}

.order {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid var(--line)
}

.order:first-child {
    border-top: 0
}

.order div {
    display: grid;
    gap: 4px
}

.order-status {
    font-size: 12px;
    color: #287b4e
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #f6f8fc, #e9f0ff)
}

.auth-card {
    width: min(100%, 430px);
    padding: 30px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 50px #24385b18
}

.auth-card h1 {
    font-size: 25px;
    margin: 0 0 5px
}

.auth-card>p {
    color: var(--muted);
    margin: 0 0 22px
}

.auth-foot {
    text-align: center !important;
    margin: 18px 0 0 !important;
    font-size: 13px
}

.landing-head {
    max-width: 1100px;
    width: 100%;
    margin: 48px auto 28px
}

.auth-page:has(.landing-head) {
    place-items: start center;
    overflow-x: hidden
}

.projects-grid {
    max-width: 1100px;
    width: 100%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.project-card,
.new-project,
.empty {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 22px
}

.project-card h2 {
    font-size: 18px;
    margin: 16px 0 5px
}

.project-card p {
    font-size: 13px;
    color: var(--muted);
    min-height: 22px
}

.project-card .text-link {
    display: block;
    color: #52719d;
    font-size: 13px;
    margin-top: 15px
}

.project-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 11px;
    background: #eaf1ff;
    color: var(--blue);
    font-size: 22px
}

.new-project {
    display: grid;
    place-content: center;
    min-height: 190px;
    color: #526174;
    text-align: center;
    border-style: dashed
}

.new-project b {
    font-size: 28px;
    color: var(--blue)
}

.empty {
    grid-column: 1/-1;
    color: var(--muted)
}

.store-body {
    background: #fbfcfe
}

.store-header {
    padding: 15px 0;
    background: #fff;
    border-bottom: 1px solid var(--line)
}

.store-header-with-search .store-brand {
    flex: 0 1 320px;
    max-width: 320px
}

.store-search {
    position: relative;
    flex: 1 1 420px;
    max-width: 720px;
    min-width: 220px
}

.store-search input[type="search"] {
    width: 100%;
    height: 44px;
    padding: 0 88px 0 16px;
    border: 1px solid #d7e0ed;
    border-radius: 11px;
    outline: 0;
    background: #fff;
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease
}

.store-search input[type="search"]::-webkit-search-cancel-button {
    display: none
}

.store-search input[type="search"]:focus {
    border-color: #8eb5f3;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12)
}

.store-search button {
    position: absolute;
    top: 50%;
    right: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    transform: translateY(-50%);
    background: transparent;
    color: #40506a
}

.store-search button:hover,
.store-search button:focus-visible {
    background: #eef4ff;
    color: var(--blue)
}

.store-search button.store-search-clear {
    right: 43px;
    color: var(--blue)
}

.store-search svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round
}

@media(max-width:1000px) {
    .store-header-with-search {
        flex-wrap: wrap
    }

    .store-header-with-search .store-brand {
        flex: 1 1 auto;
        max-width: calc(100% - 190px)
    }

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

/* Legal pages and independent registration consents. */
.site-legal-footer {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 0 20px 28px;
    color: var(--muted);
    font-size: 14px
}

.site-legal-footer a,
.sidebar-legal-links a,
.store-footer-legal a {
    color: inherit
}

.sidebar-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--muted)
}

.registration-consents {
    display: grid;
    gap: 12px;
    margin: 18px 0
}

.checkout-personal-data-notice {
    margin: 4px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    line-height: 1.45
}

.checkout-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-left: 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.35
}

.checkout-consent input {
    position: static;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 2px 0 0
}

.checkout-consent .form-check-label {
    margin: 0
}

.checkout-consent .text-danger {
    flex-basis: 100%
}

.registration-consent {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 4px 10px;
    align-items: start;
    color: #334155;
    font-size: 14px;
    line-height: 1.45
}

.registration-consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px
}

.registration-consent .text-danger {
    grid-column: 2
}

.legal-document {
    width: min(100% - 32px, 960px);
    margin: 32px auto;
    padding: clamp(24px, 5vw, 56px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    color: #1e293b;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .08)
}

.legal-document-header {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line)
}

.legal-brand {
    display: inline-flex;
    margin-bottom: 28px
}

.legal-kicker {
    margin: 0 0 6px;
    color: #2563eb;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 13px
}

.legal-document h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 5vw, 48px)
}

.legal-document h2 {
    margin: 32px 0 14px;
    color: #0f172a;
    font-size: clamp(20px, 3vw, 26px)
}

.legal-document p,
.legal-document li {
    line-height: 1.7
}

.legal-document li+li {
    margin-top: 8px
}

.legal-version {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px
}

.legal-placeholder-alert {
    margin: 28px 0;
    padding: 20px 22px;
    border: 2px solid #dc2626;
    border-radius: 14px;
    background: #fff1f2;
    color: #991b1b
}

.legal-placeholder-alert strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px
}

.legal-placeholder-alert p {
    margin: 0
}

.legal-document mark {
    padding: 1px 4px;
    border-radius: 4px;
    background: #fef08a;
    color: #854d0e;
    font-weight: 700
}

.legal-requisites,
.legal-consent-document {
    padding: 20px 22px;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    background: #eff6ff
}

.legal-requisites p {
    margin: 5px 0
}

.legal-consent-document {
    margin-top: 36px;
    scroll-margin-top: 20px
}

.legal-consent-document h2 {
    margin-top: 0
}

.legal-document-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--line)
}

.legal-document-nav a {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 10px;
    background: #e8f0ff;
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none
}

.store-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 14px;
    grid-column: 1 / -1;
    font-size: 13px;
    color: #334155
}

@media(max-width:600px) {
    .legal-document {
        width: min(100% - 16px, 960px);
        margin: 8px auto;
        padding: 20px;
        border-radius: 18px
    }

    .legal-placeholder-alert,
    .legal-requisites,
    .legal-consent-document {
        padding: 16px
    }

    .site-legal-footer {
        flex-direction: column;
        align-items: center;
        gap: 8px
    }
}

.store-logo {
    width: 100%;
    height: 50px;
    object-fit: contain;
    margin-right: 8px
}

.cart-button {
    border: 1px solid #dce4ee;
    border-radius: 20px;
    background: #fff;
    padding: 7px 11px;
    font-size: 13px;
    color: #42526b
}

.store-hero {
    padding: 50px 34px;
    margin: 26px 0 18px;
    background: linear-gradient(100deg, #263c31, #709064);
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    color: #fff
}

.store-hero h1 {
    font-size: 32px;
    letter-spacing: -.8px;
    margin: 0 0 8px
}

.store-hero p {
    max-width: 550px;
    margin: 0 0 10px;
    opacity: .9
}

.store-hero a {
    color: #fff
}

.category-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 20px 0
}

.category-chips a {
    border-radius: 20px;
    background: #eef1ed;
    padding: 7px 11px;
    color: #425346;
    font-size: 13px
}

.store-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 28px 0 8px;
    color: var(--muted);
    font-size: 14px
}

.store-pagination a {
    padding: 8px 14px;
    border-radius: 9px;
    background: var(--store-chip, #eef1ed);
    color: inherit
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px
}

.store-product {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px;
    overflow: hidden
}

.store-product>img,
.store-placeholder {
    width: 100%;
    height: 160px;
    object-fit: cover
}

.store-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #d8c196, #735238);
    color: #fff;
    font-size: 45px;
    font-weight: 700
}

.store-product-body {
    padding: 13px
}

.store-product h2 {
    font-size: 15px;
    margin: 0 0 6px
}

.store-product p {
    color: var(--muted);
    font-size: 12px;
    min-height: 34px;
    margin: 0
}

.store-product small {
    color: var(--muted);
    font-size: 11px
}

.store-buy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 12px
}

.store-buy b {
    color: #2860ca;
    font-size: 14px
}

.store-buy button {
    border: 0;
    background: #eaf1ff;
    color: #245dc6;
    border-radius: 6px;
    padding: 7px 9px;
    font-size: 12px;
    font-weight: 650
}

.floating-cart {
    position: fixed;
    right: 28px;
    bottom: 25px;
    background: var(--blue);
    border: 0;
    color: #fff;
    border-radius: 24px;
    padding: 11px 15px;
    font-weight: 650;
    box-shadow: 0 7px 20px #2563eb55
}

.modal-content input,
.modal-content textarea {
    display: block;
    width: 100%;
    padding: .5rem .75rem;
    border: 1px solid #ced4da;
    border-radius: .375rem
}

@media(max-width:900px) {
    .app-shell {
        grid-template-columns: 1fr
    }

    .sidebar {
        display: none
    }

    .workspace {
        padding: 18px
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .projects-grid {
        grid-template-columns: 1fr
    }

    .landing-head {
        margin: 30px 0 25px
    }

    .two-col,
    .stats {
        grid-template-columns: 1fr
    }

    .order {
        grid-template-columns: 1fr
    }

    .page-top {
        align-items: flex-start;
        flex-direction: column
    }

    .preview-frame {
        height: 400px
    }
}

@media(max-width:500px) {
    .product-grid {
        grid-template-columns: 1fr
    }

    .store-hero {
        padding: 35px 22px
    }

    .workspace {
        padding: 14px
    }

    .page-top .d-flex {
        flex-wrap: wrap
    }

    .actions {
        flex-wrap: wrap
    }
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    padding: 0 0 22px
}

.brand-logo img {
    display: block;
    max-width: 260px;
    height: auto
}

.sidebar .brand-logo img {
    max-width: 150px
}

.auth-card .brand-logo img {
    max-width: 240px
}

.landing-head .brand-logo img {
    max-width: 240px
}

.project-switcher {
    margin: 0 0 20px
}

.project-switcher .project-name {
    width: 100%;
    border: 0;
    text-align: left;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2px 10px
}

.project-switcher-toggle span {
    min-width: 0;
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal
}

.project-switcher-toggle small {
    grid-column: 1;
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
    margin-top: 3px;
    overflow-wrap: anywhere;
    white-space: normal
}

.project-switcher-arrow {
    grid-column: 2;
    grid-row: 1/3;
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain
}

.project-switcher-menu {
    width: 100%;
    min-width: 240px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 16px 34px rgba(23, 32, 51, .14)
}

.project-switcher-menu h6 {
    margin: 4px 8px 8px;
    color: #7b879a;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px
}

.project-switcher-menu .dropdown-item {
    border-radius: 8px;
    padding: 9px 10px;
    color: #172033;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal
}

.project-switcher-menu .project-switcher-name {
    display: block;
    font-size: 14px;
    line-height: 1.3;
    overflow-wrap: anywhere
}

.project-switcher-menu .dropdown-item small {
    display: block;
    color: #738096;
    font-size: 11px
}

.project-switcher-menu .dropdown-item.active,
.project-switcher-menu .dropdown-item:active {
    background: #eaf1ff;
    color: #174fc7
}

.project-switcher-menu .dropdown-item.active small {
    color: #52719d
}

.project-switcher-create {
    font-weight: 700;
    color: var(--blue) !important
}

.category-chips a.active-chip {
    background: #dfe9ff;
    color: #245dc6
}

.cart-add-form {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d8e0eb;
    border-radius: 7px;
    overflow: hidden;
    background: #fff
}

.quantity-control button {
    width: 28px;
    height: 30px;
    border: 0;
    background: #f7f9fc;
    color: #2563eb;
    font-size: 20px;
    line-height: 1
}

.quantity-control .quantity-input {
    width: 40px;
    height: 30px;
    border: 0;
    border-left: 1px solid #edf0f5;
    border-right: 1px solid #edf0f5;
    border-radius: 0;
    text-align: center;
    padding: 0
}

.store-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px
}

.store-price {
    margin: 0;
    color: #2860ca;
    font-size: 16px
}

.table .store-price {
    white-space: nowrap;
}

.store-buy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 12px
}

.store-buy .cart-add-form {
    margin-left: 0
}

.store-buy button {
    white-space: nowrap
}

.table td:last-child {
    min-width: 180px
}

.table .cart-add-form {
    justify-content: flex-end
}

.cart-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative
}

.cart-icon-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.cart-icon-button span {
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px
}

.floating-cart.cart-icon-button {
    position: fixed;
    left: auto !important;
    right: 20px !important;
    bottom: calc(20px + var(--floating-cart-footer-offset, 0px));
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    z-index: 20
}

.floating-cart.cart-icon-button span {
    position: absolute;
    right: -2px;
    top: -4px;
    min-width: 19px;
    height: 19px;
    padding: 2px 4px;
    border-radius: 10px;
    background: #fff;
    color: var(--blue);
    margin: 0
}

.cart-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px
}

.cart-summary>div {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8faff
}

.cart-summary span,
.cart-item small {
    display: block;
    color: var(--muted);
    font-size: 12px
}

.cart-summary b {
    font-size: 18px
}

.cart-items {
    display: grid;
    gap: 8px
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line)
}

.cart-item-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0
}

.cart-item-main img,
.cart-item-main i {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    background: linear-gradient(135deg, #d59c63, #74432a);
    flex: none
}

.cart-item-main b {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 6px
}

.cart-item-actions>button:not(.cart-remove) {
    width: 26px;
    height: 26px;
    border: 1px solid #d9e2ef;
    border-radius: 6px;
    background: #f7f9fc;
    color: #2563eb;
    font-size: 18px;
    line-height: 1
}

.cart-remove {
    border: 0;
    background: #fff0f0;
    color: #c43f3f;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 20px;
    line-height: 1
}

.cart-clear {
    border: 0;
    background: none;
    color: #c43f3f;
    padding: 10px 0 0;
    font-size: 13px
}

.cart-empty {
    color: var(--muted);
    background: #f8faff;
    border-radius: 10px;
    padding: 15px
}

.modal-body hr {
    border-color: var(--line);
    margin: 18px 0
}

@media(max-width:700px) {
    .table-responsive {
        overflow: visible
    }

    .table {
        display: block
    }

    .table thead {
        display: none
    }

    .table tbody,
    .table tr,
    .table td {
        display: block;
        width: 100%
    }

    .table tr {
        padding: 12px 0;
        border-bottom: 1px solid var(--line)
    }

    .table tr:last-child {
        border-bottom: 0
    }

    .table td {
        border: 0 !important;
        padding: 6px 12px;
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 10px;
        align-items: start
    }

    .table td::before {
        content: attr(data-label);
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .3px;
        color: #8491a3;
        font-weight: 700
    }

    .table td:first-child {
        padding-top: 0
    }

    .table td:last-child {
        min-width: 0
    }

    .table .cart-add-form {
        justify-content: flex-start
    }

    .table .product-cell {
        min-width: 0
    }

    .table .product-cell span {
        min-width: 0
    }

    .cart-summary {
        grid-template-columns: 1fr 1fr
    }

    .cart-item {
        grid-template-columns: 1fr auto auto
    }

    .modal-dialog {
        margin: 10px
    }

    .modal-body {
        padding: 16px
    }

    .modal-footer {
        padding: 12px 16px
    }
}

.store-buy .cart-add-form {
    margin-left: auto
}

.sidebar .brand-logo {
    padding-bottom: 18px
}

.sidebar .brand-logo img {
    max-width: 154px
}

.dashboard-stats {
    grid-template-columns: repeat(4, 1fr)
}

.share-card {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center
}

.share-card h2 {
    margin-bottom: 6px
}

.copy-link {
    display: flex;
    gap: 10px;
    margin-top: 14px
}

.copy-link input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    color: #526174;
    background: #f8faff
}

.copy-status {
    display: block;
    min-height: 18px;
    margin-top: 8px;
    color: #27824d
}

.qr-box {
    display: grid;
    justify-items: center;
    gap: 9px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff
}

.qr-box canvas,
.qr-box img {
    display: block
}

.qr-box small {
    color: var(--muted);
    font-size: 12px
}

.price-period {
    margin: -4px 0 18px;
    padding: 12px 16px;
    border: 1px solid #dce6f7;
    border-radius: 10px;
    background: #f7faff;
    color: #42526b;
    font-weight: 600
}

.preview-frame {
    background: #fff
}

@media(max-width:900px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr)
    }

    .share-card {
        grid-template-columns: 1fr
    }

    .qr-box {
        justify-self: start
    }

    .copy-link {
        flex-direction: column
    }
}

@media(max-width:500px) {
    .dashboard-stats {
        grid-template-columns: 1fr
    }

    .sidebar .brand-logo img {
        max-width: 142px
    }
}

.store-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: break-word;
    line-height: 1.2
}

.store-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none
}

.store-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #dfe6f0;
    border-radius: 10px;
    background: #fff;
    color: #40506a;
    transition: .15s ease
}

.store-tool:hover,
.store-tool:focus {
    border-color: #b9c9e4;
    background: #f7faff;
    color: var(--blue)
}

.store-tool svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round
}

.store-menu {
    min-width: 180px;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(23, 32, 51, .12);
    border-radius: 10px;
    padding: 7px
}

.store-menu .dropdown-item {
    border-radius: 7px;
    padding: 8px 10px;
    color: #35435a
}

.store-menu .dropdown-item:hover {
    background: #eef4ff;
    color: var(--blue)
}

@media(max-width:640px) {
    .store-header .container {
        align-items: flex-start !important
    }

    .store-actions {
        gap: 7px
    }

    .store-tool {
        width: 36px;
        height: 36px;
        border-radius: 9px
    }

    .cart-button.cart-icon-button {
        height: 36px;
        min-width: 50px
    }

    .store-logo {
        width: 28px;
        height: 28px
    }
}

@media print {
    body {
        background: #fff
    }

    .store-actions,
    .store-search,
    .floating-cart,
    .cart-add-form,
    .store-filters,
    .modal {
        display: none !important
    }

    .store-header {
        position: static;
        border-bottom: 1px solid #e5e8ef
    }

    .store-hero {
        margin-top: 18px;
        break-inside: avoid
    }

    .store-product {
        break-inside: avoid
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .store-body,
    .store-page {
        background: #fff
    }

    .container {
        max-width: none !important;
        width: 100% !important
    }
}

.store-footer {
    width: 100%;
    margin-top: 48px;
    background: #fff;
}

.site-footer--compact {
    margin-top: 32px;
    border-top: 1px solid #e5e7eb
}

.site-footer--compact .store-footer-inner {
    min-height: auto;
    grid-template-columns: auto 1fr;
    gap: 18px 28px;
    padding-top: 18px;
    padding-bottom: 18px
}

.site-footer--compact .store-footer-brand img {
    width: 120px
}

.site-footer--compact .store-footer-socials {
    justify-self: end
}

.metrika-noscript {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px
}

.store-footer-inner {
    min-height: 124px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
    padding-top: 28px;
    padding-bottom: 28px
}

.store-footer-brand {
    justify-self: start;
    display: inline-flex;
    align-items: center
}

.store-footer-brand img {
    display: block;
    width: 168px;
    max-width: 100%;
    height: auto
}

.store-footer-cta {
    justify-self: center;
    border-radius: 10px;
    padding: 11px 20px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .2)
}

.store-footer-socials {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px
}

.store-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    transition: .15s ease
}

.store-social-link:hover,
.store-social-link:focus {
    background: transparent;
    transform: translateY(-1px)
}

.store-social-link[aria-disabled="true"] {
    cursor: default
}

.store-social-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain
}

@media(max-width:700px) {
    .store-footer {
        margin-top: 34px
    }

    .store-footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 18px
    }

    .store-footer-brand,
    .store-footer-cta,
    .store-footer-socials {
        justify-self: center
    }

    .store-footer-cta {
        width: min(100%, 320px)
    }

    .site-footer--compact .store-footer-inner {
        grid-template-columns: 1fr
    }

    .site-footer--compact .store-footer-socials {
        justify-self: center
    }
}

@media print {
    .store-footer {
        display: none !important
    }
}

.store-body {
    background: var(--store-page-bg, #fbfcfe)
}

.store-hero {
    background: linear-gradient(90deg, color-mix(in srgb, var(--store-hero-bg, #263c31) 88%, #000 12%), color-mix(in srgb, var(--store-hero-bg, #263c31) 72%, transparent)), var(--store-hero-image, linear-gradient(100deg, var(--store-hero-bg, #263c31), color-mix(in srgb, var(--store-hero-bg, #263c31) 72%, #fff 28%)));
    background-size: cover;
    background-position: center;
    color: var(--store-hero-text, #fff)
}

.store-hero a {
    color: var(--store-hero-text, #fff)
}

.category-chips a {
    background: var(--store-chip-bg, #eef1ed)
}

.category-chips a.active-chip {
    background: color-mix(in srgb, var(--store-button, #2563eb) 16%, #fff);
    color: var(--store-button, #245dc6)
}

.store-price,
.store-buy b {
    color: var(--store-price, #2860ca)
}

.store-buy button,
.table .cart-add-form .btn-primary {
    background: color-mix(in srgb, var(--store-button, #2563eb) 13%, #fff);
    border-color: transparent;
    color: var(--store-button, #245dc6)
}

.store-buy button:hover,
.store-buy button:focus,
.table .cart-add-form .btn-primary:hover,
.table .cart-add-form .btn-primary:focus {
    background: var(--store-button, #2563eb);
    border-color: var(--store-button, #2563eb);
    color: #fff
}

.store-body .store-theme-button {
    background: var(--store-button, #2563eb);
    border-color: var(--store-button, #2563eb);
    color: #fff
}

.store-body .store-theme-button:hover,
.store-body .store-theme-button:focus {
    background: color-mix(in srgb, var(--store-button, #2563eb) 86%, #000);
    border-color: color-mix(in srgb, var(--store-button, #2563eb) 86%, #000);
    color: #fff
}

.floating-cart {
    background: var(--store-button, var(--blue));
    box-shadow: 0 7px 20px color-mix(in srgb, var(--store-button, #2563eb) 34%, transparent)
}

.store-export-mode .store-hero {
    background-color: var(--store-hero-bg, #263c31);
    background-image: linear-gradient(90deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .28)), var(--store-hero-image, linear-gradient(100deg, var(--store-hero-bg, #263c31), var(--store-hero-bg, #263c31)))
}

.store-export-mode .category-chips a.active-chip {
    background: var(--store-chip-bg, #eef1ed);
    box-shadow: inset 0 0 0 2px var(--store-button, #2563eb);
    color: var(--store-button, #245dc6)
}

.store-export-mode .store-theme-button,
.store-export-mode .store-theme-button:hover,
.store-export-mode .store-theme-button:focus {
    background: var(--store-button, #2563eb);
    border-color: var(--store-button, #2563eb);
    color: #fff
}

.settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr);
    gap: 18px;
    align-items: start
}

.settings-section h2 {
    font-size: 16px;
    margin: 0 0 16px
}

.theme-color-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px
}

.theme-color-field input[type=color] {
    width: 100%;
    height: 42px;
    padding: 4px
}

.theme-preview {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--preview-page-background, #fbfcfe)
}

.theme-preview-hero {
    display: grid;
    gap: 4px;
    padding: 22px;
    background: var(--preview-hero-color, #263c31);
    color: var(--preview-hero-text-color, #fff)
}

.theme-preview-row {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    padding: 14px
}

.theme-preview-chip {
    border-radius: 20px;
    background: var(--preview-chip-color, #eef1ed);
    padding: 7px 11px;
    font-size: 13px
}

.theme-preview strong {
    color: var(--preview-price-color, #2860ca)
}

.theme-preview button {
    border: 0;
    border-radius: 7px;
    background: var(--preview-button-color, #2563eb);
    color: #fff;
    padding: 8px 12px;
    font-weight: 700
}

.settings-actions {
    grid-column: 1/-1
}

.settings-actions .btn {
    min-width: 150px
}

@media(max-width:1000px) {
    .settings-grid {
        grid-template-columns: 1fr
    }

    .theme-color-grid {
        grid-template-columns: 1fr
    }
}

.theme-color-picker {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(23, 32, 51, .05)
}

.theme-color-sv {
    position: relative;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    cursor: crosshair;
    box-shadow: inset 0 0 0 1px rgba(23, 32, 51, .08)
}

.theme-color-sv-handle {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 3px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .38);
    pointer-events: none
}

.theme-color-range {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    appearance: none;
    outline: 0
}

.theme-color-range::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #1266ff;
    box-shadow: 0 2px 8px rgba(23, 32, 51, .3);
    cursor: pointer
}

.theme-color-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #1266ff;
    box-shadow: 0 2px 8px rgba(23, 32, 51, .3);
    cursor: pointer
}

.theme-color-hue {
    background: linear-gradient(to right, red, #ff0, #0f0, #0ff, #00f, #f0f, red)
}

.theme-color-alpha {
    background: linear-gradient(45deg, #cfd6e0 25%, transparent 25%), linear-gradient(-45deg, #cfd6e0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #cfd6e0 75%), linear-gradient(-45deg, transparent 75%, #cfd6e0 75%), linear-gradient(to right, transparent, var(--alpha-color, #2563eb));
    background-size: 14px 14px, 14px 14px, 14px 14px, 14px 14px, 100% 100%;
    background-position: 0 0, 0 7px, 7px -7px, -7px 0, 0 0
}

.theme-color-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center
}

.theme-color-code-row .theme-color-code {
    height: 38px;
    border: 1px solid #d8e0eb;
    border-radius: 8px;
    padding: 8px 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace
}

.theme-color-code-row button {
    height: 38px;
    border: 1px solid #dfe6f0;
    border-radius: 8px;
    background: #f8faff;
    color: #526174;
    font-size: 12px;
    font-weight: 800
}

.theme-color-code-row button:hover,
.theme-color-code-row button:focus {
    background: #eaf1ff;
    color: var(--blue)
}

/* Compact theme color controls: open the advanced editor only for the selected swatch. */
.theme-color-swatch {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d8e0eb;
    border-radius: 9px;
    background: #fff;
    text-align: left;
    color: #526174;
    cursor: pointer
}

.theme-color-swatch:hover,
.theme-color-swatch:focus {
    border-color: #9db8ea;
    background: #f8faff
}

.theme-color-swatch-preview {
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 7px;
    border: 1px solid rgba(23, 32, 51, .14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35)
}

.theme-color-swatch-code {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace
}

.theme-color-picker {
    margin-top: 10px
}

.theme-color-picker[hidden] {
    display: none !important
}

.theme-color-field .theme-color-picker {
    position: absolute;
    z-index: 5;
    width: min(100%, 390px);
    margin-top: 8px;
    box-shadow: 0 16px 34px rgba(23, 32, 51, .18)
}

.theme-color-field {
    position: relative
}

.content-card form .form-label {
    display: block;
    margin-bottom: 7px;
    color: #35435a;
    font-weight: 650;
    font-size: 13px
}

.content-card form input:not([type=checkbox]):not([type=file]),
.content-card form select,
.content-card form textarea {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d6dfeb;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    transition: border-color .15s ease, box-shadow .15s ease
}

.content-card form textarea {
    min-height: 112px;
    resize: vertical
}

.content-card form input:not([type=checkbox]):not([type=file]):focus,
.content-card form select:focus,
.content-card form textarea:focus {
    outline: 0;
    border-color: #7da4ed;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .11)
}

.content-card form input[type=file] {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px dashed #b8c9e3;
    border-radius: 9px;
    background: #f8faff;
    color: #526174;
    font-size: 13px
}

.file-upload-card {
    padding: 10px;
    border: 1px solid #e4eaf3;
    border-radius: 11px;
    background: #fbfcff
}

.file-upload-card input[type=file] {
    background: #fff
}

.settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.settings-media-card {
    grid-column: 1
}

.settings-data-card {
    grid-column: 2
}

.settings-contact-card {
    grid-column: 1
}

.settings-section {
    padding: 22px
}

.settings-card-heading,
.card-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px
}

.settings-card-heading h2,
.card-heading h2 {
    margin: 0 0 5px
}

.settings-card-heading p,
.card-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45
}

.settings-card-icon,
.card-heading-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #eaf1ff;
    color: var(--blue);
    font-weight: 800;
    flex: none
}

.field-hint {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px
}

.categories-layout {
    align-items: start
}

.category-create-card,
.category-list-card {
    min-height: 100%
}

.category-submit {
    width: 100%;
    margin-top: 4px;
    padding: 11px 16px
}

.category-list {
    display: grid;
    gap: 0
}

.category-row {
    padding: 14px 0;
    border-top: 1px solid #edf1f6
}

.category-row:first-child {
    border-top: 0;
    padding-top: 0
}

.category-row span {
    display: grid;
    gap: 4px
}

.category-row b {
    font-size: 14px
}

.category-row small {
    font-size: 12px
}

.category-actions {
    display: flex;
    align-items: center;
    gap: 14px
}

.category-actions a {
    font-size: 13px;
    color: #476da9;
    font-weight: 650
}

.category-empty-state {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 42px 20px;
    color: var(--muted)
}

.category-empty-state span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: #f0f5ff;
    color: var(--blue);
    font-size: 25px;
    margin-bottom: 12px
}

.category-empty-state b {
    color: #40506a
}

.category-empty-state p {
    max-width: 260px;
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.45
}

@media(max-width:1000px) {
    .settings-grid {
        grid-template-columns: 1fr
    }

    .settings-media-card,
    .settings-data-card,
    .settings-contact-card {
        grid-column: auto
    }
}

@media(max-width:600px) {
    .category-row {
        display: grid;
        gap: 12px
    }

    .category-actions {
        justify-content: flex-start
    }

    .settings-card-heading,
    .card-heading {
        margin-bottom: 16px
    }
}

.orders-plan-banner-free {
    padding: 20px 28px;
    border: 1px solid #b9d2f6;
    border-radius: 12px;
    background: #eaf1ff;
    color: #203b6b
}

.orders-plan-banner-free strong {
    display: block;
    margin-bottom: 6px;
    color: #1c3f78
}

.orders-plan-banner-free p {
    color: #365a8c
}

.settings-primary-card {
    grid-column: 1/-1;
    display: block
}

.settings-media-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0 18px
}

.settings-media-grid>.mb-3 {
    flex: 1 1 calc(50% - 9px);
    min-width: 0
}

.settings-primary-card>h2 {
    grid-column: 1/-1
}

.settings-primary-card>.mb-3 {
    min-width: 0
}

.media-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 132px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #e1e8f2;
    border-radius: 12px;
    background: linear-gradient(135deg, #f7f9fd, #eef3fb);
    overflow: hidden
}

.media-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px
}

.media-preview span {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap
}

.media-preview-empty {
    justify-content: center;
    border-style: dashed
}

.file-upload-card>a {
    display: none
}

.file-upload-card input[type=file] {
    cursor: pointer
}

.data-vitrine-block {
    grid-column: 1/-1
}

.data-vitrine-block .mb-3 {
    max-width: 820px
}

.data-vitrine-block textarea {
    min-height: 125px
}

@media(max-width:700px) {
    .settings-media-grid {
        display: block
    }

    .settings-media-grid>.mb-3 {
        width: 100%
    }

    .settings-primary-card>h2 {
        grid-column: auto
    }
}

.settings-grid .form-label {
    display: block;
    margin-bottom: 7px;
    color: #35435a;
    font-weight: 650;
    font-size: 13px
}

.settings-grid input:not([type=checkbox]):not([type=file]),
.settings-grid select,
.settings-grid textarea {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d6dfeb;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    transition: border-color .15s ease, box-shadow .15s ease
}

.settings-grid textarea {
    min-height: 125px;
    resize: vertical
}

.settings-grid input:not([type=checkbox]):not([type=file]):focus,
.settings-grid select:focus,
.settings-grid textarea:focus {
    outline: 0;
    border-color: #7da4ed;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .11)
}

.settings-grid .form-field {
    margin-bottom: 18px
}

.data-vitrine-block .settings-card-heading h2 {
    font-size: 0
}

.data-vitrine-block .settings-card-heading h2::after {
    content: 'Название и описание магазина';
    font-size: 16px
}

.data-vitrine-block .settings-card-heading p {
    font-size: 0
}

.data-vitrine-block .settings-card-heading p::after {
    content: 'Заполните основные данные, которые увидят ваши клиенты.';
    font-size: 13px
}

.settings-grid .theme-color-range {
    display: block;
    width: 100%;
    min-height: 14px;
    height: 14px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    appearance: none;
    box-shadow: none
}

.settings-grid .theme-color-range:focus {
    box-shadow: none
}

.settings-grid .theme-color-hue {
    background: linear-gradient(to right, red, #ff0, #0f0, #0ff, #00f, #f0f, red)
}

.settings-grid .theme-color-alpha {
    background: linear-gradient(45deg, #cfd6e0 25%, transparent 25%), linear-gradient(-45deg, #cfd6e0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #cfd6e0 75%), linear-gradient(-45deg, transparent 75%, #cfd6e0 75%), linear-gradient(to right, transparent, var(--alpha-color, #2563eb));
    background-size: 14px 14px, 14px 14px, 14px 14px, 14px 14px, 100% 100%;
    background-position: 0 0, 0 7px, 7px -7px, -7px 0, 0 0
}

.settings-grid .theme-color-range::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #1266ff;
    box-shadow: 0 2px 8px rgba(23, 32, 51, .3);
    cursor: pointer
}

.settings-grid .theme-color-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #1266ff;
    box-shadow: 0 2px 8px rgba(23, 32, 51, .3);
    cursor: pointer
}

.settings-grid input.theme-color-range {
    min-height: 14px !important;
    height: 14px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    appearance: none
}

.settings-grid input.theme-color-range:focus {
    box-shadow: none !important
}

.settings-grid input.theme-color-hue {
    background: linear-gradient(to right, red, #ff0, #0f0, #0ff, #00f, #f0f, red) !important
}

.settings-grid input.theme-color-alpha {
    background: linear-gradient(45deg, #cfd6e0 25%, transparent 25%), linear-gradient(-45deg, #cfd6e0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #cfd6e0 75%), linear-gradient(-45deg, transparent 75%, #cfd6e0 75%), linear-gradient(to right, transparent, var(--alpha-color, #2563eb)) !important;
    background-size: 14px 14px, 14px 14px, 14px 14px, 14px 14px, 100% 100%;
    background-position: 0 0, 0 7px, 7px -7px, -7px 0, 0 0
}

.settings-grid input.theme-color-alpha {
    background-image: linear-gradient(to right, transparent, var(--alpha-color, #2563eb)) !important, linear-gradient(45deg, #cfd6e0 25%, transparent 25%), linear-gradient(-45deg, #cfd6e0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #cfd6e0 75%), linear-gradient(-45deg, transparent 75%, #cfd6e0 75%) !important;
    background-size: 100% 100%, 14px 14px, 14px 14px, 14px 14px, 14px 14px !important;
    background-position: 0 0, 0 0, 0 7px, 7px -7px, -7px 0 !important;
    background-repeat: no-repeat, repeat, repeat, repeat, repeat !important
}

.settings-grid input.theme-color-alpha {
    background: linear-gradient(to right, color-mix(in srgb, var(--alpha-color, #2563eb) 0%, transparent), var(--alpha-color, #2563eb)) !important;
    background-size: 100% 100% !important;
    background-position: 0 0 !important;
    background-repeat: no-repeat !important;
    box-shadow: inset 0 0 0 1px rgba(23, 32, 51, .08) !important
}

.store-brand {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 250px)
}

.store-brand .store-logo {
    width: auto;
    max-width: 150px;
    height: 72px;
    object-fit: contain;
    flex: 0 0 auto;
    margin-right: 8px
}

.store-brand .store-title {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    font-size: 18px
}

@media(max-width:900px) {
    .store-brand {
        max-width: calc(100% - 190px)
    }

    .store-brand .store-logo {
        max-width: 110px;
        height: 58px
    }
}

@media(max-width:640px) {
    .store-brand {
        max-width: calc(100% - 140px);
        gap: 8px !important
    }

    .store-brand .store-logo {
        width: auto;
        max-width: 52px;
        height: 42px
    }

    .store-brand .store-title {
        max-width: none;
        font-size: 15px
    }
}

.project-create-page {
    width: min(100%, 540px);
    display: grid;
    gap: 18px;
    padding: 24px 0
}

.project-create-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 2px
}

.project-create-brand img {
    display: block;
    width: min(100%, 260px);
    height: auto
}

.project-create-page .page-top {
    display: block;
    margin: 0;
    text-align: center
}

.project-create-page .page-top h1 {
    font-size: 32px
}

.project-create-page .page-top p {
    margin-top: 7px
}

.project-create-page .form-card {
    width: 100%;
    max-width: none;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 16px 42px rgba(23, 32, 51, .08)
}

.project-create-page .form-card input[type=checkbox] {
    display: block;
    width: 20px;
    height: 20px;
    margin-top: 8px
}

.project-create-page .btn-primary {
    width: 100%;
    padding: 11px 16px
}

@media(max-width:600px) {
    .project-create-page {
        gap: 15px;
        padding: 10px 0
    }

    .project-create-brand img {
        width: min(100%, 220px)
    }

    .project-create-page .page-top h1 {
        font-size: 28px
    }

    .project-create-page .form-card {
        padding: 22px 20px
    }
}

.plan-summary {
    display: grid;
    grid-template-columns: minmax(180px, .7fr) minmax(260px, 1.3fr) auto;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 1100px;
    box-sizing: border-box;
    margin: 0 auto 24px;
    padding: 20px 22px;
    border: 1px solid #dce5f2;
    border-radius: 16px;
    background: #f7faff
}

.plan-summary-label {
    display: block;
    margin-bottom: 4px;
    color: #68748a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em
}

.plan-summary h2,
.plan-summary p {
    margin: 0
}

.plan-summary-usage {
    display: grid;
    gap: 3px
}

.plan-summary-usage span,
.plan-summary-expiry {
    color: #68748a;
    font-size: 13px
}

.plan-summary-expiry {
    justify-self: end
}

@media(max-width:760px) {
    .plan-summary {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .plan-summary-expiry {
        justify-self: start
    }
}

.project-order-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px
}

.project-order-actions form {
    margin: 0
}

.new-project-disabled {
    cursor: not-allowed;
    opacity: .78;
    text-align: center
}

.new-project-disabled small {
    display: block;
    max-width: 220px
}

.new-project-disabled a {
    color: #174ea6
}

.plan-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px
}

.plan-card {
    position: relative;
    min-height: 390px;
    padding: 26px;
    border-radius: 20px;
    box-shadow: 0 14px 36px rgba(35, 63, 110, .08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(35, 63, 110, .13)
}

.plan-card-current {
    border: 2px solid var(--blue);
    box-shadow: 0 18px 42px rgba(37, 99, 235, .16)
}

.plans-page {
    width: min(1160px, 100%);
    padding: 4px 0 42px
}

.plans-brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px
}

.plans-brand img {
    display: block;
    width: 158px;
    height: auto
}

.plans-projects-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 11px;
    box-shadow: 0 9px 22px rgba(37, 99, 235, .22)
}

.plans-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 220px;
    margin-bottom: 24px;
    padding: 36px 40px;
    overflow: hidden;
    border: 1px solid #d9e6fb;
    border-radius: 24px;
    background: linear-gradient(135deg, #fff 0%, #eff5ff 62%, #e4eeff 100%);
    box-shadow: 0 16px 42px rgba(35, 63, 110, .08)
}

.plans-hero>div:first-child {
    position: relative;
    z-index: 1;
    max-width: 760px
}

.plans-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase
}

.plans-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -1.6px
}

.plans-hero p {
    max-width: 680px;
    margin: 0;
    color: #64738a;
    font-size: 17px;
    line-height: 1.65
}

.plans-hero-mark {
    display: grid;
    place-items: center;
    flex: 0 0 128px;
    width: 128px;
    height: 128px;
    border-radius: 36px;
    transform: rotate(-8deg);
    background: linear-gradient(145deg, #245bc9, #3f7df5);
    color: #fff;
    font-size: 68px;
    font-weight: 800;
    box-shadow: 0 22px 45px rgba(37, 99, 235, .28)
}

.plan-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.plan-card .plan-card-head h2 {
    margin: 0;
    font-size: 20px
}

.plan-current-badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: #e7f8ef;
    color: #16804c;
    font-size: 11px;
    font-weight: 800
}

.plan-card-price {
    font-size: 38px;
    font-weight: 800;
    margin: 20px 0 4px;
    letter-spacing: -1px
}

.plan-card-price small {
    font-size: 14px;
    font-weight: 500
}

.plan-card ul {
    display: grid;
    gap: 11px;
    padding: 0;
    margin: 18px 0 0;
    list-style: none
}

.plan-card li {
    position: relative;
    padding-left: 26px;
    color: #40506a;
    line-height: 1.45
}

.plan-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #eaf1ff;
    color: var(--blue);
    font-size: 11px;
    font-weight: 900
}

.plan-card-caption {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase
}

.support-card { padding: 30px; border-radius: 20px; box-shadow: 0 14px 36px rgba(35, 63, 110, .08) }
.support-card-head h2 { margin: 0 0 10px; font-size: 24px }
.support-form { margin-top: 24px }
.support-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px }
.support-form-field-wide { grid-column: 1 / -1 }
.support-form-field textarea { min-height: 150px; resize: vertical }
.support-form-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px }
@media (max-width: 700px) {
    .support-card { padding: 22px }
    .support-form-grid { grid-template-columns: 1fr }
    .support-form-field-wide { grid-column: auto }
    .support-form-actions { align-items: flex-start; flex-direction: column; gap: 8px }
}

.plan-request-card {
    max-width: none;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 16px 42px rgba(35, 63, 110, .08)
}

.plan-request-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 780px;
    margin-bottom: 24px
}

.plan-request-card .plan-request-head h2 {
    margin: 0 0 6px;
    font-size: 24px
}

.plan-request-head p {
    margin: 0;
    line-height: 1.55
}

.plan-request-icon {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #eaf1ff;
    color: var(--blue)
}

.plan-request-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round
}

.plan-request-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 16px
}

.plan-field-wide {
    grid-column: 1 / -1
}

.plan-request-card input,
.plan-request-card textarea {
    width: 100%;
    border: 1px solid #d8dee8;
    border-radius: 10px;
    padding: 10px 12px
}

.plan-open-requests {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px
}

.plan-open-requests span {
    background: #eef3fa;
    border-radius: 999px;
    padding: 7px 12px
}

.plan-request-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.plan-request-actions .btn {
    min-height: 44px;
    padding-inline: 20px;
    border-radius: 10px;
    font-weight: 700
}

.plan-summary>.btn {
    align-self: center
}

@media(max-width:900px) {
    .plan-cards {
        grid-template-columns: 1fr
    }

    .project-order-actions {
        justify-content: center
    }

    .plans-hero-mark {
        display: none
    }

    .plan-request-fields {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:600px) {
    .plans-brand-header {
        align-items: flex-start
    }

    .plans-brand img {
        width: 130px
    }

    .plans-projects-link {
        padding: 9px 12px
    }

    .plans-hero {
        min-height: 0;
        padding: 28px 22px;
        border-radius: 18px
    }

    .plans-hero h1 {
        letter-spacing: -1px
    }

    .plans-hero p {
        font-size: 15px
    }

    .plan-card,
    .plan-request-card {
        padding: 22px;
        border-radius: 16px
    }

    .plan-request-fields {
        grid-template-columns: 1fr
    }

    .plan-field-wide {
        grid-column: auto
    }
}

.product-gallery {
    position: relative;
    background: #f2f4f7;
    overflow: hidden
}

.product-gallery-slides {
    aspect-ratio: 4/3
}

.product-gallery-slides button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in
}

.product-gallery-slides button[hidden] {
    display: none
}

.product-gallery-slides img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.product-gallery-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 18px;
    background: rgba(15, 23, 42, .42)
}

.product-gallery-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .58)
}

.product-gallery-dots button.active {
    background: #fff;
    transform: scale(1.2)
}

.gallery-table-cover {
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #eef1f4;
    cursor: zoom-in
}

.gallery-table-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.product-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 20px
}

.product-gallery-modal[hidden] {
    display: none
}

.product-gallery-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 10, 20, .88)
}

.product-gallery-modal-panel {
    position: relative;
    z-index: 1;
    width: min(1000px, 96vw);
    max-height: 94vh;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 14px
}

.product-gallery-modal-panel>[data-gallery-modal-image] {
    width: 100%;
    height: min(76vh, 760px);
    object-fit: contain;
    border-radius: 12px;
    background: #111827
}

.product-gallery-modal-close {
    position: absolute;
    z-index: 2;
    right: 10px;
    top: 10px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    background: rgba(255, 255, 255, .92)
}

.product-gallery-modal-thumbnails {
    display: flex;
    justify-content: center;
    gap: 8px;
    overflow: auto
}

.product-gallery-modal-thumbnails button {
    width: 72px;
    height: 56px;
    padding: 2px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #fff
}

.product-gallery-modal-thumbnails button.active {
    border-color: #2563eb
}

.product-gallery-modal-thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px
}

.gallery-modal-open {
    overflow: hidden
}

.gallery-editor-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px
}

.gallery-editor-item {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px
}

.gallery-editor-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 7px
}

.gallery-editor-item>div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px
}

@media(max-width:600px) {
    .product-gallery-modal {
        padding: 8px
    }

    .product-gallery-modal-panel>[data-gallery-modal-image] {
        height: 72vh
    }

    .product-gallery-modal-thumbnails button {
        width: 58px;
        height: 46px
    }
}

/* Compact settings layout: details and contacts on the left, theme on the right. */
.settings-data-card {
    grid-column: 1;
    grid-row: 2
}

.settings-theme-card {
    grid-column: 2;
    grid-row: 2 / span 2
}

.settings-contact-card {
    grid-column: 1;
    grid-row: 3
}

.data-vitrine-block {
    grid-column: 1
}

.data-vitrine-block textarea {
    min-height: 96px
}

@media(max-width:1000px) {
    .settings-data-card,
    .settings-theme-card,
    .settings-contact-card {
        grid-column: auto;
        grid-row: auto
    }
}
