/**
 * My Account Subscription Styles
 *
 * @package UCAM_Subscription_Upsell
 */

/* Account Subscription Container */
.usu-account-subscription {
    max-width: 800px;
}

.usu-account-subscription h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2e7d32;
}

/* Grid Layout */
.usu-account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .usu-account-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.usu-account-card {
    background: #f9f9f9;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    padding: 20px;
}

.usu-account-card h3 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e4e7;
    font-size: 16px;
    color: #333;
}

/* Status Badge */
.usu-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.usu-status-active {
    background: #d4edda;
    color: #155724;
}

.usu-status-pending_activation {
    background: #fff3cd;
    color: #856404;
}

.usu-status-cancelled,
.usu-status-cancelling {
    background: #f8d7da;
    color: #721c24;
}

.usu-status-past_due {
    background: #fff3cd;
    color: #856404;
}

.usu-small {
    font-size: 12px;
    color: #666;
}

.usu-small code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    word-break: break-all;
}

.usu-warning {
    background: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 13px;
}

.usu-warning .dashicons {
    vertical-align: text-bottom;
}

/* Coverage List */
.usu-coverage-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.usu-coverage-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e2e4e7;
    display: flex;
    align-items: center;
    gap: 10px;
}

.usu-coverage-list li:last-child {
    border-bottom: none;
}

.usu-coverage-list .dashicons {
    color: #2e7d32;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Billing Info */
.usu-billing-info {
    grid-column: 1 / -1;
}

.usu-billing-table {
    width: 100%;
    border-collapse: collapse;
}

.usu-billing-table td {
    padding: 8px 0;
    border-bottom: 1px solid #e2e4e7;
}

.usu-billing-table td:first-child {
    font-weight: 500;
    width: 40%;
    color: #666;
}

.usu-billing-table tr:last-child td {
    border-bottom: none;
}

/* Actions */
.usu-account-actions {
    background: #f0f0f1;
    padding: 20px;
    border-radius: 6px;
}

.usu-account-actions h3 {
    margin: 0 0 10px 0;
}

.usu-account-actions p {
    margin: 0 0 15px 0;
}

.usu-account-actions .button {
    text-decoration: none;
}

/* Empty State */
.usu-no-subscription .usu-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
}

.usu-empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.usu-empty-state p {
    font-size: 16px;
    color: #666;
}

/* Upgrade Offer Box */
.usu-upgrade-offer-box {
    background: #e8f5e9;
    border: 2px solid #2e7d32;
    border-radius: 6px;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
}

.usu-upgrade-offer-box h3 {
    color: #2e7d32;
    margin: 0 0 10px 0;
}

.usu-upgrade-offer-box p {
    margin: 0 0 15px 0;
    color: #333;
}

.usu-upgrade-offer-box .button-primary {
    background: #2e7d32;
    border-color: #2e7d32;
}

.usu-upgrade-offer-box .button-primary:hover {
    background: #1b5e20;
    border-color: #1b5e20;
}
