/* ── FAB ── */
#imf-lc-fab {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 2147483646; /* por encima de cualquier header/sticky del tema */
  width: 56px;
  height: 56px;
  border-radius: 50% !important;
  background: #1A1A1A !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 8px 24px -8px rgba( 0, 0, 0, .35 ) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
#imf-lc-fab:hover { background: #E94E1B !important; transform: translateY( -2px ); }
#imf-lc-fab svg { width: 24px; height: 24px; }
@media (min-width: 768px) { #imf-lc-fab { right: 24px; } }

.imf-lc-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px !important;
  background: #E94E1B !important;
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff !important;
  font-family: 'Inter', sans-serif;
}

/* ── Drawer ── */
.imf-lc-drawer { position: fixed; inset: 0; z-index: 2147483647; pointer-events: none; font-family: 'Inter', sans-serif; }
.imf-lc-drawer .imf-lc-bd {
  position: absolute; inset: 0; background: rgba( 14, 14, 14, .5 ); opacity: 0; transition: opacity .25s;
}
.imf-lc-drawer .imf-lc-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min( 430px, 100% );
  background: #fff !important;
  display: flex; flex-direction: column;
  transform: translateX( 100% );
  transition: transform .3s cubic-bezier( .4, 0, .2, 1 );
  box-shadow: -24px 0 60px -20px rgba( 0, 0, 0, .3 );
}
.imf-lc-drawer.open { pointer-events: auto; }
.imf-lc-drawer.open .imf-lc-bd { opacity: 1; }
.imf-lc-drawer.open .imf-lc-panel { transform: translateX( 0 ); }

