/**
 * Customer Club — front-end styles (RTL first).
 */

.cc-redeem-panel {
    direction: rtl;
    text-align: right;
    margin: 0 0 1.5em;
    padding: 16px 18px;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    background: #fbfcfd;
    font-size: 14px;
    line-height: 2;
}

.cc-redeem-panel .cc-redeem-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
}

.cc-redeem-panel .cc-redeem-balance {
    margin: 0 0 10px;
}

.cc-redeem-panel .cc-redeem-balance-value {
    color: #1f7a4d;
}

.cc-redeem-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 8px;
}

.cc-redeem-row .cc-redeem-input {
    flex: 1 1 140px;
    min-width: 120px;
    max-width: 220px;
    padding: 8px 10px;
    border: 1px solid #cfd4da;
    border-radius: 6px;
    text-align: center;
    direction: ltr;
}

.cc-redeem-actions {
    margin: 0 0 6px;
}

.cc-redeem-use-all {
    font-size: 13px;
    text-decoration: underline;
}

.cc-redeem-message {
    margin: 6px 0 0;
    min-height: 1.6em;
    font-size: 13px;
}

.cc-redeem-panel.is-error .cc-redeem-message {
    color: #b32d2e;
}

.cc-redeem-panel.is-ok .cc-redeem-message {
    color: #1f7a4d;
}

.cc-redeem-panel.is-busy {
    opacity: 0.65;
}

.cc-redeem-rate,
.cc-redeem-note {
    margin: 4px 0 0;
    font-size: 12px;
    color: #6b7280;
}

/* --- My Account tab ------------------------------------------------- */

.cc-account {
    direction: rtl;
    text-align: right;
}

.cc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 0 0 20px;
}

.cc-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid #e3e6ea;
    background: #fbfcfd;
}

.cc-card--available {
    border-color: #bfe3cd;
    background: #f2fbf6;
}

.cc-card--pending {
    border-color: #f0e0bd;
    background: #fffaf0;
}

.cc-card__label {
    font-size: 13px;
    color: #6b7280;
}

.cc-card__value {
    font-size: 24px;
    font-weight: 700;
}

.cc-card__hint {
    font-size: 12px;
    color: #6b7280;
}

.cc-rules {
    margin: 0 0 24px;
    padding: 14px 18px;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    background: #fff;
}

.cc-rules h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

.cc-rules ul {
    margin: 0;
    padding: 0 18px 0 0;
    list-style: disc;
    font-size: 13px;
    line-height: 2.1;
}

.cc-history-title {
    margin: 0 0 10px;
    font-size: 15px;
}

table.cc-history {
    width: 100%;
    border-collapse: collapse;
}

table.cc-history th,
table.cc-history td {
    padding: 10px 8px;
    text-align: right;
    border-bottom: 1px solid #eceff2;
    font-size: 13px;
}

table.cc-history .cc-plus {
    color: #1f7a4d;
    font-weight: 700;
}

table.cc-history .cc-minus {
    color: #b32d2e;
    font-weight: 700;
}

.cc-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 0;
}

.cc-page-info {
    font-size: 13px;
    color: #6b7280;
}

.cc-empty {
    color: #6b7280;
}

@media screen and (max-width: 600px) {
    .cc-cards {
        grid-template-columns: 1fr;
    }

    .cc-redeem-row .cc-redeem-input {
        max-width: none;
    }
}
