:root {
    --j2t-ink: #17233d;
    --j2t-muted: #64748b;
    --j2t-primary: #5b3df5;
    --j2t-primary-dark: #4328d7;
    --j2t-secondary: #0f9f8f;
    --j2t-accent: #ffcf5a;
    --j2t-surface: #ffffff;
    --j2t-soft: #f6f7ff;
    --j2t-border: #e4e7f2;
    --j2t-shadow: 0 18px 48px rgba(34, 30, 84, .10);
}

/* Product reward message -------------------------------------------------- */
.product-points-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    max-width: 100%;
    margin: 10px auto 8px;
    padding: 6px 10px;
    border: 1px solid #ddd8ff;
    border-radius: 999px;
    background: #f7f5ff;
    color: #4c456c;
    font-size: .78rem !important;
    font-weight: 550;
    line-height: 1.35;
    text-align: center;
}

.woocommerce ul.products li.product .product-points-value,
.wc-block-grid__product .product-points-value {
    display: flex;
    width: fit-content;
}

.j2t-product-rewards {
    display: flex;
    clear: both;
    width: 100%;
    margin: 10px 0 13px;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    color: var(--j2t-ink);
    text-align: center;
}

.j2t-product-rewards .product-points-value,
.j2t-product-rewards .j2t-campaign-badge {
    width: fit-content;
    max-width: calc(100% - 12px);
    margin: 0 auto;
}

.j2t-product-rewards .product-points-value {
    order: 1;
    border-color: #d6ceff;
    background: linear-gradient(120deg, #f6f3ff, #f0fbf9);
    box-shadow: 0 5px 14px rgba(91, 61, 245, .08);
}

.j2t-product-rewards .j2t-campaign-badge { order: 2; }

.wp-block-woocommerce-product-template .j2t-product-rewards,
.wc-block-product .j2t-product-rewards {
    box-sizing: border-box;
    padding-inline: 4px;
}

.single-product .product-points-value {
    justify-content: flex-start;
    margin: 12px 0 18px;
    padding: 9px 13px;
    border-color: #d8d1ff;
    background: linear-gradient(120deg, #f7f5ff, #f0fbf9);
    color: var(--j2t-ink);
    font-size: .875rem !important;
    box-shadow: 0 6px 18px rgba(91, 61, 245, .07);
}

/* Related/upsell cards live inside a single-product page but need compact
   shop-card typography rather than the larger primary-product treatment. */
.single-product .j2t-product-rewards {
    gap: 6px;
}

.single-product .j2t-product-rewards .product-points-value {
    justify-content: center;
    margin: 0 auto;
    padding: 6px 10px;
    font-size: .78rem !important;
    box-shadow: 0 5px 14px rgba(91, 61, 245, .08);
}

.point-value-inline {
    color: var(--j2t-primary-dark);
    font-weight: 800;
}

.inline-rewardpoints_img {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.inline-rewardpoints_img img {
    width: 19px !important;
    height: 19px !important;
    max-width: 19px !important;
    max-height: 19px !important;
    margin: 0 !important;
    object-fit: contain;
    vertical-align: middle !important;
}

/* Cart and checkout reward card ----------------------------------------- */
.j2t-reward-card {
    box-sizing: border-box;
    clear: both;
    width: 100%;
    margin: 22px 0 8px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--j2t-border);
    border-radius: 16px;
    background: var(--j2t-surface);
    color: var(--j2t-ink);
    text-align: left;
    box-shadow: 0 12px 34px rgba(34, 30, 84, .08);
}

.rewardpoints-checkout-form.j2t-reward-card {
    margin: 22px 0;
}

.j2t-reward-card__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 17px 19px;
    border-bottom: 1px solid var(--j2t-border);
    background: linear-gradient(110deg, #f7f5ff 0%, #f2fbfa 100%);
}

.j2t-reward-card__header > .inline-rewardpoints_img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--j2t-primary);
    box-shadow: 0 7px 18px rgba(91, 61, 245, .22);
}

.j2t-reward-card__header > .inline-rewardpoints_img img {
    width: 23px !important;
    height: 23px !important;
    max-width: 23px !important;
    max-height: 23px !important;
    filter: brightness(0) invert(1);
}

