@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/PeydaWeb-Thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/peydaWeb-extralight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/peydaWeb-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/PeydaWeb-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/PeydaWeb-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/PeydaWeb-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/PeydaWeb-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/PeydaWeb-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/PeydaWeb-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NabzDigits";
  src: url("../fonts/peyda/PeydaWeb-Thin-Digits.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0660-0669, U+06F0-06F9;
}
@font-face {
  font-family: "NabzDigits";
  src: url("../fonts/peyda/peydaWeb-extralight-Digits.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0660-0669, U+06F0-06F9;
}
@font-face {
  font-family: "NabzDigits";
  src: url("../fonts/peyda/peydaWeb-light-Digits.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0660-0669, U+06F0-06F9;
}
@font-face {
  font-family: "NabzDigits";
  src: url("../fonts/peyda/PeydaWeb-Regular-Digits.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0660-0669, U+06F0-06F9;
}
@font-face {
  font-family: "NabzDigits";
  src: url("../fonts/peyda/PeydaWeb-Medium-Digits.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0660-0669, U+06F0-06F9;
}
@font-face {
  font-family: "NabzDigits";
  src: url("../fonts/peyda/PeydaWeb-SemiBold-Digits.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0660-0669, U+06F0-06F9;
}
@font-face {
  font-family: "NabzDigits";
  src: url("../fonts/peyda/PeydaWeb-Bold-Digits.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0660-0669, U+06F0-06F9;
}
@font-face {
  font-family: "NabzDigits";
  src: url("../fonts/peyda/PeydaWeb-ExtraBold-Digits.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0660-0669, U+06F0-06F9;
}
@font-face {
  font-family: "NabzDigits";
  src: url("../fonts/peyda/PeydaWeb-Black-Digits.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0660-0669, U+06F0-06F9;
}

/* Nabz Cashback — free storefront wallet and its admin preview. */
/* Render digits in Persian without changing form values or copied data. */
.nbz-cashback-offer,
.nbz-cashback-badge,
.nbz-cashback-wallet,
.nbz-cashback-balance-shortcode,
.nbz-cashback-account,
.nbz-cashback-account-summary,
.nbz-cashback-history,
.nbz-cashback-modal,
.nbz-cashback-block-slot,
.nbz-cashback-empty {
    --nbz-cashback-black: #0a0a0a;
    --nbz-cashback-ink: #18181b;
    --nbz-cashback-muted: #71717a;
    --nbz-cashback-border: #e4e4e7;
    --nbz-cashback-soft: #f4f4f5;
    --nbz-cashback-success: #15803d;
    --nbz-cashback-success-soft: #f0fdf4;
    --nbz-cashback-warning: #a16207;
    --nbz-cashback-warning-soft: #fffbeb;
    box-sizing: border-box;
    direction: rtl;
    color: var(--nbz-cashback-ink);
    font-family: 'NabzDigits', 'Peyda', 'IRANSans', Tahoma, system-ui, sans-serif;
    text-align: right;
}

.nbz-cashback-offer *,
.nbz-cashback-badge *,
.nbz-cashback-wallet *,
.nbz-cashback-balance-shortcode *,
.nbz-cashback-account *,
.nbz-cashback-account-summary *,
.nbz-cashback-history *,
.nbz-cashback-modal *,
.nbz-cashback-block-slot *,
.nbz-cashback-admin * {
    box-sizing: border-box;
    font-family: inherit;
}

.nbz-cashback-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    padding: 6px 10px;
    color: #fff;
    background: var(--nbz-cashback-black);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .14);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
}

.nbz-cashback-badge .nbz-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.nbz-cashback-badge.nbz-cashback-badge--loop {
    position: relative !important;
    inset: auto !important;
    z-index: 3;
    display: inline-flex !important;
    float: none !important;
    inline-size: auto !important;
    block-size: auto !important;
    min-inline-size: 0 !important;
    min-block-size: 0 !important;
    max-inline-size: calc(100% - 16px) !important;
    margin: 8px 8px 6px;
    padding: 6px 9px !important;
    border-radius: 10px !important;
    transform: none !important;
    white-space: normal;
    text-align: start;
    line-height: 1.6;
}

.nbz-cashback-badge .nbz-cashback-badge__label {
    position: static !important;
    inset: auto !important;
    display: inline !important;
    float: none !important;
    inline-size: auto !important;
    block-size: auto !important;
    min-inline-size: 0 !important;
    min-block-size: 0 !important;
    border-radius: 0 !important;
    overflow-wrap: anywhere;
}

.nbz-cashback-cart-snapshot[hidden] {
    display: none !important;
}

.nbz-cashback-offer {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    margin: 15px 0;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--nbz-cashback-border);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .055);
    line-height: 1.55;
}

.nbz-cashback-offer__icon,
.nbz-cashback-wallet__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: #fff;
    background: var(--nbz-cashback-black);
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .16);
}

.nbz-cashback-offer__icon .nbz-icon,
.nbz-cashback-wallet__mark .nbz-icon {
    width: 21px;
    height: 21px;
}

.nbz-cashback-offer__copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.nbz-cashback-offer__copy strong {
    color: var(--nbz-cashback-ink);
    font-size: 14px;
    font-weight: 780;
}

.nbz-cashback-offer__copy small {
    color: var(--nbz-cashback-muted);
    font-size: 11.5px;
    font-weight: 450;
}

.nbz-cashback-wallet {
    position: relative;
    display: grid;
    grid-template-columns: minmax(175px, .75fr) minmax(220px, 1.5fr) auto;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin: 0 0 22px;
    padding: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--nbz-cashback-border);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .07);
    line-height: 1.7;
}

