#outofstock-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.osn-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    padding-top: 14%;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.5);
}
.osn-modal-content {
    background: #fff;
    margin: auto;
    padding: 15px;
    max-width: 400px;
    text-align: left;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
}

.osn-modal-content h3 {
    font-size: 20px;
}

.osn-modal-content p {
    line-height: 1.2;
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.osn-close {
    font-size: 29px;
    cursor: pointer;
    position: absolute;
    right: 8px;
    color: #fff;
    top: -33px;
    font-weight: 200;
}
.osn-modal input {
    width: 100%;
    padding: 8px;
    margin: 5px 0 10px;
    border-radius: 0 !important;
}
.osn-modal button {
    width: 100%;
    background: #000;
    border-radius: 0;
}

/* Admin table styles for disabled/notified rows */
.osn-select-row:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}
.osn-select-row:disabled:hover {
    cursor: not-allowed;
}

/* Validation styling for form inputs */
#outofstock-form input[type="text"],
#outofstock-form input[type="tel"],
#outofstock-form input[type="email"] {
    transition: border-color 0.3s ease;
}

#outofstock-form input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Valid input styling */
#outofstock-form input.valid,
#outofstock-form input[style*="border-color: rgb(40, 167, 69)"] {
    border-color: #28a745 !important;
}

/* Invalid input styling */
#outofstock-form input.invalid,
#outofstock-form input[style*="border-color: rgb(220, 53, 69)"] {
    border-color: #dc3545 !important;
}

/* Error message styling */
#osn-error {
    background-color: #fee;
    border-left: 4px solid #dc3545;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
}

/* Success message styling */
#osn-success {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 14px;
}

/* Small helper text */
#outofstock-form small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #666;
}

/* Input field spacing */
#outofstock-form div {
    margin-bottom: 15px;
}

/* Required asterisk */
#outofstock-form label span {
    color: #dc3545;
    margin-left: 2px;
}

/* Submit button disabled state */
#outofstock-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Placeholder styling */
#outofstock-form input::placeholder {
    color: #999;
    font-size: 13px;
}

/* Input focus animation */
#outofstock-form input:focus::placeholder {
    opacity: 0.5;
}