/**
 * Dakhl Theme - Live Sales Floating Popups & Morphing Dock Engine
 * Dynamic Island / Apple-style morphing dock with cascading waterfall SLIDE transitions.
 * Pure Opacity + Transform (Zero Blur Lag), warm eye-catching background, 100% Persian.
 */

/* ==========================================================================
   1. MORPHING MOBILE DOCK (Dynamic Island for Bottom Navigation)
   ========================================================================== */

/* Dock Container Morphed State: Smoothly expands upwards with an eye-catching gradient */
.dakhl-bottom-navbar.is-morphed {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  min-height: 84px !important;
  padding: 11px 14px !important;
  border-radius: 24px !important;
  cursor: pointer;
  will-change: min-height, transform;
  transform: translateZ(0);
  contain: paint;
  transition: min-height 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.38s ease,
              border-color 0.38s ease,
              box-shadow 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- DOCK THEME PRESETS --- */
/* Theme 1: Sunset Amber (Default) */
.dakhl-bottom-navbar.is-morphed.theme-sunset,
.dakhl-bottom-navbar.is-morphed:not([class*="theme-"]) {
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 42%, #ffedd5 100%) !important;
  border: 1.5px solid #fed7aa !important;
  box-shadow: 0 20px 48px -6px rgba(249, 115, 22, 0.24),
              inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
              0 6px 18px rgba(0, 0, 0, 0.06) !important;
}

/* Theme 2: Apple Glass (Minimalist Clean Frosted) */
.dakhl-bottom-navbar.is-morphed.theme-glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.93) 100%) !important;
  border: 1.5px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 20px 48px -6px rgba(15, 23, 42, 0.12),
              inset 0 1.5px 0 rgba(255, 255, 255, 1),
              0 6px 18px rgba(0, 0, 0, 0.04) !important;
}
.dakhl-bottom-navbar.is-morphed.theme-glass .dakhl-dock-sale-time {
  color: #475569 !important;
  background: rgba(241, 245, 249, 0.9) !important;
  border-color: rgba(226, 232, 240, 0.9) !important;
}

