/* ===================== */
/* Rewards Page Styles    */
/* ===================== */

/* Pending Approval Footer */
.rw-pending-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rw-action-needed {
    color: #FF8E2B;
    font-weight: 600;
    font-size: 12px;
}

.rw-view-btn {
    padding: 4px 18px;
    background: #2E77AE;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    transition: background 0.2s;
}

.rw-view-btn:hover {
    background: #245F8B;
}

/* ===================== */
/* Reward Cards Grid      */
/* ===================== */

.rw-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

/* Reward Card */
.rw-reward-card,
.rw-preview-card {
    background: #fff;
    border: 2.5px solid #686EE2;
    border-radius: 16px;
    padding: 20px 22px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.rw-reward-card:hover {
    box-shadow: 0 4px 16px rgba(124, 109, 205, 0.15);
    border-color: #5559C9;
}

.rw-preview-card {
    border-style: solid;
    border-color: #686EE2;
    cursor: default;
}

/* Card Header */
.rw-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 10px;
}

.rw-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #2E77AE;
    margin: 0;
}

/* Points Badge */
.rw-points-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8a838;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.rw-points-badge i {
    font-size: 10px;
}

/* Card Description */
.rw-card-description {
    font-size: 13px;
    color: #1a1a2e;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

/* Status Badge */
.rw-status-badge {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 14px;
}

.rw-status-badge.active {
    background: #DEF8EE;
    color: #4AA785;
}

.rw-status-badge.ended {
    background: #f0f0f0;
    color: #7F7F7F;
}

/* Card Stats */
.rw-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
    margin-bottom: 14px;
}

.rw-card-stat {
    font-size: 12px;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rw-card-stat i {
    color: #1a1a2e;
    font-size: 11px;
    width: 14px;
    text-align: center;
}

/* Card Footer */
.rw-card-footer {
    font-size: 12px;
    color: #1a1a2e;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

/* ===================== */
/* Past Reward Cards      */
/* ===================== */

.rw-past-card {
    opacity: 0.65;
    cursor: default;
}

.rw-past-card .rw-card-title {
    color: #7F7F7F;
}

.rw-past-card:hover {
    box-shadow: none;
    border-color: #c8daf0;
}

/* ===================== */
/* Preview Actions        */
/* ===================== */

.rw-preview-actions {
    margin-top: 24px;
    gap: 10px;
}

.action-btn.rw-schedule {
    background: #fff;
    color: #7F7F7F;
    border: 1.5px solid #dadce0;
}

.action-btn.rw-schedule:hover {
    background: #f1f3f4;
}

/* ===================== */
/* Drawer Styles          */
/* ===================== */

.rw-drawer-badge {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
    align-self: flex-start;
}

.rw-drawer-badge.active {
    background: #DEF8EE;
    color: #4AA785;
}

/* Drawer Stats List */
.rw-drawer-stats-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 0;
}

.rw-drawer-stat-item {
    font-size: 13px;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rw-drawer-stat-item i {
    color: #1a1a2e;
    width: 16px;
    text-align: center;
    font-size: 13px;
}

/* Drawer Meta Row */
.rw-drawer-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #1a1a2e;
    padding: 4px 0;
}

.rw-drawer-stock {
    font-weight: 600;
    color: #333;
}

/* Redeemed Text */
.activity-table tbody td.rw-redeemed-text,
.rw-redeemed-text {
    color: #5EBA41;
    font-weight: 600;
    font-size: 13px;
}

/* ===================== */
/* Responsive             */
/* ===================== */

@media (max-width: 1100px) {
    .rw-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .rw-cards-grid {
        grid-template-columns: 1fr;
    }
}
