/* WP Stripe Subscriptions - Frontend Styles */

.wpss-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 32px auto;
}

.wpss-pricing-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.wpss-pricing-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.wpss-pricing-title {
    font-size: 1.4em;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.wpss-pricing-description {
    color: #666;
    font-size: 0.95em;
    margin: 0 0 20px;
    line-height: 1.5;
}

.wpss-pricing-amount {
    margin: 20px 0 24px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.wpss-currency {
    font-size: 0.9em;
    color: #666;
}

.wpss-price {
    font-size: 2.4em;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.wpss-interval {
    font-size: 0.9em;
    color: #888;
}

/* Buttons */
.wpss-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #635bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, opacity 0.2s;
    line-height: 1.4;
}

.wpss-btn:hover {
    background: #4b45c6;
    color: #fff;
    text-decoration: none;
}

.wpss-btn:disabled,
.wpss-btn-disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.wpss-btn-secondary {
    background: #f4f4f5;
    color: #333;
    border: 1px solid #ddd;
}

.wpss-btn-secondary:hover {
    background: #e8e8ea;
    color: #333;
}

.wpss-btn-danger {
    background: #fff;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.wpss-btn-danger:hover {
    background: #dc3545;
    color: #fff;
}

/* Account */
.wpss-account {
    max-width: 600px;
    margin: 24px auto;
}

.wpss-account-info {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 32px;
}

.wpss-account-info h3 {
    margin: 0 0 20px;
    font-size: 1.3em;
}

.wpss-account-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.wpss-account-table th,
.wpss-account-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.wpss-account-table th {
    color: #666;
    font-weight: 500;
    width: 40%;
}

/* Status badges */
.wpss-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

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

.wpss-status-canceled {
    background: #fff3cd;
    color: #856404;
}

.wpss-status-past_due,
.wpss-status-unpaid {
    background: #f8d7da;
    color: #721c24;
}

.wpss-status-trialing {
    background: #cce5ff;
    color: #004085;
}

.wpss-status-expired {
    background: #e2e3e5;
    color: #383d41;
}

/* Account actions */
.wpss-account-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wpss-account-empty {
    text-align: center;
    padding: 32px;
}

/* Notices and errors */
.wpss-error {
    color: #dc3545;
    padding: 12px;
    background: #f8d7da;
    border-radius: 8px;
}

.wpss-notice {
    color: #856404;
    padding: 12px;
    background: #fff3cd;
    border-radius: 8px;
}

/* Loading state */
.wpss-btn.wpss-loading {
    opacity: 0.7;
    pointer-events: none;
}

.wpss-btn.wpss-loading::after {
    content: " ...";
}

/* Responsive */
@media (max-width: 600px) {
    .wpss-pricing-grid {
        grid-template-columns: 1fr;
    }

    .wpss-account-actions {
        flex-direction: column;
    }

    .wpss-account-actions .wpss-btn {
        text-align: center;
    }
}