.j2t-reward-card__header span:not(.inline-rewardpoints_img) {
    display: block;
    margin-bottom: 2px;
    color: var(--j2t-muted);
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .065em;
    line-height: 1.2;
    text-transform: uppercase;
}

.j2t-reward-card__header h3 {
    margin: 0 !important;
    color: var(--j2t-ink);
    font-size: 1.05rem !important;
    font-weight: 750;
    line-height: 1.25;
}

.j2t-balance-pill {
    padding: 7px 10px;
    border: 1px solid #d8d1ff;
    border-radius: 999px;
    background: #fff;
    color: var(--j2t-primary-dark);
    font-size: .77rem;
    line-height: 1.2;
    white-space: nowrap;
}

.j2t-rewardpoints-coupon {
    display: block !important;
    float: none !important;
    width: auto !important;
    max-width: none !important;
    padding: 18px 19px 19px;
}

.j2t-rewardpoints-coupon > label {
    display: block;
    margin: 0 0 7px;
    color: var(--j2t-ink);
    font-size: .84rem;
    font-weight: 700;
}

.j2t-rewardpoints-controls {
    display: flex;
    width: 100%;
    gap: 8px;
    align-items: stretch;
    max-width: 590px;
}

.woocommerce .j2t-rewardpoints-controls input#reward_points,
.j2t-rewardpoints-controls input#reward_points {
    box-sizing: border-box;
    flex: 0 1 210px;
    width: 210px;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 13px;
    border: 1px solid #cdd3e1;
    border-radius: 9px;
    background: #fff;
    color: var(--j2t-ink);
    font-size: .9rem;
    box-shadow: none;
}

.woocommerce .j2t-rewardpoints-controls input#reward_points:focus {
    border-color: var(--j2t-primary);
    outline: 3px solid rgba(91, 61, 245, .13);
}

.woocommerce .j2t-rewardpoints-controls .button,
.j2t-rewardpoints-controls .button {
    box-sizing: border-box;
    min-height: 44px;
    margin: 0 !important;
    padding: 0 17px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: var(--j2t-primary) !important;
    color: #fff !important;
    font-size: .85rem !important;
    font-weight: 750 !important;
    line-height: 44px !important;
    white-space: nowrap;
}

.woocommerce .j2t-rewardpoints-controls .button:hover,
.j2t-rewardpoints-controls .button:hover {
    background: var(--j2t-primary-dark) !important;
    transform: translateY(-1px);
}

.woocommerce .j2t-rewardpoints-controls .j2t_points_remove {
    border: 1px solid #d8dbea !important;
    background: #fff !important;
    color: #596276 !important;
}

.woocommerce .j2t-rewardpoints-controls .j2t_points_max {
    border: 1px solid #d8d3f3 !important;
    background: #f6f4ff !important;
    color: var(--j2t-primary-dark) !important;
}

.j2t-reward-card__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 14px;
}

.j2t-reward-card__facts p,
.j2t-reward-card--guest .j2t-rewardpoints-coupon p {
    display: flex;
    gap: 7px;
    align-items: center;
    margin: 0;
    color: var(--j2t-muted);
    font-size: .82rem;
    line-height: 1.45;
}

.j2t-reward-card__facts p span {
    display: inline-grid;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: #e9f8f5;
    color: #087f73;
    font-size: .72rem;
    font-weight: 900;
}

.j2t-reward-card--guest a {
    color: var(--j2t-primary-dark);
    font-weight: 750;
}

/* Account dashboards ----------------------------------------------------- */
.j2t-rewards-dashboard,
.j2t-referral-dashboard {
    --j2t-content-width: 100%;
    width: var(--j2t-content-width);
    color: var(--j2t-ink);
}

.j2t-account-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    margin: 0 0 22px;
    padding: clamp(24px, 4vw, 38px);
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(125deg, #2d1b78 0%, #5b3df5 55%, #7c5cff 100%);
    color: #fff;
    box-shadow: var(--j2t-shadow);
}

.j2t-account-hero::after {
    position: absolute;
    top: -70px;
    right: -55px;
    width: 230px;
    height: 230px;
    border: 48px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: '';
}