.nbz-cashback-wallet::before {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 4px;
    content: '';
    background: var(--nbz-cashback-black);
}

.nbz-cashback-wallet__head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.nbz-cashback-wallet__head > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.nbz-cashback-wallet__head small {
    color: var(--nbz-cashback-muted);
    font-size: 11px;
    font-weight: 600;
}

.nbz-cashback-wallet__head strong {
    color: var(--nbz-cashback-black);
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 850;
    white-space: nowrap;
}

.nbz-cashback-wallet__main {
    min-width: 0;
}

.nbz-cashback-wallet__main > strong {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
}

.nbz-cashback-wallet__main p {
    margin: 0;
    color: #52525b;
    font-size: 12.5px;
}

.nbz-cashback-wallet__main > small {
    display: block;
    margin-top: 3px;
    color: var(--nbz-cashback-muted);
    font-size: 11px;
}

.nbz-cashback-wallet__applied,
.nbz-cashback-wallet__expiry {
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 8px;
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 650;
}

.nbz-cashback-wallet__applied {
    color: var(--nbz-cashback-success);
    background: var(--nbz-cashback-success-soft);
}

.nbz-cashback-wallet__expiry {
    color: var(--nbz-cashback-warning);
    background: var(--nbz-cashback-warning-soft);
}

.nbz-cashback-wallet__applied .nbz-icon,
.nbz-cashback-wallet__expiry .nbz-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

.nbz-cashback-wallet__action {
    display: flex;
    justify-content: flex-end;
}

.nbz-cashback-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0;
    padding: 9px 17px;
    color: #fff !important;
    background: var(--nbz-cashback-black) !important;
    border: 1px solid var(--nbz-cashback-black) !important;
    border-radius: 11px;
    box-shadow: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.nbz-cashback-button:hover {
    color: #fff !important;
    background: #27272a !important;
    box-shadow: 0 7px 20px rgba(0, 0, 0, .17);
    transform: translateY(-1px);
}

.nbz-cashback-button--ghost {
    color: var(--nbz-cashback-ink) !important;
    background: #fff !important;
    border-color: #d4d4d8 !important;
}

.nbz-cashback-button--ghost:hover {
    color: var(--nbz-cashback-black) !important;
    background: var(--nbz-cashback-soft) !important;
}