/* Theme 3: Rose Coral */
.dakhl-bottom-navbar.is-morphed.theme-rose {
  background: linear-gradient(135deg, #ffffff 0%, #fff1f2 42%, #ffe4e6 100%) !important;
  border: 1.5px solid #fecdd3 !important;
  box-shadow: 0 20px 48px -6px rgba(244, 63, 94, 0.22),
              inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
              0 6px 18px rgba(0, 0, 0, 0.05) !important;
}
.dakhl-bottom-navbar.is-morphed.theme-rose .dakhl-dock-sale-time {
  color: #be123c !important;
  background: rgba(255, 228, 230, 0.85) !important;
  border-color: rgba(254, 205, 211, 0.9) !important;
}

/* Theme 4: Emerald Fresh */
.dakhl-bottom-navbar.is-morphed.theme-emerald {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 42%, #dcfce7 100%) !important;
  border: 1.5px solid #bbf7d0 !important;
  box-shadow: 0 20px 48px -6px rgba(34, 197, 94, 0.22),
              inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
              0 6px 18px rgba(0, 0, 0, 0.05) !important;
}
.dakhl-bottom-navbar.is-morphed.theme-emerald .dakhl-dock-sale-time {
  color: #15803d !important;
  background: rgba(220, 252, 231, 0.85) !important;
  border-color: rgba(187, 247, 208, 0.9) !important;
}

/* Theme 5: Royal Lavender */
.dakhl-bottom-navbar.is-morphed.theme-lavender {
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 42%, #f3e8ff 100%) !important;
  border: 1.5px solid #e9d5ff !important;
  box-shadow: 0 20px 48px -6px rgba(168, 85, 247, 0.22),
              inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
              0 6px 18px rgba(0, 0, 0, 0.05) !important;
}
.dakhl-bottom-navbar.is-morphed.theme-lavender .dakhl-dock-sale-time {
  color: #7e22ce !important;
  background: rgba(243, 232, 255, 0.85) !important;
  border-color: rgba(233, 213, 255, 0.9) !important;
}

/* Theme 6: Obsidian Luxury Dark */
.dakhl-bottom-navbar.is-morphed.theme-dark {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 20px 48px -6px rgba(0, 0, 0, 0.5),
              inset 0 1.5px 0 rgba(255, 255, 255, 0.15) !important;
}
.dakhl-bottom-navbar.is-morphed.theme-dark .dakhl-dock-sale-user {
  color: #f8fafc !important;
}
.dakhl-bottom-navbar.is-morphed.theme-dark .dakhl-dock-sale-title {
  color: #e2e8f0 !important;
}
.dakhl-bottom-navbar.is-morphed.theme-dark .dakhl-dock-sale-time {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
.dakhl-bottom-navbar.is-morphed.theme-dark .dakhl-dock-sale-close {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #cbd5e1 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Nav Layer: Smooth fade & gentle slide down when exiting */
.dakhl-dock-nav-layer {
  display: flex;
  width: 100%;
  justify-content: space-around;
  align-items: center;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dakhl-dock-nav-layer.is-exiting {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  pointer-events: none;
}

/* Waterfall Slide Entrance for Nav Items when dock un-morphs (NO BLUR, PURE OPACITY + SLIDE) */
@keyframes dockNavWaterfallSlideIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.dakhl-dock-nav-layer.is-waterfall-in .nav-item:nth-child(1) {
  animation: dockNavWaterfallSlideIn 0.36s cubic-bezier(0.16, 1, 0.3, 1) 0.03s both;
}
.dakhl-dock-nav-layer.is-waterfall-in .nav-item:nth-child(2) {
  animation: dockNavWaterfallSlideIn 0.36s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}
.dakhl-dock-nav-layer.is-waterfall-in .nav-item:nth-child(3) {
  animation: dockNavWaterfallSlideIn 0.36s cubic-bezier(0.16, 1, 0.3, 1) 0.13s both;
}
.dakhl-dock-nav-layer.is-waterfall-in .nav-item:nth-child(4) {
  animation: dockNavWaterfallSlideIn 0.36s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

/* Morphed Live Sales Layer */
.dakhl-dock-live-sales-layer {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  position: relative;
  direction: rtl;
  box-sizing: border-box;
}

/* Waterfall Slide Keyframes for Live Sale elements (NO BLUR, PURE TRANSLATE3D + OPACITY) */
@keyframes dockThumbWaterfallSlideIn {
  0% {
    opacity: 0;
    transform: translate3d(16px, 0, 0) scale(0.88);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes dockItemWaterfallSlideIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes dockWaterfallSlideOut {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -10px, 0);
  }
}

/* Staggered cascading slide entrance */
.dakhl-dock-live-sales-layer.is-waterfall-in .dakhl-dock-sale-thumb {
  animation: dockThumbWaterfallSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.04s both;
}

.dakhl-dock-live-sales-layer.is-waterfall-in .dakhl-dock-sale-user {
  animation: dockItemWaterfallSlideIn 0.36s cubic-bezier(0.16, 1, 0.3, 1) 0.10s both;
}

.dakhl-dock-live-sales-layer.is-waterfall-in .dakhl-dock-sale-time {
  animation: dockItemWaterfallSlideIn 0.36s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both;
}

.dakhl-dock-live-sales-layer.is-waterfall-in .dakhl-dock-sale-title {
  animation: dockItemWaterfallSlideIn 0.36s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

.dakhl-dock-live-sales-layer.is-waterfall-in .dakhl-dock-sale-badge {
  animation: dockItemWaterfallSlideIn 0.36s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}

.dakhl-dock-live-sales-layer.is-waterfall-in .dakhl-dock-sale-close {
  animation: dockItemWaterfallSlideIn 0.32s ease 0.28s both;
}

/* Cascading slide exit */
.dakhl-dock-live-sales-layer.is-leaving {
  animation: dockWaterfallSlideOut 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Thumbnail (Large, Prominent, Crisp) */
.dakhl-dock-sale-thumb {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1.5px solid rgba(254, 215, 170, 0.85);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dakhl-dock-sale-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dakhl-dock-sale-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  font-size: 26px;
}

/* Content Details */
.dakhl-dock-sale-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dakhl-dock-sale-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-left: 24px; /* Space for close button */
}

/* Buyer Name (14px Bold) */
.dakhl-dock-sale-user {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

/* Relative Time Pill (11px) */
.dakhl-dock-sale-time {
  font-size: 11px;
  font-weight: 600;
  color: #c2410c;
  background: rgba(255, 237, 213, 0.85);
  padding: 1.5px 8px;
  border-radius: 100px;
  flex-shrink: 0;
  direction: rtl;
  border: 1px solid rgba(254, 215, 170, 0.9);
}

/* Product Title (13.5px Prominent) */
.dakhl-dock-sale-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #1e293b;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.dakhl-dock-sale-title:hover {
  color: #ea580c;
}

/* Status Badge */
.dakhl-dock-sale-badge {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
}

/* Glowing Emerald Dot */
.dakhl-dock-sale-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  box-shadow: 0 0 0 2.5px rgba(16, 185, 129, 0.25);
  animation: dakhlSalePulse 2s infinite ease-in-out;
}

@keyframes dakhlSalePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.7;
  }
}

/* Close Button (✕) */
.dakhl-dock-sale-close {
  position: absolute;
  top: 1px;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(254, 215, 170, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a3412;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  z-index: 10;
}

.dakhl-dock-sale-close:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
  transform: scale(1.1);
}

.dakhl-dock-sale-close svg {
  width: 11px;
  height: 11px;
}


/* ==========================================================================
   2. STANDALONE TOAST (For Desktop Screens > 768px or pages without dock)
   ========================================================================== */

.dakhl-live-sale-toast {
  position: fixed;
  z-index: 99990;
  width: auto;
  max-width: 380px;
  min-width: 320px;
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 42%, #ffedd5 100%);
  border: 1.5px solid #fed7aa;
  border-radius: 22px;
  box-shadow: 0 20px 48px -8px rgba(249, 115, 22, 0.24),
              inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
              0 6px 18px rgba(0, 0, 0, 0.06);
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  direction: rtl;
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 100%, 0);
  will-change: transform, opacity;
  contain: layout paint;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.45s ease;
  visibility: hidden;
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, Tahoma, sans-serif;
}

.dakhl-live-sale-toast.pos-bottom-left {
  bottom: 24px;
  left: 24px;
}

.dakhl-live-sale-toast.pos-bottom-right {
  bottom: 24px;
  right: 24px;
}

/* Visible State */
.dakhl-live-sale-toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  visibility: visible;
}

/* Leaving State */
.dakhl-live-sale-toast.is-leaving {
  opacity: 0;
  transform: translate3d(0, 100%, 0);
  pointer-events: none;
  visibility: hidden;
}

/* Desktop Thumbnail */
.dakhl-live-sale-thumb {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: #ffffff;
  border: 1.5px solid rgba(254, 215, 170, 0.85);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dakhl-live-sale-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dakhl-live-sale-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  font-size: 26px;
}

/* Desktop Content Area */
.dakhl-live-sale-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5px;
}

