:root {
    --x-font-display: "Bricolage Grotesque", sans-serif;

    /* --primary-1: #2b1426; */
    --primary-1: rgb(0, 0, 0);
    --primary-1-rgb: 0, 0, 0;
    /* --primary-2: #9b1f89; */
    --primary-2: #0015db;
    --primary-2-rgb: 0, 21, 219;
    /* --primary-3: #ffe1f9; */
    --primary-3: #f7f8ff;
    --primary-3-rgb: 247, 248, 255;
    /* --primary-4: #fff7fd; */
    --primary-4: #dadeff;
    --primary-4-rgb: 218, 222, 255;
    --x-nav-link-hover-color: var(--primary-2);

    --x-danger-rgb: 255, 93, 93;
    --x-danger: #ff5d5d;
}

/* ── TOKENS ── */
:root {
    --zed-magenta: var(--primary-2);
    --zed-magenta-light: var(--primary-3);
    --zed-magenta-dim: rgba(var(--primary-2-rgb), 0.1);
    --zed-dark: var(--primary-1);
    --zed-dark-2: color-mix(in srgb, var(--primary-1) 80%, transparent);
    --zed-mid: color-mix(in srgb, var(--primary-1) 60%, transparent);
    --zed-soft: color-mix(in srgb, var(--primary-1) 40%, transparent);
    --zed-border: color-mix(in srgb, var(--primary-1) 20%, transparent);
    --zed-green: var(--primary-4);
    --zed-green-dim: rgba(var(--primary-4-rgb), 0.12);
}

body.zl-app {
    font-family: var(--x-font-display);
}

body.zl-app :where(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
    font-family: var(--x-font-display);
}

body[class*="theme-"] {
    --x-nav-link-hover-color: var(--primary);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--x-nav-link-hover-color);
}
.bg-primary-1,
.bg-theme-1 {
    background-color: var(--primary-1);
}
.bg-primary-2,
.bg-theme-2 {
    background-color: var(--primary-2);
}
.bg-primary-3,
.bg-theme-3 {
    background-color: var(--primary-3);
}
.bg-primary-4,
.bg-theme-4 {
    background-color: var(--primary-4);
}

.text-primary-1,
.text-theme-1 {
    color: var(--primary-1);
}
.text-primary-2,
.text-theme-2 {
    color: var(--primary-2);
}
.text-primary-3,
.text-theme-3 {
    color: var(--primary-3);
}
.text-primary-4,
.text-theme-4 {
    color: var(--primary-4);
}

.btn-primary-2,
.btn-theme-2 {
    background-color: var(--primary-2);
    color: #fff;
    border-color: var(--primary-2);
    &:hover {
        background-color: rgba(var(--primary-2-rgb), 0.75);
        border-color: rgba(var(--primary-2-rgb), 1);
        color: #fff;
    }
}

.weight-100 {
    font-weight: 100;
}
.weight-200 {
    font-weight: 200;
}
.weight-300 {
    font-weight: 300;
}
.weight-400 {
    font-weight: 400;
}
.weight-500 {
    font-weight: 500;
}
.weight-600 {
    font-weight: 600;
}
.weight-700 {
    font-weight: 700;
}
.weight-800 {
    font-weight: 800;
}
.weight-900 {
    font-weight: 900;
}

.ratio-1 {
    aspect-ratio: 9/10;
}

/* END STANDARD CSS */

html {
    background-color: rgb(var(--dark-rgb) / 100%);
    min-height: 100vh;
}

body.auth {
    min-height: 100vh;
}

a {
    color: var(--primary-1);
}
a:hover {
    color: var(--primary-2);
}

nav#primary_nav.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

#primary_nav .dropdown-menu {
    z-index: 1040;
}

@media (min-width: 992px) {
    /* #primary_nav .nav-item.dropdown:hover > .dropdown-menu,
    #primary_nav .nav-item.dropdown > .dropdown-menu.show {
        display: block;
    } */
}

nav#primary_nav.navbar-static {
    position: static;
}

#primary_nav .primary-nav-oc__hamburger {
    display: none;
}

#primaryNavOffcanvas.primary-nav-oc {
    position: fixed;
    inset: 0;
    z-index: 1045;
    pointer-events: none;
}

#primaryNavOffcanvas .primary-nav-oc__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.18s ease;
}

#primaryNavOffcanvas .primary-nav-oc__panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(320px, 86vw);
    height: 100%;
    transform: translateX(-102%);
    transition: transform 0.18s ease;
    padding: 14px 16px;
    overflow: auto;
}

#primaryNavOffcanvas.primary-nav-oc--light .primary-nav-oc__panel {
    background: #fff;
    border-right: 1px solid color-mix(in srgb, #0f172a 12%, transparent);
}

#primaryNavOffcanvas.primary-nav-oc--dark .primary-nav-oc__panel {
    background: var(--primary-1);
    border-right: 1px solid color-mix(in srgb, #ffffff 14%, transparent);
}

#primaryNavOffcanvas.primary-nav-oc--open {
    pointer-events: auto;
}

#primaryNavOffcanvas.primary-nav-oc--open .primary-nav-oc__backdrop {
    opacity: 1;
}

#primaryNavOffcanvas.primary-nav-oc--open .primary-nav-oc__panel {
    transform: translateX(0);
}

#primaryNavOffcanvas .primary-nav-oc__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

#primaryNavOffcanvas .primary-nav-oc__close {
    background: transparent;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    line-height: 1;
}

#primaryNavOffcanvas.primary-nav-oc--light .primary-nav-oc__close {
    border: 1px solid color-mix(in srgb, #0f172a 18%, transparent);
    color: #0f172a;
}

#primaryNavOffcanvas.primary-nav-oc--dark .primary-nav-oc__close {
    border: 1px solid color-mix(in srgb, #ffffff 18%, transparent);
    color: #f8fafc;
}

#primaryNavOffcanvas .primary-nav-oc__links .nav-link,
#primaryNavOffcanvas .primary-nav-oc__links a {
    display: block;
    padding: 10px 8px;
    border-radius: 10px;
    text-decoration: none;
}

#primaryNavOffcanvas.primary-nav-oc--light .primary-nav-oc__links .nav-link,
#primaryNavOffcanvas.primary-nav-oc--light .primary-nav-oc__links a {
    color: #0f172a;
}

#primaryNavOffcanvas.primary-nav-oc--dark .primary-nav-oc__links .nav-link,
#primaryNavOffcanvas.primary-nav-oc--dark .primary-nav-oc__links a {
    color: #f8fafc;
}

