/* ===========================
   Empty / Error / Loading States
   _bak/comment.css, _bak/modal.css 참고
   =========================== */

.emoticon-empty {
    border: 1px solid var(--md-outline);
    border-radius: var(--md-radius);
    padding: 42px 16px;
    background: var(--md-surface);
    box-shadow: var(--md-shadow-soft);
    color: var(--md-muted);
    text-align: center;
}

[x-cloak] {
    display: none !important;
}

.emoticon-async-message,
.emoticon-error {
    margin-bottom: 14px;
    border: 1px solid var(--md-outline);
    border-radius: var(--md-radius);
    padding: 12px 14px;
    background: var(--md-surface);
    color: var(--md-muted);
    font-size: 13px;
}

.emoticon-error {
    border-color: #f0b4b4;
    background: #fff5f5;
    color: var(--md-danger);
}

#emoticonValidationMessage {
    color: var(--emoticon-admin-text, #59616f);
    font-size: 13px;
}

.emoticon-preview-item.is-invalid span,
.emoticon-state-text {
    color: var(--md-danger);
}

.emoticon-page-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.76);
    opacity: 0;
    transition: opacity 0.12s ease;
}

.emoticon-page-loader.is-visible {
    pointer-events: auto;
    opacity: 1;
}

.emoticon-page-loader-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    border: 1px solid var(--md-outline);
    border-radius: var(--md-radius-lg);
    padding: 0 16px;
    background: var(--md-surface);
    box-shadow: var(--md-shadow);
    color: var(--emoticon-admin-text, #59616f);
    font-size: 13px;
    font-weight: 400;
}

.emoticon-page-loader-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--md-outline);
    border-top-color: var(--md-primary);
    border-radius: 50%;
    animation: emoticonLoaderSpin 0.72s linear infinite;
}

.is-loading body {
    cursor: progress;
}

@keyframes emoticonLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}
