/* Translate UI - geo banner, modal, language dropdown */
:root {
  --fz-geo-banner-height: 0px;
}
#geo-translate-banner.geo-translate-banner {
  display: none !important;
  visibility: hidden !important;
  max-height: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
  opacity: 0 !important;
}
.geo-translate-banner,
.geo-translate-banner * {
  translate: no;
}
#geo-translate-banner.geo-translate-banner.visible {
  display: block !important;
  max-height: 80px;
  min-height: 40px;
  pointer-events: auto;
  z-index: 10061;
}
html.loading-page #geo-translate-banner.geo-translate-banner.visible {
  display: block !important;
}
/* Desktop: banner in document flow (scrolls away; sticky nav stays on top) */
@media (min-width: 1200px) {
  #geo-translate-banner.geo-translate-banner.visible {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
  }
  /* Lists: geo bar in document flow, solid header sits directly below */
  body.page-lists #geo-translate-banner.geo-translate-banner.visible {
    position: relative;
    top: auto !important;
    left: auto;
    right: auto;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 10061;
  }
  body.page-lists.geo-banner-visible header {
    margin-top: 0;
  }
  body.page-lists.geo-banner-visible .togo-header-7-sec,
  body.page-lists.geo-banner-visible .togo-header-7-sec.togo-hdr-transparent,
  body.page-lists.geo-banner-visible .togo-header-7-sec.togo-hdr-fixed,
  body.page-lists.geo-banner-visible .togo-header-7-sec.togo-hdr-solid {
    top: 0 !important;
    position: relative !important;
    margin-top: 0 !important;
  }
  body.page-lists #geo-translate-banner.visible + header {
    position: relative;
    z-index: 10002;
  }
  body.page-lists.geo-banner-visible .togo-hdr-transparent,
  body.page-lists.geo-banner-visible .togo-hdr-fixed,
  body.page-lists.geo-banner-visible .togo-hdr-solid,
  body.page-lists.geo-banner-visible .togo-header-7-sec.togo-hdr-transparent,
  body.page-lists.geo-banner-visible .togo-header-7-sec.togo-hdr-fixed,
  body.page-lists.geo-banner-visible .togo-header-7-sec.togo-hdr-solid,
  body.page-lists #geo-translate-banner.visible + header .togo-header-7-sec {
    top: 0 !important;
    position: relative !important;
  }
  body.geo-banner-visible:not(.page-lists) .togo-hdr-transparent,
  body.geo-banner-visible:not(.page-lists) .togo-hdr-fixed,
  body.geo-banner-visible:not(.page-lists) .togo-header-7-sec.togo-hdr-transparent,
  body.geo-banner-visible:not(.page-lists) .togo-header-7-sec.togo-hdr-fixed {
    top: var(--fz-geo-banner-height, 48px) !important;
  }
  body.geo-banner-visible:not(.page-lists) .togo-hdr-solid,
  body.geo-banner-visible:not(.page-lists) .togo-header-7-sec.togo-hdr-solid,
  body.geo-banner-visible:not(.page-lists) #geo-translate-banner.visible + header .togo-header-7-sec.togo-hdr-solid {
    top: 0 !important;
  }
}
/* Mobile/tablet: banner in flow; sticky nav sits below bar and animates on close */
@media (max-width: 1199.98px) {
  #geo-translate-banner.geo-translate-banner {
    margin: 0 !important;
    padding: 0 !important;
  }
  #geo-translate-banner.geo-translate-banner.visible {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding-top: env(safe-area-inset-top, 0);
    box-sizing: border-box;
    z-index: 10061;
  }
  #geo-translate-banner.visible + header {
    position: static;
    z-index: 10002;
  }
  body.geo-banner-visible .togo-hdr-transparent,
  body.geo-banner-visible .togo-hdr-fixed,
  body.geo-banner-visible .togo-header-7-sec.togo-hdr-transparent,
  body.geo-banner-visible .togo-header-7-sec.togo-hdr-fixed,
  #geo-translate-banner.visible + header .togo-header-7-sec.togo-hdr-transparent,
  #geo-translate-banner.visible + header .togo-header-7-sec.togo-hdr-fixed {
    top: var(--fz-geo-banner-height, 0px) !important;
    transition: top 0.35s ease;
  }
  body.geo-banner-visible .togo-hdr-solid,
  body.geo-banner-visible .togo-header-7-sec.togo-hdr-solid,
  #geo-translate-banner.visible + header .togo-header-7-sec.togo-hdr-solid {
    top: 0 !important;
  }
  body.page-lists.geo-banner-visible header {
    margin-top: 0 !important;
  }
  body.page-lists #geo-translate-banner.geo-translate-banner.visible {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }
  body.geo-banner-visible #has-smooth {
    padding-top: 0 !important;
  }
}
/* sticky footer: match homepage_layout - no gap at bottom (shared by index + lists) */
html,
body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
}
#has-smooth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#has-smooth-wrap {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
/* ScrollSmoother: let GSAP control overflow on the wrapper (do NOT force visible) */
#has-smooth-wrap {
  overflow: visible;
}
#has-smooth-wrap > main {
  flex: 1 0 auto;
}
#has-smooth-wrap > footer {
  flex-shrink: 0;
  margin-bottom: 0;
}
/* when geo banner is visible: ensure content is not clipped */
body.geo-banner-visible #has-smooth-wrap {
  overflow: visible;
}
body.geo-banner-visible .togo-footer-6-sec {
  padding-bottom: 2.5rem;
  overflow: visible;
}
@media (max-width: 991px) {
  body.geo-banner-visible .togo-footer-6-sec {
    padding-bottom: 5rem;
  }
}
/* lists page: hero follows in-flow header (no extra top margin) */
.page-lists .togo-ct-details-sec,
.page-lists .togo-ct-details-sec.carousel-banner-gap {
  margin-top: 0;
}
.togo-hdr-transparent {
  transition: top 0.35s ease;
}
.geo-translate-banner .container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 8px 12px;
  min-height: 40px;
  font-size: 13px;
}
@media (min-width: 576px) {
  .geo-translate-banner .container {
    padding: 10px 16px;
    min-height: 44px;
    font-size: 14px;
  }
}
.geo-translate-banner a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}
.geo-translate-banner a:hover {
  color: rgba(255, 255, 255, 0.9);
}
.geo-translate-dismiss {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.25);
  color: #1a1a1a;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 6px 14px;
  line-height: 1;
  border-radius: 6px;
}
.geo-translate-dismiss:hover {
  background: rgba(255, 255, 255, 0.4);
  color: #1a1a1a;
}
.geo-lang-modal {
  position: fixed;
  inset: 0;
  z-index: 10030;
  display: none;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.geo-lang-modal.is-open {
  display: flex;
}
.geo-lang-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 0;
  pointer-events: auto;
}
body.geo-modal-open {
  overflow: hidden;
  height: 100vh;
}
.geo-lang-modal-content {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.geo-lang-modal-content h4 {
  margin: 0 0 16px;
  font-size: 18px;
}
.geo-lang-modal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  max-height: 240px;
  overflow-y: auto;
}
.geo-lang-modal-list li {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
}
.geo-lang-modal-list li a {
  color: inherit;
  text-decoration: none;
  display: block;
}
.geo-lang-modal-list li:hover {
  background: #f5f5f5;
}
.geo-lang-modal-close {
  padding: 10px 24px;
  cursor: pointer;
  background: #002147;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 600;
}
.geo-lang-modal-close:hover {
  background: #001a38;
  color: #fff;
}
.language-search-wrap {
  position: relative;
  margin-bottom: 12px;
  width: 100%;
}
.language-search-input {
  width: 100%;
  height: 36px;
  padding: 8px 12px 8px 34px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-size: 13px;
  background-color: #f8f9fa;
  color: #333;
  font-weight: 500;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.language-search-input:focus {
  outline: none;
  border-color: #bfa15f; /* Brand gold */
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(191, 161, 95, 0.15);
}
.language-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 13px;
  pointer-events: none;
  transition: color 0.2s ease;
}
.language-search-input:focus + .language-search-icon {
  color: #bfa15f;
}
.language-no-results {
  padding: 12px;
  color: #888;
  font-size: 13px;
  text-align: center;
  list-style: none;
  font-style: italic;
  background: none !important;
  border: none !important;
}
.language-dropdown-list {
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.language-more-toggle {
  border-top: 1px solid #eee;
  margin-top: 4px;
  padding-top: 4px;
}
.language-more-btn {
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: inherit;
  color: inherit;
}
.language-more-btn:hover {
  background: #f5f5f5;
}
.currency-dropdown-list {
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
#header-currency-dropdown.currency-dropdown-open .togo-footer-copyright-currence-content,
#fz-sticky-currency-dropdown.currency-dropdown-open .togo-footer-copyright-currence-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.togo-footer-copyright-currence-btn.bottom-style .togo-footer-copyright-currence-content.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fz-sticky-navbar .togo-footer-copyright-currence-content {
  z-index: 10060;
}


/* Revert Translation Banner */
.revert-translation-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10020;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.revert-translation-banner.show {
  transform: translateY(0);
}
.revert-translation-banner-text {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
.revert-translation-btn {
  background: #002147;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 33, 71, 0.2);
}
.revert-translation-btn:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}
@media (max-width: 767px) {
  .revert-translation-banner {
    flex-direction: column;
    text-align: center;
    padding: 16px 20px;
    gap: 12px;
  }
  .revert-translation-btn {
    margin-left: 0;
    width: 100%;
  }
}

/* Premium Custom Styles for Currency Dropdown Search */
#header-currency-dropdown .togo-footer-copyright-currence-content,
#fz-sticky-currency-dropdown .togo-footer-copyright-currence-content {
  width: 230px !important;
  padding: 16px !important;
  border-radius: 12px;
}
.currency-search-wrap {
  position: relative;
  margin-bottom: 12px;
  width: 100%;
}
.currency-search-input {
  width: 100%;
  height: 36px;
  padding: 8px 12px 8px 34px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-size: 13px;
  background-color: #f8f9fa;
  color: #333;
  font-weight: 500;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.currency-search-input:focus {
  outline: none;
  border-color: #bfa15f; /* Brand gold */
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(191, 161, 95, 0.15);
}
.currency-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 13px;
  pointer-events: none;
  transition: color 0.2s ease;
}
.currency-search-input:focus + .currency-search-icon {
  color: #bfa15f;
}
.currency-no-results {
  padding: 12px;
  color: #888;
  font-size: 13px;
  text-align: center;
  list-style: none;
  font-style: italic;
  background: none !important;
  border: none !important;
}
/* Scrollbar aesthetics */
.currency-dropdown-list::-webkit-scrollbar {
  width: 6px;
}
.currency-dropdown-list::-webkit-scrollbar-track {
  background: transparent;
}
.currency-dropdown-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}
.currency-dropdown-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.18);
}
