/* CSS cho tính năng giới thiệu bạn bè */
.mtwpgr-td-referral-wrapper {
    margin: 20px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: var(--mtwpgr-td-border-radius);
    box-shadow: var(--mtwpgr-td-box-shadow);
}

.mtwpgr-td-referral-header h3 {
    margin-top: 0;
    color: var(--mtwpgr-td-primary-color);
    margin-bottom: 15px;
}

.mtwpgr-td-referral-description {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.5;
}

.mtwpgr-td-referral-stats {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 25px;
    gap: 20px;
}

.mtwpgr-td-referral-stat-item {
    flex: 1 1 200px;
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: var(--mtwpgr-td-border-radius);
    text-align: center;
}

.mtwpgr-td-stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.mtwpgr-td-stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: var(--mtwpgr-td-primary-color);
}

.mtwpgr-td-referral-link-section {
    margin-bottom: 25px;
}

.mtwpgr-td-referral-link-section h4 {
    margin-bottom: 10px;
    color: #333;
}

.mtwpgr-td-referral-link-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.mtwpgr-td-referral-link {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--mtwpgr-td-border-radius);
    font-size: 14px;
}

.mtwpgr-td-copy-link {
    background-color: var(--mtwpgr-td-secondary-color);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: var(--mtwpgr-td-border-radius);
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
}

.mtwpgr-td-copy-link:hover {
    background-color: #3db9b0;
}

.mtwpgr-td-copy-message {
    font-size: 14px;
    color: var(--mtwpgr-td-success-color);
    margin-top: 5px;
    min-height: 20px;
}

.mtwpgr-td-share-section {
    margin-bottom: 25px;
}

.mtwpgr-td-share-section h4 {
    margin-bottom: 10px;
    color: #333;
}

.mtwpgr-td-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mtwpgr-td-share-buttons a {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    color: white;
    border-radius: var(--mtwpgr-td-border-radius);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.mtwpgr-td-share-buttons a:hover {
    opacity: 0.9;
}

.mtwpgr-td-share-icon {
    display: inline-block;
    margin-right: 5px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

.mtwpgr-td-share-facebook {
    background-color: #3b5998;
}

.mtwpgr-td-share-twitter {
    background-color: #1da1f2;
}

.mtwpgr-td-share-whatsapp {
    background-color: #25d366;
}

.mtwpgr-td-share-email {
    background-color: #ea4335;
}

.mtwpgr-td-referral-history h4 {
    margin-bottom: 15px;
    color: #333;
}

.mtwpgr-td-no-referrals {
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: var(--mtwpgr-td-border-radius);
    color: #666;
    text-align: center;
}

.mtwpgr-td-referrals-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    border: 1px solid var(--mtwpgr-td-border-color);
}

.mtwpgr-td-referrals-table th,
.mtwpgr-td-referrals-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--mtwpgr-td-border-color);
}

.mtwpgr-td-referrals-table th {
    background-color: var(--mtwpgr-td-light-gray);
    font-weight: bold;
}

.mtwpgr-td-referral-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
}

.mtwpgr-td-status-completed {
    background-color: var(--mtwpgr-td-success-color);
    color: white;
}

.mtwpgr-td-status-pending {
    background-color: #ff9800;
    color: white;
}

.mtwpgr-td-status-signup {
    background-color: var(--mtwpgr-td-secondary-color);
    color: white;
}

.mtwpgr-td-referral-login-required {
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: var(--mtwpgr-td-border-radius);
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mtwpgr-td-referral-link-container {
        flex-direction: column;
    }
    
    .mtwpgr-td-copy-link {
        width: 100%;
        padding: 10px;
    }
}