.j2t-account-hero > * {
    position: relative;
    z-index: 1;
}

.j2t-account-hero__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #dcd6ff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.j2t-account-hero h2 {
    max-width: 650px;
    margin: 0 0 9px !important;
    color: #fff !important;
    font-size: clamp(1.55rem, 4vw, 2.25rem) !important;
    font-weight: 760;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.j2t-account-hero p {
    max-width: 640px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: .95rem;
    line-height: 1.6;
}

.j2t-account-hero__balance {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 126px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 17px;
    background: rgba(255, 255, 255, .12);
    box-shadow: inset 0 1px rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
}

.j2t-account-hero__balance-value {
    margin-bottom: 3px;
    font-size: 2.15rem;
    font-weight: 850;
    line-height: 1;
}

.j2t-account-hero__balance > span:last-child {
    color: rgba(255, 255, 255, .75);
    font-size: .7rem;
    font-weight: 650;
    white-space: nowrap;
}

.j2t-account-hero--referral {
    background: linear-gradient(125deg, #073f47 0%, #087f73 55%, #14a797 100%);
}

.j2t-account-hero--referral .j2t-account-hero__eyebrow {
    color: #bdf8ec;
}

.j2t-account-hero__art {
    display: grid;
    grid-template-columns: repeat(3, 42px);
    align-items: center;
}

.j2t-account-hero__art span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff7bc;
    font-weight: 900;
    box-shadow: 0 10px 25px rgba(0, 34, 35, .16);
}

.j2t-account-hero__art span:nth-child(2) {
    position: relative;
    z-index: 2;
    width: 58px;
    height: 58px;
    background: #fff;
    color: #0c8d80;
}

.j2t-reward-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
    gap: 12px;
    margin: 0 0 22px;
}

.j2t-reward-rule {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 17px;
    border: 1px solid var(--j2t-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(34, 30, 84, .045);
}

.j2t-reward-rule__icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: #eeeaff;
    color: var(--j2t-primary-dark);
    font-size: .85rem;
    font-weight: 850;
}

.j2t-referral-rules .j2t-reward-rule__icon {
    background: #e5f8f4;
    color: #087f73;
}

.j2t-reward-rule strong {
    display: block;
    margin: 1px 0 4px;
    color: var(--j2t-ink);
    font-size: .88rem;
}

.j2t-reward-rule p {
    margin: 0;
    color: var(--j2t-muted);
    font-size: .78rem;
    line-height: 1.5;
}

.j2t-reward-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 0 0 25px;
}

.j2t-reward-stat {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 1px solid var(--j2t-border);
    border-radius: 14px;
    background: #fff;
}

.j2t-reward-stat--available {
    border-color: #d8d1ff;
    background: #f7f5ff;
}

.j2t-reward-stat span {
    margin-bottom: 7px;
    color: var(--j2t-muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.j2t-reward-stat strong {
    color: var(--j2t-ink);
    font-size: 1.7rem;
    line-height: 1;
}

.j2t-reward-stat--available strong {
    color: var(--j2t-primary-dark);
}

.j2t-reward-history,
.j2t-referral-friends,
.j2t-share-card {
    margin: 0 0 22px;
    padding: clamp(18px, 3vw, 25px);
    border: 1px solid var(--j2t-border);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(34, 30, 84, .055);
}

.j2t-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 17px;
}

.j2t-section-heading span {
    display: block;
    margin-bottom: 3px;
    color: var(--j2t-primary);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.j2t-section-heading h3 {
    margin: 0 !important;
    color: var(--j2t-ink);
    font-size: 1.2rem !important;
    font-weight: 750;
}

.j2t-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--j2t-border);
    border-radius: 12px;
}

.woocommerce table.j2t-rewards-table,
table.j2t-rewards-table {
    width: 100%;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse;
    border-radius: 0;
}

.woocommerce table.j2t-rewards-table th,
table.j2t-rewards-table th {
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--j2t-border);
    background: #f8f9fc;
    color: #737b8f;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .065em;
    text-align: left;
    text-transform: uppercase;
}

