/* ==========================================================
   HỌC 247 MEGA MENU v1.11.0
   Cột trái: danh mục sản phẩm. Cột phải: sản phẩm theo danh mục.
========================================================== */

.cflic-nav-menu .flic-mega { position: relative !important; }
.flic-mega > a[data-cflic-mega-toggle="1"] { cursor: default; }

/* Theo yêu cầu: Khóa ôn luyện KHÔNG có mũi tên cạnh tiêu đề. */
.flic-mega > a[data-cflic-mega-toggle="1"]::after {
  content: none !important;
  display: none !important;
}

.flic-mega-panel { display: none; }

@media (min-width: 1081px) {
  .cflic-nav-menu .flic-mega:hover > .flic-mega-panel,
  .cflic-nav-menu .flic-mega:focus-within > .flic-mega-panel {
    display: block !important;
  }
}

.flic-mega-panel-v1110 {
  position: absolute;
  top: 100%;
  left: 0;
  width: 720px;
  max-width: calc(100vw - 40px);
  padding: 0;
  background: #fff;
  border: 1px solid #d7dce3;
  border-radius: 0 !important;
  box-shadow: 0 16px 34px rgba(25, 36, 50, .14);
  z-index: 999999;
  overflow: hidden;
}

.flic-mega-columns {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 438px;
  max-height: min(610px, calc(100vh - 96px));
}

.flic-mega-root-column {
  min-width: 0;
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid #d7dce3;
}

.flic-mega-heading {
  min-height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  color: #697386;
  background: #fff;
  border-bottom: 1px solid #e4e7eb;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.flic-mega-root-list { padding: 0; }

.flic-mega-root-link,
.flic-mega-product-link {
  min-height: 42px;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 9px 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #303747 !important;
  text-decoration: none !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  transform: none !important;
  transition: color .13s ease, background .13s ease;
}

.flic-mega-root-link:hover,
.flic-mega-root-link:focus,
.flic-mega-root-link.is-active {
  background: #f2f4f7 !important;
  color: #365f8f !important;
}

.flic-mega-root-link.is-active { box-shadow: inset 2px 0 0 #56779b; }
.flic-mega-root-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flic-mega-arrow { justify-self: end; color: #727b87; font-size: 18px; line-height: 1; font-weight: 400; }

.flic-mega-product-column {
  min-width: 0;
  overflow-y: auto;
  background: #fff;
}

.flic-mega-product-panel { display: none; min-height: 100%; padding: 6px 0; }
.flic-mega-product-panel.is-active:not([hidden]) { display: block; }
.flic-mega-product-list { display: block; }

.flic-mega-product-link {
  min-height: 42px;
  padding-left: 18px !important;
  padding-right: 18px !important;
}

.flic-mega-product-link:hover,
.flic-mega-product-link:focus {
  background: #f7f8fa !important;
  color: #365f8f !important;
}

.flic-mega-product-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.flic-mega-product-loading,
.flic-mega-product-empty,
.flic-mega-product-error {
  min-height: 120px;
  padding: 22px 18px;
  color: #7a838e;
  font-size: 13.5px;
  line-height: 1.6;
}

.flic-mega-product-loading {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.flic-mega-product-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border: 2px solid #d6dce4;
  border-top-color: #58799d;
  border-radius: 50%;
  animation: cflicMegaSpin .7s linear infinite;
}

@keyframes cflicMegaSpin { to { transform: rotate(360deg); } }

.flic-mega-empty a {
  display: block;
  padding: 14px 18px;
  color: #303747 !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
}
