/* Gtea mega menus (catalog / blog / pages), see controller/extension/module/gtea_megamenu.php */
.ronixa-header-dropdown-menu:has(.gtea-mm) { padding: 0; min-height: 0; }
@media (min-width: 992px) {
  .ronixa-header-dropdown-menu:has(.gtea-mm--blog) { width: 380px; }
  .ronixa-header-dropdown-menu:has(.gtea-mm--pages) { width: 260px; }
  /* the catalog panel is centred under the whole navbar instead of hanging off its menu item */
  .menu-item:has(> .ronixa-header-dropdown-menu .gtea-mm--catalog) { position: static; }
  .ronixa-header-dropdown-menu:has(.gtea-mm--catalog) { width: 860px; left: 50%; margin-left: -430px; }
}
.gtea-mm { --mm-primary: var(--ronixa-theme-primary-color, #42666e); font-size: 14px; line-height: 1.4; color: #222; text-align: left; text-transform: none; letter-spacing: 0; }
.gtea-mm a { text-decoration: none; color: inherit; text-transform: none; letter-spacing: 0; border: 0 !important; min-height: 0 !important; }
.gtea-mm ul { list-style: none; margin: 0; padding: 0; }
.gtea-mm li { margin: 0 !important; padding: 0 !important; border: 0 !important; width: auto; background: none; }
.gtea-mm--catalog { padding: 20px; }
.gtea-mm__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.gtea-mm__card { display: flex; flex-direction: column; gap: 14px; padding: 16px; background: #fafafa; border: 1px solid #eceff1; border-radius: 8px; transition: border-color .2s, box-shadow .2s; }
.gtea-mm__card:hover { border-color: var(--mm-primary); box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.gtea-mm__head { display: flex; align-items: center; gap: 12px; }
.gtea-mm__thumb { width: 60px; height: 60px; flex: none; border-radius: 8px; object-fit: cover; background: #fff; }
.gtea-mm .gtea-mm__title { flex: 1; font-size: 15px; font-weight: 600; color: #222; }
.gtea-mm__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gtea-mm .gtea-mm__chips a { display: block; width: auto; height: auto; line-height: 1.4; padding: 5px 10px !important; font-size: 13px; color: #444 !important; background: #fff; border: 1px solid #e4e8eb !important; border-radius: 8px; transition: background .2s, border-color .2s, color .2s; }
.gtea-mm .gtea-mm__chips a:hover { background: var(--mm-primary); border-color: var(--mm-primary) !important; color: #fff !important; }
/* One button style for every call-to-action of the menus: the theme's secondary button (grey, 8px), primary on hover */
.gtea-mm .gtea-mm__btn { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 8px 14px !important; font-size: 13px; font-weight: 400; line-height: 1.4; color: #3e3e3e !important; background: #f3f3f3; border: 0 !important; border-radius: 8px; transition: background .2s, color .2s; }
.gtea-mm .gtea-mm__btn i { font-size: 12px; transition: transform .2s; }
.gtea-mm .gtea-mm__btn:hover { background: var(--mm-primary); color: #fff !important; }
.gtea-mm .gtea-mm__btn:hover i { transform: translateX(3px); }
.gtea-mm__bar { margin: 8px 8px 2px; padding-top: 12px; border-top: 1px solid #eceff1; }
/* the whole catalog card is one link (stretched over the card); chips and the button stay separately clickable */
.gtea-mm__card { position: relative; cursor: pointer; }
.gtea-mm__head::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.gtea-mm .gtea-mm__btn, .gtea-mm .gtea-mm__chips a { position: relative; z-index: 1; }
.gtea-mm .gtea-mm__chips { pointer-events: none; }
.gtea-mm .gtea-mm__chips a { pointer-events: auto; }
.gtea-mm__foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #eceff1; }
.gtea-mm--blog { padding: 14px; }
.gtea-mm .gtea-mm__post { display: flex; align-items: center; gap: 12px; padding: 8px !important; border-radius: 8px; transition: background .2s; }
.gtea-mm .gtea-mm__post:hover { background: #f4f6f7; }
.gtea-mm__post img { width: 64px; height: 48px; flex: none; object-fit: cover; border-radius: 8px; }
.gtea-mm .gtea-mm__post-title { color: #222; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 500; }
.gtea-mm .gtea-mm__post-date { display: block; margin-top: 2px; font-size: 12px; color: #8a949a; }
.gtea-mm--pages { padding: 10px; }
.gtea-mm .gtea-mm__pages a { display: block; width: auto; line-height: 1.4; padding: 9px 12px !important; border-radius: 8px; font-size: 14px; color: #333 !important; transition: background .2s, color .2s; }
.gtea-mm .gtea-mm__pages a:hover { background: #f4f6f7; color: var(--mm-primary) !important; }
@media (max-width: 991px) {
  .gtea-mm--catalog { padding: 12px; }
  .gtea-mm__cards { grid-template-columns: 1fr; gap: 12px; }
  .gtea-mm__card { padding: 12px; gap: 10px; }
  .gtea-mm__thumb { width: 48px; height: 48px; }
  .gtea-mm__foot { margin-top: 12px; padding-top: 12px; }
}
/* the same blog list in the footer: no panel padding, items flush with the column */
.gtea-mm--footer.gtea-mm--blog { padding: 0; margin: 0 -8px; }
.gtea-mm--footer .gtea-mm__bar { margin: 8px 8px 0; }