.woocommerce table.j2t-rewards-table td,
table.j2t-rewards-table td {
    padding: 14px;
    border: 0;
    border-bottom: 1px solid #eef0f5;
    color: var(--j2t-ink);
    font-size: .8rem;
    line-height: 1.4;
    vertical-align: middle;
}

table.j2t-rewards-table tbody tr:last-child td {
    border-bottom: 0;
}

.j2t-history-title {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    font-weight: 700;
}

.j2t-history-note {
    display: block;
    margin-top: 4px;
    color: var(--j2t-muted);
    font-size: .72rem;
}

.j2t-status-chip {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 999px;
    background: #f1f3f8;
    color: #687084;
    font-size: .64rem;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.j2t-status-chip--success {
    background: #e7f8f3;
    color: #087f73;
}

.j2t-points-delta {
    display: inline-flex;
    min-width: 42px;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 8px;
    font-weight: 800;
}

.j2t-points-delta--earned {
    background: #e7f8f3;
    color: #087f73;
}

.j2t-points-delta--used {
    background: #fff1f1;
    color: #be4451;
}

.j2t-empty-state {
    padding: 34px 20px;
    border: 1px dashed #d8dbea;
    border-radius: 13px;
    background: #fafaff;
    text-align: center;
}

.j2t-empty-state > span {
    display: grid;
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    place-items: center;
    border-radius: 13px;
    background: #eeeaff;
    color: var(--j2t-primary-dark);
    font-weight: 900;
}

.j2t-empty-state h3 {
    margin: 0 0 6px !important;
    color: var(--j2t-ink);
    font-size: 1.05rem !important;
}

.j2t-empty-state p {
    max-width: 520px;
    margin: 0 auto 15px;
    color: var(--j2t-muted);
    font-size: .82rem;
}

.j2t-empty-state--compact {
    padding: 25px 18px;
}

.j2t-referral-minimum {
    display: flex;
    gap: 9px;
    align-items: center;
    margin: -4px 0 22px;
    padding: 11px 13px;
    border-radius: 10px;
    background: #fff8df;
    color: #745a12;
    font-size: .78rem;
}

.j2t-referral-minimum > span {
    display: grid;
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 50%;
    background: #f3d66f;
    font-size: .7rem;
    font-weight: 850;
}

.j2t-share-card > p {
    margin: -5px 0 15px;
    color: var(--j2t-muted);
    font-size: .82rem;
    line-height: 1.55;
}

.j2t-copy-field {
    display: flex;
    gap: 8px;
    padding: 7px;
    border: 1px solid #d8dbea;
    border-radius: 11px;
    background: #f8f9fc;
}

.woocommerce .j2t-copy-field input,
.j2t-copy-field input {
    box-sizing: border-box;
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 0 8px;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: var(--j2t-ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: none;
}

.woocommerce .j2t-copy-field .button,
.j2t-copy-field .button {
    min-height: 42px;
    margin: 0 !important;
    padding: 0 15px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: var(--j2t-primary) !important;
    color: #fff !important;
    font-size: .78rem !important;
    font-weight: 750 !important;
    line-height: 42px !important;
    white-space: nowrap;
}

.j2t-copy-referral > span:first-child {
    margin-right: 5px;
}

.j2t-copy-status {
    min-height: 18px;
    margin: 5px 0 -10px !important;
    color: #087f73 !important;
    font-size: .72rem !important;
    font-weight: 700;
}

.j2t-field {
    margin-bottom: 14px;
}

.j2t-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--j2t-ink);
    font-size: .8rem;
    font-weight: 700;
}

.woocommerce .j2t-field input,
.woocommerce .j2t-field textarea,
.j2t-field input,
.j2t-field textarea {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #d3d8e5;
    border-radius: 9px;
    background: #fff;
    color: var(--j2t-ink);
    font-size: .85rem;
    box-shadow: none;
}

.j2t-field input:focus,
.j2t-field textarea:focus {
    border-color: var(--j2t-primary);
    outline: 3px solid rgba(91, 61, 245, .12);
}

.j2t-social-share {
    margin-top: 16px;
}