#primaryNavOffcanvas .primary-nav-oc__links .sidebar2_nav a.nav-link,
#primaryNavOffcanvas .primary-nav-oc__links .sidebar2_nav .sidebar2_nav-toggle {
    padding: 10px 15px;
    border-radius: 0;
}

#primaryNavOffcanvas
    .primary-nav-oc__links
    .sidebar2_nav
    .sidebar2_nav-sub
    .nav-link {
    padding: 8px 15px 8px 2.25rem;
    font-size: 0.9rem;
}

#primaryNavOffcanvas .primary-nav-oc__links .sidebar2_nav a.nav-link:hover,
#primaryNavOffcanvas
    .primary-nav-oc__links
    .sidebar2_nav
    .sidebar2_nav-toggle:hover {
    background-color: #fff;
    color: #000;
}

#primaryNavOffcanvas .primary-nav-oc__links .sidebar2_nav a.nav-link.active {
    background: transparent;
    color: var(--primary-2);
}

#primaryNavOffcanvas
    .primary-nav-oc__links
    .sidebar2_nav
    .sidebar2_nav-toggle.active {
    background: rgb(0 0 0 / 3%) !important;
    color: #000 !important;
}

#primaryNavOffcanvas .primary-nav-oc__section-label {
    font-size: 12px;
    padding: 8px 8px 4px;
    opacity: 0.75;
}

#primaryNavOffcanvas .primary-nav-oc__nav > .nav-item {
    margin-bottom: 10px;
}

#primaryNavOffcanvas .primary-nav-oc__ctas {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
}

#primaryNavOffcanvas.primary-nav-oc--light .primary-nav-oc__ctas {
    border-top: 1px solid color-mix(in srgb, #0f172a 10%, transparent);
}

#primaryNavOffcanvas.primary-nav-oc--dark .primary-nav-oc__ctas {
    border-top: 1px solid color-mix(in srgb, #ffffff 12%, transparent);
}

.user-nav-modal__link {
    display: flex;
    align-items: center;
    padding: 0.75rem 0.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
}

.user-nav-modal__link:hover {
    background: color-mix(in srgb, var(--x-primary, #6366f1) 10%, transparent);
    color: inherit;
}

.user-nav-modal__link--manage {
    background: #0f172a;
    color: #fff;
    margin-top: 0.5rem;
}

.user-nav-modal__link--manage:hover {
    background: #1e293b;
    color: #fff;
}

.user-nav-modal__link--logout {
    color: var(--x-primary, #6366f1);
    font-weight: 600;
    margin-top: 0.25rem;
}

.org-switcher-modal {
    border-radius: 1rem;
    overflow: hidden;
}

.org-switcher-modal .modal-header {
    padding: 1.25rem 1.25rem 0.75rem;
    align-items: flex-start;
}

.org-switcher-modal .modal-body {
    padding: 0 1.25rem 1.25rem;
}

.org-switcher-modal__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.org-switcher-modal__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    border: 1px solid color-mix(in srgb, var(--primary-1) 10%, #e2e8f0);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        box-shadow 0.15s ease;
}

.org-switcher-modal__item:hover {
    border-color: color-mix(in srgb, var(--primary-2) 40%, #e2e8f0);
    background: var(--primary-4);
    box-shadow: 0 1px 2px rgb(var(--primary-2-rgb) / 8%);
}

.org-switcher-modal__item.is-active {
    border-color: color-mix(in srgb, var(--primary-2) 55%, #e2e8f0);
    background: var(--primary-3);
}

.org-switcher-modal__item--unavailable {
    cursor: default;
    background: #f8fafc;
    border-color: #e2e8f0;
    opacity: 1;
}

.org-switcher-modal__item--unavailable .org-switcher-modal__item-name {
    color: #64748b;
}

.org-switcher-modal__item-main {
    min-width: 0;
}

.org-switcher-modal__item-name {
    display: block;
    font-weight: 600;
    color: var(--primary-1);
    line-height: 1.3;
}

.org-switcher-modal__item-meta {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.75rem;
    color: #64748b;
}

.org-switcher-modal__badge {
    flex-shrink: 0;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--primary-2);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.org-switcher-modal__badge--muted {
    background: #e2e8f0;
    color: #475569;
    text-transform: none;
    font-weight: 500;
}

.org-switcher-modal__chevron {
    flex-shrink: 0;
    color: #94a3b8;
    transition:
        color 0.15s ease,
        transform 0.15s ease;
}

.org-switcher-modal__item:hover .org-switcher-modal__chevron {
    color: var(--primary-2);
    transform: translateX(2px);
}

@media (max-width: 575.98px) {
    #orgSwitcherModal .modal-dialog {
        margin: 0.75rem;
        max-width: calc(100% - 1.5rem);
    }

    .org-switcher-modal {
        border-radius: 0.75rem;
    }

    .org-switcher-modal .modal-header {
        padding: 0.875rem 0.875rem 0.5rem;
        gap: 0.5rem;
    }

    .org-switcher-modal .modal-title {
        font-size: 1rem;
        margin-bottom: 0.125rem !important;
    }

    .org-switcher-modal .modal-header .text-muted {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .org-switcher-modal .modal-body {
        padding: 0 0.875rem 0.875rem;
    }

    .org-switcher-modal__list {
        gap: 0.375rem;
    }

    .org-switcher-modal__item {
        gap: 0.5rem;
        padding: 0.625rem 0.75rem;
        border-radius: 0.5rem;
    }

    .org-switcher-modal__item-name {
        font-size: 0.875rem;
        line-height: 1.25;
    }

    .org-switcher-modal__item-meta {
        margin-top: 0.0625rem;
        font-size: 0.6875rem;
    }

    .org-switcher-modal__badge {
        padding: 0.125rem 0.4rem;
        font-size: 0.625rem;
    }

    .org-switcher-modal .modal-body > .btn-link {
        margin-top: 0.75rem !important;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
}

.org_switcher--offcanvas {
    text-align: left;
}

@media (max-width: 991.98px) {
    #primary_nav .primary-nav-oc__hamburger {
        display: inline-flex;
    }

    #primary_nav .navbar-collapse {
        display: none !important;
    }

    #primary_nav .container {
        min-height: 3.5rem;
        flex-wrap: nowrap;
    }

    #primary_nav .primary-nav__start {
        flex: 1 1 auto;
        min-width: 0;
    }

    #primary_nav .primary-nav-oc__brand-mobile {
        max-width: 100%;
    }

    #primary_nav .primary-nav-oc__brand-mobile img {
        max-width: 100%;
    }

    #primary_nav .primary-nav__end .nav-link {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    #primary_nav .primary-nav__end .btn {
        /* font-size: 1.15rem; */
        /* width: 2.5rem; */
        /* height: 2.5rem; */
    }

    #primary_nav .primary-nav__end .zl-notifications-nav {
        position: relative;
    }

    /* Bootstrap uses position:static for .navbar-nav dropdowns below lg; keep the bar intact
       and center the panel within the viewport so it doesn't clip off-screen. */
    #primary_nav .primary-nav__end .zl-notifications-nav .dropdown-menu {
        position: fixed;
        top: 3.75rem;
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
        min-width: 0 !important;
        max-width: none !important;
        transform: none !important;
    }

    #primary_nav .primary-nav__end .zl-notifications-nav .btn {
        position: relative;
    }
}