.nbz-cashback-button:focus-visible,
.nbz-cashback-modal__close:focus-visible,
.nbz-cashback-modal__later:focus-visible,
.nbz-cashback-account-summary__link:focus-visible {
    outline: 3px solid rgba(10, 10, 10, .24);
    outline-offset: 3px;
}

.nbz-cashback-button[aria-busy='true'] {
    cursor: wait;
    opacity: .65;
    pointer-events: none;
}

.nbz-cashback-wallet--guest {
    grid-template-columns: auto 1fr auto;
}

.nbz-cashback-block-slot {
    display: block;
    width: 100%;
    margin-bottom: 22px;
}

.nbz-cashback-block-slot .nbz-cashback-wallet {
    margin-bottom: 0;
}

.nbz-cashback-totals-row td strong {
    display: block;
    color: var(--nbz-cashback-success, #15803d);
}

.nbz-cashback-totals-row td small {
    display: block;
    margin-top: 3px;
    color: #71717a;
    font-size: 10px;
    font-weight: 450;
}

.nbz-cashback-balance-shortcode {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--nbz-cashback-border);
    border-radius: 10px;
}

.nbz-cashback-balance-shortcode small {
    color: var(--nbz-cashback-muted);
}

.nbz-cashback-balance-shortcode strong {
    color: var(--nbz-cashback-success);
}

.nbz-cashback-account-summary {
    margin: 24px 0;
}

.nbz-cashback-account-summary .nbz-cashback-wallet {
    margin-bottom: 8px;
}

.nbz-cashback-account-summary__link {
    display: inline-flex;
    color: var(--nbz-cashback-ink) !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    border-bottom: 1px solid currentColor;
}

.nbz-cashback-account {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nbz-cashback-account__header {
    position: relative;
    padding: 24px 26px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #0a0a0a, #27272a);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}

.nbz-cashback-account__header::after {
    position: absolute;
    top: -80px;
    left: -35px;
    width: 230px;
    height: 230px;
    content: '';
    background: radial-gradient(circle, rgba(255, 255, 255, .1), transparent 65%);
}

.nbz-cashback-account__header span {
    color: rgba(255, 255, 255, .66);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
}

.nbz-cashback-account__header h2 {
    margin: 3px 0 4px;
    color: #fff;
    font-size: 22px;
    font-weight: 850;
}

.nbz-cashback-account__header p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
}

.nbz-cashback-history {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--nbz-cashback-border);
    border-radius: 18px;
}

.nbz-cashback-history__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--nbz-cashback-border);
}

.nbz-cashback-history__head span,
.nbz-cashback-history__head small {
    color: var(--nbz-cashback-muted);
    font-size: 10px;
}

.nbz-cashback-history__head h3 {
    margin: 2px 0 0;
    color: var(--nbz-cashback-ink);
    font-size: 16px;
}

.nbz-cashback-history__table-wrap {
    overflow-x: auto;
}

.nbz-cashback-history table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    font-size: 12px;
}

.nbz-cashback-history th,
.nbz-cashback-history td {
    padding: 13px 18px;
    text-align: right;
    border: 0;
    border-bottom: 1px solid #f1f1f2;
}

.nbz-cashback-history th {
    color: var(--nbz-cashback-muted);
    background: #fafafa;
    font-size: 10px;
    font-weight: 650;
}

.nbz-cashback-history tbody tr:last-child td {
    border-bottom: 0;
}

.nbz-cashback-history__type {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    color: #3f3f46;
    background: #f4f4f5;
    font-size: 10px;
    font-weight: 700;
}

.nbz-cashback-history__type--earned,
.nbz-cashback-history__type--restored {
    color: var(--nbz-cashback-success);
    background: var(--nbz-cashback-success-soft);
}

.nbz-cashback-history__type--expired {
    color: var(--nbz-cashback-warning);
    background: var(--nbz-cashback-warning-soft);
}

.nbz-cashback-history__amount {
    white-space: nowrap;
}

.nbz-cashback-history__amount--plus {
    color: var(--nbz-cashback-success);
}