@media (max-width: 780px) {
    .j2t-account-hero {
        grid-template-columns: 1fr;
    }

    .j2t-account-hero__balance {
        align-items: flex-start;
        width: fit-content;
    }

    .j2t-account-hero__art {
        display: none;
    }

    .j2t-reward-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .product-points-value {
        font-size: .74rem !important;
    }

    .single-product .product-points-value {
        font-size: .82rem !important;
    }

    .j2t-reward-card__header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .j2t-balance-pill {
        grid-column: 1 / -1;
        width: fit-content;
        margin-left: 52px;
    }

    .j2t-rewardpoints-controls,
    .j2t-copy-field {
        flex-direction: column;
    }

    .woocommerce .j2t-rewardpoints-controls input#reward_points {
        flex-basis: 44px;
        width: 100%;
    }

    .j2t-copy-field input {
        width: 100%;
    }

    .woocommerce .j2t-copy-field .button {
        width: 100%;
    }

    .j2t-table-wrap {
        overflow: visible;
        border: 0;
    }

    .woocommerce table.j2t-rewards-table thead,
    table.j2t-rewards-table thead {
        display: none;
    }

    .woocommerce table.j2t-rewards-table tr,
    table.j2t-rewards-table tr {
        display: block;
        margin-bottom: 10px;
        overflow: hidden;
        border: 1px solid var(--j2t-border);
        border-radius: 10px;
    }

    .woocommerce table.j2t-rewards-table td,
    table.j2t-rewards-table td {
        display: grid;
        grid-template-columns: minmax(95px, 35%) 1fr;
        gap: 10px;
        text-align: right !important;
    }

    .woocommerce table.j2t-rewards-table td::before,
    table.j2t-rewards-table td::before {
        color: var(--j2t-muted);
        content: attr(data-title);
        font-size: .68rem;
        font-weight: 800;
        letter-spacing: .04em;
        text-align: left;
        text-transform: uppercase;
    }

    .j2t-history-title {
        justify-content: flex-end;
    }
}