.zl-notifications-nav > .btn,
.zl-notifications-nav > .nav-link {
    position: relative;
}

.zl-notifications-badge {
    --bs-badge-padding-x: 0.35em;
    --bs-badge-padding-y: 0.2em;
    min-width: 1.1rem;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1;
    border: 1.5px solid var(--bs-body-bg, #fff);
}

/* Page builder chrome navbar (separate from app navbar — customize in editor/navbar.blade.php) */
nav#editor_nav.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

#editor_nav .dropdown-menu {
    z-index: 1040;
}

@media (min-width: 992px) {
    #editor_nav .nav-item.dropdown:hover > .dropdown-menu,
    #editor_nav .nav-item.dropdown > .dropdown-menu.show {
        display: block;
    }
}

nav#editor_nav.navbar-static {
    position: static;
}

.editor-navbar__context {
    opacity: 0.9;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-navbar__page-title {
    font-weight: 600;
}

.page-builder-shell {
    --page-editor-nav-height: 3.5rem;
    --page-editor-toolbar-height: 3.25rem;
    --page-editor-sticky-offset: var(--page-editor-toolbar-height);
    min-height: 100vh;
}

.page-builder-body {
    display: block;
}

h1.primary_headline {
    font-size: 6em;
}

.btn-xl {
    font-size: 1.6em;
    padding: 0.5em 1.5em;
}

.h-100-fixed {
    height: 100vh;
    overflow-y: auto;
    position: fixed;
}

.manage-sidebar {
    width: 280px;
}

.manage-content {
    padding-left: 0;
}

@media (min-width: 992px) {
    .manage-content {
        padding-left: 280px;
    }
}

.manage-mobile-bar {
    z-index: 1030;
}

.manage-sidebar-offcanvas {
    --bs-offcanvas-width: min(100vw, 280px);
}

.manage-sidebar-offcanvas .offcanvas-header {
    padding: 1.5rem 2rem;
}

.manage-sidebar-offcanvas .sidebar_nav a.nav-link {
    padding: 10px 8px;
}

.sidebar_nav a.nav-link {
    font-weight: 300;
    color: #fff;
    transition: all 0.2s ease-in-out;
    opacity: 0.7;
}
.sidebar_nav a.nav-link:hover,
.sidebar_nav a.nav-link.active {
    transition: all 0.2s ease-in-out;
    opacity: 1;
}
.sidebar_nav a.nav-link.active {
    background: transparent;
}
.sidebar_nav a.nav-link {
    padding: 7px 3px;
}

.sidebar2_nav a.nav-link.active {
    background: transparent;
    color: var(--primary-2);
}
.sidebar2_nav a.nav-link {
    padding: 10px 15px;
}
.sidebar2_nav a.nav-link:hover {
    background-color: #fff;
    color: #000;
}
.sidebar2_nav li {
    margin-bottom: 10px;
}

.sidebar2_nav-toggle {
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.sidebar2_nav-toggle:focus {
    outline: none;
    box-shadow: none;
}

.sidebar2_nav-toggle[aria-expanded="true"] .sidebar2_chevron {
    transform: rotate(180deg);
}

.sidebar2_chevron {
    transition: transform 0.2s ease;
    font-size: 0.75rem;
    opacity: 0.6;
}

.sidebar2_nav-sub {
    padding-left: 0.25rem;
}

.sidebar2_nav-sub .nav-link {
    padding: 8px 15px 8px 2.25rem;
    font-size: 0.9rem;
}

.sidebar2_nav-toggle.active {
    background: rgb(0 0 0 / 3%) !important;
    color: #000 !important;
}

.zl-navbar__actions .btn,
.zl-navbar__actions .dropdown {
    background: rgb(0 0 0 / 0%);
    border-radius: 1em;
    margin: 0 1px;
}

.zl-navbar__actions .btn:hover,
.zl-navbar__actions .dropdown:hover {
    background: rgb(0 0 0 / 6%);
}

div#payment-status-message .alert {
    border-radius: 0px;
    border: 0px;
}

.dashboard-section-tabs {
    max-width: 100%;
}

.dashboard-page-toolbar {
    max-width: 100%;
}

.dashboard-page-toolbar__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
}

.dashboard-page-toolbar__scroll::-webkit-scrollbar {
    display: none;
}

.dashboard-page-toolbar__row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
    min-width: min-content;
}

.dashboard-page-toolbar__row > * {
    flex-shrink: 0;
    white-space: nowrap;
}

.dashboard-page-toolbar__row .btn.btn-dark,
.dashboard-page-toolbar__row .btn.btn-outline-dark {
    background-color: var(--primary-2);
    color: #fff;
    border-color: var(--primary-2);
}

.dashboard-page-toolbar__row .btn.btn-dark:hover,
.dashboard-page-toolbar__row .btn.btn-dark:focus,
.dashboard-page-toolbar__row .btn.btn-dark:active,
.dashboard-page-toolbar__row .btn.btn-outline-dark:hover,
.dashboard-page-toolbar__row .btn.btn-outline-dark:focus,
.dashboard-page-toolbar__row .btn.btn-outline-dark:active {
    background-color: rgba(var(--primary-2-rgb), 0.75);
    border-color: rgba(var(--primary-2-rgb), 1);
    color: #fff;
}

.dashboard-section-tabs__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
}

.dashboard-section-tabs__scroll::-webkit-scrollbar {
    display: none;
}

.orders-filter-bar__scroll {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
}

.orders-filter-bar__scroll::-webkit-scrollbar {
    display: none;
}

.orders-filter-bar__scroll > .dashboard-section-tabs__list {
    flex-shrink: 0;
}

.orders-filter-bar__divider {
    flex: 0 0 1px;
    align-self: stretch;
    min-height: 1.75rem;
    background-color: rgba(0, 0, 0, 0.18);
}

