/**
 * Mesaj Gonder Modal CSS.
 *
 * @package Necox
 * @since   2.99.2
 */

.necox-msg-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.necox-msg-modal[hidden] {
    display: none;
}

.necox-msg-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.necox-msg-modal__dialog {
    position: relative;
    background: var(--necox-white, #fff);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    padding: 24px;
    animation: necox-msg-modal-in 0.2s ease-out;
}
@keyframes necox-msg-modal-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.necox-msg-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--necox-muted, #6b7280);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.necox-msg-modal__close:hover {
    background: var(--necox-bg, #f9fafb);
}
.necox-msg-modal__close .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.necox-msg-modal__header {
    margin-bottom: 18px;
    padding-right: 36px;
}
.necox-msg-modal__title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--necox-text, #111827);
}
.necox-msg-modal__sub {
    margin: 0;
    font-size: 13px;
    color: var(--necox-muted, #6b7280);
}

.necox-msg-modal__label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--necox-text, #111827);
    margin-bottom: 6px;
}

.necox-msg-modal__text {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--necox-border, #e5e7eb);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    outline: none;
    transition: border-color 0.15s;
    color: var(--necox-text, #111827);
    background: var(--necox-bg, #f9fafb);
    box-sizing: border-box;
}
.necox-msg-modal__text:focus {
    border-color: var(--necox-primary, #d93603);
}

.necox-msg-modal__feedback {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
}
.necox-msg-modal__feedback.is-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}
.necox-msg-modal__feedback.is-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.necox-msg-modal__footer {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.necox-msg-modal__footer .necox-btn {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
    font-family: inherit;
}
.necox-msg-modal__footer .necox-btn--ghost {
    background: transparent;
    border-color: var(--necox-border, #e5e7eb);
    color: var(--necox-text, #111827);
}
.necox-msg-modal__footer .necox-btn--ghost:hover {
    background: var(--necox-bg, #f9fafb);
}
.necox-msg-modal__footer .necox-btn--primary {
    background: var(--necox-primary, #d93603);
    color: #fff;
    border-color: var(--necox-primary, #d93603);
}
.necox-msg-modal__footer .necox-btn--primary:hover {
    opacity: 0.92;
}
.necox-msg-modal__footer .necox-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .necox-msg-modal {
        padding: 0;
        align-items: flex-end;
    }
    .necox-msg-modal__dialog {
        border-radius: 12px 12px 0 0;
        max-height: 85vh;
    }
}
