.wsp-app.is-desk-view {
    min-height: 100vh;
    min-height: 100dvh;
}


.wsp-desk-page {
    position: relative;
    z-index: 2;
    padding: 12px 16px 96px;
}

.wsp-desk-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.wsp-desk-menu-btn,
.wsp-desk-back,
.wsp-desk-add-btn {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex: 0 0 42px;
}

.wsp-desk-design-add-wrap {
    display: flex;
    justify-content: center;
    margin: -4px 0 16px;
}

.wsp-desk-add-btn {
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 200, 192, 0.35), rgba(42, 168, 224, 0.35));
    border-color: rgba(110, 220, 255, 0.45);
    box-shadow: 0 8px 20px rgba(30, 200, 192, 0.18);
}

.wsp-desk-add-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(2px);
}

.wsp-desk-back .wsp-nav-svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.4;
}

.wsp-desk-back .wsp-nav-svg path {
    stroke-width: 2.4;
}

.wsp-desk-top h1 {
    margin: 0;
    flex: 1;
    text-align: center;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.94);
}

.wsp-desk-hello {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.9);
}

.wsp-desk-hello strong {
    display: block;
    font-size: 22px;
    margin-bottom: 4px;
}

.wsp-desk-hello span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.wsp-desk-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.wsp-desk-tile {
    display: grid;
    justify-items: start;
    gap: 6px;
    min-height: 108px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-align: right;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 18px 44px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.wsp-desk-tile i {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(126, 236, 228, 0.16);
    color: #8ef0e8;
}

.wsp-desk-tile .wsp-nav-svg {
    width: 18px;
    height: 18px;
}

.wsp-desk-tile b {
    font-size: 15px;
}

.wsp-desk-tile em {
    font-style: normal;
    font-size: 12px;
    opacity: 0.7;
}

.wsp-desk-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.wsp-desk-stat {
    border: 0;
    border-radius: 16px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-align: center;
    cursor: pointer;
}

.wsp-desk-stat b {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
}

.wsp-desk-stat em {
    font-style: normal;
    font-size: 11px;
    opacity: 0.78;
}

.wsp-desk-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 22px;
    padding: 14px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 18px 44px rgba(0, 0, 0, 0.22);
}

.wsp-desk-card h2 {
    margin: 0 0 10px;
    font-size: 15px;
}

.wsp-desk-order {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: inherit;
    text-align: right;
    cursor: pointer;
}

.wsp-desk-order:first-of-type {
    border-top: 0;
    padding-top: 2px;
}

.wsp-desk-order-main {
    display: grid;
    gap: 4px;
}

.wsp-desk-order-main b {
    font-size: 14px;
}

.wsp-desk-order-main em,
.wsp-desk-order-meta strong {
    font-style: normal;
    font-size: 12px;
    opacity: 0.72;
    font-weight: 700;
}

.wsp-desk-order-meta {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.wsp-desk-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(44, 184, 154, 0.22);
    color: #b8f3df;
}

.wsp-desk-status.is-shipped {
    background: rgba(40, 180, 140, 0.22);
    color: #b8f3df;
}

.wsp-desk-status.is-cancelled {
    background: rgba(180, 35, 45, 0.24);
    color: #ffb4b4;
}

.wsp-desk-empty {
    margin: 0;
    font-size: 13px;
    opacity: 0.7;
}

.wsp-desk-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 8px;
    font-size: 14px;
}

.wsp-desk-item span {
    opacity: 0.7;
}

.wsp-desk-total {
    margin: 12px 0 0;
    font-size: 16px;
}

.wsp-desk-actions {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.wsp-desk-actions button,
.wsp-desk-copy,
.wsp-desk-upload,
.wsp-desk-buy,
.wsp-desk-delete,
.wsp-desk-track {
    min-height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(78, 205, 196, 0.35);
    background: rgba(44, 184, 154, 0.22);
    color: #8ef0e8;
    font-weight: 800;
    cursor: pointer;
}

.wsp-desk-actions button:disabled,
.wsp-desk-buy:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.55);
}

.wsp-desk-pay-holder {
    margin: 0 0 10px;
    font-weight: 800;
}

.wsp-desk-pay-row {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.wsp-desk-pay-row span {
    font-size: 12px;
    opacity: 0.7;
}

.wsp-desk-pay-row code {
    direction: ltr;
    text-align: left;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.wsp-desk-copy {
    min-height: 36px;
    padding: 0 12px;
}

.wsp-desk-upload {
    display: grid;
    place-items: center;
    margin-top: 10px;
    background: rgba(44, 184, 154, 0.22);
    border-color: rgba(78, 205, 196, 0.4);
}

.wsp-desk-notice {
    margin: 10px 0 0;
    color: #b8f3df;
    font-size: 13px;
}

.wsp-desk-stepper {
    display: grid;
    gap: 0;
    margin: 4px 0 8px;
}

.wsp-desk-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 0 0 14px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.wsp-desk-step:last-child {
    padding-bottom: 0;
}

.wsp-desk-step i {
    position: relative;
    z-index: 1;
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    flex: 0 0 12px;
}

.wsp-desk-step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 18px;
    right: 5px;
    width: 2px;
    height: calc(100% - 10px);
    background: rgba(255, 255, 255, 0.16);
}

.wsp-desk-step.is-done,
.wsp-desk-step.is-current {
    color: #b8f3df;
}

.wsp-desk-step.is-done i,
.wsp-desk-step.is-current i {
    background: #2cb89a;
}

.wsp-desk-step.is-current {
    color: var(--wsp-teal, #8ef0e8);
    font-weight: 800;
}

.wsp-desk-step.is-current i {
    background: #ff8c3c;
    box-shadow: 0 0 0 4px rgba(255, 140, 60, 0.18);
}

.wsp-desk-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 30, 0.28);
    z-index: 70;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.32s ease, visibility 0.32s ease;
}

.wsp-desk-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wsp-desk-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: min(82vw, 320px);
    z-index: 80;
    padding: 18px 14px 28px;
    background: rgba(255, 255, 255, 0.12);
    border-inline-start: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        -18px 0 50px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    transform: translateX(110%);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: auto;
}

.wsp-desk-drawer.is-open {
    transform: translateX(0);
}

.wsp-desk-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 4px 16px;
}

.wsp-desk-drawer h2 {
    margin: 0;
    font-size: 20px;
    color: #fff;
}

.wsp-desk-drawer-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.wsp-desk-drawer-nav > button {
    width: 100%;
    min-height: 46px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-weight: 800;
    text-align: right;
    padding: 0 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    box-shadow: none;
}

.wsp-desk-drawer-nav > button + button::before {
    content: "";
    position: absolute;
    top: 0;
    right: 12px;
    left: 12px;
    height: 1px;
    background: rgba(255, 255, 255, 0.16);
    pointer-events: none;
}

.wsp-desk-drawer button i {
    width: 22px;
    display: grid;
    place-items: center;
}

.wsp-desk-drawer .wsp-nav-svg {
    width: 18px;
    height: 18px;
}

.wsp-desk-drawer-nav > button.is-active {
    background: rgba(18, 181, 177, 0.32);
    border-radius: 12px;
    box-shadow: none;
}

.wsp-desk-drawer-nav > button.is-exit {
    margin-top: 0;
    background: transparent;
    color: #ffb4b4;
}

.wsp-desk-receipts-block {
    margin-top: 12px;
}

.wsp-desk-receipts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.wsp-desk-receipts img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.wsp-desk-receipt-item {
    position: relative;
    display: inline-block;
}

.wsp-desk-receipt-remove {
    position: absolute;
    top: 4px;
    inset-inline-start: 4px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: #2cb89a;
    color: #102226;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 2;
}

.wsp-account-link {
    width: 100%;
}

.wsp-desk-status-hero {
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 22px;
}

.wsp-desk-status-now {
    display: grid;
    justify-items: start;
    gap: 4px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.wsp-desk-status-now i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(126, 236, 228, 0.16);
    color: #8ef0e8;
    margin-bottom: 4px;
}

.wsp-desk-status-now span,
.wsp-desk-status-now em {
    font-size: 12px;
    font-style: normal;
    opacity: 0.7;
}

.wsp-desk-status-now strong {
    font-size: 22px;
    color: var(--wsp-teal, #8ef0e8);
}

.wsp-desk-status-now p {
    margin: 0;
    font-size: 13px;
    opacity: 0.78;
}

.wsp-desk-acc {
    margin-bottom: 14px;
    overflow: visible;
    border-radius: 22px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 18px 44px rgba(0, 0, 0, 0.22);
}

.wsp-desk-acc-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 14px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: right;
    cursor: pointer;
}