.dashboard-section-tabs__list {
    gap: 0.25rem;
    min-width: min-content;
}

.dashboard-section-tabs__list .nav-item {
    flex-shrink: 0;
}

.dashboard-section-tabs__list .nav-link {
    white-space: nowrap;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    color: var(--bs-secondary-color);
    display: inline-flex;
    align-items: center;
}

.dashboard-section-tabs__list .nav-link.active {
    color: var(--bs-emphasis-color);
    font-weight: 500;
}

.dashboard-section-tabs__list .nav-link.disabled {
    color: var(--bs-secondary-color);
    opacity: 0.55;
    cursor: not-allowed;
}

.dashboard-section-tabs__list .nav-link.disabled.active {
    font-weight: 400;
}

.zl-admin-flash-sale-status {
    background-color: rgb(var(--dark-rgb, 0 0 0) / 100%);
    color: #fff;
}

.zl-admin-flash-sale-status__lead {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.zl-admin-flash-sale-status__ended {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0;
}

.zl-admin-flash-sale-status__timer {
    justify-content: center;
}

.zl-admin-flash-sale-status__unit {
    min-width: 56px;
    padding: 0.45rem 0.65rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
}

.zl-admin-flash-sale-status__value {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
}

.zl-admin-flash-sale-status__unit-label {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.72);
}

.zl-admin-flash-sale-banner {
    background-color: rgb(var(--primary-rgb, 0 21 219) / 20%);
    color: #000;
}

.zl-admin-flash-sale-banner__row {
    row-gap: 0.75rem;
}

.zl-admin-flash-sale-banner__field {
    flex: 0 1 280px;
    min-width: 0;
    max-width: 280px;
}

.zl-admin-flash-sale-banner__addon {
    color: #000;
    font-weight: 600;
    font-size: 0.8125rem;
    background-color: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.15);
}

.zl-admin-flash-sale-banner__input {
    background-color: #fff;
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--bs-body-color);
}

.dashboard-section-tabs__list.nav-pills .nav-link {
    color: var(--bs-secondary-color);
}

.dashboard-section-tabs__list.nav-pills .nav-link.active {
    background-color: var(--bs-dark);
    color: #fff;
}

.dashboard-section-tabs__list.nav-pills .nav-link.active .badge {
    background-color: rgb(255 255 255 / 20%) !important;
    color: #fff !important;
}

.dashboard-stat {
    border: 1px solid color-mix(in srgb, #0f172a 8%, transparent);
}

.dashboard-stat__value {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.dashboard-chart-wrap {
    position: relative;
    height: 280px;
}

.dashboard-chart-wrap--donut {
    height: 260px;
    max-width: 280px;
    margin-inline: auto;
}

.dashboard-actions-list .list-group-item {
    padding: 0;
    border-color: color-mix(in srgb, #0f172a 8%, transparent);
}

.dashboard-action-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: inherit;
}

.dashboard-action-link:hover {
    background: color-mix(in srgb, var(--x-primary, #6366f1) 6%, transparent);
    color: inherit;
}

.dashboard-action-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.dashboard-action-link__icon--warning {
    background: #fef3c7;
    color: #b45309;
}

.dashboard-action-link__icon--danger {
    background: #fee2e2;
    color: #dc2626;
}

.dashboard-action-link__icon--info {
    background: #dbeafe;
    color: #2563eb;
}

.dashboard-action-link__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.dashboard-action-link__title {
    font-weight: 500;
}

.dashboard-action-link__desc {
    font-size: 0.8125rem;
    line-height: 1.35;
}

.primary_content_wrapper {
    min-height: 90vh;
}

.list-group.list-group-dark .list-group-item-action {
    border-radius: 1em;
}

.list-group.list-group-dark .list-group-item-action:not(.active):hover,
.list-group.list-group-dark .list-group-item-action:not(.active):focus {
    background: rgb(0 0 0 / 48%);
    color: #fff;
}

/* Onboarding stepper */
.onboarding-stepper__track {
    height: 4px;
    background: rgb(43 20 38 / 12%);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.onboarding-stepper__progress {
    height: 100%;
    background: var(--primary-2);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.onboarding-stepper__steps {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.onboarding-stepper__step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    color: rgb(43 20 38 / 45%);
    font-size: 0.8rem;
}

.onboarding-stepper__step.is-active,
.onboarding-stepper__step.is-complete {
    color: var(--primary-1);
}

.onboarding-stepper__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid rgb(43 20 38 / 20%);
    font-weight: 600;
    font-size: 0.85rem;
    background: #fff;
    transition: all 0.2s ease;
}

.onboarding-stepper__step.is-active .onboarding-stepper__dot {
    border-color: var(--primary-2);
    background: var(--primary-2);
    color: #fff;
}

.onboarding-stepper__step.is-complete .onboarding-stepper__dot {
    border-color: var(--primary-2);
    color: var(--primary-2);
}

.onboarding-panel[hidden] {
    display: none !important;
}

.onboarding-review__row {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 0.5rem 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgb(43 20 38 / 8%);
}

.onboarding-review__row:last-child {
    border-bottom: 0;
}

.onboarding-review dt {
    font-weight: 500;
    color: var(--primary-1);
    margin: 0;
}

.onboarding-review dd {
    margin: 0;
}

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

.template-card {
    transition:
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.template-card:has(input:checked) {
    box-shadow: 0 0 0 1px var(--bs-dark);
}

.template-card:not(:has(input:disabled)):hover {
    box-shadow: 0 4px 20px rgb(17 24 39 / 8%);
}

.drag-handle {
    cursor: grab;
    user-select: none;
}

.sortable-ghost {
    opacity: 0.45;
}

[x-cloak] {
    display: none !important;
}

.current-template-banner__thumb {
    object-fit: cover;
}

.template-picker-card--selected .template-card {
    box-shadow: 0 0 0 2px var(--bs-dark);
}

.font-preview-select {
    font-size: 1.05rem;
}

.page-builder-layout .builder-sidebar {
    top: 1rem;
    z-index: 10;
}

.builder-palette-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 48px;
}

.palette-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.5rem;
    background: #fff;
    cursor: grab;
    user-select: none;
    touch-action: none;
    font-size: 0.875rem;
    text-align: left;
}

.palette-item__label {
    flex: 1;
    min-width: 0;
}

.palette-item__content {
    flex: 1;
    min-width: 0;
}

.palette-item__title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
}

.palette-item__title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    font-weight: 600;
    color: #0f172a;
}

.palette-item__type-badge {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #475569;
    background: #e2e8f0;
    border-radius: 999px;
    padding: 0.15rem 0.45rem;
}

.palette-item__description {
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.45;
}

.palette-item__grip {
    flex-shrink: 0;
    opacity: 0.55;
    pointer-events: none;
}

.palette-item:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.palette-item:active,
.palette-item.sortable-chosen {
    cursor: grabbing;
}

.builder-canvas {
    min-height: 200px;
    padding: 0.5rem;
    border: 2px dashed #cbd5e1;
    border-radius: 0.5rem;
    background: #f8fafc;
}

.builder-drop-hint {
    padding: 2.5rem 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
    pointer-events: none;
}

.builder-canvas.sortable-drag-active {
    border-color: #1f2937;
    background: #f1f5f9;
}

.sortable-chosen {
    opacity: 0.85;
}

.zl-product-sortable-list .drag-handle {
    margin-top: 0.125rem;
}

.zl-product-sortable-item.sortable-chosen {
    border-color: var(--bs-primary);
}

.palette-item:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

/* Page editor layout — window scroll; toolbar sticks after navbar scrolls away */
.page-editor-form {
    display: block;
}

.page-editor-chrome-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #fff;
}

.page-editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    flex-wrap: wrap;
}

