.wsp-app {
    --wsp-teal: #0f9c9a;
    --wsp-teal-deep: #0b7d7b;
    --wsp-teal-soft: #dff7f5;
    --wsp-mint: #e8f8f0;
    --wsp-sand: #fff4e6;
    --wsp-lilac: #f1e8ff;
    --wsp-sky: #e7f3ff;
    --wsp-peach: #ffe8e2;
    --wsp-ink: #1d2a2a;
    --wsp-muted: #667777;
    --wsp-line: #dce8e7;
    --wsp-surface: #f4faf9;
    --wsp-card: #ffffff;
    --wsp-shadow: 0 10px 28px rgba(15, 156, 154, 0.10);
    direction: rtl;
    font-family: IRANSans, IRANSansWeb, Tahoma, sans-serif;
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(15, 156, 154, 0.12), transparent 34%),
        linear-gradient(180deg, #f7fcfb 0%, #eef7f6 100%);
    color: var(--wsp-ink);
    padding-bottom: 84px;
}

@font-face {
    font-family: IRANSans;
    src: url('fonts/IRANSansWeb/woff2/IRANSansWeb_UltraLight.woff2') format('woff2'),
         url('fonts/IRANSansWeb/woff/IRANSansWeb_UltraLight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: IRANSans;
    src: url('fonts/IRANSansWeb/woff2/IRANSansWeb_Light.woff2') format('woff2'),
         url('fonts/IRANSansWeb/woff/IRANSansWeb_Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: IRANSans;
    src: url('fonts/IRANSansWeb/woff2/IRANSansWeb.woff2') format('woff2'),
         url('fonts/IRANSansWeb/woff/IRANSansWeb.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: IRANSans;
    src: url('fonts/IRANSansWeb/woff2/IRANSansWeb_Medium.woff2') format('woff2'),
         url('fonts/IRANSansWeb/woff/IRANSansWeb_Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: IRANSans;
    src: url('fonts/IRANSansWeb/woff2/IRANSansWeb_Bold.woff2') format('woff2'),
         url('fonts/IRANSansWeb/woff/IRANSansWeb_Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: IRANSans;
    src: url('fonts/IRANSansWeb/woff2/IRANSansWeb_Black.woff2') format('woff2'),
         url('fonts/IRANSansWeb/woff/IRANSansWeb_Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

body.wsp-wholesale-page,
body.wsp-wholesale-page button,
body.wsp-wholesale-page input,
body.wsp-wholesale-page select,
body.wsp-wholesale-page textarea {
    font-family: IRANSans, IRANSansWeb, Tahoma, sans-serif;
}

/* هر قاعده‌ی display در این فایل بر [hidden] مرورگر غلبه می‌کند، پس مخفی‌سازی
   با صفت hidden باید صریح باشد؛ جستجوی سریع به همین دلیل کار نمی‌کرد. */
.wsp-app [hidden] {
    display: none !important;
}

.wsp-loading,
.wsp-access-denied {
    max-width: 420px;
    margin: 40px auto;
    padding: 24px;
    background: #fff;
    border-radius: 18px;
    text-align: center;
}

.wsp-page {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
}

.wsp-home-page {
    padding-bottom: 18px;
}

.wsp-section {
    padding: 10px 16px;
}

.wsp-section-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--wsp-muted);
    margin-bottom: 10px;
}

.wsp-site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(220, 232, 231, 0.9);
}

.wsp-header-cart,
.wsp-header-menu {
    border: 0;
    background: var(--wsp-teal-soft);
    color: var(--wsp-teal-deep);
    border-radius: 16px;
    min-height: 46px;
    cursor: pointer;
    position: relative;
}

.wsp-header-cart {
    width: 46px;
    display: grid;
    place-items: center;
}

.wsp-header-cart .wsp-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    margin: 0;
}

.wsp-brand {
    text-align: center;
}

.wsp-brand strong {
    display: block;
    font-size: 18px;
    color: var(--wsp-teal-deep);
}

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

.wsp-header-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
}

.wsp-header-menu-lines {
    display: grid;
    gap: 3px;
}

.wsp-header-menu span {
    display: block;
    width: 14px;
    height: 2px;
    background: currentColor;
    border-radius: 99px;
}

.wsp-header-menu em {
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.wsp-hero-banner {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 12px;
    align-items: center;
    min-height: 168px;
    padding: 20px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.22), transparent 40%),
        linear-gradient(135deg, #12b5b1 0%, #0d8f8c 55%, #0a6f6d 100%);
    color: #fff;
    box-shadow: var(--wsp-shadow);
    overflow: hidden;
}

.wsp-hero-copy h2 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.4;
}

.wsp-hero-copy p {
    margin: 0 0 14px;
    opacity: 0.92;
    font-size: 13px;
}

.wsp-hero-cta {
    border: 0;
    background: #fff;
    color: var(--wsp-teal-deep);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
    cursor: pointer;
}

.wsp-hero-art {
    display: grid;
    place-items: center;
    font-size: 54px;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.wsp-story-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: none;
}

.wsp-story-row::-webkit-scrollbar {
    display: none;
}

.wsp-story {
    flex: 0 0 auto;
    width: 72px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    text-align: center;
}

.wsp-story-ring {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 8px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #7fe3df, #0f9c9a 55%, #f6c57a);
}

.wsp-story-dot {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    font-weight: 800;
    color: var(--wsp-teal-deep);
}

.wsp-story em {
    display: block;
    font-style: normal;
    font-size: 11px;
    color: var(--wsp-muted);
    line-height: 1.4;
}

.wsp-tone-teal .wsp-story-dot,
.wsp-tone-teal.wsp-term-group { background: var(--wsp-teal-soft); }
.wsp-tone-mint .wsp-story-dot,
.wsp-tone-mint.wsp-term-group { background: var(--wsp-mint); }
.wsp-tone-sand .wsp-story-dot,
.wsp-tone-sand.wsp-term-group { background: var(--wsp-sand); }
.wsp-tone-lilac .wsp-story-dot,
.wsp-tone-lilac.wsp-term-group { background: var(--wsp-lilac); }
.wsp-tone-sky .wsp-story-dot,
.wsp-tone-sky.wsp-term-group { background: var(--wsp-sky); }
.wsp-tone-peach .wsp-story-dot,
.wsp-tone-peach.wsp-term-group { background: var(--wsp-peach); }

.wsp-calendar-shell {
    background: var(--wsp-card);
    border-radius: 28px;
    box-shadow: var(--wsp-shadow);
    border: 1px solid rgba(15, 156, 154, 0.08);
    overflow: hidden;
    height: 392px;
}

.wsp-calendar-detail,
.wsp-calendar-grid {
    padding: 18px 16px 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.wsp-zoom-in {
    animation: wspZoomIn 0.32s ease;
}

.wsp-zoom-out {
    animation: wspZoomOut 0.32s ease;
}

@keyframes wspZoomIn {
    from { opacity: 0; transform: scale(1.12); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes wspZoomOut {
    from { opacity: 0; transform: scale(0.88); }
    to { opacity: 1; transform: scale(1); }
}

.wsp-calendar-nav {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    direction: ltr;
}

.wsp-calendar-nav-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    direction: rtl;
}

.wsp-calendar-arrow,
.wsp-calendar-icon {
    border: 0;
    background: var(--wsp-teal-soft);
    color: var(--wsp-teal-deep);
    border-radius: 14px;
    min-height: 42px;
    cursor: pointer;
    font-size: 18px;
}

.wsp-calendar-icon {
    justify-self: center;
    width: 52px;
}

.wsp-calendar-title {
    margin: 0;
    text-align: center;
    font-size: 26px;
    color: var(--wsp-teal-deep);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wsp-calendar-count {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    background: var(--wsp-teal-soft);
    color: var(--wsp-teal-deep);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.wsp-calendar-desc {
    text-align: center;
    color: var(--wsp-muted);
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 12px;
}
.wsp-template-preview-top span {
    display: inline-flex;
    align-items: center;
    background: var(--wsp-teal-soft);
    color: var(--wsp-teal-deep);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 700;
}

.wsp-template-size-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.wsp-template-size-item {
    font-size: 12px;
    font-weight: 600;
    color: var(--wsp-muted);
}

.wsp-template-size-sep {
    width: 1px;
    height: 12px;
    background: var(--wsp-line);
    flex-shrink: 0;
}

.wsp-calendar-occasions {
    background: var(--wsp-surface);
    border-radius: 18px;
    padding: 12px 14px;
    margin-bottom: 12px;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.wsp-calendar-occasions strong {
    display: block;
    margin-bottom: 8px;
    color: var(--wsp-teal-deep);
    font-size: 16px;
    font-weight: 800;
}

.wsp-calendar-occasions ul {
    margin: 0;
    padding: 0 18px 0 0;
    color: #455555;
    line-height: 1.9;
    font-size: 16px;
    max-height: calc(16px * 1.9 * 4);
    overflow-y: auto;
    flex: 0 0 auto;
    scrollbar-width: thin;
    scrollbar-color: #f28c28 transparent;
}

.wsp-calendar-enter,
.wsp-template-enter {
    width: 100%;
    border: 0;
    border-radius: 16px;
    min-height: 48px;
    background: linear-gradient(135deg, #12b5b1, #0d8f8c);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: auto;
}

.wsp-calendar-grid-head {
    display: block;
    margin: 0 0 12px;
    padding: 0 10px;
    flex-shrink: 0;
    text-align: center;
}

.wsp-calendar-grid-head::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    margin-top: 12px;
    background: var(--wsp-line);
}

.wsp-calendar-grid-head strong {
    font-size: 15px;
}

.wsp-month-grid-wrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 10px 4px;
}

.wsp-month-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    align-content: start;
}

.wsp-month-grid.wsp-month-table {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    align-content: stretch;
}

.wsp-month-tile {
    border: 1px solid var(--wsp-line);
    background: linear-gradient(180deg, #ffffff, #f7fbfb);
    border-radius: 18px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.wsp-month-table .wsp-month-tile {
    border-radius: 0;
    border: 0;
    border-inline-start: 1px solid var(--wsp-line);
    border-bottom: 1px solid var(--wsp-line);
    background: transparent;
    min-height: 74px;
    padding: 12px 8px;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.wsp-month-table .wsp-month-tile strong,
.wsp-month-table .wsp-month-tile small {
    position: relative;
    z-index: 1;
}

.wsp-month-table .wsp-month-tile.is-active::before {
    content: '';
    position: absolute;
    inset: 12px 14px;
    border-radius: 18px;
    background: rgba(242, 140, 40, 0.38);
    box-shadow: 0 0 28px rgba(242, 140, 40, 0.42);
    filter: blur(28px);
    z-index: 0;
    pointer-events: none;
}

.wsp-month-table .wsp-month-tile.is-active {
    background: transparent;
    box-shadow: none;
}

.wsp-month-table .wsp-month-tile:nth-child(3n + 1) {
    border-inline-start: 0;
}

.wsp-month-table .wsp-month-tile:nth-last-child(-n + 3) {
    border-bottom: 0;
}


.wsp-calendar-detail {
    position: relative;
}

.wsp-calendar-head {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.wsp-calendar-top-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: var(--wsp-teal-soft);
    color: var(--wsp-teal-deep);
    cursor: pointer;
    padding: 0;
}

.wsp-calendar-toggle-icon {
    width: 22px;
    height: 22px;
    display: block;
}

.wsp-calendar-occasions ul::-webkit-scrollbar {
    width: 12px;
}

.wsp-calendar-occasions ul::-webkit-scrollbar-track {
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(15, 156, 154, 0.18) 8%,
        rgba(15, 156, 154, 0.18) 92%,
        transparent 100%
    );
    background-size: 2px 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.wsp-calendar-occasions ul::-webkit-scrollbar-thumb {
    background: #f28c28;
    border: 3px solid transparent;
    border-radius: 50%;
    background-clip: padding-box;
    min-height: 28px;
}

.wsp-month-tile strong {
    display: block;
    margin-bottom: 6px;
    color: var(--wsp-ink);
}

.wsp-month-tile small {
    color: var(--wsp-muted);
}

.wsp-month-tile.is-active,
.wsp-month-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 156, 154, 0.35);
    box-shadow: var(--wsp-shadow);
    background: var(--wsp-teal-soft);
}

.wsp-month-table .wsp-month-tile.is-active,
.wsp-month-table .wsp-month-tile:hover {
    transform: none;
    background: transparent;
    box-shadow: none;
}

.wsp-search-bar {
    width: 100%;
    display: grid;
    grid-template-columns: 28px 1fr 28px;
    gap: 10px;
    align-items: center;
    min-height: 52px;
    border: 1px solid var(--wsp-line);
    background: #fff;
    border-radius: 999px;
    padding: 0 16px;
    color: var(--wsp-muted);
    box-shadow: 0 8px 20px rgba(15, 156, 154, 0.06);
    cursor: pointer;
}

.wsp-search-placeholder {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wsp-search-bar input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    outline: none;
}

.wsp-search-icon,
.wsp-search-scan {
    color: var(--wsp-teal);
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.wsp-templates-section {
    padding-bottom: 28px;
}

.wsp-template-sticky {
    position: sticky;
    top: calc(80px + env(safe-area-inset-top, 0px));
    z-index: 30;
    margin-bottom: 14px;
}

.wsp-template-preview {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 12px;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 156, 154, 0.12);
    border-radius: 24px;
    padding: 12px;
    box-shadow: var(--wsp-shadow);
    min-height: 156px;
    box-sizing: border-box;
    overflow: hidden;
}

.wsp-template-preview.is-empty {
    grid-template-columns: 1fr;
    height: 156px;
    min-height: 156px;
    max-height: 156px;
}

.wsp-template-preview-empty {
    padding: 8px 4px;
}

.wsp-template-preview-empty strong {
    display: block;
    margin-bottom: 4px;
    color: var(--wsp-teal-deep);
}

.wsp-template-preview-body {
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wsp-template-preview-empty p,
.wsp-template-preview-body p {
    margin: 0;
    color: var(--wsp-muted);
    font-size: 13px;
    line-height: 1.8;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wsp-template-preview-body p.wsp-template-fabric {
    margin-top: 6px;
    color: var(--wsp-teal-deep);
    font-weight: 800;
    -webkit-line-clamp: 1;
}

.wsp-template-preview-image {
    width: 132px;
    height: 132px;
    border-radius: 18px;
    object-fit: cover;
    background: var(--wsp-surface);
    flex-shrink: 0;
}

.wsp-template-preview-image.is-placeholder {
    display: grid;
    place-items: center;
    color: var(--wsp-muted);
    font-size: 12px;
}

.wsp-template-preview-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.wsp-template-preview-top h3 {
    margin: 0;
    font-size: 17px;
}

.wsp-template-sizes {
    margin: 8px 0 0;
    flex-shrink: 0;
}

.wsp-template-sizes strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--wsp-teal-deep);
}

.wsp-template-sizes div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wsp-header {
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 20;
}

.wsp-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.wsp-guide {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.wsp-card {
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.wsp-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.wsp-tab {
    border: 0;
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    font-weight: 700;
    cursor: pointer;
}

.wsp-sheet-primary,
.wsp-order-view {
    background: linear-gradient(135deg, #12b5b1, #0d8f8c);
    color: #fff;
}

.wsp-tab.is-active {
    background: var(--wsp-teal-soft);
    color: var(--wsp-teal-deep);
}

.wsp-bottom-nav {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    max-width: 480px;
    margin: 0 auto;
    height: 68px;
    background: rgba(10, 16, 32, 0.52);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    z-index: 50;
}

.wsp-bottom-nav button {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    cursor: pointer;
}

.wsp-badge {
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--wsp-teal);
    color: #fff;
    font-size: 11px;
    margin-right: 4px;
}
.wsp-history {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0;
}

.wsp-history-item {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: #fff;
    overflow: hidden;
    flex: 0 0 auto;
    cursor: pointer;
}

.wsp-history-item.is-active {
    border-color: #159b70;
}

.wsp-history-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wsp-history-item span {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.wsp-info-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.wsp-card-image {
    width: 92px;
    height: 92px;
    border-radius: 14px;
    object-fit: cover;
    background: #eef4f2;
    flex: 0 0 auto;
}

.wsp-info-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.wsp-info-card p {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.8;
    color: #555;
}

.wsp-info-card small {
    display: block;
    margin-bottom: 8px;
    color: #777;
    line-height: 1.7;
}

.wsp-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.wsp-card-meta span {
    background: #eef4f2;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
}

.wsp-section-title {
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 8px;
}

.wsp-section-help {
    margin: 0 0 12px;
    font-size: 13px;
    color: #666;
}

.wsp-term-tree {
    display: grid;
    gap: 12px;
}

.wsp-term-group {
    background: #fff;
    border-radius: 22px;
    padding: 14px;
    border: 1px solid rgba(15, 156, 154, 0.08);
    box-shadow: 0 8px 18px rgba(15, 156, 154, 0.05);
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.wsp-term-group-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.wsp-term-group-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(15, 156, 154, 0.12);
    border: 1px solid rgba(15, 156, 154, 0.22);
    color: var(--wsp-teal);
    flex-shrink: 0;
}

.wsp-group-icon-svg {
    width: 20px;
    height: 20px;
    display: block;
}

.wsp-term-group-head strong {
    font-size: 16px;
    color: var(--wsp-teal-deep);
}

.wsp-term-group-icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    filter: brightness(0) saturate(100%) invert(55%) sepia(61%) saturate(638%) hue-rotate(127deg) brightness(91%) contrast(89%);
}

.wsp-term-group-title {
    display: block;
    width: 100%;
    border: 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    padding: 12px;
    text-align: right;
    font-weight: 800;
    cursor: pointer;
}

.wsp-term-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.wsp-chip {
    border: 1px solid rgba(15, 156, 154, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--wsp-ink);
    box-shadow: none;
}

.wsp-chip:hover,
.wsp-chip.is-active,
.wsp-term-group-title:hover,
.wsp-term-group-title.is-active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--wsp-teal-deep);
    border-color: rgba(15, 156, 154, 0.35);
    box-shadow: inset 0 0 0 1px rgba(15, 156, 154, 0.18);
}

.wsp-size-preview {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.wsp-size-preview span {
    background: #f7faf9;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
}


.wsp-empty {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    color: #777;
    text-align: center;
}
.wsp-back-button {
    border: 0;
    background: #eef4f2;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 8px;
}

.wsp-products-breadcrumb {
    margin-top: 0;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wsp-products-breadcrumb button {
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.wsp-breadcrumb-sep {
    color: rgba(120, 130, 140, 0.72);
    font-size: 12px;
}

.wsp-breadcrumb-current {
    color: inherit;
    font-weight: 700;
}

.wsp-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wsp-product-card {
    border: 0;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    text-align: right;
    cursor: pointer;
    padding: 0;
}

.wsp-product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #e6eeee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 12px;
}

.wsp-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wsp-product-content {
    padding: 10px;
    display: grid;
    gap: 5px;
}

.wsp-product-content strong {
    font-size: 13px;
    line-height: 1.6;
}

.wsp-product-content small {
    color: #159b70;
    font-weight: 700;
}

.wsp-product-content em {
    font-style: normal;
    color: #777;
    font-size: 11px;
}
.wsp-history {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    overflow: visible;
}

.wsp-history-item {
    width: 100%;
    height: 48px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: #fff;
    color: #111;
    font-weight: 700;
    overflow: hidden;
    cursor: pointer;
}

.wsp-history-item.is-active {
    border-color: #159b70;
    background: #d7ebe5;
    color: #08745f;
}

.wsp-history-item img {
    display: none;
}

.wsp-history-item span {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    padding: 0 8px;
    text-align: center;
}

/* Product page and step sheet */
.wsp-app {
    --wsp-order-bar-bottom: 76px;
    --wsp-order-bar-height: 74px;
    --wsp-sheet-gap: 8px;
    padding-bottom: 166px;
}

.wsp-products-page .wsp-section {
    padding-top: 12px;
}

.wsp-product-card {
    min-width: 0;
    border: 1px solid #b7c1c0;
    border-radius: 8px;
    background: #fff;
    padding: 8px;
}

.wsp-product-image {
    border-radius: 8px;
    background: #dbe6f6;
    overflow: hidden;
}

.wsp-product-content {
    min-width: 0;
    overflow: hidden;
    padding: 8px 4px 6px;
    text-align: center;
    gap: 2px;
}

.wsp-product-content strong {
    display: block;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.wsp-product-content small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #16a89d;
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wsp-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.24);
    z-index: 80;
}

.wsp-sheet {
    position: fixed;
    right: 0;
    left: 0;
    bottom: calc(var(--wsp-order-bar-bottom) + var(--wsp-order-bar-height) + var(--wsp-sheet-gap));
    max-width: 480px;
    max-height: calc(100vh - var(--wsp-order-bar-bottom) - var(--wsp-order-bar-height) - var(--wsp-sheet-gap) - 16px);
    margin: 0 auto;
    background: #f8fbfd;
    border: 1px solid #aeb8b8;
    border-bottom: 1px solid #aeb8b8;
    border-radius: 24px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.16);
    z-index: 90;
    padding: 12px 16px 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wsp-sheet-handle {
    width: 58px;
    height: 4px;
    border-radius: 999px;
    background: #aeb8b8;
    margin: 0 auto 12px;
}

.wsp-sheet-close {
    position: absolute;
    top: 10px;
    left: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #eef4f2;
    cursor: pointer;
    font-size: 20px;
}

.wsp-sheet-head {
    display: flex;
    direction: ltr;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding-left: 42px;
}

.wsp-sheet-head > div {
    min-width: 0;
    flex: 1 1 auto;
    direction: rtl;
    text-align: right;
}

.wsp-sheet-head h2,
.wsp-cart-head h2 {
    margin: 0 0 4px;
    overflow-wrap: anywhere;
    font-size: 17px;
    line-height: 1.6;
}

.wsp-sheet-head span,
.wsp-cart-head span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #16a89d;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wsp-sheet-head span {
    white-space: normal;
}

.wsp-sheet-head img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    background: #dbe6f6;
    flex: 0 0 auto;
}

.wsp-sheet-progress {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 14px 0;
}

.wsp-sheet-progress span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0d8d8;
}

.wsp-sheet-progress span.is-active {
    width: 24px;
    border-radius: 999px;
    background: #16a89d;
}

.wsp-sheet-body {
    overflow-y: auto;
    padding-bottom: 10px;
}

.wsp-sheet-step-title {
    font-weight: 900;
    font-size: 17px;
    margin-bottom: 12px;
}

.wsp-option-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.wsp-option {
    min-height: 54px;
    border: 1px solid #aeb8b8;
    border-radius: 18px;
    background: #f5f8fa;
    cursor: pointer;
    display: grid;
    gap: 3px;
    align-content: center;
    justify-items: center;
    padding: 8px;
}

.wsp-option strong {
    font-size: 17px;
}

.wsp-option small {
    color: #667;
    font-size: 12px;
}

.wsp-option.is-active,
.wsp-quantity-presets button.is-active {
    background: #b9e1d7;
    border-color: #64b7a7;
    color: #111;
}

.wsp-dimension-readout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #d2d8d8;
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.wsp-dimension-readout span {
    color: #666;
}

.wsp-quantity-row {
    display: grid;
    grid-template-columns: 54px 54px minmax(76px, 1fr) 54px 54px;
    gap: 6px;
    align-items: center;
}

.wsp-quantity-row button,
.wsp-quantity-presets button {
    border: 1px solid #aeb8b8;
    background: #fff;
    border-radius: 14px;
    padding: 12px 6px;
    cursor: pointer;
    font-size: 16px;
}

.wsp-quantity-row button {
    direction: ltr;
    unicode-bidi: isolate;
}

.wsp-quantity-row strong {
    height: 54px;
    border: 1px solid #aeb8b8;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #08745f;
}

.wsp-quantity-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.wsp-sheet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #e1e6e6;
}

.wsp-sheet-utilities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.wsp-sheet-utility {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid #d5dddd;
    border-radius: 14px;
    background: #fff;
    color: #08745f;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    padding: 10px 12px;
}

.wsp-sheet-utility:hover,
.wsp-sheet-utility:focus-visible {
    border-color: #16a89d;
    background: #f4fbf8;
}

.wsp-sheet-actions button,
.wsp-order-bar button {
    border: 0;
    border-radius: 14px;
    padding: 13px 12px;
    font-weight: 900;
    cursor: pointer;
}

.wsp-sheet-primary {
    background: linear-gradient(135deg, #12b5b1, #0d8f8c);
    color: #fff;
}

.wsp-sheet-secondary {
    background: #eef4f2;
    color: #222;
}

.wsp-sheet-actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.wsp-sheet-notice {
    background: #e3f6ef;
    color: #08745f;
    border-radius: 12px;
    padding: 9px 10px;
    margin-top: 8px;
    font-size: 13px;
    text-align: center;
}

.wsp-sheet-loading {
    padding: 24px 10px 36px;
    text-align: center;
}

.wsp-order-bar {
    position: fixed;
    right: 0;
    left: 0;
    bottom: var(--wsp-order-bar-bottom);
    max-width: 480px;
    margin: 0 auto;
    z-index: 100;
    min-height: var(--wsp-order-bar-height);
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px;
    align-items: center;
    background: #fff;
    border: 1px solid #aeb8b8;
    border-radius: 24px;
    padding: 10px 14px;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.12);
}

.wsp-order-view {
    background: linear-gradient(135deg, #12b5b1, #0d8f8c);
    color: #fff;
}

.wsp-order-bar .wsp-order-view {
    min-width: 0;
}

.wsp-order-summary {
    display: grid;
    gap: 3px;
    text-align: center;
}

.wsp-order-summary small {
    color: #777;
    font-size: 12px;
}

.wsp-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 36px;
    margin-bottom: 12px;
}

.wsp-cart-items {
    display: grid;
    gap: 10px;
    overflow-y: auto;
    min-height: 0;
    flex: 1 1 auto;
    align-content: start;
    grid-auto-rows: max-content;
}

.wsp-cart-swipe {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    touch-action: pan-y;
}

.wsp-cart-swipe-actions {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    pointer-events: none;
    overflow: hidden;
    border-radius: 14px;
}

.wsp-cart-swipe-actions span {
    width: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
}

.wsp-swipe-edit {
    background: #08745f;
}

.wsp-swipe-delete {
    background: #b4232d;
}

.wsp-cart-item {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 10px;
    align-items: center;
    background: #fff;
    border: 1px solid #e1e6e6;
    border-radius: 14px;
    padding: 10px;
    transition: transform 180ms ease;
}

.wsp-cart-item.is-dragging {
    transition: none;
}

.wsp-cart-item img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    background: #dbe6f6;
}

.wsp-cart-item strong,
.wsp-cart-item small,
.wsp-cart-item em {
    display: block;
}

.wsp-cart-item small {
    color: #666;
    line-height: 1.7;
}

.wsp-cart-item em {
    color: #08745f;
    font-style: normal;
    font-weight: 800;
}

.wsp-cart-item button {
    border: 0;
    border-radius: 10px;
    background: #f3eeee;
    color: #861919;
    cursor: pointer;
    padding: 8px 10px;
}




.wsp-products-sticky-chrome {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0;
    padding: 0;
    background: #eef4f2;
}

.wsp-person-event-tabs {
    position: relative;
    top: auto;
    z-index: 1;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: 56px;
    padding: 0 16px;
    background: #eef4f2;
    border-bottom: 1px solid #d7dfde;
    scrollbar-width: none;
    margin: 0;
    transition: max-height 0.22s ease, opacity 0.18s ease, border-color 0.18s ease;
}

.wsp-product-tabs {
    position: relative;
    top: auto;
    z-index: 1;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 16px;
    background: #eef4f2;
    border-bottom: 1px solid #d7dfde;
    scrollbar-width: none;
    margin: 0;
}

.wsp-products-page.has-person-event-tabs.is-event-tabs-hidden .wsp-person-event-tabs {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    border-bottom-color: transparent;
}

.wsp-person-event-tabs::-webkit-scrollbar {
    display: none;
}

.wsp-person-event-tab {
    position: relative;
    flex: 1 0 auto;
    min-width: 72px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(55, 65, 75, 0.72);
    cursor: pointer;
    padding: 12px 8px 16px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    outline: none;
    box-shadow: none;
}

.wsp-person-event-tab:focus,
.wsp-person-event-tab:focus-visible,
.wsp-person-event-tab.is-active {
    outline: none;
    box-shadow: none;
    border: 0;
}

.wsp-person-event-tab.is-active {
    color: #1f8f88;
}

.wsp-person-event-tab.is-active::after {
    content: '';
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 4px;
    height: 3px;
    border-radius: 999px;
    background: #f2c94c;
    box-shadow: 0 4px 14px rgba(242, 201, 76, 0.72);
}

.wsp-products-page.has-person-event-tabs .wsp-product-section {
    scroll-margin-top: 112px;
}

.wsp-product-tabs::-webkit-scrollbar {
    display: none;
}

.wsp-product-tab {
    flex: 0 0 auto;
    border: 1px solid #b7c1c0;
    border-radius: 999px;
    background: #fff;
    color: #222;
    cursor: pointer;
    padding: 9px 14px;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.wsp-product-tab.is-active {
    border-color: #159b70;
    background: #d7ebe5;
    color: #08745f;
}

.wsp-product-section {
    scroll-margin-top: 56px;
    margin-bottom: 18px;
}

.wsp-product-section-title {
    margin: 0 0 10px;
    color: #333;
    font-size: 15px;
    font-weight: 900;
}

.wsp-variation-status {
    margin-top: 8px;
    border-radius: 12px;
    background: #fff4df;
    color: #755300;
    padding: 9px 10px;
    text-align: center;
    font-size: 13px;
    line-height: 1.7;
}


.wsp-checkout-link {
    display: block;
    margin-top: 12px;
    border-radius: 14px;
    background: #079846;
    color: #fff;
    padding: 13px 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 900;
}

.wsp-cart-head span {
    color: #08745f;
    font-weight: 800;
    font-size: 13px;
}


.wsp-quick-entry {
    padding-top: 0;
}

.wsp-quick-open {
    width: 100%;
    min-height: 60px;
    border: 1px solid #1d9bf0;
    border-radius: 12px;
    background: #f8fcff;
    color: #1687d9;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    align-content: center;
    justify-items: center;
    cursor: pointer;
}

.wsp-quick-open span {
    font-size: 17px;
    font-weight: 900;
}

.wsp-quick-open small {
    color: #667;
    font-size: 12px;
}

.wsp-quick-sheet {
    top: 25vh;
    bottom: auto;
    left: 16px;
    right: 16px;
    width: auto;
    height: 50vh;
    max-height: 50vh;
    max-width: calc(480px - 32px);
    border-radius: 28px;
    padding: 8px 16px 12px;
}

.wsp-quick-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wsp-quick-tabs,
.wsp-quick-subtabs {
    flex-shrink: 0;
}

.wsp-quick-list {
    display: grid;
    gap: 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 4px;
    align-content: start;
}

.wsp-quick-empty {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    place-items: center;
}

.wsp-quick-subtabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 0 10px;
    padding: 0 0 2px;
    flex-shrink: 0;
}
