.subscribe_waitlist{
    background-color: var(--wd-primary-color,#f81453) !important;
    color: white !important;
    border-radius: 5px !important;
    text-align: center;
    padding: 5px 20px !important;
}
.waitlist-container {
    width: 100%;
    margin: 0 auto;
    direction: rtl;
}
.waitlist-header {
    margin-bottom: 30px;
    text-align: right;
}
.waitlist-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.3;
}
.waitlist-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}
/* Loader Overlay */
.waitlist-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 99998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.waitlist-loader-spinner {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.spinner-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    animation: waitlist-bounce 1.4s ease-in-out infinite both;
}

.spinner-circle:nth-child(1) {
    animation-delay: -0.32s;
}

.spinner-circle:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes waitlist-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loader-text {
    font-size: 16px;
    color: #4b5563;
    font-weight: 500;
    margin: 0;
}

/* Table Wrapper */
.waitlist-table-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

/* Table Styles */
.waitlist-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.waitlist-table thead {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-bottom: 2px solid #e5e7eb;
}

.waitlist-table th {
    padding: 16px 20px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.waitlist-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.waitlist-table tbody tr:hover {
    background: #f9fafb;
    transform: translateX(-2px);
}

.waitlist-table tbody tr:last-child {
    border-bottom: none;
}

.waitlist-table td {
    padding: 20px;
    vertical-align: middle;
}

/* Image Column */
.td-image {
    width: 100px;
}

.product-image-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.product-image-wrapper:hover {
    border-color: #3b82f6;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Name Column */
.td-name {
    min-width: 250px;
}

.product-name-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: color 0.2s ease;
}

.product-name-link:hover {
    color: #3b82f6;
}

.product-name {
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.5;
}

/* Status Column */
.td-status {
    text-align: center;
}

.sms-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.sms-status-badge.status-active {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.sms-status-badge.status-inactive {
    background: linear-gradient(135deg, #f6af3e 0%, #f6af3e 100%);
    color: white;
    border: 1px solid #f6af3e;
}

.status-icon {
    font-size: 14px;
    font-weight: 700;
}

.status-text {
    line-height: 1;
}

/* Action Column */
.td-action {
    text-align: center;
    width: 120px;
}

.btn-remove {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px !important;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
    border-radius: 8px !important;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-remove:hover {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-remove:active {
    transform: translateY(0);
}

.btn-remove.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-remove.loading .btn-remove-text {
    opacity: 0;
}

.btn-remove.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    border: 2px solid rgba(153, 27, 27, 0.3);
    border-top-color: #991b1b;
    border-radius: 50%;
    animation: waitlist-spin 0.8s linear infinite;
}

@keyframes waitlist-spin {
    to {
        transform: translate(50%, -50%) rotate(360deg);
    }
}

.btn-remove-icon {
    font-size: 16px;
    line-height: 1;
}

.btn-remove-text {
    line-height: 1;
    transition: opacity 0.2s ease;
}

/* Empty State */
.waitlist-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-title {
    font-size: 22px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 10px 0;
}

.empty-description {
    font-size: 15px;
    margin: 0 0 25px 0;
    color: #6b7280;
}

.empty-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--main-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.empty-link:hover {
    transform: translateY(-2px);
    background: var(--main-color) !important;
    color: white !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .waitlist-container {
        padding: 20px 15px;
    }

    .waitlist-title {
        font-size: 24px;
    }

    .waitlist-subtitle {
        font-size: 14px;
    }

    .waitlist-table-wrapper {
        border-radius: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .waitlist-table {
        min-width: 600px;
    }

    .waitlist-table th {
        padding: 12px 15px;
        font-size: 12px;
    }

    .waitlist-table td {
        padding: 15px;
    }

    .td-image {
        width: 80px;
    }

    .product-image-wrapper {
        width: 60px;
        height: 60px;
    }

    .product-name {
        font-size: 14px;
    }

    .sms-status-badge {
        padding: 6px 12px;
        font-size: 12px;
    }

    .btn-remove {
        padding: 8px 14px;
        font-size: 13px;
    }

    .btn-remove-text {
        display: none;
    }

    .btn-remove-icon {
        font-size: 18px;
    }

    .td-name {
        min-width: 200px;
    }

    .td-action {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .waitlist-container {
        padding: 15px 10px;
    }

    .waitlist-header {
        margin-bottom: 20px;
    }

    .waitlist-title {
        font-size: 20px;
    }

    .waitlist-table {
        min-width: 500px;
    }

    .waitlist-table th,
    .waitlist-table td {
        padding: 12px 10px;
    }

    .product-image-wrapper {
        width: 50px;
        height: 50px;
    }

    .empty-icon {
        font-size: 48px;
    }

    .empty-title {
        font-size: 18px;
    }

    .empty-description {
        font-size: 14px;
    }
}

/* RTL Support */
[dir="rtl"] .waitlist-table th,
[dir="rtl"] .waitlist-table td {
    text-align: right;
}

[dir="rtl"] .td-status,
[dir="rtl"] .td-action {
    text-align: center;
}