/* Referral info box styles */
.wrs-referral-info {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.wrs-referral-info h3 {
    margin: 0 0 15px;
    padding: 0;
    font-size: 18px;
    color: #333;
}

.wrs-code-box,
.wrs-link-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
}

.wrs-code-box span {
    font-family: monospace;
    font-size: 16px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    flex-grow: 0;
}

.wrs-link-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    background: #fff;
    min-width: 0;
}

.wrs-copy-code,
.wrs-copy-link {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    line-height: 1.4;
}

.wrs-copy-code:hover,
.wrs-copy-link:hover {
    background: #135e96;
    color: #fff;
}

/* Referrals table styles */
.wrs-referrals-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
}

.wrs-referrals-table th,
.wrs-referrals-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.wrs-referrals-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.wrs-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.wrs-status-pending {
    background: #fff6e5;
    color: #94660c;
}

.wrs-status-completed {
    background: #e8f5e9;
    color: #1b5e20;
}

.wrs-status-cancelled {
    background: #ffebee;
    color: #b71c1c;
}

/* Success message */
.wrs-success-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4caf50;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: none;
    z-index: 9999;
    font-size: 14px;
}

/* Share buttons */
.wrs-share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.wrs-share-button {
    padding: 8px 15px;
    border-radius: 3px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.2s;
}

.wrs-share-button:hover {
    opacity: 0.9;
    color: #fff;
}

.wrs-share-facebook {
    background: #1877f2;
}

.wrs-share-twitter {
    background: #1da1f2;
}

.wrs-share-whatsapp {
    background: #25d366;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

.wrs-success-message.show {
    display: block;
    animation: fadeIn 0.3s ease-out forwards;
}

.wrs-success-message.hide {
    animation: fadeOut 0.3s ease-out forwards;
}

/* Responsive styles */

@media (max-width: 767px) {
    .wrs-referrals-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    }
    .wrs-referrals-table thead {
    display: none;
    }
    .wrs-referrals-table tbody,
    .wrs-referrals-table tr,
    .wrs-referrals-table th,
    .wrs-referrals-table td {
    display: block;
    width: 100%;
    text-align: left;
    }
    .wrs-referrals-table tr {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    }
    .wrs-referrals-table td {
    padding: 5px 10px;
    border-bottom: none;
    }
    .wrs-referrals-table td:before {
    content: attr(data-label);
    font-weight: bold;
    margin-right: 10px;
    }
    }