/**
 * Stock Notification Styles
 *
 * @category  IrrigationKing
 * @package   IrrigationKing_StockNotification
 */

/* Product Detail Page Widget */
.stock-notification-widget {
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
}

.stock-notification-toggle {
    margin-bottom: 10px;
}

.stock-notification-link {
    color: #006bb4;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.3s ease;
}

.stock-notification-link:hover {
    color: #004a7a;
    text-decoration: none;
}

.stock-notification-form-wrapper {
    margin-top: 15px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.stock-notification-form .form-description {
    margin-bottom: 20px;
    color: #333;
    font-size: 14px;
}

.stock-notification-form .field {
    margin-bottom: 20px;
}

.stock-notification-form .label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.stock-notification-form .label span:after {
    content: '*';
    color: #e02b27;
    margin-left: 4px;
}

.stock-notification-form .field.phone .label span:after {
    content: '';
}

.stock-notification-form .input-text {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.stock-notification-form .input-text:focus {
    border-color: #006bb4;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 107, 180, 0.1);
}

.stock-notification-form .actions-toolbar {
    margin-top: 20px;
}

.stock-notification-form .action.primary {
    background: #006bb4;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.stock-notification-form .action.primary:hover {
    background: #004a7a;
}

.stock-notification-form .action.primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Message Styles */
.stock-notification-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 3px;
}

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

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

/* Product List Trigger Link */
.stock-notification-trigger {
    display: block;
    margin-top: 8px;
    color: #006bb4;
    text-decoration: underline;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.stock-notification-trigger:hover {
    color: #004a7a;
    text-decoration: none;
}

/* Popup Styles */
.stock-notification-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.stock-notification-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.stock-notification-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.stock-notification-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.stock-notification-popup-close:hover {
    color: #000;
}

.stock-notification-popup-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.stock-notification-popup-product-name {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.stock-notification-popup-form {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .stock-notification-popup-content {
        padding: 20px;
    }
    
    .stock-notification-popup-title {
        font-size: 20px;
    }
}
