.media-box {
    border: 1px dashed #ccc;
    /* padding:1rem; */
    border-radius: 8px;
    position: relative;
    width: 100%;
}

.media-label {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1rem;
    cursor: pointer;
}

.media-input {
    display: none;
}

.media-preview {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    padding: 1rem;
}

.media-preview.hidden,
.media-label.hidden {
    display: none;
}

.media-item img {
    width: auto;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.media-file-item {
    padding: 6px 10px;
    background: #f8f8f8;
    border-radius: 6px;
}

.media-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff4d4f;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.media-action {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
}

.media-dropzone {
    border: 2px dashed var(--border-color, #d0d5dd);
    border-radius: 10px;
    transition: border-color .15s ease, background-color .15s ease;
}

.media-dropzone .media-drop-hint {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.media-dropzone.drag-over {
    border-color: #6366f1;
    background-color: rgba(99, 102, 241, .06);
}

.media-drop-overlay {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 5;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(99, 102, 241, .08);
    border: 2px dashed #6366f1;
    border-radius: 10px;
    color: #4f46e5;
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
}

.media-drop-overlay .material-icons-outlined {
    font-size: 28px;
}

.media-dropzone.drag-over .media-drop-overlay {
    display: flex;
}