/* ==========================================================================
   OMNI PREMIUM WIDGET UI (v3)
   ========================================================================== */
.omni-channel-card .ctc-card-content {
    background: transparent !important;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
}

/* 1. Active List Item */
.omni-channel-item {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
    transition: all 0.2s ease;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
}

.omni-channel-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    border-color: #d1d5db !important;
}

/* 2. Header Structure */
.omni-item-header {
    display: flex !important;
    align-items: center !important;
    padding: 16px !important;
    cursor: pointer !important;
    background: white !important;
}

/* Drag Handle */
.omni-item-header .drag-handle {
    position: static !important;
    transform: none !important;
    color: #D1D5DB !important;
    cursor: grab !important;
    margin-inline-end: 15px !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
}

/* Icon Box */
.omni-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-inline-end: 15px;
    background-color: #f9fafb;
    border: 1px solid #f3f4f6;
    flex-shrink: 0;
}

/* Info Box */
.omni-info-box {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.omni-name {
    font-weight: 600;
    font-size: 15px;
    color: #1f2937;
    margin-bottom: 2px;
}

.omni-status {
    font-size: 12px;
    color: #6b7280;
}

/* Actions */
.omni-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}


.omni-channel-item.is-expanded .expand-toggle {
    transform: rotate(180deg);
}

/* 3. Settings Body */
.omni-item-body {
    padding: 20px !important;
    border-top: 1px solid #e5e7eb !important;
    background-color: #f9fafb !important;
    display: none;
}

.omni-channel-item.is-expanded .omni-item-body {
    display: block !important;
}

/* 4. Add Button */
.add-channel-btn {
    width: 100%;
    padding: 16px;
    border: 2px dashed #e5e7eb;
    background: transparent;
    color: #6b7280;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.add-channel-btn:hover {
    border-color: #4F46E5;
    color: #4F46E5;
    background-color: #eef2ff;
}

/* 5. Modal Styles */
.omni-modal-overlay {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(2px);
}

.omni-modal-overlay.is-active {
    display: flex;
}

.omni-modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.omni-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.omni-modal-search {
    padding: 10px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    width: 250px;
    font-size: 14px;
}

.omni-modal-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #f9fafb;
}

.omni-cat-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.omni-cat-title:first-child {
    margin-top: 0;
}

/* ========================================
   OMNI INLINE DELETE CONFIRM
   ======================================== */

/* Initially Hidden */
.omni-actions .delete-confirm-wrapper {
    display: none;
    align-items: center;
    gap: 8px;
    background: #FEF2F2;
    padding: 4px 8px;
    border-radius: 6px;
    margin-inline-start: 8px;
    border: 1px solid #FECACA;
}

/* Active State: Show Wrapper */
.omni-actions.confirming .delete-confirm-wrapper {
    display: flex !important;
    animation: fadeIn 0.2s ease;
}

/* Active State: Hide Original Buttons */
.omni-actions.confirming .omni-delete-action,
.omni-actions.confirming .expand-toggle {
    display: none !important;
}