/* Reward progress, expiration, and the portable loyalty wallet. */
.j2t-goal-card {
    display: grid;
    grid-template-columns: minmax(150px, .45fr) 1fr auto;
    gap: 18px;
    align-items: center;
    margin: 16px 0;
    padding: 18px 20px;
    border: 1px solid var(--j2t-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(24, 24, 45, .06);
}

.j2t-goal-card__copy { display: grid; gap: 2px; }
.j2t-goal-card__copy span,
.j2t-goal-card > small { color: var(--j2t-muted); font-size: .72rem; font-weight: 700; }
.j2t-goal-card__copy strong { color: var(--j2t-ink); font-size: .95rem; }
.j2t-progress { height: 9px; overflow: hidden; border-radius: 999px; background: #e8e8f4; }
.j2t-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--j2t-primary), #8d76ff); transition: width .35s ease; }

/* VIP status, campaigns and reward catalogue --------------------------- */
.j2t-campaign-badge {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    width: fit-content;
    margin: 5px auto 2px;
    padding: 5px 9px;
    border: 1px solid #f4d78d;
    border-radius: 999px;
    background: linear-gradient(120deg, #fff8dd, #fff2be);
    color: #76530b;
    font-size: .69rem;
    font-weight: 800;
    line-height: 1.2;
}
.j2t-product-rewards .j2t-campaign-badge { margin: 0 auto; }
.single-product .j2t-campaign-badge { margin: 4px 0 8px; }
.single-product .j2t-product-rewards .j2t-campaign-badge { margin: 0 auto; }
.j2t-vip-card {
    display: grid;
    grid-template-columns: minmax(190px, .72fr) minmax(260px, 1.28fr);
    gap: 26px;
    align-items: center;
    margin: 18px 0;
    padding: 24px;
    border: 1px solid color-mix(in srgb, var(--j2t-tier-color) 28%, #e2e5ef);
    border-radius: 17px;
    background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--j2t-tier-color) 7%, #fff));
    box-shadow: 0 13px 32px rgba(34, 30, 84, .08);
}
.j2t-vip-card__identity { display: grid; gap: 3px; }
.j2t-vip-card__identity > span { color: var(--j2t-muted); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.j2t-vip-card__identity > strong { color: var(--j2t-tier-color); font-size: 1.65rem; letter-spacing: -.025em; line-height: 1.1; }
.j2t-vip-card__identity > small { color: var(--j2t-ink); font-size: .75rem; font-weight: 700; }
.j2t-vip-card__progress { display: grid; gap: 10px; }
.j2t-vip-card__progress > div:first-child { display: flex; justify-content: space-between; gap: 14px; color: var(--j2t-muted); font-size: .72rem; }
.j2t-vip-card__progress > div:first-child strong { color: var(--j2t-ink); }
.j2t-vip-card .j2t-progress span { background: linear-gradient(90deg, var(--j2t-tier-color), color-mix(in srgb, var(--j2t-tier-color) 55%, #bdaeff)); }
.j2t-catalogue { margin: 22px 0; padding: 25px; border: 1px solid var(--j2t-border); border-radius: 18px; background: #fff; box-shadow: var(--j2t-shadow); }
.j2t-catalogue .j2t-section-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 17px; }
.j2t-catalogue .j2t-section-heading > small { padding: 6px 10px; border-radius: 99px; background: #eeeaff; color: var(--j2t-primary-dark); font-size: .67rem; font-weight: 800; white-space: nowrap; }
.j2t-catalogue__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.j2t-catalogue-card { display: flex; min-height: 205px; flex-direction: column; padding: 19px; border: 1px solid #e2dfeb; border-radius: 14px; background: #fafafd; opacity: .8; }
.j2t-catalogue-card.is-available { border-color: #cfc5fb; background: linear-gradient(145deg, #fff, #f7f4ff); opacity: 1; box-shadow: 0 9px 22px rgba(53, 36, 111, .07); }
.j2t-catalogue-card__type { align-self: flex-start; padding: 4px 7px; border-radius: 99px; background: #ece8ff; color: #5d45c7; font-size: .58rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.j2t-catalogue-card h4 { margin: 12px 0 5px; color: var(--j2t-ink); font-size: 1rem; }
.j2t-catalogue-card p { flex: 1; margin: 0 0 14px; color: var(--j2t-muted); font-size: .75rem; line-height: 1.55; }
.j2t-catalogue-card > div:last-child { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.j2t-catalogue-card > div:last-child > strong { color: var(--j2t-primary-dark); font-size: .78rem; }
.j2t-catalogue-card form { margin: 0; }
.j2t-catalogue-card .button { min-height: 38px; padding: 7px 12px; border: 0; border-radius: 8px; background: var(--j2t-primary-dark); color: #fff; font-size: .7rem; font-weight: 800; }
.j2t-catalogue-card .button:disabled { background: #ddd9e7; color: #777183; }
.j2t-issued-rewards { display: grid; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--j2t-border); }
.j2t-issued-rewards h4 { margin: 0 0 4px; color: var(--j2t-ink); font-size: .84rem !important; font-weight: 700; line-height: 1.35; }
.j2t-issued-rewards__item { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(180px, .9fr) auto; gap: 10px; align-items: center; padding: 11px 13px; border-radius: 10px; background: #f6f8fb; }
.j2t-issued-rewards__name { color: var(--j2t-ink); font-size: .78rem !important; font-weight: 600; line-height: 1.35; }
.j2t-issued-rewards__code { display: block; min-width: 0; padding: 6px 9px; overflow-wrap: anywhere; border: 1px dashed #a99ce9; border-radius: 7px; background: #fff; color: #45348d; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .7rem !important; font-weight: 650; letter-spacing: 0; line-height: 1.35; }
.j2t-issued-rewards__action.button { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; padding: 6px 10px; border: 1px solid #d8d1f3; border-radius: 8px; background: #fff; color: #4933b1; font-size: .7rem !important; font-weight: 700; line-height: 1.25; text-decoration: none; white-space: nowrap; box-shadow: none; }
.j2t-issued-rewards__action.button:hover,
.j2t-issued-rewards__action.button:focus { border-color: #6e55df; background: #f4f1ff; color: #38218f; }

.j2t-expiry-notice {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 12px 0 18px;
    padding: 12px 15px;
    border: 1px solid #f2d8a7;
    border-radius: 11px;
    background: #fff9ed;
    color: #73551e;
    font-size: .82rem;
}
.j2t-expiry-notice p { margin: 0; }

.j2t-loyalty-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9990;
    width: min(330px, calc(100vw - 32px));
    color: #17162a;
    font-family: inherit;
}
.j2t-loyalty-widget--inline { position: relative; right: auto; bottom: auto; z-index: auto; width: 100%; }
.j2t-loyalty-widget__trigger {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-left: auto;
    padding: 11px 17px;
    border: 0;
    border-radius: 999px;
    background: #241d52;
    color: #fff;
    font: inherit;
    font-size: .82rem;
    font-weight: 800;
    box-shadow: 0 12px 36px rgba(32, 24, 80, .28);
    cursor: pointer;
}
.j2t-loyalty-widget__trigger img { width: 22px; height: 22px; object-fit: contain; }
.j2t-loyalty-widget__panel {
    margin-top: 10px;
    padding: 22px;
    border: 1px solid rgba(91, 61, 245, .18);
    border-radius: 17px;
    background: linear-gradient(145deg, #fff 10%, #f5f2ff 100%);
    box-shadow: 0 20px 55px rgba(28, 22, 72, .24);
}
.j2t-loyalty-widget__panel[hidden] { display: none; }
.j2t-loyalty-widget__panel > strong { display: block; margin: 8px 0 14px; font-size: 1.6rem; line-height: 1.15; }
.j2t-loyalty-widget__panel strong small { color: #625f75; font-size: .72rem; font-weight: 700; }
.j2t-loyalty-widget__panel p { margin: 11px 0 16px; color: #625f75; font-size: .78rem; }
.j2t-loyalty-widget__panel .button { width: 100%; text-align: center; }

.j2t-block-rewards {
    display: grid;
    gap: 11px;
    box-sizing: border-box;
    margin: 18px 0 !important;
    padding: 18px !important;
    overflow: hidden;
    border: 1px solid #dcd5fb;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff 0%, #f7f4ff 72%, #f0ecff 100%);
    box-shadow: 0 10px 28px rgba(53, 36, 111, .08);
}
.j2t-block-rewards.is-applied { border-color: #92d6bf; background: linear-gradient(145deg, #fff 0%, #f1fbf7 100%); }
.j2t-block-rewards__eyebrow { color: #6e57d8; font-size: .6rem; font-weight: 850; letter-spacing: .12em; }
.j2t-block-rewards__title { display: flex; gap: 10px; align-items: center; }
.j2t-block-rewards__title img { flex: 0 0 30px; width: 30px; height: 30px; object-fit: contain; padding: 5px; border-radius: 9px; background: #fff; box-shadow: 0 4px 13px rgba(48, 34, 105, .12); }
.j2t-block-rewards__title > div { display: grid; gap: 2px; min-width: 0; }
.j2t-block-rewards__title strong { color: #201b3c; font-size: .9rem; line-height: 1.25; }
.j2t-block-rewards__title span { color: #6a667d; font-size: .68rem; font-weight: 650; }
.j2t-block-rewards__progress { height: 6px; overflow: hidden; border-radius: 99px; background: #e7e2f5; }
.j2t-block-rewards__progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6e55df, #9c83ff); }
.j2t-block-rewards__progress-copy { margin: -5px 0 1px !important; color: #726d83; font-size: .64rem !important; }
.j2t-block-rewards__redeem { display: grid; gap: 7px; padding-top: 3px; }
.j2t-block-rewards__redeem > label { color: #38334e; font-size: .7rem; font-weight: 750; }
.j2t-block-rewards__controls { display: grid; grid-template-columns: minmax(80px, 1fr) auto; gap: 8px; }
.j2t-block-rewards__controls input { box-sizing: border-box; min-width: 0; min-height: 44px; padding: 8px 11px; border: 1px solid #c9c0ef; border-radius: 9px; background: #fff; color: #221d3d; font: inherit; box-shadow: inset 0 1px 2px rgba(35, 26, 76, .04); }
.j2t-block-rewards__controls input:focus { border-color: #6e55df; outline: 3px solid rgba(110, 85, 223, .13); }
.j2t-block-rewards__controls button { min-height: 44px; padding: 8px 14px; border: 0; border-radius: 9px; background: linear-gradient(135deg, #38256f, #4f36a0); color: #fff; font: inherit; font-size: .72rem; font-weight: 800; box-shadow: 0 7px 15px rgba(53, 36, 111, .2); cursor: pointer; }
.j2t-block-rewards__controls button:disabled { opacity: .45; cursor: not-allowed; }
.j2t-block-rewards__max { justify-self: start; padding: 0; border: 0; background: transparent; color: #5c45c6; font: inherit; font-size: .65rem; font-weight: 800; cursor: pointer; }
.j2t-block-rewards__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.j2t-block-rewards__stat { display: grid; gap: 1px; padding: 9px 10px; border: 1px solid rgba(110, 85, 223, .1); border-radius: 9px; background: rgba(255, 255, 255, .75); }
.j2t-block-rewards__stat strong { color: #33286a; font-size: .78rem; }
.j2t-block-rewards__stat span { color: #777187; font-size: .57rem; line-height: 1.25; }
.j2t-block-rewards__stat.is-earned strong { color: #0a7d67; }
.j2t-block-rewards__zero { display: grid; gap: 2px; padding: 11px 12px; border: 1px solid #d8d1f3; border-radius: 10px; background: #fff; }
.j2t-block-rewards__zero strong { color: #33286a; font-size: .75rem; }
.j2t-block-rewards__zero span { color: #777187; font-size: .63rem; }
.j2t-block-rewards__remove { justify-self: start; min-height: auto; padding: 0; border: 0; background: transparent; color: #a33145; font: inherit; font-size: .64rem; font-weight: 750; cursor: pointer; }
.j2t-block-rewards__message { margin: 0 !important; padding: 8px 10px; border-radius: 8px; background: #eaf8f2; color: #236b58; font-size: .65rem !important; font-weight: 650; }
.j2t-block-rewards--guest p { margin: 0 !important; color: #696578; font-size: .72rem !important; line-height: 1.5; }
.j2t-block-rewards__signin { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 9px; background: #35246f; color: #fff !important; font-size: .72rem; font-weight: 800; text-decoration: none !important; }

/* SlotFill wrappers sit directly against coupon/subtotal rows in core Blocks. */
.wc-block-components-totals-wrapper.j2t-block-rewards:first-child,
.wc-block-components-totals-wrapper.j2t-block-rewards:last-child { margin-top: 18px !important; margin-bottom: 18px !important; }

@media (max-width: 600px) {
    .j2t-goal-card { grid-template-columns: 1fr; gap: 10px; }
	.j2t-vip-card, .j2t-catalogue__grid { grid-template-columns: 1fr; }
	.j2t-catalogue { padding: 18px; }
	.j2t-issued-rewards__item { grid-template-columns: 1fr; }
	.j2t-issued-rewards__action.button { justify-self: start; }
    .j2t-loyalty-widget { right: 16px; bottom: 16px; }
    .j2t-block-rewards { margin: 14px 0 !important; padding: 15px !important; }
    .j2t-block-rewards__stats { grid-template-columns: 1fr; }
}

/* Native right-to-left presentation for Arabic and Hebrew storefronts. */
.rtl .j2t-reward-card,
.rtl .j2t-rewards-dashboard,
.rtl .j2t-referral-dashboard,
.rtl .j2t-loyalty-widget,
.rtl .j2t-block-rewards { direction: rtl; text-align: right; }
.rtl .woocommerce table.j2t-rewards-table th,
.rtl table.j2t-rewards-table th { text-align: right; }
.rtl .j2t-loyalty-widget { right: auto; left: 22px; }
.rtl .j2t-loyalty-widget--inline { right: auto; left: auto; }
.rtl .j2t-loyalty-widget__trigger { margin-right: auto; margin-left: 0; }
@media (max-width: 780px) {
    .rtl .woocommerce table.j2t-rewards-table td,
    .rtl table.j2t-rewards-table td { text-align: left !important; }
    .rtl .woocommerce table.j2t-rewards-table td::before,
    .rtl table.j2t-rewards-table td::before { text-align: right; }
    .rtl .j2t-history-title { justify-content: flex-start; }
}
@media (max-width: 600px) {
    .rtl .j2t-loyalty-widget { right: auto; left: 16px; }
}