.wsp-desk-acc-body {
    padding: 16px 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wsp-desk-acc-body h3 {
    margin: 16px 0 8px;
    font-size: 15px;
}

.wsp-desk-section-title,
.wsp-desk-acc-body h3.wsp-desk-section-title,
.wsp-desk-address-head .wsp-desk-section-title,
.wsp-desk-pay-inline .wsp-desk-section-title {
    margin: 16px 0 8px;
    font-size: 16px;
    font-weight: 800;
    color: #8ef0e8;
}

.wsp-desk-address-head .wsp-desk-section-title {
    margin: 0;
}

.wsp-desk-pay-inline {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wsp-desk-stepper-h {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
    direction: ltr !important;
    unicode-bidi: isolate;
    margin: 8px 0 18px;
}

.wsp-desk-stepper-h-track,
.wsp-desk-stepper-h-progress {
    position: absolute;
    top: 14px;
    left: calc(100% / (var(--wsp-step-count, 5) * 2));
    right: calc(100% / (var(--wsp-step-count, 5) * 2));
    height: 2px;
    z-index: 0;
    pointer-events: none;
    border-radius: 99px;
}

.wsp-desk-stepper-h-track {
    background: rgba(255, 255, 255, 0.16);
}

.wsp-desk-stepper-h-progress {
    right: auto;
    width: calc((100% - (100% / var(--wsp-step-count, 5))) * var(--wsp-step-progress, 0));
    background: #2cb89a;
}

.wsp-desk-step-h.is-cancelled,
.wsp-desk-step-h.is-cancelled i {
    color: #ffb4b4;
}

.wsp-desk-step-h.is-cancelled i {
    background: #5a2a32;
    box-shadow: 0 0 0 3px #5a2a32;
}

.wsp-desk-step-h {
    position: relative;
    z-index: 1;
    flex: 1;
    display: grid;
    justify-items: center;
    gap: 6px;
    font-size: 9px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

.wsp-desk-step-h i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #3f2a38;
    color: inherit;
    box-shadow: 0 0 0 3px #3f2a38;
}

.wsp-desk-step-h i svg,
.wsp-desk-step-h .wsp-nav-svg {
    width: 14px;
    height: 14px;
}

.wsp-desk-step-h.is-done {
    color: #b8f3df;
}

.wsp-desk-step-h.is-done i {
    background: #24564c;
    color: #8ef0e8;
    box-shadow: 0 0 0 3px #24564c;
}

.wsp-desk-step-h.is-current {
    color: var(--wsp-teal, #8ef0e8);
    font-weight: 800;
}

.wsp-desk-step-h.is-current i {
    background: #2a5c56;
    color: var(--wsp-teal, #8ef0e8);
    box-shadow: 0 0 0 4px rgba(126, 236, 228, 0.18);
}

.wsp-desk-item-count {
    margin: 0 0 10px;
    font-size: 12px;
    opacity: 0.7;
}

.wsp-desk-item-row {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    min-height: 72px;
    height: auto;
}

.wsp-desk-item-qty {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: left;
}

.wsp-desk-item-qty strong {
    white-space: nowrap;
}

.wsp-desk-item-wh {
    display: block;
    font-size: 11px;
    font-style: normal;
    opacity: 0.72;
    white-space: nowrap;
}

.wsp-desk-item-row.wsp-desk-item-card {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 10px 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    transition: transform 180ms ease;
}

.wsp-desk-item-row.wsp-desk-item-card.is-dragging {
    transition: none;
}

.wsp-desk-items {
    display: grid;
    gap: 8px;
    margin: 4px 0 12px;
    padding: 2px 0;
}

.wsp-desk-item-swipe {
    border-radius: 16px;
}

.wsp-desk-item-remove {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(180, 60, 70, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: #c0392b;
    font-size: 20px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.wsp-desk-actions .wsp-desk-add-items {
    border-color: rgba(78, 205, 196, 0.45);
    color: #12b5b1;
}

.wsp-desk-item-row:first-of-type {
    border-top: 0;
}

.wsp-desk-item-row img,
.wsp-desk-item-ph {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

.wsp-desk-item-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.wsp-desk-item-copy b {
    font-size: 14px;
}

.wsp-desk-item-copy em {
    font-size: 12px;
    font-style: normal;
    opacity: 0.65;
}

.wsp-desk-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 14px 0 0;
    font-size: 14px;
}

.wsp-desk-address {
    margin-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

.wsp-desk-address-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: right;
    padding: 0;
    cursor: pointer;
}

.wsp-desk-address-head b {
    font-size: 16px;
}

.wsp-desk-address-head em {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-style: normal;
    opacity: 0.72;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wsp-desk-address-body {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.wsp-desk-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.wsp-desk-name-row .wsp-desk-field {
    margin: 0;
}

.wsp-desk-address-full {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
}

.wsp-desk-address-pick-label {
    margin: 0;
    font-size: 13px;
}

.wsp-desk-address-pick {
    display: grid;
    gap: 6px;
}

.wsp-desk-address-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: 1px solid rgba(78, 205, 196, 0.28);
    border-radius: 999px;
    background: rgba(44, 184, 154, 0.12);
    color: #8ef0e8;
    text-align: right;
    padding: 10px 14px;
    cursor: pointer;
}

.wsp-desk-address-option.is-active {
    border-color: rgba(126, 236, 228, 0.45);
    background: rgba(126, 236, 228, 0.12);
}

.wsp-desk-address-card {
    display: grid;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wsp-desk-address-card:first-of-type {
    border-top: 0;
}

.wsp-desk-address-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
}

.wsp-desk-address-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wsp-desk-address-card-actions button {
    border: 1px solid rgba(78, 205, 196, 0.35);
    border-radius: 999px;
    background: rgba(44, 184, 154, 0.22);
    color: #8ef0e8;
    padding: 8px 14px;
    font-weight: 800;
    cursor: pointer;
}

.wsp-desk-wait-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wsp-desk-wait-item:first-of-type {
    border-top: 0;
}

.wsp-desk-wait-main {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 10px;
    align-items: center;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: right;
    padding: 0;
    cursor: pointer;
}

.wsp-desk-wait-main img,
.wsp-desk-wait-main .wsp-desk-item-ph {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

.wsp-desk-wait-remove {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(242, 140, 40, 0.18);
    color: #f28c28;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.wsp-desk-field input[type="text"],
.wsp-desk-field input[type="tel"],
.wsp-desk-field input[type="url"],
.wsp-desk-field input[type="password"],
.wsp-desk-field textarea,
.wsp-desk-combo-input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 10px 12px;
}

.wsp-app.is-desk-view select,
.wsp-desk-field select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: #ffffff;
    color: #16323a;
    padding: 10px 12px;
    color-scheme: light;
}

.wsp-app.is-desk-view select option,
.wsp-desk-field select option {
    color: #16323a;
    background: #ffffff;
}

.wsp-desk-combo {
    position: relative;
}

.wsp-desk-combo-input {
    background-image: linear-gradient(45deg, transparent 50%, #8ef0e8 50%), linear-gradient(135deg, #8ef0e8 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 13px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-inline-end: 28px;
}

html[dir="rtl"] .wsp-desk-combo-input,
.wsp-app[dir="rtl"] .wsp-desk-combo-input,
.wsp-desk-page .wsp-desk-combo-input {
    background-position: 13px calc(50% - 2px), 18px calc(50% - 2px);
}

.wsp-desk-combo-menu {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 4px);
    z-index: 8;
    max-height: 220px;
    overflow: auto;
    padding: 6px 0;
    border-radius: 12px;
    border: 1px solid rgba(20, 40, 44, 0.12);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.wsp-desk-combo.is-open .wsp-desk-combo-menu {
    display: block;
}

.wsp-desk-combo-option {
    display: block;
    width: 100%;
    border: 0;
    background: #ffffff;
    color: #16323a;
    text-align: right;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.wsp-desk-combo-option:hover,
.wsp-desk-combo-option.is-active {
    background: #e7f8f4;
    color: #0f3d38;
}

.wsp-desk-combo-empty {
    margin: 8px 14px;
    color: #5b6f74;
    font-size: 12px;
}

.wsp-desk-actions .wsp-desk-primary,
.wsp-desk-primary {
    background: rgba(44, 184, 154, 0.28);
    border-color: rgba(78, 205, 196, 0.45);
    color: #8ef0e8;
    border-radius: 999px;
}

.wsp-desk-address-body > .wsp-desk-primary,
.wsp-desk-card > .wsp-desk-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 52px;
    padding: 0 22px;
    margin-top: 8px;
    margin-inline: auto;
    border: 1px solid rgba(78, 205, 196, 0.45);
    font-weight: 800;
    cursor: pointer;
}

.wsp-desk-hint {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.8;
    opacity: 0.78;
}

.wsp-desk-field {
    display: grid;
    gap: 6px;
    margin: 10px 0;
    font-size: 13px;
}

.wsp-desk-ticket {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 12px 0;
    padding-inline-end: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wsp-desk-ticket-remove {
    position: absolute;
    top: 8px;
    inset-inline-end: 0;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: #2cb89a;
    color: #102226;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.wsp-desk-ticket:first-of-type {
    border-top: 0;
}

.wsp-desk-ticket p,
.wsp-desk-ticket em {
    margin: 0;
    font-size: 13px;
}

.wsp-desk-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #2cb89a;
    color: #102226;
    font-size: 11px;
    font-weight: 800;
    display: inline-grid;
    place-items: center;
    line-height: 1;
}

.wsp-desk-tile i,
.wsp-desk-drawer-nav > button {
    position: relative;
}

.wsp-desk-tile .wsp-desk-badge {
    position: absolute;
    top: -4px;
    left: -4px;
}

.wsp-desk-drawer .wsp-desk-badge {
    margin-right: auto;
}

.wsp-desk-picker-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 16, 20, 0.5);
    z-index: 90;
}

.wsp-desk-picker {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 96px;
    z-index: 91;
    display: grid;
    gap: 8px;
    padding: 18px 16px;
    border-radius: 22px;
}

.wsp-desk-picker p {
    margin: 0 0 6px;
    text-align: center;
    font-weight: 800;
}

.wsp-desk-picker button {
    min-height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(78, 205, 196, 0.35);
    background: rgba(44, 184, 154, 0.22);
    color: #8ef0e8;
    font-weight: 800;
    cursor: pointer;
}

.wsp-desk-picker-cancel {
    opacity: 0.8;
}

.wsp-desk-picker-label {
    display: grid;
    place-items: center;
    min-height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(78, 205, 196, 0.35);
    background: rgba(44, 184, 154, 0.22);
    color: #8ef0e8;
    font-weight: 800;
    cursor: pointer;
}

.wsp-desk-picker-label.wsp-desk-primary {
    background: rgba(44, 184, 154, 0.28);
    border-color: rgba(78, 205, 196, 0.45);
    color: #8ef0e8;
}

.wsp-desk-camera-box video {
    width: 100%;
    max-height: 52vh;
    border-radius: 14px;
    background: #000;
    object-fit: cover;
}

.wsp-desk-ref-pickers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.wsp-desk-ref-pickers .wsp-desk-upload {
    margin-top: 0;
}

.wsp-desk-design-product {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 10px;
    align-items: center;
    margin: 0 0 14px;
}

.wsp-desk-design-product img,
.wsp-desk-design-product .wsp-desk-item-ph {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

.wsp-desk-design-note {
    margin: 0 0 12px;
    line-height: 1.7;
}

.wsp-desk-design-files {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 12px;
}

.wsp-desk-design-file {
    position: relative;
    display: block;
    width: 112px;
    min-height: 112px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.42);
    color: #8ef0e8;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.wsp-desk-design-file img {
    width: 112px;
    height: 112px;
    object-fit: cover;
    display: block;
    background: #102028;
}

.wsp-desk-chat-bubble .wsp-desk-design-file {
    width: 128px;
    min-height: 128px;
}

.wsp-desk-chat-bubble .wsp-desk-design-file img {
    width: 128px;
    height: 128px;
}

.wsp-desk-design-file span {
    display: grid;
    place-items: center;
    min-height: 72px;
    padding: 8px;
    font-size: 11px;
    text-align: center;
}

.wsp-desk-design-file .wsp-desk-receipt-remove {
    position: absolute;
    top: 4px;
    left: 4px;
}

.wsp-desk-chat {
    display: grid;
    gap: 12px;
}

.wsp-desk-chat-thread {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 52vh;
    overflow: auto;
    padding: 4px 2px 8px;
}

.wsp-desk-chat-row {
    display: grid;
    gap: 4px;
    max-width: 86%;
}

.wsp-desk-chat-row.is-mine {
    justify-self: start;
}

.wsp-desk-chat-row.is-theirs {
    justify-self: end;
}

.wsp-desk-chat-row.is-system {
    justify-self: center;
    max-width: 100%;
}

.wsp-desk-chat-name {
    font-size: 11px;
    opacity: 0.7;
}

.wsp-desk-chat-bubble {
    border-radius: 16px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.wsp-desk-chat-row.is-mine .wsp-desk-chat-bubble {
    background: rgba(44, 184, 154, 0.28);
    border: 1px solid rgba(78, 205, 196, 0.38);
}

.wsp-desk-chat-row.is-theirs .wsp-desk-chat-bubble {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.wsp-desk-chat-row.is-system .wsp-desk-chat-bubble {
    background: transparent;
    border: 0;
    text-align: center;
    opacity: 0.75;
    font-size: 13px;
}

.wsp-desk-chat-bubble p {
    margin: 0 0 8px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.wsp-desk-chat-bubble em {
    display: block;
    font-size: 11px;
    opacity: 0.65;
}

.wsp-desk-chat-bubble .wsp-desk-design-files {
    margin: 0 0 6px;
}

.wsp-desk-chat-compose {
    display: grid;
    gap: 8px;
}

.wsp-desk-chat-box {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    min-height: 48px;
    padding: 5px 8px 5px 5px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.wsp-desk-chat-compose textarea,
.wsp-desk-chat-box textarea {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    min-height: 36px;
    max-height: 120px;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    resize: none;
    line-height: 1.55;
    box-shadow: none;
}

.wsp-desk-chat-compose textarea:focus,
.wsp-desk-chat-box textarea:focus {
    outline: none;
    box-shadow: none;
}

.wsp-desk-chat-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #d7efe8;
    cursor: pointer;
}

.wsp-desk-chat-icon .wsp-sheet-icon,
.wsp-desk-chat-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.wsp-desk-chat-icon.is-send {
    background: rgba(44, 184, 154, 0.32);
    color: #b8f3df;
}

.wsp-desk-chat-icon.is-send:disabled {
    opacity: 0.4;
    cursor: default;
}

.wsp-desk-design-files.is-pending {
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
    border: 1px dashed rgba(142, 240, 232, 0.45);
    background: rgba(8, 24, 28, 0.35);
}

.wsp-desk-design-file.is-ready,
.wsp-desk-design-file.is-uploading {
    position: relative;
    display: grid;
    gap: 6px;
    justify-items: center;
    width: 120px;
    min-height: 120px;
    padding: 8px;
    border-radius: 16px;
    border: 1.5px solid rgba(142, 240, 232, 0.55);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    overflow: visible;
}

.wsp-desk-design-file.is-ready img,
.wsp-desk-design-file.is-uploading img {
    width: 104px;
    height: 104px;
    border-radius: 12px;
}

.wsp-desk-design-file.is-ready em,
.wsp-desk-design-file.is-uploading em {
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    color: #8ef0e8;
}

.wsp-desk-design-file.is-uploading {
    opacity: 0.85;
}

.wsp-desk-design-file.is-uploading::after {
    content: '';
    position: absolute;
    inset: 14px;
    border-radius: 12px;
    border: 2px solid rgba(142, 240, 232, 0.35);
    border-top-color: #8ef0e8;
    animation: wsp-spin 0.8s linear infinite;
    pointer-events: none;
}

@keyframes wsp-spin {
    to { transform: rotate(360deg); }
}

.wsp-desk-design-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(44, 184, 154, 0.22);
    color: #b8f3df;
    font-size: 11px;
    font-weight: 800;
}

.wsp-desk-inbox {
    display: grid;
    gap: 10px;
}

.wsp-inbox-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 2px 12px;
    margin: 0 0 4px;
    scrollbar-width: none;
}

.wsp-inbox-tabs::-webkit-scrollbar {
    display: none;
}

.wsp-inbox-tab {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.wsp-inbox-tab.is-active {
    background: rgba(242, 140, 40, 0.22);
    border-color: rgba(242, 140, 40, 0.55);
    color: #ffd7a8;
}

.wsp-inbox-tab-count {
    display: inline-block;
    margin-right: 6px;
    min-width: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #f28c28;
    color: #1a1208;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

.wsp-app[data-theme="light"] .wsp-inbox-tab,
html[data-wsp-theme="light"] .wsp-inbox-tab {
    background: #fff;
    border-color: #d7e0e0;
    color: #3d5556;
}

.wsp-app[data-theme="light"] .wsp-inbox-tab.is-active,
html[data-wsp-theme="light"] .wsp-inbox-tab.is-active {
    background: #fff4e8;
    border-color: #f28c28;
    color: #9a4e00;
}

.wsp-desk-inbox-item {
    display: grid;
    gap: 6px;
    width: 100%;
    padding: 14px;
    border: 1px solid var(--wsp-line, rgba(255, 255, 255, 0.18));
    border-radius: 20px;
    background: var(--wsp-card, rgba(255, 255, 255, 0.1));
    color: var(--wsp-teal-deep, #fff);
    -webkit-text-fill-color: var(--wsp-teal-deep, #fff);
    text-align: right;
    cursor: pointer;
    box-shadow: var(--wsp-card-shadow, inset 0 1px 0 rgba(255, 255, 255, 0.14));
}

.wsp-desk-inbox-item.is-unread {
    border-color: rgba(14, 143, 151, 0.32);
    background: var(--wsp-teal-soft, rgba(44, 184, 154, 0.16));
}

.wsp-desk-inbox-item b {
    font-size: 15px;
    color: var(--wsp-teal-deep, #fff);
    -webkit-text-fill-color: var(--wsp-teal-deep, #fff);
}

.wsp-desk-inbox-item p,
.wsp-desk-inbox-item em {
    margin: 0;
    font-size: 13px;
    font-style: normal;
}

.wsp-desk-inbox-item p {
    color: var(--wsp-ink, rgba(255, 255, 255, 0.92));
    -webkit-text-fill-color: var(--wsp-ink, rgba(255, 255, 255, 0.92));
}

.wsp-desk-inbox-item em {
    color: var(--wsp-muted, rgba(255, 255, 255, 0.68));
    -webkit-text-fill-color: var(--wsp-muted, rgba(255, 255, 255, 0.68));
}

.wsp-desk-inbox-item.is-unread b::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 8px;
    border-radius: 50%;
    background: var(--wsp-orange, #f28c28);
    vertical-align: middle;
}

/* Light theme: force readable inbox (desk.css ships with every release; don't rely only on light sheet cache) */
.wsp-app[data-theme="light"] .wsp-desk-inbox-item,
html[data-wsp-theme="light"] .wsp-desk-inbox-item,
.wsp-wholesale-root[data-theme="light"] .wsp-desk-inbox-item {
    background: #ffffff !important;
    border: 1.5px solid #d7e0e0 !important;
    color: #1a2b2c !important;
    -webkit-text-fill-color: #1a2b2c !important;
    box-shadow: 0 8px 22px rgba(15, 40, 44, 0.06) !important;
}

.wsp-app[data-theme="light"] .wsp-desk-inbox-item.is-unread,
html[data-wsp-theme="light"] .wsp-desk-inbox-item.is-unread,
.wsp-wholesale-root[data-theme="light"] .wsp-desk-inbox-item.is-unread {
    background: #eef8f8 !important;
    border-color: rgba(14, 143, 151, 0.35) !important;
}

.wsp-app[data-theme="light"] .wsp-desk-inbox-item b,
html[data-wsp-theme="light"] .wsp-desk-inbox-item b,
.wsp-wholesale-root[data-theme="light"] .wsp-desk-inbox-item b {
    color: #0b7a81 !important;
    -webkit-text-fill-color: #0b7a81 !important;
}

.wsp-app[data-theme="light"] .wsp-desk-inbox-item p,
html[data-wsp-theme="light"] .wsp-desk-inbox-item p,
.wsp-wholesale-root[data-theme="light"] .wsp-desk-inbox-item p {
    color: #3d5556 !important;
    -webkit-text-fill-color: #3d5556 !important;
}

.wsp-app[data-theme="light"] .wsp-desk-inbox-item em,
html[data-wsp-theme="light"] .wsp-desk-inbox-item em,
.wsp-wholesale-root[data-theme="light"] .wsp-desk-inbox-item em {
    color: #5f7374 !important;
    -webkit-text-fill-color: #5f7374 !important;
}

.wsp-app[data-theme="light"] .wsp-desk-inbox-item.is-unread b::before,
html[data-wsp-theme="light"] .wsp-desk-inbox-item.is-unread b::before {
    background: #f28c28 !important;
}

@media (prefers-reduced-motion: reduce) {
    .wsp-desk-drawer,
    .wsp-desk-drawer-overlay {
        transition: none;
    }
}

.wsp-partner-types {
    display: grid;
    gap: 10px;
    margin: 12px 0 16px;
}

.wsp-partner-type {
    display: grid;
    gap: 6px;
    text-align: right;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    cursor: pointer;
}

.wsp-partner-type b {
    font-size: 15px;
}

.wsp-partner-type em {
    font-style: normal;
    font-size: 12px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
}

.wsp-partner-type.is-active {
    border-color: rgba(78, 205, 196, 0.55);
    background: rgba(44, 184, 154, 0.16);
}

.wsp-partner-form .wsp-desk-field em {
    color: #8ef0e8;
    font-style: normal;
}

.wsp-partner-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wsp-partner-check,
.wsp-partner-confirm {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 8px 0;
    font-size: 13px;
    line-height: 1.6;
}

.wsp-partner-check {
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    margin: 0;
}

.wsp-partner-form [data-partner-link] {
    width: 100%;
    margin: 6px 0 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 10px 12px;
}

.wsp-partner-status-card h2 {
    margin: 8px 0 4px;
}

.wsp-partner-admin-note {
    margin: 8px 0;
    line-height: 1.7;
}

.wsp-partner-form .wsp-desk-primary {
    width: 100%;
    margin-top: 12px;
}

.wsp-partner-form .wsp-desk-acc-body {
    display: none;
}

.wsp-partner-form .wsp-desk-acc.is-open .wsp-desk-acc-body {
    display: block;
}

.wsp-partner-acc-icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.wsp-partner-acc-icon::before {
    content: "+";
    display: block;
    transform: translateY(-1px);
}

.wsp-partner-form .wsp-desk-acc.is-open .wsp-partner-acc-icon::before,
.wsp-partner-rule.is-open .wsp-partner-acc-icon::before {
    content: "−";
    transform: none;
}

.wsp-partner-form .wsp-desk-acc.has-error {
    border-color: rgba(255, 160, 80, 0.55);
}

.wsp-partner-acc.is-current {
    border-color: rgba(78, 205, 196, 0.5);
}

.wsp-partner-form .wsp-desk-field.has-error input,
.wsp-partner-form .wsp-desk-field.has-error select,
.wsp-partner-form .wsp-desk-field.has-error textarea {
    border-color: rgba(255, 160, 80, 0.7);
}

.wsp-partner-terms {
    margin: 16px 0 8px;
}

.wsp-partner-terms-title {
    margin: 4px 8px 10px;
    font-size: 16px;
    font-weight: 700;
}

.wsp-partner-terms-list {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 12px 28px rgba(0, 0, 0, 0.16);
}

.wsp-partner-rule {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 4px 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.wsp-partner-rule + .wsp-partner-rule::before {
    content: "";
    display: block;
    height: 1px;
    margin: 0 18px;
    background: rgba(255, 255, 255, 0.18);
}

.wsp-partner-rule.has-error .wsp-partner-rule-head b {
    color: #ffd9b0;
}

.wsp-partner-rule-head {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px 6px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: right;
    cursor: pointer;
}

.wsp-partner-rule-head b {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
}

.wsp-partner-rule-chevron {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
}

.wsp-partner-rule-chevron::before {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid rgba(255, 255, 255, 0.92);
    border-bottom: 2px solid rgba(255, 255, 255, 0.92);
    transform: rotate(45deg);
    margin-top: -4px;
}

.wsp-partner-rule.is-open .wsp-partner-rule-chevron::before {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.wsp-partner-rule-accept {
    margin: 0;
    padding: 4px 18px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.wsp-partner-rule.is-open .wsp-partner-rule-accept {
    margin: 0 16px;
    padding: 12px 14px 8px;
    border-radius: 14px 14px 0 0;
    background: rgba(8, 12, 24, 0.32);
}

.wsp-partner-rule .wsp-partner-confirm {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 13px;
    line-height: 1.8;
}

.wsp-partner-rule .wsp-partner-confirm input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    border-radius: 5px;
    border: 2px solid #3b82f6;
    background: #fff;
    cursor: pointer;
}

.wsp-partner-rule .wsp-partner-confirm input[type="checkbox"]:checked {
    background: #2563eb;
    border-color: #2563eb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 13px;
}

.wsp-partner-rule .wsp-partner-confirm span {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.wsp-partner-rule .wsp-partner-field-error {
    margin: 8px 0 0;
}

.wsp-partner-rule-body {
    display: none;
    margin: 0;
    padding: 0 18px 12px;
    border-radius: 0;
    background: transparent;
}

.wsp-partner-rule.is-open .wsp-partner-rule-body {
    display: block;
    margin: 0 16px 12px;
    padding: 0 14px 14px;
    border-radius: 0 0 14px 14px;
    background: rgba(8, 12, 24, 0.32);
}

.wsp-partner-rule-body p {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.95;
    color: rgba(255, 255, 255, 0.84);
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.wsp-partner-rule-body p:last-child {
    margin-bottom: 0;
}

.wsp-partner-field-error {
    margin: 6px 0 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 140, 60, 0.18);
    color: #ffd9b0;
    font-size: 12px;
    line-height: 1.7;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.wsp-partner-confirm {
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
}

.wsp-partner-confirm input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.wsp-partner-confirm span {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.wsp-fav-panel {
    padding-top: 12px;
}

.wsp-fav-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 14px;
    padding: 4px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wsp-fav-tab {
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.wsp-fav-tab.is-active {
    background: rgba(44, 184, 154, 0.28);
    color: #9ff5ee;
    box-shadow: inset 0 0 0 1px rgba(78, 205, 196, 0.35);
}

.wsp-fav-notify {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 18px;
}

.wsp-fav-notify-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.wsp-fav-notify-copy strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.wsp-fav-notify-copy em {
    display: block;
    font-style: normal;
    font-size: 12px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.68);
}

.wsp-fav-switch {
    position: relative;
    width: 46px;
    height: 28px;
    flex: 0 0 46px;
    cursor: pointer;
}

.wsp-fav-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.wsp-fav-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.2s ease;
}

.wsp-fav-switch span::before {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}

.wsp-fav-switch input:checked + span {
    background: rgba(44, 184, 154, 0.55);
    border-color: rgba(78, 205, 196, 0.55);
}

.wsp-fav-switch input:checked + span::before {
    transform: translateX(-18px);
}

.wsp-fav-empty {
    text-align: center;
    padding: 28px 12px 18px;
}

.wsp-fav-empty strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.wsp-fav-empty p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.8;
}

.wsp-fav-custom-lists {
    display: grid;
    gap: 10px;
}

.wsp-fav-custom-card {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 16px;
}

.wsp-fav-custom-card strong {
    font-size: 15px;
}

.wsp-fav-custom-card em {
    font-style: normal;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.7;
}

.wsp-fav-custom-card span {
    font-size: 12px;
    color: #8ef0e8;
    font-weight: 800;
}

.wsp-fav-list-sheet {
    padding: 10px 16px 20px;
}

.wsp-fav-list-form {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.wsp-fav-list-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.wsp-fav-list-cancel {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 12px;
    font-weight: 800;
    cursor: pointer;
}

.wsp-desk-pay-coordinate {
    margin: 0;
    padding: 14px;
    border-radius: 14px;
    background: rgba(44, 184, 154, 0.16);
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: #9ff5ee;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.7;
}

/* Favorites (former waitlist) */
.wsp-fav-panel {
    padding: 14px 14px 18px;
}

.wsp-fav-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(31, 143, 136, 0.18);
}

.wsp-fav-tab {
    flex: 1 1 50%;
    border: 0;
    background: transparent;
    color: #6a7a82;
    font-size: 14px;
    font-weight: 800;
    padding: 10px 8px 12px;
    cursor: pointer;
    position: relative;
}

.wsp-fav-tab.is-active {
    color: var(--wsp-teal-deep, #0f6f6a);
}

.wsp-fav-tab.is-active::after {
    content: "";
    position: absolute;
    right: 12%;
    left: 12%;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: var(--wsp-teal-deep, #0f6f6a);
}

.wsp-fav-notify {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.wsp-fav-notify-copy strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #1f2a32;
    margin-bottom: 4px;
}

.wsp-fav-notify-copy em {
    display: block;
    font-style: normal;
    font-size: 12px;
    line-height: 1.7;
    color: #6a7a82;
}

.wsp-fav-switch {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.wsp-fav-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.wsp-fav-switch i {
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: #c9d3d6;
    position: relative;
    display: block;
    transition: background 0.2s ease;
}

.wsp-fav-switch i::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease;
}

.wsp-fav-switch input:checked + i {
    background: #1f8f88;
}

.wsp-fav-switch input:checked + i::after {
    transform: translateX(-18px);
}

.wsp-fav-empty {
    text-align: center;
    padding: 28px 12px 18px;
    color: #5a6a72;
}

.wsp-fav-empty strong {
    display: block;
    font-size: 15px;
    color: #1f2a32;
    margin-bottom: 8px;
}

.wsp-fav-empty p {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.8;
}

.wsp-fav-product-list,
.wsp-fav-custom-lists {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wsp-fav-custom-card {
    padding: 12px 14px;
}

.wsp-fav-custom-card b {
    display: block;
    font-size: 14px;
    color: #1f2a32;
    margin-bottom: 4px;
}

.wsp-fav-custom-card em {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: #6a7a82;
    line-height: 1.7;
}

.wsp-fav-list-sheet {
    min-height: 42vh;
}

.wsp-fav-share-bar {
    margin: 0 0 12px;
}

.wsp-fav-share-btn {
    width: 100%;
    border: 1px solid rgba(242, 140, 40, 0.45);
    background: rgba(242, 140, 40, 0.14);
    color: #c56a10;
    border-radius: 14px;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 800;
}

.wsp-fav-share-btn:disabled {
    opacity: 0.45;
}

.wsp-fav-custom-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
}

.wsp-fav-custom-card-main {
    flex: 1;
    min-width: 0;
}

.wsp-fav-share-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(31, 143, 136, 0.25);
    background: rgba(255, 255, 255, 0.7);
    color: #0e8f97;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.wsp-fav-share-icon svg {
    width: 18px;
    height: 18px;
}

.wsp-fav-share-icon:disabled {
    opacity: 0.4;
}

.wsp-fav-picker-sheet {
    min-height: 46vh;
    max-height: 78vh;
}

/* Stick fav picker / create sheet to the true bottom of the phone (no gap above nav). */
.wsp-sheet.wsp-fav-picker-sheet,
.wsp-sheet.wsp-fav-list-sheet {
    bottom: 0 !important;
    left: var(--wsp-frame-left, 0px) !important;
    width: var(--wsp-frame-width, 100%) !important;
    right: auto !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 24px 24px 0 0 !important;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    max-height: min(78vh, calc(100dvh - env(safe-area-inset-top, 0px) - 24px)) !important;
}

body.wsp-wholesale-page .wsp-wholesale-root .wsp-sheet.wsp-fav-picker-sheet,
body.wsp-wholesale-page .wsp-wholesale-root .wsp-sheet.wsp-fav-list-sheet {
    left: var(--wsp-frame-left, 0px) !important;
    width: var(--wsp-frame-width, 100%) !important;
    bottom: 0 !important;
}

.wsp-fav-picker-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 2px 12px;
    overflow: auto;
}

.wsp-fav-picker-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: right;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 14px;
    color: inherit;
}

.wsp-fav-picker-row.is-on {
    border-color: rgba(242, 140, 40, 0.5);
    background: rgba(242, 140, 40, 0.14);
}

.wsp-fav-picker-main {
    flex: 1;
    min-width: 0;
}

.wsp-fav-picker-main strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
}

.wsp-fav-picker-main em {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    opacity: 0.7;
    font-style: normal;
}

.wsp-fav-picker-plus,
.wsp-fav-picker-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-style: normal;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.12);
}

.wsp-fav-picker-check {
    background: #f28c28;
    color: #1a1208;
}

.wsp-fav-picker-create {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
    border: 1.5px dashed rgba(242, 140, 40, 0.55);
    background: rgba(242, 140, 40, 0.12);
    color: #ffd7a8;
    border-radius: 18px;
    padding: 16px 14px;
    font-weight: 800;
}

.wsp-fav-picker-create span {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 28px;
    line-height: 1;
    background: #f28c28;
    color: #1a1208;
}

.wsp-fav-picker-create em {
    font-style: normal;
    font-size: 15px;
}

.wsp-app[data-theme="light"] .wsp-fav-picker-row,
html[data-wsp-theme="light"] .wsp-fav-picker-row {
    background: #fff;
    border-color: #d7e0e0;
    color: #1f2a32;
}

.wsp-app[data-theme="light"] .wsp-fav-picker-create,
html[data-wsp-theme="light"] .wsp-fav-picker-create {
    color: #9a4e00;
}

.wsp-fav-list-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 4px 0;
}

.wsp-fav-list-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #1f2a32;
}

.wsp-fav-list-form input,
.wsp-fav-list-form textarea {
    border: 1px solid rgba(31, 143, 136, 0.28);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
}

.wsp-fav-list-form textarea {
    min-height: 88px;
    resize: vertical;
}

.wsp-fav-list-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.wsp-fav-list-cancel {
    flex: 1 1 40%;
    border: 1px solid #1f8f88;
    border-radius: 12px;
    background: transparent;
    color: #1f8f88;
    font-weight: 800;
    padding: 12px;
    cursor: pointer;
}

.wsp-fav-list-actions .wsp-desk-primary {
    flex: 1 1 60%;
}

.wsp-fav-add-list {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 16px auto 4px;
    border: 0;
    border-radius: 50%;
    background: rgba(242, 140, 40, 0.2);
    color: #f28c28;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(242, 140, 40, 0.18);
}

.wsp-fav-empty .wsp-fav-add-list {
    margin-top: 18px;
}

.wsp-desk-pay-coordinate {
    margin: 0 0 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(31, 143, 136, 0.1);
    color: #0f6f6a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.7;
}

/* ===== Favorites lists UI (mockup) ===== */
.wsp-fav-panel {
    padding: 12px !important;
    border-radius: 22px !important;
    background: rgba(12, 18, 34, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    min-height: 58vh;
}

.wsp-fav-tabs {
    display: flex !important;
    gap: 4px !important;
    margin-bottom: 14px !important;
    padding: 4px !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 0 !important;
    border-bottom: 0 !important;
}

.wsp-fav-tab {
    flex: 1 1 50% !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    padding: 11px 8px !important;
    cursor: pointer;
    position: relative;
}

.wsp-fav-tab.is-active {
    color: #fff !important;
    background: linear-gradient(135deg, #1f8f88 0%, #2ec4b6 100%) !important;
    box-shadow: 0 8px 18px rgba(31, 143, 136, 0.28);
}

.wsp-fav-tab.is-active::after {
    display: none !important;
}

.wsp-fav-notify {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 12px 4px 14px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.wsp-fav-notify-copy strong {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: rgba(255, 255, 255, 0.94) !important;
    margin-bottom: 4px !important;
}

.wsp-fav-bell {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.78);
    flex: 0 0 auto;
}

.wsp-fav-notify-copy em {
    display: block !important;
    font-style: normal !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
    color: rgba(255, 255, 255, 0.52) !important;
}

.wsp-fav-switch {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    cursor: pointer;
    position: relative;
}

.wsp-fav-switch input {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.wsp-fav-switch i {
    width: 46px !important;
    height: 28px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    position: relative !important;
    display: block !important;
    transition: background 0.2s ease;
}

.wsp-fav-switch i::after {
    content: "" !important;
    position: absolute !important;
    top: 3px !important;
    right: 3px !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.wsp-fav-switch input:checked + i {
    background: linear-gradient(135deg, #1f8f88, #2ec4b6) !important;
}

.wsp-fav-switch input:checked + i::after {
    transform: translateX(-18px) !important;
}

.wsp-fav-empty {
    text-align: center !important;
    padding: 48px 16px 28px !important;
    color: rgba(255, 255, 255, 0.55) !important;
}

.wsp-fav-empty-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.78);
}

.wsp-fav-empty-icon svg {
    width: 54px;
    height: 54px;
}

.wsp-fav-empty strong {
    display: block !important;
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.94) !important;
    margin-bottom: 8px !important;
}

.wsp-fav-empty p {
    margin: 0 auto !important;
    max-width: 260px;
    font-size: 13px !important;
    line-height: 1.8 !important;
    color: rgba(255, 255, 255, 0.52) !important;
}

.wsp-fav-product-list,
.wsp-fav-custom-lists {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wsp-fav-custom-card {
    padding: 12px 14px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.wsp-fav-custom-card b,
.wsp-fav-custom-card strong {
    color: rgba(255, 255, 255, 0.92) !important;
}

.wsp-fav-custom-card em,
.wsp-fav-custom-card span {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* Desk promo templates — match mockup glass cards */
.wsp-desk-promo-hint {
    text-align: right;
    margin: 4px 0 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
}

.wsp-desk-promo-add-wrap {
    display: flex;
    justify-content: center;
    margin: 0 0 18px;
}

.wsp-desk-promo-add,
.wsp-desk-promo-save {
    border: 0;
    border-radius: 999px;
    padding: 15px 28px;
    min-height: 52px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(90deg, #1ec8c0 0%, #2aa8e0 100%);
    box-shadow: 0 10px 28px rgba(30, 200, 192, 0.28);
}

.wsp-desk-promo-add {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wsp-desk-promo-list {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.wsp-desk-promo-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(18, 28, 48, 0.55);
    border: 1px solid rgba(110, 190, 255, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 32px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
}

.wsp-desk-promo-item-main {
    min-width: 0;
    display: grid;
    gap: 6px;
    text-align: right;
}

.wsp-desk-promo-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

.wsp-desk-promo-title i {
    width: 7px;
    height: 7px;
    border-inline-start: 2px solid rgba(255, 255, 255, 0.72);
    border-bottom: 2px solid rgba(255, 255, 255, 0.72);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.wsp-desk-promo-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.7);
}

.wsp-desk-promo-excerpt img.wsp-share-emoji,
.wsp-desk-promo-excerpt .wsp-share-emoji {
    width: 1.15em;
    height: 1.15em;
    vertical-align: -0.2em;
}

.wsp-desk-promo-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.wsp-desk-promo-edit {
    border: 0;
    background: transparent;
    color: #6ec8ff;
    padding: 0;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.wsp-desk-promo-delete {
    border: 0;
    border-radius: 999px;
    padding: 7px 14px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    background: rgba(170, 40, 55, 0.88);
    color: #fff;
}

.wsp-desk-promo-form {
    display: grid;
    gap: 12px;
    margin: 0 0 16px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(18, 28, 48, 0.62);
    border: 1px solid rgba(110, 190, 255, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 14px 36px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #fff;
}

.wsp-desk-promo-form h2 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #fff;
}

.wsp-desk-promo-form .wsp-desk-field > span {
    color: rgba(255, 255, 255, 0.82);
}

.wsp-desk-promo-form .wsp-desk-field input,
.wsp-desk-promo-form .wsp-desk-field textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(120, 180, 255, 0.28);
    background: rgba(8, 14, 28, 0.72);
    color: #fff;
    padding: 12px 14px;
    font: inherit;
    font-size: 13px;
}

.wsp-desk-promo-form .wsp-desk-field input::placeholder,
.wsp-desk-promo-form .wsp-desk-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.wsp-desk-promo-form-actions {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 10px;
    margin-top: 4px;
}

.wsp-desk-promo-cancel {
    border-radius: 999px;
    border: 1px solid rgba(110, 190, 255, 0.45);
    background: rgba(12, 20, 36, 0.72);
    color: #fff;
    padding: 12px 16px;
    min-height: 48px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.wsp-desk-promo-save {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
}

.wsp-desk-latest {
    margin-top: 4px;
}

.wsp-desk-latest-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
}

.wsp-desk-latest-head h2 {
    margin: 0;
    font-size: 16px;
}

.wsp-desk-acc-head.is-static {
    cursor: default;
}

.wsp-desk-orders-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 14px 2px 10px;
}

.wsp-desk-orders-meta h2 {
    margin: 0;
    font-size: 15px;
}

.wsp-desk-orders-meta em {
    font-style: normal;
    opacity: 0.65;
    font-size: 12px;
}

.wsp-desk-order-group {
    margin-bottom: 14px;
}

.wsp-desk-order-group-title {
    margin: 0 4px 8px;
    font-size: 13px;
    font-weight: 800;
    color: rgba(142, 240, 232, 0.92);
}

.wsp-desk-cal {
    padding: 14px 12px 12px;
    margin-bottom: 4px;
    border-radius: 32px;
    height: 430px;
    min-height: 430px;
    max-height: 430px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

.wsp-desk-cal-head {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex: 0 0 auto;
}

.wsp-desk-cal-titles {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
}

.wsp-desk-cal-title {
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 8px;
}

.wsp-app[data-theme='light'] .wsp-desk-cal-title,
html[data-wsp-theme='light'] .wsp-desk-cal-title,
.wsp-app[data-theme='light'] .wsp-desk-cal-nav,
html[data-wsp-theme='light'] .wsp-desk-cal-nav,
.wsp-app[data-theme='light'] .wsp-desk-cal-chip,
html[data-wsp-theme='light'] .wsp-desk-cal-chip,
.wsp-app[data-theme='light'] .wsp-desk-cal-link,
html[data-wsp-theme='light'] .wsp-desk-cal-link,
.wsp-app[data-theme='light'] .wsp-desk-cal-weekdays span,
html[data-wsp-theme='light'] .wsp-desk-cal-weekdays span,
.wsp-app[data-theme='light'] .wsp-desk-cal-day,
html[data-wsp-theme='light'] .wsp-desk-cal-day {
    color: #0f282c;
}

.wsp-app[data-theme='light'] .wsp-desk-cal-title.is-year,
html[data-wsp-theme='light'] .wsp-desk-cal-title.is-year {
    color: rgba(15, 40, 44, 0.72);
}

.wsp-desk-cal-title.is-year {
    font-size: 13px;
    font-weight: 700;
    opacity: 0.72;
}

.wsp-desk-cal-title.is-month {
    font-size: 18px;
}

.wsp-desk-cal-title:hover,
.wsp-desk-cal-title:focus-visible {
    background: rgba(78, 205, 196, 0.18);
    opacity: 1;
}

.wsp-desk-cal-title.is-static {
    cursor: default;
    text-align: center;
    display: block;
}

.wsp-desk-cal-title.is-static:hover {
    background: transparent;
}

.wsp-desk-cal-nav {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.wsp-desk-cal-nav:hover,
.wsp-desk-cal-nav:focus-visible {
    background: rgba(78, 205, 196, 0.22);
}

.wsp-desk-cal-weekdays,
.wsp-desk-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.wsp-desk-cal-stage > .wsp-desk-cal-weekdays {
    flex: 0 0 auto;
}

.wsp-desk-cal-stage:has(> .wsp-desk-cal-grid) {
    display: flex;
    flex-direction: column;
}

.wsp-desk-cal-stage > .wsp-desk-cal-grid {
    flex: 1 1 auto;
    min-height: 0;
    grid-auto-rows: 1fr;
}

.wsp-desk-cal-stage > .wsp-desk-cal-chips {
    height: 100%;
}

.wsp-desk-cal-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 8px;
    height: 100%;
    min-height: 0;
    align-content: stretch;
}

.wsp-desk-cal-chip {
    position: relative;
    min-height: 0;
    height: 100%;
    border: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.94);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 8px 6px;
}

.wsp-desk-cal-chip.is-year {
    font-size: 16px;
}

.wsp-desk-cal-chip:hover,
.wsp-desk-cal-chip:focus-visible {
    background: rgba(255, 255, 255, 0.12);
}

.wsp-desk-cal-chip.is-today {
    box-shadow: inset 0 0 0 1.5px rgba(78, 205, 196, 0.7);
}

.wsp-desk-cal-chip.is-selected {
    background: #1f8f88;
    color: #fff;
    box-shadow: none;
}

.wsp-desk-cal-chip.has-orders i {
    position: absolute;
    bottom: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f2c94c;
}

.wsp-desk-cal-chip.is-selected.has-orders i {
    background: #fff;
}

.wsp-desk-cal-weekdays {
    margin-bottom: 6px;
}

.wsp-desk-cal-stage {
    flex: 1 1 auto;
    min-height: 0;
    height: 286px;
    max-height: 286px;
    overflow: hidden;
    transform-origin: 50% 45%;
    transition:
        transform 220ms cubic-bezier(0.2, 0.85, 0.25, 1),
        opacity 180ms ease;
    will-change: transform, opacity;
}

.wsp-desk-cal-stage.is-exit-up {
    transform: scale(0.84);
    opacity: 0;
}

.wsp-desk-cal-stage.is-exit-down {
    transform: scale(1.14);
    opacity: 0;
}

.wsp-desk-cal-stage.is-enter-up {
    transform: scale(1.14);
    opacity: 0;
}

.wsp-desk-cal-stage.is-enter-down {
    transform: scale(0.84);
    opacity: 0;
}

.wsp-desk-cal-stage.is-enter-up.is-enter-ready,
.wsp-desk-cal-stage.is-enter-down.is-enter-ready {
    transform: scale(1);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .wsp-desk-cal-stage {
        transition: none;
    }
}

.wsp-desk-cal-weekdays span {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    opacity: 0.55;
    padding: 4px 0;
}

.wsp-desk-cal-day {
    position: relative;
    min-height: 0;
    height: 100%;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.wsp-desk-cal-day.is-empty {
    pointer-events: none;
    visibility: hidden;
}

.wsp-desk-cal-day:hover,
.wsp-desk-cal-day:focus-visible {
    background: rgba(255, 255, 255, 0.1);
}

.wsp-desk-cal-day.is-today {
    box-shadow: inset 0 0 0 1.5px rgba(78, 205, 196, 0.7);
}

.wsp-desk-cal-day.is-selected {
    background: #1f8f88;
    color: #fff;
    box-shadow: none;
}

.wsp-desk-cal-day.has-orders i {
    position: absolute;
    bottom: 5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f2c94c;
}

.wsp-desk-cal-day.is-selected.has-orders i {
    background: #fff;
}

.wsp-desk-cal-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex: 0 0 auto;
}

.wsp-desk-cal-link {
    border: 0;
    background: transparent;
    color: #8ef0e8;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    padding: 6px 4px;
}

.wsp-desk-cal-link:disabled {
    opacity: 0.35;
    cursor: default;
}

.wsp-desk-version {
    margin: -4px 0 14px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
}

.wsp-append-banner {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid rgba(126, 236, 228, 0.35);
    background: rgba(14, 143, 151, 0.28);
    color: #e8fffc;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.wsp-append-banner span {
    line-height: 1.45;
}

.wsp-append-banner b {
    font-weight: 900;
}

.wsp-append-banner button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.wsp-cart-append-hint {
    margin: 0 0 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
}

.wsp-cart-append-hint b {
    color: #8ef0e8;
}

/* White-label store panel */
.wsp-store-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wsp-store-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wsp-store-head img,
.wsp-store-logo-preview {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

.wsp-store-head strong,
.wsp-store-product strong {
    display: block;
    font-size: 15px;
}

.wsp-store-head em,
.wsp-store-product em {
    display: block;
    margin-top: 2px;
    font-style: normal;
    opacity: 0.72;
    font-size: 12px;
}

.wsp-store-logo-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 56px;
    padding: 0 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    opacity: 0.7;
}

.wsp-store-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 10px;
}

.wsp-store-settings .wsp-desk-primary {
    width: 100%;
    margin-top: 8px;
}

.wsp-store-products {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wsp-store-product {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wsp-store-product.is-off {
    opacity: 0.55;
}

.wsp-store-product-main {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.wsp-store-product-main img,
.wsp-store-product-ph {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.08);
}

.wsp-store-product-fields {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.wsp-store-product-fields--price {
    grid-template-columns: 1fr;
}

.wsp-store-stock-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.wsp-store-stock-meta span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.wsp-store-stock-meta b {
    font-size: 16px;
}

.wsp-store-stock-meta em {
    font-style: normal;
    font-size: 11px;
    opacity: 0.7;
}

.wsp-store-stock-meta .is-ok b {
    color: #7dffa8;
}

.wsp-store-stock-meta .is-zero b {
    color: #ff9b9b;
}

.wsp-store-product.is-out {
    border-color: rgba(255, 120, 120, 0.28);
}

.wsp-store-link-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wsp-store-link-box code {
    display: block;
    padding: 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    font-size: 12px;
    word-break: break-all;
    direction: ltr;
    text-align: left;
}

.wsp-store-link-box em {
    font-style: normal;
    font-size: 12px;
    opacity: 0.7;
    line-height: 1.5;
}

.wsp-store-link-flash {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(30, 200, 192, 0.2);
    border: 1px solid rgba(110, 220, 255, 0.4);
    color: #8ef0e8;
    font-size: 13px;
    line-height: 1.4;
}

.wsp-app[data-theme="light"] .wsp-store-link-flash,
html[data-wsp-theme="light"] .wsp-store-link-flash {
    background: rgba(14, 143, 151, 0.12);
    border-color: rgba(14, 143, 151, 0.35);
    color: #0b7a81;
}

.wsp-storefront {
    padding: 14px 14px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wsp-storefront-page {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

.wsp-storefront-header .wsp-storefront-header-spacer {
    display: block;
}

.wsp-storefront-header .wsp-brand strong {
    font-size: 16px;
}

.wsp-storefront-header .wsp-brand small {
    display: block;
    font-size: 11px;
    opacity: 0.7;
}

.wsp-storefront-install-chrome {
    display: flex;
    justify-content: center;
    padding: 8px 14px 0;
}

.wsp-storefront-install {
    min-width: 180px;
}

.wsp-storefront-out-badge {
    background: rgba(0, 0, 0, 0.55);
    color: #ffd9d9;
}

.wsp-bottom-nav button[disabled] {
    opacity: 0.35;
    pointer-events: none;
}

html.wsp-keyboard-open .wsp-bottom-nav,
.wsp-app.is-keyboard-open .wsp-bottom-nav {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}

.wsp-store-txn-inline-error {
    margin: 10px 0 0;
    cursor: pointer;
}

.wsp-product-card.is-out {
    opacity: 0.55;
}

.wsp-fav-custom-card--store {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: right;
    cursor: pointer;
    color: inherit;
    border: 1px solid rgba(255, 149, 0, 0.35);
}

.wsp-fav-store-go {
    font-size: 18px;
    opacity: 0.7;
    padding-left: 8px;
}

.wsp-storefront-card.is-out {
    opacity: 0.55;
}

.wsp-storefront-sheet-img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 10px;
}

.wsp-storefront-sheet-price {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
}

.wsp-sheet.wsp-storefront-sheet {
    bottom: 0 !important;
    left: var(--wsp-frame-left, 0px) !important;
    width: var(--wsp-frame-width, 100%) !important;
    right: auto !important;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
}

.wsp-store-product-fields label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.wsp-store-product-fields input {
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.18);
    color: inherit;
    padding: 0 10px;
}

.wsp-store-product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.wsp-fav-picker-row--store {
    border-color: rgba(255, 149, 0, 0.35);
}

.wsp-desk-hint {
    margin: 0;
    font-size: 13px;
    opacity: 0.75;
    line-height: 1.6;
}

.wsp-app[data-theme="light"] .wsp-store-product,
html[data-wsp-theme="light"] .wsp-store-product {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}

.wsp-app[data-theme="light"] .wsp-store-product-fields input,
html[data-wsp-theme="light"] .wsp-store-product-fields input {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.12);
    color: #222;
}


.wsp-store-markup-panel {
    padding: 12px 14px;
    margin: 0 0 12px;
    border-radius: 14px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.wsp-app[data-theme="light"] .wsp-store-markup-panel,
html[data-wsp-theme="light"] .wsp-store-markup-panel {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}
.wsp-store-markup-panel strong { display:block; margin-bottom: 4px; }
.wsp-store-markup-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
    min-width: 0;
}
.wsp-store-markup-row label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    min-width: 0;
}
.wsp-store-markup-row input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.22);
    color: inherit;
    padding: 0 10px;
}
.wsp-store-markup-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    min-width: 0;
}
.wsp-store-markup-actions .wsp-desk-primary,
.wsp-store-markup-actions .wsp-desk-secondary {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    min-height: 44px;
    white-space: normal;
    justify-content: center;
}

.wsp-store-price-groups { display:flex; flex-direction:column; gap:10px; margin-top:10px; max-width:100%; min-width:0; }
.wsp-store-price-group.wsp-desk-acc {
    margin-bottom: 0;
    padding: 4px;
    border-radius: 14px;
}
.wsp-store-price-group-head.wsp-desk-acc-head {
    padding: 12px 12px 10px;
    gap: 10px;
}
.wsp-store-price-group-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    text-align: right;
}
.wsp-store-price-group-title strong {
    font-size: 14px;
}
.wsp-store-price-group-parent {
    font-size: 11px;
    opacity: .65;
    font-style: normal;
}
.wsp-store-price-group-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}
.wsp-store-price-group-meta em { font-size:12px; opacity:.7; font-style:normal; }
.wsp-store-price-chevron {
    width: 8px;
    height: 8px;
    border-inline-end: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: .55;
    transition: transform .18s ease;
}
.wsp-store-price-group.is-open .wsp-store-price-chevron {
    transform: rotate(-135deg);
}
.wsp-store-price-group .wsp-desk-acc-body.wsp-store-price-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 10px 12px;
}
.wsp-store-price-row {
  padding:10px; border-radius:12px; background:rgba(0,0,0,.16); border:1px solid rgba(255,255,255,.08);
}
.wsp-store-price-row-main { display:flex; justify-content:space-between; gap:8px; margin-bottom:6px; }
.wsp-store-price-row-main em { font-size:12px; opacity:.7; font-style:normal; }
.wsp-store-price-row-meta {
  display:grid; grid-template-columns:1fr 1fr; gap:6px;
}
.wsp-store-price-row-meta span {
  display:flex; flex-direction:column; gap:2px; font-size:12px;
}
.wsp-store-price-row-meta b { font-size:13px; }
.wsp-store-price-row-meta em { opacity:.65; font-style:normal; }
.wsp-store-price-row-meta .is-preview { grid-column:1 / -1; color:#0e8f97; }
.wsp-store-price-sell {
    display:flex;
    flex-direction:column;
    gap:4px;
    grid-column: 1 / -1;
}
.wsp-store-price-sell span { font-size:12px; opacity:.7; }
.wsp-store-price-sell input {
    width:100%;
    border-radius:10px;
    border:1px solid rgba(127,140,160,.35);
    background:rgba(0,0,0,.18);
    color:inherit;
    padding:8px 10px;
    font-size:14px;
    box-sizing: border-box;
}
.wsp-app[data-theme="light"] .wsp-store-price-row,
html[data-wsp-theme="light"] .wsp-store-price-row {
  background:rgba(0,0,0,.03); border-color:rgba(0,0,0,.06);
}

.wsp-store-tabs.wsp-fav-tabs {
    flex-wrap: wrap !important;
    overflow: hidden;
    max-width: 100%;
}
.wsp-store-tabs .wsp-fav-tab {
    flex: 1 1 calc(33.33% - 4px) !important;
    min-width: 0 !important;
    font-size: 12px !important;
    padding: 9px 4px !important;
    white-space: nowrap;
}

.wsp-store-order-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 6px;
}
.wsp-store-order-head strong {
    font-size: 15px;
}
.wsp-store-order-total {
    font-style: normal;
    font-size: 14px;
    font-weight: 700;
    color: #0e8f97;
}
.wsp-app:not([data-theme="light"]) .wsp-store-order-total,
html:not([data-wsp-theme="light"]) .wsp-store-order-total {
    color: #8ef0e8;
}

.wsp-store-orders {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wsp-store-orders-sticky {
    position: sticky;
    top: 0;
    z-index: 28;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 6px 0 8px;
    background: linear-gradient(180deg, rgba(16, 40, 72, 0.97) 70%, rgba(16, 40, 72, 0));
}

.wsp-store-orders-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 48px minmax(0, 1fr) 72px;
    gap: 4px;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 800;
    opacity: 0.7;
    text-align: center;
}

.wsp-store-orders-cols span:first-child {
    text-align: right;
}

.wsp-store-orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wsp-store-order-customer {
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.wsp-store-order-customer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: right;
    cursor: pointer;
}

.wsp-store-order-customer-chevron {
    flex: 0 0 auto;
    font-size: 14px;
    opacity: 0.7;
    transition: transform 0.18s ease;
}

.wsp-store-order-customer.is-open .wsp-store-order-customer-chevron {
    transform: rotate(180deg);
}

.wsp-store-order-customer-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.wsp-store-order-pay-type {
    margin: 4px 0 0;
    font-size: 12px;
    opacity: 0.8;
}

.wsp-store-txn-chips.is-lg,
.wsp-store-txn-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.wsp-store-txn-chip.is-lg {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 14px;
}

.wsp-store-txn-open-btn,
.wsp-store-txn-submit {
    width: 100%;
    min-height: 52px;
    font-size: 16px;
    font-weight: 800;
}

.wsp-store-txn-scan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    margin: 10px 0 14px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.wsp-store-txn-sku-wrap {
    position: relative;
    margin-bottom: 8px;
}

.wsp-store-txn-sku-drop {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    top: calc(100% - 4px);
    max-height: 220px;
    overflow: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0f172a;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.wsp-store-txn-sku-hit {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: inherit;
    text-align: right;
    cursor: pointer;
}

.wsp-store-txn-sku-hit:last-child {
    border-bottom: 0;
}

.wsp-store-txn-sku-hit em {
    opacity: 0.7;
    font-size: 12px;
}

.wsp-store-ledger-amount.is-in {
    color: #34d399;
    font-weight: 800;
}

.wsp-store-ledger-amount.is-out {
    color: #f87171;
    font-weight: 800;
}

.wsp-store-order-fix-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    font-size: 16px;
    cursor: pointer;
}

.wsp-app[data-theme='light'] .wsp-store-order-fix-icon,
html[data-wsp-theme='light'] .wsp-store-order-fix-icon {
    border-color: rgba(15, 40, 44, 0.14);
    background: #eef4f4;
    color: #0f282c;
}

.wsp-store-ledger-edit {
    width: 48px;
    text-align: center;
}

.wsp-store-ledger-table tbody tr.is-selectable {
    cursor: pointer;
}

.wsp-store-ledger-table tbody tr.is-selectable:hover,
.wsp-store-ledger-table tbody tr.is-selectable:focus-visible {
    background: rgba(142, 240, 232, 0.1);
    outline: none;
}

.wsp-store-ledger-table tbody tr.is-selected {
    background: rgba(142, 240, 232, 0.16);
    box-shadow: inset 0 0 0 1px rgba(142, 240, 232, 0.4);
}

.wsp-app[data-theme="light"] .wsp-store-ledger-table tbody tr.is-selectable:hover,
html[data-wsp-theme="light"] .wsp-store-ledger-table tbody tr.is-selectable:hover,
.wsp-app[data-theme="light"] .wsp-store-ledger-table tbody tr.is-selectable:focus-visible,
html[data-wsp-theme="light"] .wsp-store-ledger-table tbody tr.is-selectable:focus-visible {
    background: rgba(14, 143, 151, 0.08);
}

.wsp-app[data-theme="light"] .wsp-store-ledger-table tbody tr.is-selected,
html[data-wsp-theme="light"] .wsp-store-ledger-table tbody tr.is-selected {
    background: rgba(14, 143, 151, 0.12);
    box-shadow: inset 0 0 0 1px rgba(14, 143, 151, 0.35);
}

.wsp-store-txn-order-wrap {
    margin-bottom: 10px;
}

.wsp-store-txn-order-picked {
    margin: 6px 0 10px;
    font-size: 13px;
}

.wsp-store-order-adjustments {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 8px 0;
    font-size: 12px;
}

.wsp-store-invoice-frame {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    background: #0b1220;
}

.wsp-store-invoice-frame-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wsp-store-invoice-frame-spacer {
    flex: 1;
}

.wsp-store-invoice-frame-body {
    flex: 1;
    width: 100%;
    border: 0;
    background: #fff;
}

.wsp-app[data-theme="light"] .wsp-store-txn-sku-drop,
html[data-wsp-theme="light"] .wsp-store-txn-sku-drop {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.1);
}

.wsp-store-txn-chips,
.wsp-store-txn-effect {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
}

.wsp-store-txn-effect-label {
    width: 100%;
    font-size: 12px;
    opacity: 0.75;
}

.wsp-store-txn-chip {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

.wsp-store-txn-chip.is-active {
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.45);
}

.wsp-store-txn-lines {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wsp-store-txn-lines li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.wsp-store-ledger-type,
.wsp-store-ledger-effect {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
}

.wsp-store-ledger-table tr.is-effect-increase_debt .wsp-store-ledger-effect {
    color: #f87171;
}

.wsp-store-ledger-table tr.is-effect-decrease_debt .wsp-store-ledger-effect {
    color: #34d399;
}

.wsp-store-ledger-fix-btn {
    padding: 4px 8px;
    font-size: 11px;
}

.wsp-store-customer-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 12px;
    font-size: 13px;
}

.wsp-app[data-theme="light"] .wsp-store-txn-chip,
html[data-wsp-theme="light"] .wsp-store-txn-chip {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.1);
}

.wsp-app[data-theme="light"] .wsp-store-txn-chip.is-active,
html[data-wsp-theme="light"] .wsp-store-txn-chip.is-active {
    background: #e0f2fe;
    border-color: #7dd3fc;
}

.wsp-store-order-customer-title {
    min-width: 0;
    flex: 1 1 auto;
}

.wsp-store-order-customer-title strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.wsp-store-order-customer-title em {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-style: normal;
    opacity: 0.7;
    direction: ltr;
    text-align: right;
}

.wsp-store-order-customer-meta {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    opacity: 0.7;
}

.wsp-store-order-block {
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wsp-store-order-block:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.wsp-store-order-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 48px minmax(0, 1fr) 72px;
    gap: 4px;
    align-items: center;
    min-width: 0;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

button.wsp-store-order-row.is-select {
    width: 100%;
    margin: 0;
    border: 1px solid transparent;
    color: inherit;
    font: inherit;
    text-align: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

button.wsp-store-order-row.is-select:hover,
button.wsp-store-order-row.is-select:focus-visible {
    background: rgba(142, 240, 232, 0.12);
    outline: none;
}

.wsp-store-order-block.is-selected {
    border-radius: 14px;
    padding: 10px 8px;
    background: rgba(142, 240, 232, 0.08);
    box-shadow: inset 0 0 0 1px rgba(142, 240, 232, 0.35);
}

.wsp-store-order-block.is-selected .wsp-store-order-row.is-select {
    background: rgba(142, 240, 232, 0.16);
    border-color: rgba(142, 240, 232, 0.45);
}

.wsp-store-order-selected-hint {
    margin: 6px 4px 0;
    font-size: 11px;
    font-weight: 700;
    color: #8ef0e8;
}

.wsp-store-order-code,
.wsp-store-order-count,
.wsp-store-order-amount,
.wsp-store-order-status-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 800;
}

.wsp-store-order-code {
    text-align: right;
}

.wsp-store-order-count,
.wsp-store-order-status-label {
    text-align: center;
}

.wsp-store-order-amount {
    text-align: center;
    color: #8ef0e8;
}

.wsp-store-order-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 2px 0;
}

.wsp-store-order-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    width: 100%;
    margin: 0;
    padding: 6px 8px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    font: inherit;
    font-size: 12px;
    text-align: right;
    cursor: pointer;
    overflow: hidden;
}

.wsp-store-order-item:active,
.wsp-store-order-item:focus-visible {
    background: rgba(142, 240, 232, 0.12);
    outline: none;
}

.wsp-store-order-item b {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wsp-store-order-item span {
    flex: 0 0 auto;
    opacity: 0.75;
    white-space: nowrap;
}

.wsp-store-order-item.is-short span {
    color: #ffb4a8;
    opacity: 1;
}

.wsp-store-order-item.is-static,
.wsp-store-order-items em {
    font-style: normal;
    font-size: 12px;
    opacity: 0.75;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}

.wsp-store-order-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: end;
    margin-top: 8px;
}

.wsp-store-order-status-field {
    margin: 0;
}

.wsp-store-order-actions .wsp-desk-primary {
    min-width: 64px;
    height: 42px;
    margin: 0;
}

.wsp-app[data-theme="light"] .wsp-store-orders-sticky,
html[data-wsp-theme="light"] .wsp-store-orders-sticky {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 78%, rgba(248, 250, 252, 0));
}

.wsp-app[data-theme="light"] .wsp-store-order-customer,
html[data-wsp-theme="light"] .wsp-store-order-customer {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.wsp-app[data-theme="light"] .wsp-store-order-block,
html[data-wsp-theme="light"] .wsp-store-order-block {
    border-top-color: rgba(0, 0, 0, 0.06);
}

.wsp-app[data-theme="light"] .wsp-store-order-row,
html[data-wsp-theme="light"] .wsp-store-order-row {
    background: #f3f4f6;
}

.wsp-app[data-theme="light"] .wsp-store-order-block.is-selected,
html[data-wsp-theme="light"] .wsp-store-order-block.is-selected {
    background: rgba(14, 143, 151, 0.08);
    box-shadow: inset 0 0 0 1px rgba(14, 143, 151, 0.35);
}

.wsp-app[data-theme="light"] .wsp-store-order-block.is-selected .wsp-store-order-row.is-select,
html[data-wsp-theme="light"] .wsp-store-order-block.is-selected .wsp-store-order-row.is-select {
    background: rgba(14, 143, 151, 0.12);
    border-color: rgba(14, 143, 151, 0.4);
}

.wsp-app[data-theme="light"] .wsp-store-order-selected-hint,
html[data-wsp-theme="light"] .wsp-store-order-selected-hint {
    color: #0e8f97;
}

.wsp-app[data-theme="light"] .wsp-store-order-amount,
html[data-wsp-theme="light"] .wsp-store-order-amount {
    color: #0e8f97;
}

.wsp-desk-inventory {
    margin: 10px 0 14px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.wsp-desk-inventory-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.wsp-desk-inventory-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    min-width: 84px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.18);
}

.wsp-desk-inventory-chip b {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.06em;
    direction: ltr;
}

.wsp-desk-inventory-chip em {
    font-style: normal;
    font-size: 11px;
    opacity: 0.7;
}

.wsp-desk-inventory-more {
    align-self: center;
    font-size: 12px;
    opacity: 0.7;
}

.wsp-app[data-theme="light"] .wsp-desk-inventory,
html[data-wsp-theme="light"] .wsp-desk-inventory {
    background: rgba(20, 30, 40, 0.04);
}

.wsp-app[data-theme="light"] .wsp-desk-inventory-chip,
html[data-wsp-theme="light"] .wsp-desk-inventory-chip {
    background: #fff;
    border-color: rgba(20, 30, 40, 0.1);
}

.wsp-store-scan-overlay {
    display: none;
}

.wsp-inv-scan {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    background: #0b1220;
    color: #f4f7fb;
    overscroll-behavior: none;
}

.wsp-inv-scan-head {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 8px;
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
    background: #121a2b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wsp-inv-scan-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
}

.wsp-inv-scan-title span {
    opacity: 0.85;
    font-size: 14px;
}

.wsp-inv-scan-icon-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font-size: 24px;
    line-height: 1;
}

.wsp-inv-scan-head-spacer {
    width: 40px;
    height: 40px;
}

.wsp-inv-scan-stage {
    position: relative;
    flex: 0 0 38vh;
    min-height: 180px;
    max-height: 42vh;
    background: #000;
    overflow: hidden;
}

.wsp-inv-scan-view,
.wsp-inv-scan-view > *,
.wsp-inv-scan-view #wsp-barcode-scanner__scan_region,
.wsp-inv-scan-view video,
.wsp-inv-scan-view canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.wsp-inv-scan-view #wsp-barcode-scanner__dashboard,
.wsp-inv-scan-view #qr-shaded-region {
    display: none !important;
}

.wsp-inv-scan-guide {
    position: absolute;
    inset: 14% 18%;
    border: 2px solid rgba(46, 196, 182, 0.95);
    border-radius: 18px;
    box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.28);
    pointer-events: none;
}

.wsp-inv-scan-guide::before,
.wsp-inv-scan-guide::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border: 3px solid #2ec4b6;
}

.wsp-inv-scan-guide::before {
    top: -3px;
    right: -3px;
    border-left: 0;
    border-bottom: 0;
    border-radius: 0 10px 0 0;
}

.wsp-inv-scan-guide::after {
    bottom: -3px;
    left: -3px;
    border-right: 0;
    border-top: 0;
    border-radius: 0 0 0 10px;
}

.wsp-inv-scan-guide i {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2ec4b6, transparent);
    box-shadow: 0 0 10px rgba(46, 196, 182, 0.8);
    animation: wsp-inv-scan-line 1.6s ease-in-out infinite;
}

@keyframes wsp-inv-scan-line {
    0%, 100% { transform: translateY(-28px); opacity: 0.35; }
    50% { transform: translateY(28px); opacity: 1; }
}

.wsp-inv-scan-torch {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(10, 16, 28, 0.78);
    color: #fff;
    backdrop-filter: blur(8px);
}

.wsp-inv-scan-torch-txt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.wsp-inv-scan-torch-txt b {
    font-size: 12px;
    font-weight: 700;
}

.wsp-inv-scan-torch-txt em {
    font-style: normal;
    font-size: 11px;
    opacity: 0.7;
}

.wsp-inv-scan-torch.is-on .wsp-inv-scan-torch-txt em {
    color: #2ec4b6;
    opacity: 1;
}

.wsp-inv-scan-torch-switch {
    width: 34px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    position: relative;
}

.wsp-inv-scan-torch-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.15s ease;
}

