/* =========================================================
   FSPV CLUB v1.1.1
   Reward Experience + Admin UX
   ========================================================= */

/* ---------- STOREFRONT: PRODUCT ---------- */

.fspv-club-earn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    margin: 12px 0 14px;
    padding: 12px 14px;
    overflow: hidden;
    border: 1px solid rgba(21, 21, 21, .08);
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,1),
            rgba(248,248,248,.96)
        );
    box-shadow:
        0 8px 22px rgba(0,0,0,.035);
    color: #1c1c1c;
    font-size: 14px;
    line-height: 1.35;
}

.fspv-club-earn::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 56px;
    height: 100%;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(0,0,0,.018)
        );
}

.fspv-club-earn__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 12px;
    background: #fff;
    box-shadow:
        0 5px 14px rgba(0,0,0,.05);
    font-size: 15px;
}

.fspv-club-earn strong {
    display: block;
    margin: 0;
    font-size: 14px;
    font-weight: 800;
}

.fspv-club-earn small {
    display: block;
    margin-top: 3px;
    color: rgba(28,28,28,.58);
    font-size: 12px;
}

/* ---------- CART / CHECKOUT ---------- */

.fspv-club-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    padding: 12px 0 4px;
    border-top: 1px dashed rgba(0,0,0,.13);
    color: rgba(25,25,25,.76);
    font-size: 13px;
}

.fspv-club-summary-line strong {
    color: #171717;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

/* ---------- CUSTOMER ACCOUNT ---------- */

.fspv-club-account-wallet {
    width: 100%;
    margin-top: 20px;
    padding: 19px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 17px;
    background: #fff;
    box-shadow:
        0 10px 28px rgba(0,0,0,.035);
}

.fspv-club-account-wallet__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 15px;
}

.fspv-club-account-wallet__head small {
    display: block;
    margin-bottom: 2px;
    color: rgba(0,0,0,.5);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.fspv-club-account-wallet__head h3 {
    margin: 0;
    color: #181818;
    font-size: 18px;
    line-height: 1.2;
}

.fspv-club-account-wallet__head a {
    color: #1c1c1c;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.fspv-club-account-wallet__grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.fspv-club-wallet-stat {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid rgba(0,0,0,.055);
    border-radius: 13px;
    background: #f8f8f8;
}

.fspv-club-wallet-stat span {
    display: block;
    overflow: hidden;
    color: rgba(0,0,0,.55);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.fspv-club-wallet-stat strong {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: #181818;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.1;
    text-overflow: ellipsis;
}

/* ---------- HEADER MINI WALLET ---------- */

.fspv-club-header-wallet {
    display: block;
    max-width: 130px;
    margin-top: 1px;
    overflow: hidden;
    color: #111;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fspv-club-header-wallet em {
    margin-left: 2px;
    color: rgba(0,0,0,.52);
    font-style: normal;
    font-weight: 600;
}

/* ---------- CLUB PAGE ---------- */

.fspv-club-point-value {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    padding: 5px 8px;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 999px;
    background: #f6f6f6;
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 750;
}

/* =========================================================
   ADMIN v1.1.1
   ========================================================= */

.club111 {
    --club111-border:
        rgba(17,17,17,.085);

    --club111-muted:
        rgba(17,17,17,.56);

    --club111-soft:
        #f7f7f7;

    --club111-text:
        #171717;

    display: grid;
    gap: 16px;
    width: 100%;
    margin: 0 0 28px;
    color: var(--club111-text);
}

.club111 *,
.club111 *::before,
.club111 *::after {
    box-sizing: border-box;
}

.club111-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 22px 24px;
    border: 1px solid var(--club111-border);
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            #fff 0%,
            #f8f8f8 100%
        );
    box-shadow:
        0 10px 30px rgba(0,0,0,.035);
}

.club111-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--club111-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.club111-hero h2 {
    margin: 0;
    color: var(--club111-text);
    font-size: 22px;
    line-height: 1.2;
}

.club111-hero p {
    max-width: 720px;
    margin: 7px 0 0;
    color: var(--club111-muted);
    font-size: 13px;
    line-height: 1.45;
}

.club111-hero-value {
    min-width: 190px;
    padding: 13px 15px;
    border: 1px solid var(--club111-border);
    border-radius: 14px;
    background: #fff;
}

.club111-hero-value span,
.club111-hero-value small {
    display: block;
    color: var(--club111-muted);
    font-size: 10px;
}

