/**
 * Frontend styles for WooCommerce Stripe Billing Subscriptions
 */

/* Subscription button wrapper */
.wcsbs-subscription-button-wrapper {
    margin: 15px 0;
}

/* Subscription button */
.wcsbs-subscribe-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.wcsbs-subscribe-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.wcsbs-subscribe-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Lifetime access notice */
.wcsbs-lifetime-notice {
    padding: 15px 20px;
    margin: 20px 0;
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    border-radius: 4px;
}

.wcsbs-lifetime-notice strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    color: #0369a1;
}

.wcsbs-lifetime-notice p {
    margin: 0;
    color: #075985;
}

/* Subscriptions table in My Account */
.woocommerce-MyAccount-subscriptions {
    margin-top: 20px;
}

/* Cancel subscription button */
.wcsbs-cancel-subscription {
    padding: 6px 12px;
    font-size: 14px;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.wcsbs-cancel-subscription:hover {
    background: #b91c1c;
}

/* Loading state */
.wcsbs-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.wcsbs-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: wcsbs-spin 0.6s linear infinite;
}

@keyframes wcsbs-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .wcsbs-subscribe-button {
        width: 100%;
        padding: 14px 20px;
    }
}