.wsp-inv-scan-torch.is-on .wsp-inv-scan-torch-switch {
    background: #2ec4b6;
}

.wsp-inv-scan-torch.is-on .wsp-inv-scan-torch-switch::after {
    transform: translateX(-14px);
}

.wsp-inv-scan-sheet {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
    background: #f3f5f8;
    color: #142033;
    border-radius: 22px 22px 0 0;
    margin-top: -10px;
    position: relative;
    z-index: 1;
    min-height: 0;
}

.wsp-inv-scan-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 32, 51, 0.06);
    min-height: 72px;
}

.wsp-inv-scan-product img,
.wsp-inv-scan-product .wsp-store-product-ph {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    flex: 0 0 auto;
    background: #e8edf3;
}

.wsp-inv-scan-product > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wsp-inv-scan-product strong {
    font-size: 15px;
    line-height: 1.35;
}

.wsp-inv-scan-product em {
    font-style: normal;
    font-size: 12px;
    color: #66758a;
    direction: ltr;
    text-align: right;
}

.wsp-inv-scan-actions {
    display: grid;
    grid-template-columns: 1fr 78px 1fr;
    gap: 10px;
    align-items: stretch;
}

.wsp-inv-scan-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 72px;
    border: 0;
    border-radius: 18px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.wsp-inv-scan-btn span {
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
}

