/**
 * Stock notification styles
 */

.woominder-stock-notification-form {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.woominder-stock-notification-form h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.woominder-stock-notification-form p {
    margin: 0 0 15px 0;
    color: #666;
}

.woominder-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.woominder-email-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.woominder-email-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}

.woominder-submit-button {
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.woominder-submit-button:hover {
    background: #005a87;
}

.woominder-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.woominder-consent-row {
    margin-bottom: 15px;
}

.woominder-consent-row label {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.woominder-consent-row input[type="checkbox"] {
    margin: 0;
}

.woominder-form-message {
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 14px;
}

.woominder-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.woominder-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.woominder-notification-message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.woominder-notification-message.woominder-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.woominder-notification-message.woominder-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.woominder-notification-message.woominder-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.woominder-notification-message.woominder-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive design */
@media (max-width: 768px) {
    .woominder-form-row {
        flex-direction: column;
    }
    
    .woominder-submit-button {
        width: 100%;
    }
}

/* Loading state */
.woominder-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.woominder-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: woominder-spin 1s linear infinite;
}

@keyframes woominder-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}