.nbz-cashback-history__amount--minus {
    color: #52525b;
}

.nbz-cashback-empty {
    padding: 24px;
    color: var(--nbz-cashback-muted);
    background: #fafafa;
    border: 1px dashed #d4d4d8;
    border-radius: 12px;
    font-size: 12px;
    text-align: center;
}

.nbz-cashback-detached-form {
    display: none !important;
}

.nbz-cashback-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .2s ease;
}

.nbz-cashback-modal[hidden] {
    display: none !important;
}

.nbz-cashback-modal.is-open {
    opacity: 1;
}

.nbz-cashback-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 11, .62);
    backdrop-filter: blur(5px);
}

.nbz-cashback-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 470px);
    padding: 34px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .3);
    text-align: center;
    transform: translateY(12px) scale(.98);
    transition: transform .24s cubic-bezier(.2, .8, .2, 1);
}

.nbz-cashback-modal.is-open .nbz-cashback-modal__dialog {
    transform: none;
}

.nbz-cashback-modal .nbz-cashback-modal__dialog > button.nbz-cashback-modal__close {
    position: absolute !important;
    z-index: 2;
    inset: 14px auto auto 14px !important;
    display: inline-grid;
    width: 34px !important;
    height: 34px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 34px;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    float: none !important;
    place-items: center;
    color: #52525b;
    background: #f4f4f5;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.nbz-cashback-modal__medal {
    position: relative;
    display: grid;
    width: 82px;
    height: 82px;
    margin: 0 auto 14px;
    place-items: center;
    color: #fff;
    background: var(--nbz-cashback-black);
    border: 7px solid #f4f4f5;
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.nbz-cashback-modal__medal .nbz-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    opacity: .13;
}

.nbz-cashback-modal__medal span {
    position: relative;
    font-size: 20px;
    font-weight: 900;
}

.nbz-cashback-modal__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--nbz-cashback-success);
    font-size: 10px;
    font-weight: 800;
}

.nbz-cashback-modal__dialog h2 {
    margin: 0 0 8px;
    color: var(--nbz-cashback-black);
    font-size: clamp(20px, 5vw, 26px);
    font-weight: 900;
    line-height: 1.45;
}

.nbz-cashback-modal__dialog > p {
    margin: 0 auto 20px;
    color: #52525b;
    font-size: 12.5px;
    line-height: 1.9;
}

.nbz-cashback-modal__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin: 0 0 20px;
}

.nbz-cashback-modal__steps span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 5px;
    color: #52525b;
    background: #fafafa;
    border: 1px solid #ededee;
    border-radius: 10px;
    font-size: 9.5px;
    font-weight: 650;
}

.nbz-cashback-modal__steps i {
    display: inline-grid;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    place-items: center;
    color: #fff;
    background: var(--nbz-cashback-black);
    border-radius: 50%;
    font-size: 9px;
    font-style: normal;
}

.nbz-cashback-modal__dialog > .nbz-cashback-button {
    width: 100%;
}

.nbz-cashback-modal__later {
    margin: 9px 0 0;
    padding: 5px 10px;
    color: #71717a;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 11px;
}

.nbz-cashback-modal-open {
    overflow: hidden !important;
}

/* Admin additions: base layout and controls remain owned by admin.css. */
.nbz-cashback-admin {
    font-family: 'NabzDigits', 'Peyda', 'IRANSans', Tahoma, system-ui, sans-serif;
}

.nbz-cashback-admin .ss-tabs-wrap {
    padding: 20px 24px 24px;
}

.nbz-cashback-admin .ss-tabs {
    margin-bottom: 24px;
}

.nbz-cashback-admin__pro {
    display: inline-flex;
    padding: 1px 6px;
    color: #fff;
    background: #7c3aed;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .04em;
}

.nbz-cashback-admin__columns {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr);
    align-items: start;
    gap: 18px;
}

.nbz-cashback-admin__inner-card {
    margin: 0;
    border-color: #e4e4e7;
    box-shadow: none;
}