.wsp-inv-scan-btn.is-add {
    background: linear-gradient(180deg, #31d0c0, #1fa896);
}

.wsp-inv-scan-btn.is-sub {
    background: linear-gradient(180deg, #ff6b6b, #e04141);
}

.wsp-inv-scan-btn:disabled {
    opacity: 0.45;
    box-shadow: none;
}

.wsp-inv-scan-qty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #dff7f3;
    color: #0f3d38;
}

.wsp-inv-scan-qty em {
    font-style: normal;
    font-size: 11px;
    opacity: 0.75;
}

.wsp-inv-scan-qty strong {
    font-size: 28px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.wsp-inv-scan-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: auto;
}

.wsp-inv-scan-key {
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    background: #e7ebf1;
    color: #142033;
    font-size: 22px;
    font-weight: 700;
}

.wsp-inv-scan-key:active {
    background: #d5dbe5;
}

.wsp-inv-scan-key.is-clear,
.wsp-inv-scan-key.is-back {
    font-size: 18px;
    color: #4a5a70;
}

.wsp-inv-scan-status {
    text-align: center;
    font-size: 13px;
    min-height: 18px;
    color: #4a5a70;
}

.wsp-inv-scan-status.is-error {
    color: #c62828;
}

.wsp-inv-scan-status.is-ok {
    color: #0f7a6b;
    font-weight: 700;
}

@media (max-height: 700px) {
    .wsp-inv-scan-stage {
        flex-basis: 32vh;
        min-height: 150px;
    }

    .wsp-inv-scan-btn {
        min-height: 62px;
    }

    .wsp-inv-scan-key {
        min-height: 46px;
    }
}


.wsp-store-inv {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.wsp-store-inv-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wsp-store-inv-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.wsp-store-inv-step {
    width: 46px;
    height: 44px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.wsp-store-inv-stepper input {
    width: 64px;
    min-width: 0;
    flex: 1 1 auto;
    height: 44px;
    border: 0;
    border-inline: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: inherit;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    -moz-appearance: textfield;
}

.wsp-store-inv-stepper input::-webkit-outer-spin-button,
.wsp-store-inv-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wsp-store-inv-scan {
    flex: 0 0 auto;
    min-width: 88px;
    height: 44px;
    margin: 0;
}

.wsp-store-inv-search input {
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    padding: 0 14px;
    font-size: 14px;
}

.wsp-store-inv-hint {
    margin: 0;
    font-size: 12px;
}

.wsp-store-inv-sticky {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0 10px;
    background: linear-gradient(180deg, rgba(16, 40, 72, 0.97) 70%, rgba(16, 40, 72, 0));
}

.wsp-store-inv-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) 44px 52px 52px;
    gap: 4px;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 800;
    opacity: 0.7;
    text-align: center;
}

.wsp-store-inv-cols span:nth-child(1),
.wsp-store-inv-cols span:nth-child(2) {
    text-align: right;
}

.wsp-store-inv-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wsp-store-inv-group-card {
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.wsp-store-inv-group-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 800;
}

.wsp-store-inv-product-block {
    padding: 8px 0 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wsp-store-inv-product-block:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.wsp-store-inv-product-block > .wsp-store-inv-product-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-bottom: 8px;
}

button.wsp-store-inv-product-head {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: right;
    cursor: pointer;
    font: inherit;
}

button.wsp-store-inv-product-head.is-openable:active,
button.wsp-store-inv-product-head.is-openable:focus-visible {
    opacity: 0.88;
}

.wsp-store-inv-product-open {
    flex: 0 0 auto;
    opacity: 0.45;
    font-size: 18px;
    line-height: 1;
    transform: scaleX(-1);
}

.wsp-store-inv-thumb {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    cursor: inherit;
    display: block;
}

.wsp-store-inv-thumb img,
.wsp-store-inv-product-block > .wsp-store-inv-product-head .wsp-store-product-ph {
    width: 44px;
    height: 44px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.wsp-store-inv-product-title {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.wsp-store-inv-dims {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wsp-store-inv-dim {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) 44px 52px 52px;
    gap: 4px;
    align-items: center;
    min-width: 0;
    padding: 8px 8px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    color: inherit;
}

.wsp-store-inv-dim:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.wsp-store-inv-dim.is-selected {
    border-color: rgba(46, 196, 182, 0.55);
    background: rgba(46, 196, 182, 0.14);
}

.wsp-store-inv-dim.is-off {
    opacity: 0.55;
}

.wsp-store-inv-dim-size,
.wsp-store-inv-dim-code {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    font-size: 12px;
    font-weight: 700;
}

.wsp-store-inv-dim-code {
    color: #5aa8ff;
    font-weight: 800;
}

.wsp-store-inv-dim-num {
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

.wsp-store-inv-status {
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.wsp-store-inv-status.is-ok {
    color: #2f9e5f;
}

.wsp-store-inv-status.is-low {
    color: #d64545;
}

.wsp-store-inv-status.is-order {
    color: #d64545;
}

.wsp-app[data-theme="light"] .wsp-store-inv-sticky,
html[data-wsp-theme="light"] .wsp-store-inv-sticky {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 78%, rgba(248, 250, 252, 0));
}

.wsp-app[data-theme="light"] .wsp-store-inv-stepper,
html[data-wsp-theme="light"] .wsp-store-inv-stepper,
.wsp-app[data-theme="light"] .wsp-store-inv-search input,
html[data-wsp-theme="light"] .wsp-store-inv-search input {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1f2937;
}

.wsp-app[data-theme="light"] .wsp-store-inv-stepper input,
html[data-wsp-theme="light"] .wsp-store-inv-stepper input {
    border-inline-color: rgba(0, 0, 0, 0.08);
    color: #1f2937;
}

.wsp-app[data-theme="light"] .wsp-store-inv-group-card,
html[data-wsp-theme="light"] .wsp-store-inv-group-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.wsp-app[data-theme="light"] .wsp-store-inv-product-block,
html[data-wsp-theme="light"] .wsp-store-inv-product-block {
    border-top-color: rgba(0, 0, 0, 0.06);
}

.wsp-app[data-theme="light"] .wsp-store-inv-dim,
html[data-wsp-theme="light"] .wsp-store-inv-dim {
    background: #f3f4f6;
}

.wsp-app[data-theme="light"] .wsp-store-inv-dim:nth-child(even),
html[data-wsp-theme="light"] .wsp-store-inv-dim:nth-child(even) {
    background: #fafafa;
}

.wsp-app[data-theme="light"] .wsp-store-inv-dim.is-selected,
html[data-wsp-theme="light"] .wsp-store-inv-dim.is-selected {
    background: rgba(14, 165, 160, 0.1);
    border-color: rgba(14, 165, 160, 0.35);
}

.wsp-app[data-theme="light"] .wsp-store-inv-dim-code,
html[data-wsp-theme="light"] .wsp-store-inv-dim-code {
    color: #2563eb;
}

/* Dark theme: store inventory contrast */
.wsp-app:not([data-theme="light"]) .wsp-store-inv-cols,
html:not([data-wsp-theme="light"]) .wsp-store-inv-cols {
    opacity: 1;
    color: rgba(198, 220, 228, 0.88);
}

.wsp-app:not([data-theme="light"]) .wsp-store-inv-search input,
html:not([data-wsp-theme="light"]) .wsp-store-inv-search input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(236, 244, 248, 0.95);
}

.wsp-app:not([data-theme="light"]) .wsp-store-inv-search input::placeholder,
html:not([data-wsp-theme="light"]) .wsp-store-inv-search input::placeholder {
    color: rgba(198, 220, 228, 0.55);
}

.wsp-app:not([data-theme="light"]) .wsp-store-inv-stepper,
html:not([data-wsp-theme="light"]) .wsp-store-inv-stepper {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

.wsp-app:not([data-theme="light"]) .wsp-store-inv-group-card,
html:not([data-wsp-theme="light"]) .wsp-store-inv-group-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.wsp-app:not([data-theme="light"]) .wsp-store-inv-dim,
html:not([data-wsp-theme="light"]) .wsp-store-inv-dim {
    background: rgba(0, 0, 0, 0.28);
}

.wsp-app:not([data-theme="light"]) .wsp-store-inv-dim:nth-child(even),
html:not([data-wsp-theme="light"]) .wsp-store-inv-dim:nth-child(even) {
    background: rgba(255, 255, 255, 0.04);
}

.wsp-app:not([data-theme="light"]) .wsp-store-inv-dim.is-selected,
html:not([data-wsp-theme="light"]) .wsp-store-inv-dim.is-selected {
    background: rgba(78, 205, 196, 0.14);
    border-color: rgba(78, 205, 196, 0.4);
}

.wsp-app:not([data-theme="light"]) .wsp-store-inv-dim-code,
html:not([data-wsp-theme="light"]) .wsp-store-inv-dim-code {
    color: #8ec5ff;
}

.wsp-app:not([data-theme="light"]) .wsp-store-inv-status.is-ok,
html:not([data-wsp-theme="light"]) .wsp-store-inv-status.is-ok {
    color: #7dffa8;
}

.wsp-app:not([data-theme="light"]) .wsp-store-inv-status.is-order,
html:not([data-wsp-theme="light"]) .wsp-store-inv-status.is-order {
    color: #ffb4a8;
}

.wsp-app:not([data-theme="light"]) .wsp-store-inv-thumb,
html:not([data-wsp-theme="light"]) .wsp-store-inv-thumb {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}


/* -- Store customers -- */
.wsp-store-customers {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
    padding: 0;
}

.wsp-store-customer.wsp-glass-card,
.wsp-app .wsp-store-customer.wsp-glass-card,
.wsp-store-customer {
    display: block;
    padding: 0 !important;
    margin: 0;
    border-radius: 18px;
    text-align: right;
    box-sizing: border-box;
    overflow: hidden;
}

.wsp-store-customer-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 18px !important;
    box-sizing: border-box;
}

.wsp-store-customer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.wsp-store-customer-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.wsp-store-customer-main strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.95);
}

.wsp-store-customer-main em {
    display: block;
    font-style: normal;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: rgba(142, 240, 232, 0.92);
}

.wsp-store-customer-addr {
    margin: 0;
    font-size: 12px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.62);
}

