/* ClickSendSub Frontend Styles */

/* Subscription Tabs */
.csub-subscription-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.csub-tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: #666;
    transition: all 0.2s;
}

.csub-tab-btn:hover,
.csub-tab-btn:focus {
    color: #333;
    outline: none;
}

.csub-tab-btn:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: -2px;
}

.csub-tab-btn.active {
    color: #333;
    border-bottom-color: #333;
    font-weight: 600;
}

/* Subscription Panels */
.csub-subscription-panel {
    display: none;
}

.csub-subscription-panel.active {
    display: block;
}

/* Recipients Table */
.csub-recipients-table {
    width: 100%;
    margin-bottom: 20px;
}

.csub-recipients-table input[type="text"],
.csub-recipients-table input[type="tel"],
.csub-recipients-table select {
    width: 100%;
    min-width: 100px;
}

.csub-recipients-table th {
    font-weight: 600;
    text-align: left;
    padding: 10px 8px;
}

.csub-recipients-table td {
    padding: 8px;
    vertical-align: middle;
}

/* Badge */
.csub-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* Remove Button */
.csub-remove-recipient {
    color: #d63638 !important;
    border-color: #d63638 !important;
}

.csub-remove-recipient:hover {
    background: #d63638 !important;
    color: #fff !important;
}

/* Add Recipient */
.csub-add-recipient {
    margin-top: 10px;
}

/* New recipient row (added via JS) */
.csub-new-recipient-row {
    background: #f9f9f9;
}

/* Responsive */
@media (max-width: 600px) {
    .csub-recipients-table,
    .csub-recipients-table thead,
    .csub-recipients-table tbody,
    .csub-recipients-table th,
    .csub-recipients-table td,
    .csub-recipients-table tr {
        display: block;
    }

    .csub-recipients-table thead {
        display: none;
    }

    .csub-recipients-table td {
        padding: 6px 8px;
        text-align: left;
    }

    .csub-recipients-table td::before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: 4px;
    }

    .csub-recipients-table tr {
        margin-bottom: 16px;
        border: 1px solid #e0e0e0;
        padding: 8px;
    }
}