.club111-hero-value strong {
    display: block;
    margin: 3px 0;
    font-size: 15px;
}

.club111-panel {
    width: 100%;
    padding: 20px;
    border: 1px solid var(--club111-border);
    border-radius: 17px;
    background: #fff;
    box-shadow:
        0 8px 26px rgba(0,0,0,.026);
}

.club111-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.club111-section-head > div {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.club111-step {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    border: 1px solid var(--club111-border);
    border-radius: 10px;
    background: var(--club111-soft);
    color: rgba(0,0,0,.55);
    font-size: 10px;
    font-weight: 850;
}

.club111-section-head h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.25;
}

.club111-section-head p {
    margin: 4px 0 0;
    color: var(--club111-muted);
    font-size: 12px;
    line-height: 1.4;
}

.club111-form-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.club111-field {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
}

.club111-field--wide {
    grid-column: span 2;
}

.club111-field > span {
    color: rgba(0,0,0,.65);
    font-size: 11px;
    font-weight: 750;
}

.club111-field input,
.club111-field select,
.club111-inline-form input,
.club111-inline-form select {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #181818;
    font: inherit;
    font-size: 13px;
}

.club111-field input:focus,
.club111-field select:focus,
.club111-inline-form input:focus,
.club111-inline-form select:focus {
    border-color: rgba(0,0,0,.35);
    box-shadow:
        0 0 0 3px rgba(0,0,0,.04);
}

.club111-input-unit {
    position: relative;
}

.club111-input-unit input {
    padding-right: 46px;
}

.club111-input-unit em {
    position: absolute;
    top: 50%;
    right: 11px;
    transform: translateY(-50%);
    color: rgba(0,0,0,.45);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    pointer-events: none;
}

.club111-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 14px;
    color: rgba(0,0,0,.65);
    font-size: 12px;
    cursor: pointer;
}

.club111-check input {
    margin-top: 2px;
}

.club111-preview {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
    padding: 13px;
    border: 1px solid rgba(0,0,0,.055);
    border-radius: 13px;
    background: var(--club111-soft);
}

.club111-preview > div {
    padding: 6px 8px;
}

.club111-preview small {
    display: block;
    color: var(--club111-muted);
    font-size: 10px;
}

.club111-preview strong {
    display: block;
    margin-top: 4px;
    color: #171717;
    font-size: 17px;
    line-height: 1.2;
}

.club111-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.club111-note {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--club111-soft);
    color: var(--club111-muted);
    font-size: 11px;
    line-height: 1.45;
}

.club111-note strong {
    color: #222;
}

.club111-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 999px;
    background: #f5f5f5;
    color: rgba(0,0,0,.55);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.club111-status--active {
    background: #eef8f0;
    color: #26713a;
}

.club111-count {
    color: var(--club111-muted);
    font-size: 11px;
    font-weight: 700;
}

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

.club111-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    background: #fff;
}

.club111-table th {
    padding: 10px 12px;
    border-bottom: 1px solid var(--club111-border);
    background: #f8f8f8;
    color: rgba(0,0,0,.52);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .05em;
    text-align: left;
    text-transform: uppercase;
}

.club111-table td {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(0,0,0,.055);
    color: #252525;
    font-size: 11px;
    vertical-align: middle;
}

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

.club111-table td > strong,
.club111-table td > small {
    display: block;
}

.club111-table td > small {
    margin-top: 3px;
    color: var(--club111-muted);
    font-size: 9px;
}

.club111-rule-value {
    display: inline-flex;
    padding: 5px 7px;
    border-radius: 8px;
    background: var(--club111-soft);
    font-weight: 850;
    white-space: nowrap;
}

.club111-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.club111-row-actions form {
    margin: 0;
}

.club111-row-actions .btn {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 9px;
}

.club111-inline-form {
    display: grid;
    grid-template-columns:
        minmax(180px, .65fr)
        minmax(260px, 1.35fr)
        auto;
    gap: 9px;
}

.club111-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.club111-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 6px 8px 6px 10px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 999px;
    background: #f7f7f7;
    color: #252525;
    font-size: 10px;
}

.club111-chip button {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #e7e7e7;
    color: #444;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.club111-empty {
    padding: 22px;
    border: 1px dashed rgba(0,0,0,.12);
    border-radius: 12px;
    background: #fafafa;
    color: var(--club111-muted);
    font-size: 12px;
    text-align: center;
}