.wsp-store-customer-meta {
    display: inline-block;
    align-self: flex-start;
    margin-top: 2px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.wsp-store-customer-tools {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

.wsp-store-customer-edit,
.wsp-store-customer-del,
.wsp-store-customer-save,
.wsp-store-customer-cancel {
    margin: 0;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
}

.wsp-store-customer-edit,
.wsp-store-customer-save {
    border: 1px solid rgba(110, 220, 255, 0.4);
    background: rgba(30, 200, 192, 0.2);
    color: #8ef0e8;
}

.wsp-store-customer-del,
.wsp-store-customer-cancel {
    border: 1px solid rgba(255, 140, 140, 0.35);
    background: rgba(180, 40, 40, 0.18);
    color: #ffb4a8;
}

.wsp-store-customer.is-editing .wsp-store-customer-inner {
    gap: 12px;
}

.wsp-store-customer-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.wsp-store-customer-field span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.58);
}

.wsp-store-customer-field input,
.wsp-store-customer-field textarea,
.wsp-store-customer-field select {
    width: 100%;
    margin: 0;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.28);
    color: rgba(255, 255, 255, 0.94);
    font: inherit;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
}

.wsp-store-customer-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.wsp-store-customer-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.wsp-app[data-theme="light"] .wsp-store-customer-main strong,
html[data-wsp-theme="light"] .wsp-store-customer-main strong {
    color: #1a2b2c;
}

