/* ==========================================================================
   GrapesJS Asset Manager — Upload size warning banner
   ========================================================================== */

.gjs-upload-inline-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.55), rgba(69, 10, 10, 0.45));
    border-top: 1px solid rgba(239, 68, 68, 0.35);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gjs-upload-inline-warning.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.gjs-upload-inline-warning.is-hiding {
    opacity: 0;
    transform: translateY(4px);
}

.gjs-warn-title {
    font-size: 12px;
    font-weight: 600;
    color: #f87171;
    letter-spacing: 0.01em;
    margin-bottom: 2px;
}

.gjs-warn-body {
    font-size: 11.5px;
    color: rgba(252, 165, 165, 0.85);
    line-height: 1.55;
}

.gjs-warn-body strong {
    color: #fca5a5;
}

.gjs-warn-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: rgba(252, 165, 165, 0.5);
    line-height: 0;
    margin-top: 1px;
    transition: color 0.15s;
}

.gjs-warn-close:hover {
    color: #fca5a5;
}

.gjs-warn-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: rgba(239, 68, 68, 0.5);
    transform-origin: left;
}
