/* NC Workshop Purchase — standalone styles */

.nc-wsp-card {
    max-width: 480px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.nc-wsp-title {
    margin: 0 0 0.25rem;
    font-size: 1.35rem;
    color: #333;
}

.nc-wsp-description {
    margin: 0 0 1rem;
    color: #666;
    font-size: 0.95rem;
}

.nc-wsp-remaining {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: #555;
}

.nc-wsp-remaining strong {
    color: #333;
}

/* Tiers */

.nc-wsp-tiers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Sold-out tier */

.nc-wsp-tier--sold-out .nc-wsp-tier-sold {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.nc-wsp-tier-price-struck {
    text-decoration: line-through;
    color: #999;
    font-size: 0.95rem;
}

.nc-wsp-badge-sold {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    background: #e0e0e0;
    color: #777;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    letter-spacing: 0.03em;
}

/* Active purchase button */

.nc-wsp-buy-btn {
    display: block;
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: #4A3F6B;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease;
}

.nc-wsp-buy-btn:hover {
    background: #382e7c;
}

.nc-wsp-buy-btn:disabled,
.nc-wsp-buy-btn.nc-wsp-btn--loading {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Widget container */

.nc-wsp-widget-container {
    margin-top: 0.75rem;
    min-height: 200px;
}

/* Messages */

.nc-wsp-message {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    text-align: center;
}

.nc-wsp-message--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.nc-wsp-message--error {
    background: #fbe9e7;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Customer fields */

.nc-wsp-customer-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1.25rem;
    background: #f9f9fb;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
}

.nc-wsp-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: #555;
}

.nc-wsp-input {
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
}

.nc-wsp-input:focus {
    outline: none;
    border-color: #4A3F6B;
    box-shadow: 0 0 0 2px rgba(74, 63, 107, 0.15);
}

.nc-wsp-continue-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.25rem;
    background: #4A3F6B;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nc-wsp-continue-btn:hover {
    background: #382e7c;
}

.nc-wsp-continue-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Tier button states */

.nc-wsp-btn--dimmed {
    opacity: 0.4;
}

.nc-wsp-btn--selected {
    opacity: 1;
    box-shadow: 0 0 0 2px #4A3F6B;
}

/* Pay hint */

.nc-wsp-pay-hint {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin: 0.5rem 0 0;
    font-style: italic;
}

/* Loading spinner */

.nc-wsp-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.25rem;
    color: #555;
    font-size: 0.95rem;
}

.nc-wsp-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e0e0e0;
    border-top-color: #4A3F6B;
    border-radius: 50%;
    animation: nc-wsp-spin 0.7s linear infinite;
}

@keyframes nc-wsp-spin {
    to { transform: rotate(360deg); }
}

/* Status notices */

.nc-wsp-sold-out-notice,
.nc-wsp-closed-notice {
    padding: 1rem;
    background: #f5f5f5;
    color: #666;
    text-align: center;
    border-radius: 6px;
    font-size: 0.95rem;
}

.nc-wsp-error {
    color: #c62828;
}

/* Responsive */

@media (max-width: 540px) {
    .nc-wsp-card {
        margin: 1rem;
        padding: 1.25rem;
    }
}
