.lcmtm-mobile-shell,
.lcmtm-mobile-top,
.lcmtm-mobile-bottom { display: none; }

.lcmtm-mobile-shell,
.lcmtm-mobile-shell * { box-sizing: border-box; }

.lcmtm-mobile-top {
  width: 100%;
  background: var(--lcmtm-top-bg, #fff8ef);
  border-bottom: 1px solid rgba(201,146,75,.22);
  box-shadow: 0 6px 18px rgba(90,47,34,.08);
  z-index: 10050 !important;
  position: sticky;
  top: 0;
}

/* v2.0.0: flex appbar prevents logo overlap/collapse on mobile. */
.lcmtm-appbar {
  min-height: 62px;
  padding: 8px 12px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  background: var(--lcmtm-top-bg, #fff8ef);
  width: 100% !important;
}

.lcmtm-logo-row {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.lcmtm-mobile-shell[dir="rtl"] .lcmtm-appbar { flex-direction: row-reverse !important; }
.lcmtm-mobile-shell[dir="rtl"] .lcmtm-logo-row { justify-content: flex-end !important; }

.lcmtm-site-logo-link,
.lcmtm-logo-row .custom-logo-link,
.lcmtm-logo-row .lcmtm-site-title,
.lcmtm-drawer-logo .lcmtm-site-logo-link,
.lcmtm-drawer-logo .custom-logo-link,
.lcmtm-drawer-logo .lcmtm-site-title {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-decoration: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-width: 100% !important;
  min-width: 1px !important;
}

.lcmtm-site-logo,
.lcmtm-logo-row img,
.lcmtm-logo-row .custom-logo {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: var(--lcmtm-logo-height,44px) !important;
  max-height: var(--lcmtm-logo-height,44px) !important;
  width: auto !important;
  max-width: min(62vw, 220px) !important;
  object-fit: contain !important;
  object-position: left center !important;
  position: relative !important;
  z-index: 10052 !important;
}

.lcmtm-mobile-shell[dir="rtl"] .lcmtm-site-logo,
.lcmtm-mobile-shell[dir="rtl"] .lcmtm-logo-row img,
.lcmtm-mobile-shell[dir="rtl"] .lcmtm-logo-row .custom-logo { object-position: right center !important; }

.lcmtm-site-title {
  font-family: Poppins, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--lcmtm-pill-text,#5a2f22);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lcmtm-menu-toggle {
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 42px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--lcmtm-hamburger-bg,#5a2f22) !important;
  color: var(--lcmtm-hamburger-text,#fff) !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  box-shadow: 0 8px 18px rgba(90,47,34,.22) !important;
  position: relative !important;
  z-index: 10053 !important;
}
.lcmtm-menu-toggle span { width: 19px; height: 2px; border-radius: 999px; background: currentColor; display: block; }

.lcmtm-appbar-actions {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.lcmtm-profile-btn {
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  background: var(--lcmtm-pill-bg, #f4e5d3) !important;
  color: var(--lcmtm-pill-text, #5a2f22) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  box-shadow: 0 6px 14px rgba(90, 47, 34, 0.12) !important;
}

.lcmtm-profile-btn svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lcmtm-profile-card {
  margin: 0 0 12px;
  padding: 0;
}

.lcmtm-profile-card__main {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--lcmtm-pill-bg, #f4e5d3) 0%, #fff8ef 100%);
  border: 1px solid rgba(201, 146, 75, 0.28);
  text-decoration: none;
  color: inherit;
}

.lcmtm-profile-card__avatar {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(194, 122, 58, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lcmtm-profile-card__avatar-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.lcmtm-profile-card__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lcmtm-profile-card__name {
  font-family: var(--lcmtm-bottom-font-family, Poppins, Arial, sans-serif);
  font-size: 16px;
  font-weight: 800;
  color: var(--lcmtm-drawer-text, #3b241d);
  line-height: 1.2;
}

.lcmtm-profile-card__mobile {
  font-size: 13px;
  font-weight: 600;
  color: var(--lcmtm-pill-text, #5a2f22);
  opacity: 0.85;
}

.lcmtm-profile-card__cta {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--lcmtm-drawer-active-bg-2, #c27a3a);
}

.lcmtm-drawer-account-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.lcmtm-drawer-account-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--lcmtm-drawer-item-separator, #eadfd2);
  color: var(--lcmtm-drawer-text, #3b241d);
  text-decoration: none;
  font-family: var(--lcmtm-bottom-font-family, Poppins, Arial, sans-serif);
  font-size: 14px;
  font-weight: 700;
}

.lcmtm-drawer-account-menu a:hover {
  background: rgba(201, 124, 62, 0.1);
  color: var(--lcmtm-drawer-active-bg-2, #c27a3a);
}

.lcmtm-drawer-link--post-free {
  margin: 6px 0 10px;
}

.lcmtm-drawer-link--post-free a {
  justify-content: center;
  text-align: center;
  min-height: 48px;
  padding: 12px 16px;
  border: none;
  border-radius: 4px;
  color: #fff !important;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #c9924b 0%, #a87438 45%, #8f5f2e 100%) !important;
  box-shadow: 0 2px 10px rgba(122, 78, 40, 0.28);
}

.lcmtm-drawer-link--post-free a:hover {
  background: linear-gradient(90deg, #d4a05a 0%, #b88042 45%, #9a6a35 100%) !important;
  color: #fff !important;
}

.lcmtm-drawer-link--logout a {
  color: #8b3a2a;
}

.lcmtm-drawer-section-label {
  margin: 4px 0 8px;
  padding: 0 4px;
  font-family: var(--lcmtm-bottom-font-family, Poppins, Arial, sans-serif);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(90, 47, 34, 0.55);
}

.lcmtm-drawer-overlay { position: fixed; inset: 0; background: var(--lcmtm-drawer-overlay, rgba(32,20,13,.42)); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; z-index: 10000; }
.lcmtm-drawer { position: fixed; top: 0; bottom: 0; width: min(82vw,var(--lcmtm-drawer-width,330px)); background: var(--lcmtm-drawer-bg,#fffaf4); box-shadow: 0 18px 48px rgba(0,0,0,.22); z-index: 10001; transition: transform .25s ease; display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.lcmtm-mobile-shell[dir="ltr"] .lcmtm-drawer { right: 0; left: auto; transform: translateX(105%); }
.lcmtm-mobile-shell[dir="rtl"] .lcmtm-drawer { left: 0; right: auto; transform: translateX(-105%); }
.lcmtm-mobile-top.is-open .lcmtm-drawer-overlay { opacity: 1; visibility: visible; pointer-events: auto; }
.lcmtm-mobile-top.is-open .lcmtm-drawer { transform: translateX(0); }

/* Hamburger sits above drawer (z-index 10053); hide it while menu is open */
.lcmtm-mobile-top.is-open .lcmtm-menu-toggle {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html.lcmtm-drawer-open, html.lcmtm-drawer-open body { overflow: hidden; }

.lcmtm-drawer-head { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(201,146,75,.20); background: linear-gradient(180deg,#fff8ef 0%,#f7ead8 100%); }
.lcmtm-drawer-logo { min-width: 0; flex: 1 1 auto; display: flex; align-items: center; }
.lcmtm-drawer-logo img, .lcmtm-drawer-logo .custom-logo, .lcmtm-drawer-logo .lcmtm-site-logo { display: block !important; height: 42px !important; max-height: 42px !important; max-width: 210px !important; width: auto !important; object-fit: contain !important; }
.lcmtm-drawer-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(90,47,34,.08); color: #5a2f22; font-size: 26px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lcmtm-drawer-nav { padding: var(--lcmtm-drawer-padding-y,12px) var(--lcmtm-drawer-padding-x,10px) 22px; }
.lcmtm-drawer-menu { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.lcmtm-drawer-menu > li { margin: 0; padding: 0; list-style: none; }
.lcmtm-drawer-menu > li > a { display: flex; align-items: center; min-height: 46px; padding: var(--lcmtm-drawer-item-padding-y,12px) var(--lcmtm-drawer-item-padding-x,14px); border-radius: var(--lcmtm-drawer-item-radius,14px); border-bottom: 1px solid var(--lcmtm-drawer-item-separator,#eadfd2); color: var(--lcmtm-drawer-text,#3b241d); text-decoration: none; font-family: var(--lcmtm-bottom-font-family, Poppins, Arial, sans-serif); font-size: var(--lcmtm-drawer-item-font-size,15px); font-weight: 700; line-height: 1.2; }
.lcmtm-drawer-menu > li.current-menu-item > a, .lcmtm-drawer-menu > li.current_page_item > a, .lcmtm-drawer-menu > li.current-menu-ancestor > a, .lcmtm-drawer-menu > li > a:hover { background: linear-gradient(180deg,var(--lcmtm-drawer-active-bg-1,#d39a63),var(--lcmtm-drawer-active-bg-2,#c27a3a)); color: var(--lcmtm-drawer-active-text,#fff); }
.lcmtm-drawer-menu .sub-menu,
.lcmtm-drawer-menu ul.children { display: none !important; margin: 6px 0 8px 0 !important; padding: 6px 0 6px 12px !important; list-style: none !important; border-left: 2px solid var(--lcmtm-drawer-item-separator,#eadfd2); }
.lcmtm-mobile-shell[dir="rtl"] .lcmtm-drawer-menu .sub-menu,
.lcmtm-mobile-shell[dir="rtl"] .lcmtm-drawer-menu ul.children { padding-left: 0 !important; padding-right: 12px !important; border-left: 0 !important; border-right: 2px solid var(--lcmtm-drawer-item-separator,#eadfd2); }
.lcmtm-drawer-menu li.lcmtm-submenu-open > .sub-menu,
.lcmtm-drawer-menu li.lcmtm-submenu-open > ul.children { display: block !important; }
.lcmtm-drawer-menu .sub-menu li,
.lcmtm-drawer-menu ul.children li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.lcmtm-drawer-menu .sub-menu a,
.lcmtm-drawer-menu ul.children a { display: flex !important; align-items: center !important; min-height: 42px !important; padding: 10px 12px !important; border-radius: calc(var(--lcmtm-drawer-item-radius,14px) - 4px) !important; color: var(--lcmtm-drawer-text,#3b241d) !important; text-decoration: none !important; font-family: var(--lcmtm-bottom-font-family, Poppins, Arial, sans-serif) !important; font-size: calc(var(--lcmtm-drawer-item-font-size,15px) - 1px) !important; font-weight: 700 !important; background: rgba(255,255,255,.45) !important; }
.lcmtm-drawer-menu .sub-menu a:hover,
.lcmtm-drawer-menu ul.children a:hover { background: rgba(201,124,62,.10) !important; color: var(--lcmtm-drawer-active-bg-2,#c27a3a) !important; }
.lcmtm-drawer-menu > li.menu-item-has-children > a::after,
.lcmtm-drawer-menu > li.page_item_has_children > a::after { content: "›"; margin-left: auto; color: currentColor; opacity: .75; font-size: 22px; transition: transform .18s ease; }
.lcmtm-mobile-shell[dir="rtl"] .lcmtm-drawer-menu > li.menu-item-has-children > a::after,
.lcmtm-mobile-shell[dir="rtl"] .lcmtm-drawer-menu > li.page_item_has_children > a::after { margin-left: 0; margin-right: auto; transform: rotate(180deg); }
.lcmtm-drawer-menu > li.lcmtm-submenu-open > a::after { transform: rotate(90deg); }
.lcmtm-mobile-shell[dir="rtl"] .lcmtm-drawer-menu > li.lcmtm-submenu-open > a::after { transform: rotate(90deg); }

.lcmtm-mobile-bottom { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; min-height: var(--lcmtm-bottom-height,72px); background: var(--lcmtm-bottom-bg,#f0e5d5); border-top: 1px solid var(--lcmtm-bottom-border,#e0d8ce); box-shadow: 0 -8px 24px rgba(90,47,34,.12); z-index: 9999; padding: var(--lcmtm-bottom-padding-y,7px) var(--lcmtm-bottom-padding-x,6px) max(var(--lcmtm-bottom-padding-y,7px),env(safe-area-inset-bottom)); overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.lcmtm-mobile-bottom::-webkit-scrollbar { display: none; }
/* Mobile bottom tab bar: align all items to the same top edge so icon + label row matches across tabs. */
.lcmtm-bottom-menu { display: flex; align-items: flex-start; justify-content: space-around; gap: 2px; list-style: none; margin: 0; padding: 0; min-width: 100%; }
.lcmtm-bottom-item { flex: 1 1 0; min-width: 58px; margin: var(--lcmtm-bottom-item-margin,0); padding: 0; list-style: none; }
.lcmtm-bottom-link { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; min-height: 54px; padding: var(--lcmtm-bottom-item-padding-y,5px) var(--lcmtm-bottom-item-padding-x,4px); border-radius: 16px; color: var(--lcmtm-bottom-text,#472f13); text-decoration: none; font-family: var(--lcmtm-bottom-font-family, Poppins, Arial, sans-serif); font-weight: 700; line-height: 1; transition: background .18s ease,color .18s ease,transform .18s ease; }
.lcmtm-bottom-icon { width: calc(var(--lcmtm-bottom-icon-size,22px) + 1px); height: calc(var(--lcmtm-bottom-icon-size,22px) + 1px); display: inline-flex; align-items: center; justify-content: center; }
.lcmtm-bottom-icon svg { width: var(--lcmtm-bottom-icon-size,22px); height: var(--lcmtm-bottom-icon-size,22px); display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lcmtm-bottom-label { display: block; max-width: 100%; font-size: var(--lcmtm-bottom-label-font-size,10px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: lowercase; }
.lcmtm-bottom-item.is-active .lcmtm-bottom-link, .lcmtm-bottom-link:hover { color: var(--lcmtm-bottom-active,#c27c3e); }
.lcmtm-bottom-link:active { transform: translateY(1px); }
.lcmtm-mobile-shell[dir="rtl"] .lcmtm-bottom-menu { direction: rtl; }
.lcmtm-mobile-shell[dir="ltr"] .lcmtm-bottom-menu { direction: ltr; }

@media (max-width: 768px) {
  .lcmtm-mobile-shell, .lcmtm-mobile-top, .lcmtm-mobile-bottom { display: block; }
  body { padding-bottom: calc(var(--lcmtm-bottom-height,72px) + env(safe-area-inset-bottom)) !important; }
}

@media (min-width: 769px) {
  .lcmtm-mobile-shell, .lcmtm-mobile-top, .lcmtm-mobile-bottom { display: none !important; visibility: hidden !important; }
}



/* Language bar above the app bar — only visible on mobile */
.lcmtm-language-bar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--lcmtm-top-bg, #fff8ef);
  border-bottom: 1px solid rgba(201,146,75,.10);
  font-family: var(--lcmtm-bottom-font-family, Poppins, Arial, sans-serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
@media (max-width: 768px) {
  .lcmtm-language-bar { display: flex; }
}
.lcmtm-language-bar a {
  color: var(--lcmtm-pill-text, #5a2f22);
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 4px;
  transition: opacity .15s ease;
}
.lcmtm-language-bar a:hover {
  opacity: .7;
}
.lcmtm-language-bar a.lcmtm-lang-active {
  font-weight: 700;
}
.lcmtm-lang-sep {
  color: var(--lcmtm-pill-text, #5a2f22);
  opacity: .4;
  font-weight: 300;
  user-select: none;
}

/* v2.0.1: drawer header has no logo; keep the close button aligned cleanly. */
.lcmtm-drawer-head--no-logo {
  min-height: 52px !important;
  justify-content: flex-end !important;
  padding: 10px 12px !important;
}
.lcmtm-mobile-shell[dir="rtl"] .lcmtm-drawer-head--no-logo {
  justify-content: flex-start !important;
}

/* v2.1.0 - language flags in the mobile language bar */
.lcmtm-language-bar a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.lcmtm-lang-flag {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(90,47,34,.12);
}
.lcmtm-lang-flag-emoji {
  width: auto;
  min-width: 18px;
  height: 18px;
  border-radius: 0;
  box-shadow: none;
  font-size: 16px;
  line-height: 1;
}
.lcmtm-lang-name {
  display: inline-block;
}

/*
 * v2.1.3: WPML / Polylang language switcher rows in the *drawer* only.
 * The compact language bar (.lcmtm-language-bar) above the app bar is unchanged.
 */
.lcmtm-drawer-nav .lcmtm-drawer-menu li.wpml-ls-menu-item,
.lcmtm-drawer-nav .lcmtm-drawer-menu li.menu-item-type-wpml_ls_menu_item,
.lcmtm-drawer-nav .lcmtm-drawer-menu li[class*="wpml-ls-menu-item"],
.lcmtm-drawer-nav .lcmtm-drawer-menu li[class*="wpml_ls_menu_item"],
.lcmtm-drawer-nav .lcmtm-drawer-menu li[class*="wpml-ls-item"],
.lcmtm-drawer-nav .lcmtm-drawer-menu li.pll-parent-menu-item {
  display: none !important;
}
