/**
 * p4umailalertinject - Frontend styles
 */

.p4u-mailalert-form {
    margin: 16px 0;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.p4u-mailalert-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.p4u-mailalert-field {
    flex: 1;
    min-width: 200px;
}

.p4u-mailalert-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.p4u-mailalert-input:focus {
    border-color: #03a84e;
    outline: none;
    box-shadow: 0 0 0 2px rgba(3, 168, 78, 0.15);
}

.p4u-mailalert-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #03a84e;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.p4u-mailalert-btn:hover {
    background: #028a3f;
}

.p4u-mailalert-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

.p4u-mailalert-btn .material-icons {
    font-size: 18px;
}

.p4u-mailalert-msg {
    width: 100%;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 4px;
}

.p4u-mailalert-msg--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.p4u-mailalert-msg--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 576px) {
    .p4u-mailalert-inner {
        flex-direction: column;
    }

    .p4u-mailalert-btn {
        width: 100%;
        justify-content: center;
    }
}
