.icp-container {
    position: fixed;
    left: 0;
    top: 0;
    background: rgb(0 0 0 / 36%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    z-index: 1111111;
}

.icp-cropper-container {
    max-height: 80%;
    max-width: 80%;
    width: auto;
}

.cropper-modal {
    background: initial;
}


.icp-container .icp-loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
    z-index: 111;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Font styles table drag-and-drop */
.lt-font-styles-table .th-drag-handle,
.lt-font-styles-table .td-drag-handle {
    width: 30px;
    text-align: center;
    padding: 0 !important;
}

.lt-font-styles-table .drag-handle {
    cursor: grab;
    font-size: 18px;
    color: #999;
    user-select: none;
    display: inline-block;
    padding: 5px;
    transition: color 0.2s ease;
}

.lt-font-styles-table .drag-handle:hover {
    color: #333;
}

.lt-font-styles-table .font-style-row.sortable-chosen .drag-handle,
.lt-font-styles-table .font-style-row.sortable-ghost .drag-handle {
    cursor: grabbing;
}

.lt-font-styles-table .font-style-row.sortable-ghost {
    opacity: 0.4;
    background: #f5f5f5;
}

.lt-font-styles-table .font-style-row.sortable-chosen {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Hide drag handle for single row (can't reorder single item) */
.lt-font-styles-table tbody:has(.font-style-row:only-child) .drag-handle {
    visibility: hidden;
}