.dakhl-live-sale-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-left: 20px;
}

.dakhl-live-sale-name {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.dakhl-live-sale-time {
  font-size: 11px;
  font-weight: 600;
  color: #c2410c;
  background: rgba(255, 237, 213, 0.85);
  padding: 1.5px 8px;
  border-radius: 100px;
  flex-shrink: 0;
  direction: rtl;
  border: 1px solid rgba(254, 215, 170, 0.9);
}

.dakhl-live-sale-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #1e293b;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.dakhl-live-sale-title:hover {
  color: #ea580c;
}

.dakhl-live-sale-badge {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
}

.dakhl-live-sale-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: dakhlSalePulse 2s infinite ease-in-out;
}

.dakhl-live-sale-close {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(254, 215, 170, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a3412;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  padding: 0;
  transition: all 0.2s ease;
}

.dakhl-live-sale-close:hover {
  color: #ef4444;
  border-color: #fca5a5;
  background: #fee2e2;
  transform: scale(1.1);
}

.dakhl-live-sale-close svg {
  width: 11px;
  height: 11px;
}

/* Standalone Toast Theme Presets */
.dakhl-live-sale-toast.theme-sunset,
.dakhl-live-sale-toast:not([class*="theme-"]) {
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 42%, #ffedd5 100%);
  border-color: #fed7aa;
  box-shadow: 0 20px 48px -8px rgba(249, 115, 22, 0.24), inset 0 1.5px 0 rgba(255, 255, 255, 0.95), 0 6px 18px rgba(0, 0, 0, 0.06);
}

.dakhl-live-sale-toast.theme-glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.93) 100%);
  border-color: rgba(226, 232, 240, 0.95);
  box-shadow: 0 20px 48px -8px rgba(15, 23, 42, 0.12), inset 0 1.5px 0 rgba(255, 255, 255, 1), 0 6px 18px rgba(0, 0, 0, 0.04);
}
.dakhl-live-sale-toast.theme-glass .dakhl-live-sale-thumb {
  border-color: rgba(226, 232, 240, 0.9);
}
.dakhl-live-sale-toast.theme-glass .dakhl-live-sale-time {
  color: #475569;
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(226, 232, 240, 0.9);
}