.page-editor-inspector-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
}

.page-editor-inspector-toggle .bi {
    font-size: 1.125rem;
    line-height: 1;
}

.page-editor-toolbar__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status_switcher {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    background: rgb(255 255 255 / 60%);
}

.status_switcher .form-check-input {
    /* width: 2.25rem; */
    /* height: 1.125rem; */
    margin-top: 0;
    cursor: pointer;
}

.status_switcher__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    user-select: none;
    min-width: 4.5rem;
    margin-left: -10px;
}

.page-editor-workspace {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    align-items: start;
}

.page-editor-workspace.is-inspector-hidden {
    grid-template-columns: 280px 1fr;
}

.page-editor-sidebar {
    background: #fff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: sticky;
    top: var(--page-editor-sticky-offset, 3.25rem);
    z-index: 1010;
    align-self: start;
    max-height: calc(100vh - var(--page-editor-sticky-offset, 3.25rem));
}

.page-editor-sidebar__header {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.page-editor-sidebar__type-picker {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    position: relative;
}

.page-editor-sidebar__type-dropdown {
    position: relative;
}

.page-editor-sidebar__type-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.625rem;
    background: #fff;
    color: #0f172a;
    font-size: 0.875rem;
    text-align: left;
}

.page-editor-sidebar__type-trigger.is-open {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgb(148 163 184 / 16%);
}

.page-editor-sidebar__type-menu {
    position: absolute;
    inset: calc(100% + 0.45rem) 0 auto;
    z-index: 20;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 18px 36px rgb(15 23 42 / 14%);
    overflow: hidden;
}

.page-editor-sidebar__type-search {
    padding: 0.65rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.page-editor-sidebar__type-options {
    max-height: 280px;
    overflow-y: auto;
    padding: 0.35rem;
}

.page-editor-sidebar__type-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.6rem;
    border: 1px solid transparent;
    border-radius: 0.625rem;
    background: transparent;
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: left;
}

.page-editor-sidebar__type-option:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.page-editor-sidebar__type-option.is-active {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.page-editor-sidebar__type-trigger .page-editor-sidebar__type-count,
.page-editor-sidebar__type-option .page-editor-sidebar__type-count {
    margin-left: auto;
}

.page-editor-media-field {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.page-editor-media-field__preview {
    padding: 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
}

.page-editor-media-field__image {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 0.55rem;
    display: block;
}

.page-editor-media-field__meta {
    margin-top: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.page-editor-sidebar__list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.page-editor-sidebar__group-intro {
    padding: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 0.25rem;
}

.page-editor-sidebar__group-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f172a;
}

.page-editor-sidebar__type-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.page-editor-sidebar__type-count {
    flex-shrink: 0;
    min-width: 1.5rem;
    text-align: center;
    border-radius: 999px;
    padding: 0.1rem 0.4rem;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.6875rem;
    font-weight: 700;
}

.page-editor-sidebar__footer {
    padding: 0.75rem;
    border-top: 1px solid #f3f3f3;
}

.page-editor-canvas {
    background: #f3f3f3;
    padding: 1.5rem;
    min-height: calc(100vh - var(--page-editor-sticky-offset, 3.25rem));
}

.page-editor-media-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.page-editor-media-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(15 23 42 / 60%);
}

.page-editor-media-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    max-height: calc(100vh - 2.5rem);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 24px 60px rgb(15 23 42 / 22%);
    overflow: hidden;
}

.page-editor-media-modal__header,
.page-editor-media-modal__toolbar,
.page-editor-media-modal__footer {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.page-editor-media-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.page-editor-media-modal__toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-editor-media-modal__toolbar .input-group {
    flex: 1;
}

.page-editor-media-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.1rem;
    background: #f8fafc;
}

.page-editor-media-modal__footer {
    border-top: 1px solid #e2e8f0;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.page-editor-media-modal__empty {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    background: #fff;
}

.page-editor-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.page-editor-media-upload-queue {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.page-editor-media-upload-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    background: #f8fafc;
    box-shadow: 0 8px 24px rgb(15 23 42 / 6%);
}

.page-editor-media-upload-item.is-error {
    border-color: #fca5a5;
    background: #fef2f2;
}

.page-editor-media-upload-item.is-done {
    border-color: #86efac;
    background: #f0fdf4;
}

.page-editor-media-upload-item__name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
}

.page-editor-media-upload-item__progress {
    height: 4px;
    margin-bottom: 0;
}

.page-editor-media-upload-item__percent {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1;
}

.page-editor-media-upload-item.is-done .page-editor-media-upload-item__percent {
    color: #16a34a;
}

.page-editor-media-card {
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    background: #fff;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 8px 24px rgb(15 23 42 / 6%);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.page-editor-media-card:hover {
    transform: translateY(-1px);
    border-color: #94a3b8;
    box-shadow: 0 12px 28px rgb(15 23 42 / 10%);
}

.page-editor-media-card.is-selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgb(37 99 235 / 25%);
}

.page-editor-media-card__check {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgb(15 23 42 / 20%);
}

.page-editor-media-card__thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #e2e8f0;
}

.page-editor-media-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-editor-media-card__file {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.04);
    color: rgba(17, 24, 39, 0.65);
    font-size: 1.75rem;
}

.page-editor-media-card__body {
    padding: 0.75rem;
}