.wsp-app[data-theme="light"] .wsp-store-customer-main em,
html[data-wsp-theme="light"] .wsp-store-customer-main em {
    color: #0e8f97;
}

.wsp-app[data-theme="light"] .wsp-store-customer-addr,
html[data-wsp-theme="light"] .wsp-store-customer-addr {
    color: #5f7374;
}

.wsp-app[data-theme="light"] .wsp-store-customer-meta,
html[data-wsp-theme="light"] .wsp-store-customer-meta {
    color: #0b7a81;
    background: rgba(14, 143, 151, 0.1);
    border-color: rgba(14, 143, 151, 0.22);
}

.wsp-app[data-theme="light"] .wsp-store-customer-inner,
html[data-wsp-theme="light"] .wsp-store-customer-inner {
    padding: 20px 18px !important;
}

.wsp-app[data-theme="light"] .wsp-store-customer-field span,
html[data-wsp-theme="light"] .wsp-store-customer-field span {
    color: #5f7374;
}

.wsp-app[data-theme="light"] .wsp-store-customer-field input,
.wsp-app[data-theme="light"] .wsp-store-customer-field textarea,
.wsp-app[data-theme="light"] .wsp-store-customer-field select,
html[data-wsp-theme="light"] .wsp-store-customer-field input,
html[data-wsp-theme="light"] .wsp-store-customer-field textarea,
html[data-wsp-theme="light"] .wsp-store-customer-field select {
    background: #fff;
    border-color: #d7e0e0;
    color: #1a2b2c;
}

