/* Nerey Membership Premium Checkout Styles - Neutral Theme */
:root {
    --nm-primary: var(--nm-primary-color, #6366f1);
    --nm-primary-dark: var(--nm-primary-dark, #4f46e5);

    /* Neutral Colors for Theme Compatibility */
    --nm-bg-color: transparent;
    --nm-card-bg: #ffffff;
    --nm-text-main: inherit;
    --nm-text-muted: #64748b;
    --nm-border-color: #e2e8f0;
    --nm-input-bg: #f8fafc;
}

/* Wrapper: Transparent to show theme background */
.nm-checkout-wrapper {
    width: 100%;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    background: transparent;
}

/* Card: Clean white card */
.nm-checkout-card {
    width: 100%;
    max-width: 520px;
    background: var(--nm-card-bg);
    border: 1px solid var(--nm-border-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    color: var(--nm-text-main);
}

.nm-checkout-header {
    text-align: center;
    margin-bottom: 30px;
}

.nm-checkout-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.nm-checkout-price-box {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-size: 1.25em;
    font-weight: bold;
    color: var(--nm-primary);
    margin-top: 5px;
}

.nm-checkout-fields {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.nm-field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--nm-text-muted);
}

.nm-input {
    width: 100%;
    background: var(--nm-input-bg);
    border: 1px solid var(--nm-border-color);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 1rem;
    color: inherit;
    transition: border-color 0.2s;
}

.nm-input:focus {
    border-color: var(--nm-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.nm-payment-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--nm-border-color);
}

#nm-card-element {
    background: var(--nm-input-bg);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--nm-border-color);
    margin-bottom: 20px;
}

/* Submit Button */
.nm-checkout-submit {
    width: 100%;
    background: var(--nm-primary);
    color: white;
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: opacity 0.2s;
}

.nm-checkout-submit:hover {
    background: var(--nm-primary-dark);
}

.nm-checkout-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.nm-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.nm-message {
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 0.9rem;
    display: none;
}

.nm-message.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

@media (max-width: 600px) {
    .nm-checkout-card {
        padding: 20px;
    }
}