.page-editor-media-card__title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    word-break: break-word;
}

.page-editor-media-card__meta {
    font-size: 0.75rem;
    color: #64748b;
}

.page-editor-media-details-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1050;
}

.page-editor-media-details {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(420px, 92vw);
    background: #fff;
    border-left: 1px solid #e2e8f0;
    box-shadow: -12px 0 32px rgba(15, 23, 42, 0.14);
    z-index: 1060;
    display: flex;
    flex-direction: column;
}

.page-editor-media-details__header {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.page-editor-media-details__body {
    padding: 1rem;
    overflow: auto;
    background: #f8fafc;
}

.page-editor-media-details__preview img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.75rem;
    background: #e2e8f0;
}

.page-editor-media-details__file {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0.75rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: grid;
    place-items: center;
    color: rgba(15, 23, 42, 0.6);
    font-size: 2rem;
}

.page-editor-media-details__row .form-control[readonly] {
    background: #fff;
}

.builder-preview-root {
    min-height: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgb(15 23 42 / 12%);
    overflow: hidden;
    /* --font is set inline from the site theme (previewRootStyle) */
    font-family: var(--font, system-ui, sans-serif);
}

/* Override global body/h* rules (--x-font-display) inside the editor canvas */
.builder-preview-root
    :where(
        h1,
        h2,
        h3,
        h4,
        h5,
        h6,
        p,
        a,
        span,
        strong,
        em,
        small,
        li,
        label,
        button,
        input,
        textarea,
        select,
        figcaption
    ) {
    font-family: var(--font, system-ui, sans-serif);
}

/* Section shells in the page builder canvas */
.builder-preview-root .position-relative.overflow-hidden {
    width: 100%;
}

.builder-preview-root .zl-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 0 20px;
    flex-wrap: wrap;
}