.dakhl-live-sale-toast.theme-rose {
  background: linear-gradient(135deg, #ffffff 0%, #fff1f2 42%, #ffe4e6 100%);
  border-color: #fecdd3;
  box-shadow: 0 20px 48px -8px rgba(244, 63, 94, 0.22), inset 0 1.5px 0 rgba(255, 255, 255, 0.95), 0 6px 18px rgba(0, 0, 0, 0.05);
}
.dakhl-live-sale-toast.theme-rose .dakhl-live-sale-thumb {
  border-color: rgba(254, 205, 211, 0.9);
}
.dakhl-live-sale-toast.theme-rose .dakhl-live-sale-time {
  color: #be123c;
  background: rgba(255, 228, 230, 0.85);
  border-color: rgba(254, 205, 211, 0.9);
}

.dakhl-live-sale-toast.theme-emerald {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 42%, #dcfce7 100%);
  border-color: #bbf7d0;
  box-shadow: 0 20px 48px -8px rgba(34, 197, 94, 0.22), inset 0 1.5px 0 rgba(255, 255, 255, 0.95), 0 6px 18px rgba(0, 0, 0, 0.05);
}
.dakhl-live-sale-toast.theme-emerald .dakhl-live-sale-thumb {
  border-color: rgba(187, 247, 208, 0.9);
}
.dakhl-live-sale-toast.theme-emerald .dakhl-live-sale-time {
  color: #15803d;
  background: rgba(220, 252, 231, 0.85);
  border-color: rgba(187, 247, 208, 0.9);
}

.dakhl-live-sale-toast.theme-lavender {
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 42%, #f3e8ff 100%);
  border-color: #e9d5ff;
  box-shadow: 0 20px 48px -8px rgba(168, 85, 247, 0.22), inset 0 1.5px 0 rgba(255, 255, 255, 0.95), 0 6px 18px rgba(0, 0, 0, 0.05);
}
.dakhl-live-sale-toast.theme-lavender .dakhl-live-sale-thumb {
  border-color: rgba(233, 213, 255, 0.9);
}
.dakhl-live-sale-toast.theme-lavender .dakhl-live-sale-time {
  color: #7e22ce;
  background: rgba(243, 232, 255, 0.85);
  border-color: rgba(233, 213, 255, 0.9);
}

.dakhl-live-sale-toast.theme-dark {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.5), inset 0 1.5px 0 rgba(255, 255, 255, 0.15);
}
.dakhl-live-sale-toast.theme-dark .dakhl-live-sale-name {
  color: #f8fafc !important;
}
.dakhl-live-sale-toast.theme-dark .dakhl-live-sale-title {
  color: #e2e8f0 !important;
}
.dakhl-live-sale-toast.theme-dark .dakhl-live-sale-time {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
.dakhl-live-sale-toast.theme-dark .dakhl-live-sale-close {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #cbd5e1 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
.dakhl-live-sale-toast.theme-dark .dakhl-live-sale-thumb {
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   3. FLOATING WIDGETS PHYSICAL LIFT SYNC WITH MORPHING DOCK
   Smoothly lifts floating widgets (like live chat and size guide) in tandem
   with the dock's height expansion curve (0.42s cubic-bezier(0.16, 1, 0.3, 1))
   ========================================================================== */
@media (max-width: 768px) {
  #dakhl-mobile-nav ~ #dakhl-live-sales-toast,
  body.has-bottom-dock #dakhl-live-sales-toast {
    display: none !important;
  }

  /* Physical connection sync: widgets glide up when dock morphs */
  #dakhl-live-chat-wrapper:not(.is-open),
  #dakhl-size-guide-floating-btn,
  .dakhl-back-to-top {
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease !important;
    will-change: transform;
  }

  #dakhl-live-chat-wrapper.dakhl-dock-is-morphed:not(.is-open),
  #dakhl-size-guide-floating-btn.dakhl-dock-is-morphed,
  .dakhl-back-to-top.dakhl-dock-is-morphed {
    transform: translate3d(0, -22px, 0) !important;
  }
}