/* -- Store accounts (ledger) -- */
.wsp-store-accounts {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}
.wsp-store-accounts-toolbar input[type='search'] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    font-size: 14px;
}
.wsp-store-account-create {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    padding: 4px 12px 12px;
}
.wsp-store-account-create summary {
    cursor: pointer;
    padding: 10px 4px;
    font-weight: 600;
}
.wsp-store-account-create-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wsp-store-parties {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wsp-store-party {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    text-align: right;
    padding: 16px 16px !important;
    border: 0;
    cursor: pointer;
    color: inherit;
    background: inherit;
    border-radius: 16px;
}
.wsp-store-party-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wsp-store-party-main strong {
    font-size: 15px;
}
.wsp-store-party-main em {
    font-style: normal;
    font-size: 13px;
    color: rgba(142, 240, 232, 0.92);
}
.wsp-store-party-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}
.wsp-store-party-bal {
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
}
.wsp-store-party-bal.is-debtor {
    background: rgba(220, 80, 60, 0.2);
    color: #ffb4a8;
}
.wsp-store-party-bal.is-creditor {
    background: rgba(40, 160, 120, 0.22);
    color: #9ef0c8;
}
.wsp-store-party-bal.is-settled {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
}
.wsp-store-party-detail {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.wsp-store-party-back {
    align-self: flex-start;
}
.wsp-store-party-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px !important;
}
.wsp-store-party-summary em {
    font-style: normal;
    color: rgba(142, 240, 232, 0.92);
}
.wsp-store-party-summary-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
}
.wsp-store-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.wsp-store-account-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.wsp-store-account-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.wsp-store-account-section h4 {
    margin: 0 0 8px;
    font-size: 13px;
    opacity: 0.85;
}
.wsp-store-ledger {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wsp-store-ledger-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}
.wsp-store-ledger-row em {
    display: block;
    font-style: normal;
    font-size: 11px;
    opacity: 0.6;
}
.wsp-store-ledger-amt {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 12px;
}
.wsp-store-ledger-amt .is-debit { color: #ffb4a8; }
.wsp-store-ledger-amt .is-credit { color: #9ef0c8; }
.wsp-store-invoice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    padding: 10px 12px;
    margin-bottom: 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}
.wsp-store-statement-text {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 12px;
    line-height: 1.6;
    padding: 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    max-height: 280px;
    overflow: auto;
}
.wsp-app[data-theme='light'] .wsp-store-party-main em,
html[data-wsp-theme='light'] .wsp-store-party-main em,
.wsp-app[data-theme='light'] .wsp-store-party-summary em,
html[data-wsp-theme='light'] .wsp-store-party-summary em {
    color: #0b7a81;
}
.wsp-app[data-theme='light'] .wsp-store-accounts-toolbar input[type='search'],
html[data-wsp-theme='light'] .wsp-store-accounts-toolbar input[type='search'] {
    background: #fff;
    border-color: #d7e0e0;
    color: #1a2b2c;
}
.wsp-app[data-theme='light'] .wsp-store-party-bal.is-settled,
html[data-wsp-theme='light'] .wsp-store-party-bal.is-settled {
    background: rgba(14, 143, 151, 0.08);
    color: #3a5558;
}
.wsp-app[data-theme='light'] .wsp-store-statement-text,
html[data-wsp-theme='light'] .wsp-store-statement-text {
    background: #f4f7f7;
    color: #1a2b2c;
}

/* -- Store account tables -- */
.wsp-store-account-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.wsp-store-ledger-bleed {
    margin: 8px -16px 0;
    width: calc(100% + 32px);
    max-width: none;
}
.wsp-store-ledger-bleed-title {
    margin: 0;
    font-size: 13px;
    opacity: 0.85;
}
.wsp-store-ledger-bleed-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 16px 8px;
}
.wsp-store-ledger-excel-btn {
    flex: 0 0 auto;
    padding: 6px 12px;
    font-size: 12px;
}
.wsp-store-ledger-bleed-empty {
    margin: 0 16px;
}
.wsp-store-ledger-proof {
    text-align: center !important;
    width: 44px;
}
.wsp-store-proof-empty {
    opacity: 0.45;
}
.wsp-store-proof-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: rgba(142, 200, 255, 0.16);
    color: #8ec8ff;
    cursor: pointer;
}
.wsp-store-proof-btn:hover,
.wsp-store-proof-btn:focus-visible {
    background: rgba(142, 200, 255, 0.28);
}
.wsp-app[data-theme='light'] .wsp-store-proof-btn,
html[data-wsp-theme='light'] .wsp-store-proof-btn {
    background: rgba(14, 143, 151, 0.12);
    color: #0b7a81;
}
.wsp-store-proof-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.wsp-store-proof-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.72);
    cursor: pointer;
}
.wsp-store-proof-lightbox-panel {
    position: relative;
    z-index: 1;
    max-width: min(920px, 100%);
    max-height: min(88vh, 100%);
    border-radius: 16px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.wsp-store-proof-lightbox-panel img {
    display: block;
    max-width: 100%;
    max-height: min(88vh, 100%);
    object-fit: contain;
    background: #111;
}
.wsp-store-proof-lightbox-close {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.wsp-store-account-table-wrap.is-bleed {
    border-radius: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.wsp-store-ledger-pager.is-bleed {
    margin: 10px 16px 0;
}
.wsp-store-account-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 580px;
    font-size: 14px;
}
.wsp-store-account-table th,
.wsp-store-account-table td {
    padding: 12px 12px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: middle;
}
.wsp-store-account-table th {
    font-weight: 700;
    opacity: 0.85;
    white-space: nowrap;
    font-size: 13px;
}
.wsp-store-account-table tbody tr.wsp-store-account-row {
    cursor: pointer;
}
.wsp-store-account-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}
.wsp-store-account-code {
    display: block;
    margin-top: 2px;
    opacity: 0.55;
    font-size: 11px;
}
.wsp-store-invoice-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}
.wsp-store-invoice-link {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #8ef0e8;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}
.wsp-store-invoice-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.wsp-store-invoice-tools .wsp-desk-secondary {
    padding: 6px 10px;
    font-size: 11px;
}
.wsp-store-ledger-table td.is-debit { color: #ff5c4d; font-weight: 700; }
.wsp-store-ledger-table td.is-credit { color: #22c55e; font-weight: 700; }
.wsp-app[data-theme='light'] .wsp-store-ledger-table td.is-debit,
html[data-wsp-theme='light'] .wsp-store-ledger-table td.is-debit { color: #d32f2f; }
.wsp-app[data-theme='light'] .wsp-store-ledger-table td.is-credit,
html[data-wsp-theme='light'] .wsp-store-ledger-table td.is-credit { color: #1b7a3d; }
.wsp-app[data-theme='light'] .wsp-store-account-table-wrap,
html[data-wsp-theme='light'] .wsp-store-account-table-wrap {
    box-shadow: inset 0 0 0 1px #d7e0e0;
}
.wsp-app[data-theme='light'] .wsp-store-account-table-wrap.is-bleed,
html[data-wsp-theme='light'] .wsp-store-account-table-wrap.is-bleed {
    box-shadow: inset 0 1px 0 #d7e0e0;
}
.wsp-app[data-theme='light'] .wsp-store-account-table th,
.wsp-app[data-theme='light'] .wsp-store-account-table td,
html[data-wsp-theme='light'] .wsp-store-account-table th,
html[data-wsp-theme='light'] .wsp-store-account-table td {
    border-bottom-color: #e4ecec;
}
.wsp-app[data-theme='light'] .wsp-store-invoice-link,
html[data-wsp-theme='light'] .wsp-store-invoice-link {
    color: #0b7a81;
}

/* -- Store account inline party + ledger menu -- */
.wsp-store-parties-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wsp-store-party-block {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}
.wsp-store-party-block.is-open {
    box-shadow: inset 0 0 0 1px rgba(142, 240, 232, 0.35);
}
.wsp-store-party-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: right;
    cursor: pointer;
    font: inherit;
}
.wsp-store-party-row-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.wsp-store-party-row-main em,
.wsp-store-party-row-main small {
    font-style: normal;
    opacity: 0.7;
    font-size: 12px;
}
.wsp-store-party-row-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    opacity: 0.85;
}
.wsp-store-party-detail-inline {
    padding: 0 12px 14px;
}
.wsp-store-ledger-desc {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}
.wsp-store-invoice-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
}
.wsp-store-invoice-menu button {
    margin: 0;
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid rgba(142, 240, 232, 0.35);
    background: rgba(30, 200, 192, 0.16);
    color: #8ef0e8;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}
.wsp-store-invoice-view {
    width: 100%;
    margin-top: 4px;
}
.wsp-store-ledger-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    font-size: 12px;
}
.wsp-app[data-theme='light'] .wsp-store-party-block,
html[data-wsp-theme='light'] .wsp-store-party-block {
    background: #fff;
    box-shadow: inset 0 0 0 1px #d7e0e0;
}
.wsp-app[data-theme='light'] .wsp-store-invoice-menu,
html[data-wsp-theme='light'] .wsp-store-invoice-menu {
    background: #f4f7f7;
}
.wsp-app[data-theme='light'] .wsp-store-invoice-menu button,
html[data-wsp-theme='light'] .wsp-store-invoice-menu button {
    color: #0b7a81;
    border-color: rgba(14, 143, 151, 0.28);
    background: rgba(14, 143, 151, 0.08);
}

/* -- Store contacts (Google Contacts-like) -- */
.wsp-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.wsp-contacts-search input[type='search'] {
    width: 100%;
    border: 0;
    border-radius: 28px;
    padding: 14px 18px;
    font: inherit;
    background: rgba(255,255,255,0.08);
    color: inherit;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
.wsp-contacts-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}
.wsp-contacts-chip {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    background: rgba(255,255,255,0.06);
    color: inherit;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
.wsp-contacts-chip.is-active {
    background: rgba(120, 190, 255, 0.28);
    color: #d7ecff;
    box-shadow: none;
}
.wsp-contacts-favs-head {
    margin-bottom: 8px;
    font-size: 13px;
    opacity: 0.85;
}
.wsp-contacts-favs-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.wsp-contacts-fav {
    flex: 0 0 auto;
    width: 72px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font: inherit;
}
.wsp-contacts-fav em {
    font-style: normal;
    font-size: 11px;
    text-align: center;
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wsp-contacts-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    flex: 0 0 auto;
}
.wsp-contacts-avatar.is-lg {
    width: 96px;
    height: 96px;
    font-size: 40px;
}
.wsp-contacts-avatar.tone-0 { background: #7e57c2; }
.wsp-contacts-avatar.tone-1 { background: #5c6bc0; }
.wsp-contacts-avatar.tone-2 { background: #26a69a; }
.wsp-contacts-avatar.tone-3 { background: #ef6c00; }
.wsp-contacts-avatar.tone-4 { background: #ec407a; }
.wsp-contacts-avatar.tone-5 { background: #42a5f5; }
.wsp-contacts-list {
    display: flex;
    flex-direction: column;
}
.wsp-contacts-row-wrap {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.wsp-contacts-row-wrap.is-open {
    background: rgba(255,255,255,0.05);
}
.wsp-contacts-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 2px;
}
.wsp-contacts-row-body {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: right;
    font: inherit;
    cursor: pointer;
    padding: 0;
}
.wsp-contacts-row-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.wsp-contacts-row-main strong {
    font-size: 15px;
}
.wsp-contacts-row-main em {
    font-style: normal;
    font-size: 12px;
    opacity: 0.7;
}
.wsp-contacts-bal {
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}
.wsp-contacts-bal.is-pos { color: #2ee56b; }
.wsp-contacts-bal.is-neg { color: #ff5a4f; }
.wsp-contacts-bal.is-zero {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
}
.wsp-app[data-theme='light'] .wsp-contacts-bal.is-pos,
html[data-wsp-theme='light'] .wsp-contacts-bal.is-pos {
    color: #0a8f3d;
}
.wsp-app[data-theme='light'] .wsp-contacts-bal.is-neg,
html[data-wsp-theme='light'] .wsp-contacts-bal.is-neg {
    color: #c62828;
}
.wsp-app[data-theme='light'] .wsp-contacts-bal.is-zero,
html[data-wsp-theme='light'] .wsp-contacts-bal.is-zero {
    color: rgba(15, 40, 44, 0.45);
}
.wsp-jalali-date-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-align: right;
}
.wsp-jalali-date-trigger.has-value span {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.wsp-jalali-date-trigger.is-open {
    border-color: rgba(142, 200, 255, 0.55);
    box-shadow: 0 0 0 2px rgba(142, 200, 255, 0.18);
}
.wsp-app[data-theme='light'] .wsp-jalali-date-trigger,
html[data-wsp-theme='light'] .wsp-jalali-date-trigger {
    background: #fff;
    border-color: #d7e0e0;
    color: #0f282c;
}
.wsp-stmt-cal {
    margin: 4px 0 10px;
}
.wsp-contacts-call,
.wsp-contacts-call-mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #8ec8ff;
    background: transparent;
    font-size: 18px;
}
.wsp-contacts-call.is-disabled {
    opacity: 0.25;
}
.wsp-contacts-expand {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 8px 12px;
}
.wsp-contacts-expand-btn {
    border: 0;
    border-radius: 24px;
    padding: 12px 10px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: rgba(255,255,255,0.1);
}
.wsp-contacts-expand-btn.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}
.wsp-contacts-profile {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.wsp-contacts-profile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wsp-contacts-profile-bar-actions {
    display: flex;
    gap: 6px;
}
.wsp-contacts-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,0.08);
    color: inherit;
    font-size: 18px;
    cursor: pointer;
}
.wsp-contacts-icon-btn.is-on {
    color: #ffc107;
}
.wsp-contacts-profile-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.wsp-contacts-profile-hero h2 {
    margin: 0;
    font-size: 24px;
}
.wsp-contacts-quick {
    display: flex;
    justify-content: center;
    gap: 18px;
}
.wsp-contacts-quick-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(120, 190, 255, 0.22);
    color: #d7ecff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}
.wsp-contacts-quick-btn.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}
.wsp-contacts-card {
    border-radius: 16px;
    padding: 14px;
    background: rgba(255,255,255,0.05);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.wsp-contacts-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.wsp-contacts-info-row strong {
    display: block;
    font-size: 16px;
}
.wsp-contacts-info-row em {
    font-style: normal;
    font-size: 12px;
    opacity: 0.7;
}
.wsp-contacts-addr {
    margin: 10px 0 0;
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.5;
}
.wsp-app[data-theme='light'] .wsp-contacts-search input[type='search'],
html[data-wsp-theme='light'] .wsp-contacts-search input[type='search'] {
    background: #eef3f7;
    color: #1a2a2a;
    box-shadow: none;
}
.wsp-app[data-theme='light'] .wsp-contacts-chip,
html[data-wsp-theme='light'] .wsp-contacts-chip {
    background: #fff;
    color: #243636;
    box-shadow: inset 0 0 0 1px #d5dee6;
}
.wsp-app[data-theme='light'] .wsp-contacts-chip.is-active,
html[data-wsp-theme='light'] .wsp-contacts-chip.is-active {
    background: #d6e8ff;
    color: #0b57d0;
    box-shadow: none;
}
.wsp-app[data-theme='light'] .wsp-contacts-row-wrap,
html[data-wsp-theme='light'] .wsp-contacts-row-wrap {
    border-bottom-color: #e6ecec;
}
.wsp-app[data-theme='light'] .wsp-contacts-row-wrap.is-open,
html[data-wsp-theme='light'] .wsp-contacts-row-wrap.is-open {
    background: #f1f3f4;
}
.wsp-app[data-theme='light'] .wsp-contacts-expand-btn,
html[data-wsp-theme='light'] .wsp-contacts-expand-btn {
    background: #e8eaed;
    color: #1a2a2a;
}
.wsp-app[data-theme='light'] .wsp-contacts-card,
html[data-wsp-theme='light'] .wsp-contacts-card {
    background: #fff;
    box-shadow: inset 0 0 0 1px #dde5e5;
}
.wsp-app[data-theme='light'] .wsp-contacts-call,
.wsp-app[data-theme='light'] .wsp-contacts-call-mini,
html[data-wsp-theme='light'] .wsp-contacts-call,
html[data-wsp-theme='light'] .wsp-contacts-call-mini {
    color: #0b57d0;
}
.wsp-app[data-theme='light'] .wsp-contacts-quick-btn,
html[data-wsp-theme='light'] .wsp-contacts-quick-btn {
    background: #d6e8ff;
    color: #0b57d0;
}
.wsp-app[data-theme='light'] .wsp-contacts-icon-btn,
html[data-wsp-theme='light'] .wsp-contacts-icon-btn {
    background: #eef3f7;
    color: #243636;
}


/* Native APK update prompt */
.wsp-native-update-overlay{
  position:fixed;inset:0;z-index:12000;display:flex;align-items:center;justify-content:center;
  padding:22px 16px;background:rgba(4,10,22,.72);backdrop-filter:blur(6px);
}
.wsp-native-update-card{
  width:100%;max-width:420px;border-radius:18px;padding:22px 18px 16px;
  background:#121a2e;color:#e8eefc;border:1px solid rgba(143,227,218,.28);
  box-shadow:0 18px 50px rgba(0,0,0,.45);
}
.wsp-native-update-card strong{display:block;font-size:18px;margin:0 0 10px}
.wsp-native-update-card p{margin:0 0 12px;line-height:1.75;font-size:14px;color:rgba(232,238,252,.88)}
.wsp-native-update-meta{font-size:13px!important;color:#8fe3da!important}
.wsp-native-update-hint{font-size:12px!important;color:rgba(232,238,252,.55)!important;margin-top:10px!important}
.wsp-native-update-card .wsp-desk-primary,
.wsp-native-update-card .wsp-desk-secondary{width:100%;margin:0 0 8px}
.wsp-app[data-theme="light"] .wsp-native-update-card{
  background:#fff;color:#102428;border-color:#d5e3e3;
}
.wsp-app[data-theme="light"] .wsp-native-update-card p{color:#3d5556}
.wsp-app[data-theme="light"] .wsp-native-update-meta{color:#0b7a81!important}
