/**
 * WC Waiting List - Frontend Styles
 */

/* Form Container */
.wcwl-waitlist-form {
    margin: 20px 0;
    padding: 20px;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
}

.wcwl-waitlist-form.wcwl-subscribed {
    background: #e8f5e9;
    border-color: #c8e6c9;
}

/* Title */
.wcwl-waitlist-form .wcwl-title {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

/* Message */
.wcwl-waitlist-form .wcwl-message {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 0.95em;
}

/* Form Fields */
.wcwl-form-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}

.wcwl-email-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 1em;
}

.wcwl-email-input:focus {
    outline: none;
    border-color: #333;
}

/* Buttons */
.wcwl-button {
    padding: 10px 25px !important;
    background: #333 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 3px !important;
    cursor: pointer;
    font-size: 1em !important;
    transition: background 0.3s ease;
}

.wcwl-button:hover {
    background: #555 !important;
}

.wcwl-leave-button {
    background: #dc3545 !important;
}

.wcwl-leave-button:hover {
    background: #c82333 !important;
}

/* Success Message */
.wcwl-success {
    color: #2e7d32;
    font-weight: 500;
    margin: 0 0 15px 0;
}

/* Counter */
.wcwl-counter {
    margin: 15px 0 0 0;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
    font-size: 0.9em;
    color: #666;
}

/* Notices */
.wcwl-notices {
    margin-top: 10px;
}

.wcwl-notice {
    padding: 10px 15px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.wcwl-notice-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wcwl-notice-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading State */
.wcwl-loading .wcwl-button {
    opacity: 0.7;
    cursor: wait;
}

/* My Waitlist Page */
.wcwl-my-waitlist {
    margin: 20px 0;
}

.wcwl-my-waitlist .wcwl-no-items {
    padding: 30px;
    text-align: center;
    background: #f8f8f8;
    border-radius: 5px;
    color: #666;
}

.wcwl-my-waitlist table img {
    width: 50px;
    height: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.wcwl-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 500;
}

.wcwl-status-instock {
    background: #d4edda;
    color: #155724;
}

.wcwl-status-outofstock {
    background: #f8d7da;
    color: #721c24;
}

.wcwl-remove-button {
    background: #dc3545 !important;
    color: #fff !important;
    border: none !important;
}

.wcwl-remove-button:hover {
    background: #c82333 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .wcwl-form-fields {
        flex-direction: column;
    }
    
    .wcwl-email-input {
        width: 100%;
    }
    
    .wcwl-button {
        width: 100%;
    }
    
    .wcwl-my-waitlist table img {
        display: none;
    }
}
