/* WC Smart Referral — Frontend Styles */

.wcsr-account-wrap {
    margin-top: 30px;
}

/* Referral Code Box */
.wcsr-referral-box,
.wcsr-rewards-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.wcsr-referral-header,
.wcsr-rewards-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.wcsr-icon {
    font-size: 32px;
    line-height: 1;
}

.wcsr-referral-header h3,
.wcsr-rewards-header h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    color: #333;
}

.wcsr-referral-header p,
.wcsr-rewards-header p {
    margin: 0;
    color: #888;
    font-size: 14px;
}

/* Code Display */
.wcsr-code-display {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f5f5;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.wcsr-code {
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 4px;
    color: #333;
    font-family: monospace;
}

.wcsr-copy-btn {
    background: #5b5bd6;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    margin-left: auto;
    transition: background 0.2s;
}

.wcsr-copy-btn:hover {
    background: #4a4ac4;
}

.wcsr-copy-msg {
    display: none;
    color: #2e7d32;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Info Row */
.wcsr-referral-info {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f9f9ff;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.wcsr-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.wcsr-info-icon {
    font-size: 24px;
}

.wcsr-info-item strong {
    display: block;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wcsr-info-item span {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.wcsr-info-divider {
    font-size: 20px;
    color: #ccc;
    font-weight: bold;
}

/* Rewards Table */
.wcsr-rewards-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.wcsr-rewards-table th {
    text-align: left;
    padding: 10px 12px;
    background: #f8f8f8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    border-bottom: 1px solid #eee;
}

.wcsr-rewards-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.wcsr-reward-code {
    font-family: monospace;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 2px;
    color: #333;
}

.wcsr-copy-small {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 8px;
    vertical-align: middle;
}

.wcsr-copy-small:hover {
    background: #f5f5f5;
}

/* Status Badges */
.wcsr-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.wcsr-status-active {
    background: #edfaef;
    color: #2e7d32;
}

.wcsr-status-used {
    background: #f0f0f0;
    color: #999;
}

.wcsr-status-expired {
    background: #fff0ee;
    color: #e2401c;
}

@media (max-width: 600px) {
    .wcsr-referral-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .wcsr-info-divider {
        display: none;
    }

    .wcsr-code {
        font-size: 20px;
    }
}