.nbz-cashback-admin__dependent {
    position: relative;
    min-inline-size: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.nbz-cashback-admin__dependent.is-disabled {
    opacity: 1;
}

.nbz-cashback-admin__dependent.is-locked > .ss-card__lock {
    display: flex;
}

.nbz-cashback-admin__dependent > .ss-card__lock[hidden] {
    display: none;
}

.nbz-cashback-admin__dependent.is-locked > .nbz-cashback-admin__dependent-content {
    filter: blur(2px);
    opacity: .6;
    pointer-events: none;
    user-select: none;
}

.nbz-cashback-admin__switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px dashed #e4e4e7;
}

.nbz-cashback-admin__switch-row:first-child {
    padding-top: 0;
}

.nbz-cashback-admin__switch-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.nbz-cashback-admin__switch-row strong {
    display: block;
    color: #18181b;
    font-size: 13px;
}

.nbz-cashback-admin__switch-row p {
    margin: 3px 0 0;
    color: #71717a;
    font-size: 11.5px;
}

.nbz-cashback-admin__switch-row .ss-switch input[type='checkbox']:disabled,
.nbz-cashback-admin__widget-card .ss-switch input[type='checkbox']:disabled {
    cursor: not-allowed;
}

/* A disabled dependent switch must not look enabled just because its saved
 * value is still checked. Keep the configured value intact, but make the
 * unavailable state unmistakable until the main cashback switch is enabled. */
.nbz-cashback-admin .ss-switch input[type='checkbox']:disabled,
.nbz-cashback-admin .ss-switch input[type='checkbox']:disabled:checked {
    background: #e4e4e7 !important;
    border-color: #d4d4d8 !important;
    cursor: not-allowed;
    opacity: .9;
}

.nbz-cashback-admin .ss-switch input[type='checkbox']:disabled::after {
    background: #a1a1aa;
    box-shadow: 0 0 0 1px rgba(63, 63, 70, .12);
}

.nbz-cashback-admin__dependent.is-disabled .ss-switch__label,
.nbz-cashback-admin__widget-card.is-disabled .ss-switch__label {
    color: #a1a1aa;
}

.nbz-cashback-admin .ss-field input:disabled,
.nbz-cashback-admin .ss-field textarea:disabled {
    color: #a1a1aa !important;
    background: #f4f4f5 !important;
    cursor: not-allowed;
}

.nbz-cashback-admin__dependent.is-disabled .ss-switch,
.nbz-cashback-admin__dependent.is-disabled input:disabled,
.nbz-cashback-admin__dependent.is-disabled select:disabled,
.nbz-cashback-admin__dependent.is-disabled textarea:disabled,
.nbz-cashback-admin__dependent.is-disabled .button:disabled {
    cursor: not-allowed;
}

.nbz-cashback-admin__dependent.is-disabled .button:disabled {
    pointer-events: none;
}

.nbz-cashback-admin__widget-card.is-disabled {
    cursor: not-allowed;
}

.nbz-cashback-admin__input-suffix {
    display: flex;
    align-items: stretch;
    width: min(100%, 280px);
    min-height: 40px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d4d4d8;
    border-radius: 10px;
    box-sizing: border-box;
}

.nbz-cashback-admin__input-suffix:focus-within {
    border-color: #0a0a0a;
    box-shadow: 0 0 0 2px rgba(10, 10, 10, .08);
}

.nbz-cashback-admin .nbz-cashback-admin__input-suffix input[type='number'] {
    flex: 1 1 auto;
    width: 0 !important;
    min-width: 0;
    max-width: none;
    min-height: 40px;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.nbz-cashback-admin__input-suffix > span {
    display: inline-grid;
    flex: 0 0 auto;
    min-width: 48px;
    padding: 0 10px;
    place-items: center;
    color: #71717a;
    background: #f4f4f5;
    border-inline-start: 1px solid #e4e4e7;
    font-size: 11px;
}

.nbz-cashback-admin__dependent.is-disabled .nbz-cashback-admin__input-suffix {
    background: #f4f4f5;
}

.nbz-cashback-admin__calculator {
    position: sticky;
    top: 48px;
    padding: 24px;
    color: #fff;
    background: linear-gradient(145deg, #09090b, #27272a);
    border-radius: 18px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, .16);
}

.nbz-cashback-admin__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, .58);
    font-size: 10px;
    font-weight: 650;
}

