/**
 * Frontend Styles for WC Admin Subscriptions
 */

/* My Subscriptions Page */
.wcas-my-subscriptions {
    margin-top: 20px;
}

.wcas-my-subscriptions h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ebe9eb;
}

/* Pending Notice */
.wcas-pending-notice {
    background: #fff8e5;
    border: 1px solid #ffba00;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 30px;
}

.wcas-pending-notice h3 {
    margin-top: 0;
    color: #94660c;
    border-bottom: none;
    padding-bottom: 0;
}

.wcas-pending-notice p {
    margin-bottom: 15px;
}

.wcas-pending-notice .button.pay {
    background: #96588a;
    border-color: #96588a;
    color: #fff;
}

.wcas-pending-notice .button.pay:hover {
    background: #7a4172;
    border-color: #7a4172;
}

/* Status Badges */
.wcas-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wcas-badge-active {
    background-color: #c6e1c6;
    color: #5b841b;
}

.wcas-badge-paused {
    background-color: #f8dda7;
    color: #94660c;
}

.wcas-badge-cancelled {
    background-color: #eba3a3;
    color: #761919;
}

/* Subscription Table */
.wcas-subscriptions-table {
    margin-bottom: 30px;
}

.wcas-subscriptions-table th,
.wcas-subscriptions-table td {
    text-align: left;
    padding: 12px 15px;
}

.wcas-subscriptions-table thead th {
    background: #f8f8f8;
    font-weight: 600;
}

.wcas-subscriptions-table tbody tr:nth-child(even) {
    background: #fbfbfb;
}

/* Responsive Tables */
@media screen and (max-width: 600px) {
    .wcas-subscriptions-table thead {
        display: none;
    }

    .wcas-subscriptions-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ebe9eb;
        border-radius: 4px;
    }

    .wcas-subscriptions-table td {
        display: block;
        text-align: right;
        padding: 10px 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    .wcas-subscriptions-table td:last-child {
        border-bottom: none;
    }

    .wcas-subscriptions-table td::before {
        content: attr(data-title);
        float: left;
        font-weight: 600;
    }
}