.club111-empty--small {
    margin-top: 12px;
    padding: 13px;
}

.club111-advanced-title {
    padding: 15px 4px 4px;
}

.club111-advanced-title span {
    display: block;
    color: #222;
    font-size: 13px;
    font-weight: 850;
}

.club111-advanced-title p {
    margin: 3px 0 0;
    color: var(--club111-muted);
    font-size: 10px;
}

/* Hide the obsolete v1.1.0 quick UI if an old fragment
   survives outside the replaced block. */
.fspv-club-commercial {
    display: none !important;
}

@media (max-width: 1100px) {
    .club111-form-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .club111-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .club111-hero-value {
        min-width: 0;
    }

    .club111-inline-form {
        grid-template-columns: 1fr;
    }

    .fspv-club-account-wallet__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .club111 {
        gap: 12px;
    }

    .club111-hero,
    .club111-panel {
        padding: 15px;
        border-radius: 14px;
    }

    .club111-hero h2 {
        font-size: 18px;
    }

    .club111-form-grid,
    .club111-preview {
        grid-template-columns: 1fr;
    }

    .club111-field--wide {
        grid-column: auto;
    }

    .club111-section-head {
        flex-direction: column;
    }

    .club111-actions {
        justify-content: stretch;
    }

    .club111-actions .btn {
        width: 100%;
    }

    .fspv-club-account-wallet__grid {
        grid-template-columns: 1fr;
    }

    .fspv-club-earn {
        align-items: flex-start;
    }
}

/* =========================================================
   FSPV Club v1.2.0 — Checkout redemption
   ========================================================= */

.fspv-club-redemption {
    margin: 15px 0 10px;
    padding: 15px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    background: #fff;
    box-shadow:
        0 8px 22px rgba(0,0,0,.025);
}

.fspv-club-redemption__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.fspv-club-redemption__head small {
    display: block;
    margin-bottom: 2px;
    color: rgba(0,0,0,.5);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.fspv-club-redemption__head strong {
    display: block;
    color: #171717;
    font-size: 14px;
    font-weight: 850;
}

.fspv-club-redemption__head > span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f1f1;
    color: #222;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

.fspv-club-redemption__balance {
    margin: 10px 0 0;
    color: rgba(0,0,0,.62);
    font-size: 11px;
    line-height: 1.45;
}

.fspv-club-redemption__balance strong {
    color: #171717;
}

.fspv-club-redemption__pending {
    margin: 5px 0 0;
    color: rgba(0,0,0,.48);
    font-size: 10px;
}

.fspv-club-redemption__controls {
    display: grid;
    grid-template-columns:
        minmax(0,1fr)
        auto;
    gap: 8px;
    align-items: end;
    margin-top: 13px;
}

.fspv-club-redemption__controls label {
    display: grid;
    gap: 5px;
    margin: 0;
}

.fspv-club-redemption__controls label span {
    color: rgba(0,0,0,.55);
    font-size: 9px;
    font-weight: 750;
}

.fspv-club-redemption__controls input {
    width: 100%;
    height: 39px;
    padding: 8px 10px;
    border: 1px solid rgba(0,0,0,.13);
    border-radius: 9px;
    background: #fff;
    color: #171717;
    font-size: 12px;
    font-weight: 700;
}

.fspv-club-redemption__controls button {
    min-height: 39px;
    padding: 8px 11px;
    border: 0;
    border-radius: 9px;
    background: #181818;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.fspv-club-redemption__controls input:disabled,
.fspv-club-redemption__controls button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.fspv-club-redemption__discount {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0,0,0,.12);
    color: rgba(0,0,0,.62);
    font-size: 10px;
}

.fspv-club-redemption__discount strong {
    color: #171717;
    font-weight: 850;
}

.fspv-club-redemption__earning-note {
    margin: 9px 0 0;
    padding: 8px 9px;
    border-radius: 8px;
    background: #f4f4f4;
    color: rgba(0,0,0,.58);
    font-size: 9px;
    line-height: 1.4;
}

.fspv-club-redemption__foot {
    display: block;
    margin-top: 9px;
    color: rgba(0,0,0,.42);
    font-size: 8px;
    line-height: 1.4;
}

@media (max-width: 560px) {
    .fspv-club-redemption__controls {
        grid-template-columns: 1fr;
    }

    .fspv-club-redemption__controls button {
        width: 100%;
    }
}