.nbz-cashback-admin__calculator > strong {
    display: block;
    color: #fff;
    font-size: 14px;
}

.nbz-cashback-admin__calc-value {
    margin: 14px 0 2px;
    color: #4ade80;
    font-size: 26px;
    font-weight: 900;
}

.nbz-cashback-admin__calculator p {
    margin: 0;
    color: rgba(255, 255, 255, .62);
    font-size: 10.5px;
}

.nbz-cashback-admin__timeline {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5px;
    margin: 20px 0 7px;
}

.nbz-cashback-admin__timeline i {
    height: 3px;
    background: rgba(255, 255, 255, .2);
    border-radius: 999px;
}

.nbz-cashback-admin__timeline i:first-child,
.nbz-cashback-admin__timeline i:nth-child(2) {
    background: #4ade80;
}

.nbz-cashback-admin__calculator ol {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 8.5px;
    list-style: none;
}

.nbz-cashback-admin__widget-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.nbz-cashback-admin__widget-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 11px;
    min-height: 150px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 14px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.nbz-cashback-admin__widget-card:has(input:checked) {
    border-color: #a1a1aa;
    box-shadow: inset 0 0 0 1px #e4e4e7;
}

.nbz-cashback-admin__widget-icon {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #18181b;
    background: #f4f4f5;
    border-radius: 10px;
}

.nbz-cashback-admin__widget-icon .nbz-icon {
    width: 18px;
    height: 18px;
}

.nbz-cashback-admin__widget-card h3 {
    margin: 1px 0 4px !important;
    font-size: 13px !important;
}

.nbz-cashback-admin__widget-card p {
    margin: 0;
    color: #71717a;
    font-size: 10.5px;
    line-height: 1.7;
}

.nbz-cashback-admin__widget-card .ss-switch {
    position: absolute;
    right: 16px;
    bottom: 14px;
}

.nbz-cashback-admin .ss-field input[type='text'],
.nbz-cashback-admin .ss-field textarea {
    width: 100%;
    max-width: none;
}

.nbz-cashback-admin__preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 22px;
    padding: 18px;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
}

.nbz-cashback-admin__preview-product,
.nbz-cashback-admin__preview-wallet,
.nbz-cashback-admin__preview-modal {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 145px;
    padding: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 13px;
}

.nbz-cashback-admin__preview-product .nbz-cashback-badge {
    position: absolute;
    top: 13px;
    right: 13px;
}

.nbz-cashback-admin__preview-product strong {
    font-size: 12px;
}

.nbz-cashback-admin__preview-product > span:last-child,
.nbz-cashback-admin__preview-wallet small {
    color: #71717a;
    font-size: 10px;
}

.nbz-cashback-admin__preview-wallet strong {
    color: #15803d;
    font-size: 19px;
}

.nbz-cashback-admin__preview-wallet p {
    margin: 8px 0 0;
    color: #52525b;
    font-size: 10px;
}

.nbz-cashback-admin__preview-modal {
    grid-column: 1 / -1;
    min-height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.nbz-cashback-admin__preview-modal > span {
    display: inline-grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    color: #fff;
    background: #0a0a0a;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 850;
}

.nbz-cashback-admin__preview-modal strong {
    font-size: 12px;
}

.nbz-cashback-admin__preview-modal p {
    margin: 2px 0 0;
    color: #71717a;
    font-size: 10px;
}

.nbz-cashback-admin__free-note {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 16px 18px;
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
}

.nbz-cashback-admin__free-note > div {
    display: inline-grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    color: #fff;
    background: #15803d;
    border-radius: 11px;
}

.nbz-cashback-admin__free-note p {
    margin: 0;
    font-size: 11.5px;
}

.nbz-cashback-admin__sms-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.nbz-cashback-admin__sms-card {
    padding: 15px;
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 14px;
}

.nbz-cashback-admin__sms-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 9px;
    margin-bottom: 13px;
}