.imf-lc-head {
  display: flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 20px; border-bottom: 1px solid #E5E5E5 !important; flex-shrink: 0;
  background: #fff !important; position: relative;
}
.imf-lc-head svg { width: 20px; height: 20px; color: #E94E1B; flex-shrink: 0; }
.imf-lc-head h2 { font-size: 16px; font-weight: 700; margin: 0; color: #1A1A1A !important; }
.imf-lc-badge-pill {
  font-size: 11px; font-weight: 700; background: #F5F5F5 !important; color: #5A5A5A !important;
  border-radius: 999px; padding: 2px 9px;
}
.imf-lc-close {
  margin-left: auto; width: 36px; height: 36px; border-radius: 10px;
  background: none !important; border: none !important; box-shadow: none !important;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s;
}
.imf-lc-close:hover { background: #F5F5F5 !important; }
.imf-lc-close svg { width: 18px; height: 18px; color: #1A1A1A !important; }

.imf-lc-body { flex: 1; overflow-y: auto; }

.imf-lc-empty {
  height: 100% !important;
  min-height: 420px;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 32px;
  text-align: center;
}
.imf-lc-empty-icon {
  width: 64px; height: 64px; border-radius: 50%; background: #F5F5F5; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 16px;
}
.imf-lc-empty-icon svg { width: 28px; height: 28px; color: #5A5A5A; }
.imf-lc-empty-title { font-weight: 600; font-size: 15px; margin: 0; color: #1A1A1A !important; }
.imf-lc-empty-sub { font-size: 13.5px; color: #5A5A5A !important; margin: 6px 0 0; line-height: 1.5; }

.imf-lc-ofertas {
  display: inline-flex !important; align-items: center; gap: 8px; margin-top: 20px;
  background: #E94E1B !important; color: #fff !important; font-weight: 600; font-size: 14px;
  padding: 0 20px; height: 44px; border-radius: 10px; border: none !important; box-shadow: none !important;
  text-decoration: none !important; cursor: pointer; font-family: inherit; transition: background .15s;
}
.imf-lc-ofertas:hover { background: #C8401A !important; }
.imf-lc-ofertas svg { width: 16px; height: 16px; }

.imf-lc-list { list-style: none; margin: 0; padding: 0; }
.imf-lc-item { display: flex; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #E5E5E5; }
.imf-lc-item-img {
  flex-shrink: 0; width: 68px; height: 68px; border-radius: 10px; border: 1px solid #E5E5E5;
  overflow: hidden; display: block; background: #F5F5F5;
}
.imf-lc-item-img img { width: 100%; height: 100%; object-fit: contain; }
.imf-lc-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.imf-lc-no-img svg { width: 60%; height: 60%; color: #C9C9C3; }

.imf-lc-item-body { flex: 1; min-width: 0; }
.imf-lc-item-name {
  display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: #1A1A1A !important;
  text-decoration: none !important; overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.imf-lc-item-name:hover { color: #E94E1B !important; }
.imf-lc-item-sku { font-size: 11px; color: #5A5A5A !important; margin-top: 2px; }

.imf-lc-item-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.imf-lc-qty { display: flex; align-items: center; border: 1px solid #E5E5E5; border-radius: 8px; overflow: hidden; }
.imf-lc-qty-btn {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: #fff !important; border: none !important; box-shadow: none !important; cursor: pointer; color: #1A1A1A !important;
  transition: background .15s, color .15s;
}
.imf-lc-qty-btn:hover { background: #1A1A1A !important; color: #fff !important; }
.imf-lc-qty-btn:disabled { opacity: .35; cursor: not-allowed; }
.imf-lc-qty-btn svg { width: 13px; height: 13px; }
.imf-lc-qty span { display: inline-block; min-width: 28px; text-align: center; font-size: 13px; font-weight: 600; color: #1A1A1A !important; }

.imf-lc-remove {
  font-size: 12px; color: #5A5A5A !important; background: none !important; border: none !important; box-shadow: none !important;
  cursor: pointer; padding: 0; transition: color .15s;
}
.imf-lc-remove:hover { color: #E94E1B !important; }

.imf-lc-price { margin-left: auto; text-align: right; }
.imf-lc-price-old { font-size: 11px; color: #5A5A5A !important; text-decoration: line-through; }
.imf-lc-price-new { font-size: 14px; font-weight: 700; color: #1A1A1A !important; }

.imf-lc-max { font-size: 11.5px; color: #E94E1B !important; font-weight: 500; margin-top: 6px; }

.imf-lc-foot { border-top: 1px solid #E5E5E5; padding: 20px; flex-shrink: 0; background: #fff !important; }

.imf-lc-ship { margin-bottom: 16px; }
.imf-lc-ship-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #1A1A1A !important; margin-bottom: 8px; }
.imf-lc-ship-row svg { width: 16px; height: 16px; color: #E94E1B; flex-shrink: 0; }
.imf-lc-shipbar { height: 4px; border-radius: 999px; background: #E8E8E4; overflow: hidden; }
.imf-lc-shipbar i { display: block; height: 100%; background: #E94E1B; }
.imf-lc-ship--ok { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: #0F7B3F !important; }
.imf-lc-ship--ok svg { width: 16px; height: 16px; }

.imf-lc-row { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; color: #5A5A5A !important; margin-bottom: 4px; }
.imf-lc-saved { font-weight: 600; color: #E94E1B !important; }
.imf-lc-row--total { font-size: 15px; font-weight: 700; color: #1A1A1A !important; margin: 8px 0 4px; }
.imf-lc-row--total span:last-child { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }

.imf-lc-note { font-size: 11px; color: #5A5A5A !important; margin: 0 0 14px; }

.imf-lc-checkout {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 48px;
  background: #E94E1B !important; color: #fff !important; font-weight: 600; font-size: 14.5px;
  border-radius: 10px; border: none !important; box-shadow: none !important; text-decoration: none !important;
  cursor: pointer; font-family: inherit; transition: background .15s;
}
.imf-lc-checkout:hover { background: #C8401A !important; }
.imf-lc-checkout--disabled,
.imf-lc-checkout--disabled:hover { background: #E5E5E5 !important; color: #8A8A85 !important; cursor: not-allowed; }

.imf-lc-continue {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 38px; margin-top: 6px;
  background: none !important; border: none !important; box-shadow: none !important; color: #5A5A5A !important;
  font-size: 13px; cursor: pointer; font-family: inherit; transition: color .15s;
}
.imf-lc-continue:hover { color: #1A1A1A !important; }

@media (max-width: 480px) {
  .imf-lc-drawer .imf-lc-panel { width: 100%; }
}