.builder-preview-root .zl-brand {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.builder-preview-sections {
    min-height: 200px;
    padding-left: 0;
}

.builder-preview-sections.sortable-drag-active {
    outline: 2px dashed #2563eb;
    outline-offset: 4px;
    border-radius: 8px;
}

.builder-drop-hint {
    padding: 3rem 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: rgb(255 255 255 / 50%);
}

.preview-section-shell {
    position: relative;
    margin-bottom: 2px;
    cursor: pointer;
    outline: 2px solid transparent;
    outline-offset: 0;
    transition:
        outline-color 0.15s ease,
        outline-width 0.15s ease;
}

.preview-section-toolbar {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    transform: none;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.preview-section-shell:hover .preview-section-toolbar,
.preview-section-shell.is-selected .preview-section-toolbar {
    opacity: 1;
    pointer-events: auto;
}

.preview-section-toolbar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background: #fff;
    color: #475569;
    box-shadow: 0 2px 8px rgb(15 23 42 / 10%);
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.preview-section-toolbar {
    mix-blend-mode: normal;
}

.preview-section-toolbar__btn:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.preview-section-toolbar__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.preview-section-toolbar__btn--danger {
    color: #b91c1c;
}

.preview-section-toolbar__btn--danger:hover:not(:disabled) {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.preview-section-shell:hover:not(.is-selected) {
    outline-color: rgb(37 99 235 / 28%);
}

.preview-section-shell.is-selected {
    outline: 2px solid #2563eb;
    outline-offset: 0;
    z-index: 2;
}

.preview-section-shell.sortable-chosen {
    outline-color: rgb(37 99 235 / 45%);
    cursor: grabbing;
}

.page-editor-inspector {
    border: none;
    border-left: 1px solid #e2e8f0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: sticky;
    top: var(--page-editor-sticky-offset, 3.25rem);
    z-index: 1010;
    align-self: start;
    max-height: calc(100vh - var(--page-editor-sticky-offset, 3.25rem));
}

.page-editor-inspector__body {
    flex: 1;
    overflow-y: auto;
    padding: 0.65rem 0.75rem;
}

.page-editor-tabs .nav-link {
    font-size: 0.8125rem;
    padding: 0.65rem 0.5rem;
    border-radius: 0;
    color: #64748b;
}

.page-editor-tabs .nav-link.active {
    color: #111827;
    font-weight: 600;
}

.page-editor-inspector--compact .page-editor-tabs .nav-link {
    font-size: 0.6875rem;
    padding: 0.35rem 0.25rem;
    letter-spacing: 0.01em;
}

.page-editor-inspector--compact .card-header {
    padding: 0;
}

.page-editor-inspector--compact .form-label {
    font-size: 0.6875rem;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.page-editor-inspector--compact .form-control,
.page-editor-inspector--compact .form-select {
    font-size: 0.75rem;
    padding: 0.3rem 0.45rem;
    min-height: calc(1.5em + 0.5rem);
}

.page-editor-inspector--compact .form-control-sm {
    font-size: 0.6875rem;
    padding: 0.2rem 0.4rem;
}

.page-editor-inspector--compact .btn-sm {
    font-size: 0.6875rem;
    padding: 0.2rem 0.45rem;
}

.page-editor-inspector--compact textarea.form-control {
    min-height: 4.5rem;
}

.page-editor-inspector--compact .border.rounded.p-3 {
    padding: 0.5rem !important;
}

.page-editor-autosave-badge {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 1050;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgb(15 23 42 / 18%);
    pointer-events: none;
    max-width: min(90vw, 360px);
}

.page-editor-autosave-badge--pending {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.page-editor-autosave-badge--saving {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.page-editor-autosave-badge--saved {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.page-editor-autosave-badge--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.nav-link:focus-visible {
    box-shadow: none;
}

@media (max-width: 1199.98px) {
    .page-editor-workspace {
        grid-template-columns: 240px 1fr 280px;
    }

    .page-editor-workspace.is-inspector-hidden {
        grid-template-columns: 240px 1fr;
    }
}

@media (max-width: 991.98px) {
    .page-editor-workspace {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }

    .page-editor-sidebar {
        position: static;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        max-height: 200px;
    }

    .page-editor-sidebar__list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .page-editor-sidebar__group-intro {
        width: 100%;
    }

    .palette-item--section {
        width: calc(50% - 0.25rem);
    }

    .page-editor-inspector {
        position: static;
        border-left: none;
        border-top: 1px solid #e2e8f0;
        max-height: 360px;
    }

    .page-editor-media-modal__toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 900px) {
    .preview-features-grid {
        grid-template-columns: 1fr !important;
    }

    h1.primary_headline {
        font-size: 2em;
    }
}

/* Floating WhatsApp chat button */
.zl-whatsapp-fab {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 16px rgb(0 0 0 / 20%);
    text-decoration: none;
    cursor: pointer;
    appearance: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.zl-whatsapp-fab:hover,
.zl-whatsapp-fab:focus-visible {
    color: #fff;
    background: #1ebe57;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgb(0 0 0 / 24%);
}

.zl-whatsapp-fab__icon {
    width: 1.75rem;
    height: 1.75rem;
}

.zl-whatsapp-picker__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.zl-whatsapp-picker__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: #25d366;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.zl-whatsapp-picker__link:hover,
.zl-whatsapp-picker__link:focus-visible {
    background: #1ebe57;
    color: #fff;
}

.zl-whatsapp-picker__link .bi {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
}

.zl-whatsapp-picker__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    text-align: left;
}

.zl-whatsapp-picker__label {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
}

.zl-whatsapp-picker__phone {
    font-size: 0.9rem;
    line-height: 1.2;
    word-break: break-all;
}

.card.zl-shop-collection-card {
    overflow: hidden;
}
.card.zl-shop-collection-card .card-body {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #000000;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    color: #fff;
}

.card.zl-shop-collection-card .card-body .card-title {
    color: #ffffff;
}
.card.zl-shop-collection-card .card-body .card-text {
    opacity: 0.75;
    color: #fff;
}

.zl-shop-product-card__media {
    overflow: hidden;
}

.zl-shop-product-card__image-link {
    background-color: var(--bs-light, #f7f8ff);
}

.zl-shop-product-card__images {
    position: absolute;
    inset: 0;
}

.zl-shop-product-card__image-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.zl-shop-product-card__image-layer.is-active {
    opacity: 1;
}

.zl-shop-product-card__image-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zl-shop-product-card__cta {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 0.75rem;
    opacity: 0;
    transform: translateY(100%);
    transition:
        opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.zl-shop-product-card:hover .zl-shop-product-card__cta,
.zl-shop-product-card:focus-within .zl-shop-product-card__cta {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ratio-2 {
    aspect-ratio: 9 / 12;
}

.zl-shop-collections {
    background-color: rgb(var(--dark-rgb) / 10%);
}

.zl-shop-collections a:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
    filter: brightness(0.9);
    opacity: 0.8;
    transition: all 0.3s ease-in-out;
}

.zl-shop {
    min-height: 55vh;
}

div#ZedlifyAttribution a p {
    margin-right: 10px;
    text-transform: uppercase;
    font-size: 0.6em;
    letter-spacing: 2px;
    font-weight: 500;
    color: #fff;
}
div#ZedlifyAttribution a {
    display: block;
    padding: 5px;
}
div#ZedlifyAttribution {
    /* background: #dc004d; */
    /* width: 140px; */
    position: absolute;
    border-radius: 15px;
    bottom: 20px;
    left: 10px;
    background: #ffffff4f;
}
.ZedlifyAttribution {
    display: flex;
    justify-content: center;
    align-items: center;
}
.ZedlifyAttribution img {
    width: 30px;
    height: auto;
}

div#ZedlifyAttribution:hover {
    background-color: #fff;
}
div#ZedlifyAttribution:hover .ZedlifyAttribution {
    transform: rotate(180deg);
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

.truncate-wrapper {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (prefers-reduced-motion: reduce) {
    .zl-shop-product-card__cta {
        transition: none;
    }

    .zl-shop-product-card__image-layer {
        transition: none;
    }
}

@media (hover: none) {
    .zl-shop-product-card__cta {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

@media (max-width: 980px) {
    .zl-shop-hero__dots {
        display: none;
    }
    .collection-card-title.h1 {
        font-size: 1.2rem;
    }
    .ZedlifyAttribution img {
        width: 20px;
    }
    div#ZedlifyAttribution a {
        padding: 5px;
    }
}

@media (max-width: 575.98px) {
    .zl-whatsapp-fab {
        right: 1rem;
        bottom: 1rem;
        width: 3.25rem;
        height: 3.25rem;
    }

    .zl-whatsapp-fab__icon {
        width: 1.5rem;
        height: 1.5rem;
    }
}

.password-toggle-btn {
    cursor: pointer;
}

/* Global Bootstrap "small" form controls */
:root {
    --zl-control-font-size: 0.875rem;
    --zl-control-padding-y: 0.25rem;
    --zl-control-padding-x: 0.5rem;
    --zl-control-border-radius: var(--bs-border-radius-sm);
    --zl-control-min-height: calc(1.5em + 0.5rem + 2px);
}

.form-control:not(.form-control-lg):not(.form-control-sm),
.form-select:not(.form-select-lg):not(.form-select-sm) {
    font-size: var(--zl-control-font-size);
    padding: var(--zl-control-padding-y) var(--zl-control-padding-x);
    border-radius: var(--zl-control-border-radius);
    min-height: var(--zl-control-min-height);
}

textarea.form-control:not(.form-control-lg):not(.form-control-sm) {
    min-height: calc(1.5em + 1rem + 2px);
}

.input-group:not(.input-group-lg):not(.input-group-sm) > .input-group-text,
.input-group:not(.input-group-lg):not(.input-group-sm) > .btn {
    font-size: var(--zl-control-font-size);
    padding: var(--zl-control-padding-y) var(--zl-control-padding-x);
    border-radius: var(--zl-control-border-radius);
}

.form-floating > .form-control:not(.form-control-lg):not(.form-control-sm),
.form-floating > .form-select:not(.form-select-lg):not(.form-select-sm) {
    min-height: calc(3rem + 2px);
}

/* Global small alerts */
.alert {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.alert .alert-heading {
    font-size: 0.95em;
    margin-bottom: 0.25rem;
}

.alert :where(p, ul, ol) {
    margin-bottom: 0.25rem;
}

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

.zl-customer-picker__menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    z-index: 30;
    max-height: 16rem;
    overflow-y: auto;
}

.zl-customer-picker__menu .list-group-item {
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
}

.zl-customer-picker__menu .list-group-item.active {
    background-color: var(--bs-dark);
    border-color: var(--bs-dark);
}

.zl-copy-btn {
    opacity: 0.65;
    text-decoration: none;
    align-self: flex-start;
}

.zl-copyable-value__text {
    line-height: 1.2;
}

.zl-copy-btn__label {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.zl-copy-btn:hover,
.zl-copy-btn:focus {
    opacity: 1;
    text-decoration: none;
}

.zl-copy-btn .bi-check-lg {
    color: var(--bs-success);
}

ul.sidebar_nav li a {
    font-weight: 400 !important;
}

.zl-order-types__list .list-group-item {
    border-color: var(--bs-border-color-translucent);
}

.zl-order-types__list .list-group-item:first-child {
    padding-top: 0 !important;
}

.zl-order-types__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: var(--bs-light);
    color: var(--bs-secondary);
    flex-shrink: 0;
}

.zl-order-types__empty {
    border: 1px dashed var(--bs-border-color);
    border-radius: 0.5rem;
    background: var(--bs-light);
}

.zl-order-types__add .form-control {
    min-width: 0;
}

.bg-black {
    background-color: #000 !important;
}

.phone_img {
    display: flex;
    justify-content: center;
    align-items: end;
}

.feature-card {
    border: 1px solid rgb(0 0 0 / 0%);
    border-radius: 1.5em;
    padding: 2em;
    height: 100%;
    background: rgb(0 0 0 / 15%);
}
.feature-card:hover {
    border: 1px solid rgb(0 0 0 / 0%);
    background: rgb(0 0 0 / 30%);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    will-change: all;
}

#homeFaq button.accordion-button {
    font-weight: 700;
    color: var(--primary-1);
}
#homeFaq button.accordion-button:not(.collapsed) {
    color: var(--primary-2);
}

.center_nav2 a.nav-link {
    font-weight: 500 !important;
    color: var(--primary-1);
}
.center_nav2 a.nav-link.active {
    color: var(--primary-2);
}

nav#primary_nav.is-fixed.navbar-dark .center_nav2 a.nav-link {
    color: var(--primary-3);
}
nav#primary_nav.is-fixed.navbar-dark .center_nav2 a.nav-link.active {
    color: var(--primary-2);
}

.feature-title {
    color: #fff;
    font-size: 1.1em;
    font-weight: 600;
}
.feature-desc {
    font-size: 0.95em;
    font-weight: 200;
    margin-top: 1em;
}
.feature-icon {
    background: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    margin-right: 0.5em;
    flex: 0 0 auto;
}
.feature-header-container {
    display: flex;
    align-items: center;
}

.content_area {
    max-width: 1000px;
    margin: 0 auto;
}
.content_area h1 {
    margin-bottom: 0.5em;
}

.content_area h2 {
    margin-top: 2em;
    margin-bottom: 0.5em;
}
.content_area h3 {
    margin-top: 1em;
    margin-bottom: 0.25em;
}

.card.cta_card {
    border-radius: 3em;
    border: 1px solid rgb(255 255 255 / 13%);
    box-shadow: 0px 0px 60px 0px rgb(247 248 255 / 10%);
}

ul.pain-list li {
    font-size: 1.05em;
    font-weight: 600;
    margin-bottom: 0.5em;
    display: flex;
    align-items: center;
}
ul.pain-list li span {
    background: #d3ffd3;
    width: 40px;
    height: 40px;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    margin-right: 0.5em;
}
ul.pain-list {
    list-style: none;
    padding-left: 0;
}

/* ── PROBLEM SECTION ── */
.chat-mockup {
    background: #ece5dd;
    border-radius: 16px;
    padding: 16px;
    font-size: 0.78rem;
    line-height: 1.5;
}

.chat-header {
    background: #075e54;
    margin: -16px -16px 14px;
    padding: 10px 14px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    background: var(--zed-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.chat-contact {
    font-weight: 600;
    font-size: 0.75rem;
    color: #fff;
}

.chat-status {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
}

.msg-bubble {
    background: #fff;
    border-radius: 0 8px 8px 8px;
    padding: 7px 10px;
    margin-bottom: 8px;
    display: inline-block;
    max-width: 85%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-size: 0.73rem;
    color: #1a1a1a;
    line-height: 1.45;
}

.msg-bubble.sent {
    background: #dcf8c6;
    border-radius: 8px 0 8px 8px;
    margin-left: auto;
    display: flex;
    flex-direction: column;
}

.msg-time {
    font-size: 0.55rem;
    color: rgba(0, 0, 0, 0.35);
    text-align: right;
    margin-top: 3px;
}

.msg-row {
    display: flex;
    flex-direction: column;
}

.msg-row.sent {
    align-items: flex-end;
}

.chaos-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 12px;
}

.clarity-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 12px;
}

/* Order card mockup */
.order-card-mockup {
    background: #fff;
    border: 1.5px solid var(--zed-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.order-card-header {
    background: var(--zed-dark);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-card-header h6 {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.order-status-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.status-paid {
    background: #dcfce7;
    color: #16a34a;
}

.status-pending {
    background: #fef9c3;
    color: #a16207;
}

.order-card-body {
    padding: 14px 16px;
}

.order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    padding: 7px 0;
    border-bottom: 1px solid var(--zed-border);
    color: var(--zed-dark);
}

.order-row:last-child {
    border-bottom: none;
}

.order-row .label {
    color: var(--zed-mid);
    font-size: 0.72rem;
}

.order-row .value {
    font-weight: 600;
}

.order-row.total .value {
    color: var(--zed-magenta);
    font-size: 0.88rem;
}

.order-wa-notif {
    background: var(--zed-green-dim);
    border: 1px solid rgba(37, 211, 102, 0.25);
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: #166534;
}

.order-wa-notif i {
    color: var(--zed-green);
    font-size: 0.85rem;
}

@media (min-width: 576px) {
    .zl-order-types__add form {
        max-width: 36rem;
    }
}

/* Rich / WYSIWYG HTML — keep content inside the viewport on narrow screens */
.zl-rich-content,
.zl-legal-prose,
.zl-blog-prose,
.global-mega-footer__contact,
.zl-site-footer__contact,
.zl-shop-product__description {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.zl-rich-content :is(img, iframe, video, table),
.zl-legal-prose :is(img, iframe, video, table),
.zl-blog-prose :is(img, iframe, video, table),
.global-mega-footer__contact :is(img, iframe, video, table),
.zl-site-footer__contact :is(img, iframe, video, table),
.zl-shop-product__description :is(img, iframe, video, table) {
    max-width: 100%;
    height: auto;
}

.zl-rich-content :is(table, pre),
.zl-legal-prose :is(table, pre),
.zl-blog-prose :is(table, pre),
.global-mega-footer__contact :is(table, pre),
.zl-site-footer__contact :is(table, pre),
.zl-shop-product__description :is(table, pre) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

/* Neutralize pasted page-builder inline widths (e.g. Elementor's 600px columns) */
.zl-rich-content [style],
.global-mega-footer__contact [style],
.zl-site-footer__contact [style],
.zl-shop-product__description [style] {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
}