.nbz-cashback-admin__sms-card header span:not(.ss-switch__label) {
    color: #7c3aed;
    font-size: 8.5px;
    font-weight: 750;
}

.nbz-cashback-admin__sms-card h3 {
    margin: 2px 0 0 !important;
    font-size: 12px !important;
}

.nbz-cashback-admin__phone {
    min-height: 145px;
    padding: 13px;
    color: #27272a;
    background: #f4f4f5;
    border-radius: 11px;
}

.nbz-cashback-admin__phone > span,
.nbz-cashback-admin__phone time {
    color: #71717a;
    font-size: 8px;
}

.nbz-cashback-admin__phone p {
    margin: 8px 0;
    padding: 9px 10px;
    background: #fff;
    border-radius: 9px 9px 2px 9px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
    font-size: 9.5px;
    line-height: 1.8;
}

.nbz-cashback-admin__sms-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e4e4e7;
}

.nbz-cashback-admin__sms-footer p {
    margin: 0;
    color: #71717a;
    font-size: 10.5px;
}

@media (max-width: 960px) {
    .nbz-cashback-wallet {
        grid-template-columns: 1fr auto;
    }

    .nbz-cashback-wallet__main {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .nbz-cashback-admin__columns {
        grid-template-columns: 1fr;
    }

    .nbz-cashback-admin__calculator {
        position: static;
    }

    .nbz-cashback-admin__widget-grid,
    .nbz-cashback-admin__sms-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .nbz-cashback-wallet,
    .nbz-cashback-wallet--guest {
        grid-template-columns: 1fr;
        gap: 13px;
        padding: 17px;
        border-radius: 15px;
    }

    .nbz-cashback-wallet__main {
        grid-column: auto;
        grid-row: auto;
    }

    .nbz-cashback-wallet__action,
    .nbz-cashback-wallet__action .nbz-cashback-button,
    .nbz-cashback-wallet--guest > .nbz-cashback-button {
        width: 100%;
    }

    .nbz-cashback-offer {
        align-items: flex-start;
        padding: 13px;
    }

    .nbz-cashback-modal {
        align-items: end;
        padding: 10px;
    }

    .nbz-cashback-modal__dialog {
        max-height: calc(100dvh - 20px);
        padding: 28px 20px 22px;
        overflow-y: auto;
        border-radius: 22px 22px 14px 14px;
    }

    .nbz-cashback-modal__steps {
        grid-template-columns: 1fr;
    }

    .nbz-cashback-modal__steps span {
        justify-content: flex-start;
        padding-inline: 12px;
    }

    .nbz-cashback-history thead {
        display: none;
    }

    .nbz-cashback-history tbody,
    .nbz-cashback-history tr,
    .nbz-cashback-history td {
        display: block;
        width: 100%;
    }

    .nbz-cashback-history tr {
        padding: 10px 15px;
        border-bottom: 1px solid #e4e4e7;
    }

    .nbz-cashback-history td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        padding: 7px 0;
        border: 0;
    }

    .nbz-cashback-history td::before {
        content: attr(data-label);
        color: #71717a;
        font-size: 10px;
    }

    .nbz-cashback-admin .ss-tabs-wrap {
        padding: 14px;
    }

    .nbz-cashback-admin__widget-grid,
    .nbz-cashback-admin__sms-grid,
    .nbz-cashback-admin__preview {
        grid-template-columns: 1fr;
    }

    .nbz-cashback-admin__preview-modal {
        grid-column: auto;
    }

    .nbz-cashback-admin__switch-row,
    .nbz-cashback-admin__sms-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nbz-cashback-button,
    .nbz-cashback-modal,
    .nbz-cashback-modal__dialog,
    .nbz-cashback-admin__widget-card {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
