/* Meta Techs V5.8.10 cache-busting responsive + flag hotfix */
html,
body {
  max-width: 100%;
  overflow-x: hidden !important;
}

.metatechs-migration-safe-v5 .mt-native-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.metatechs-migration-safe-v5 .mt-custom-select {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}

.metatechs-migration-safe-v5 .mt-custom-select-toggle,
.metatechs-migration-safe-v5 .mt-custom-select-option {
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) 24px !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 50px !important;
  padding: 0 10px 0 0 !important;
  border: 1px solid rgba(83, 218, 255, .24) !important;
  border-radius: 14px !important;
  background: rgba(4, 14, 28, .94) !important;
  color: #fff !important;
  text-align: left !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.metatechs-migration-safe-v5 .mt-custom-select-option {
  grid-template-columns: 46px minmax(0, 1fr) !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  font-weight: 800 !important;
}

.metatechs-migration-safe-v5 .mt-custom-select-menu {
  position: absolute !important;
  inset: calc(100% + 8px) 0 auto 0 !important;
  z-index: 2147482600 !important;
  display: none !important;
  max-height: min(320px, 56vh) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 6px !important;
  border: 1px solid rgba(83, 218, 255, .28) !important;
  border-radius: 14px !important;
  background: #06111f !important;
  box-shadow: 0 22px 50px rgba(0,0,0,.52) !important;
}

.metatechs-migration-safe-v5 .mt-custom-select.is-open .mt-custom-select-menu {
  display: grid !important;
  gap: 4px !important;
}

.metatechs-migration-safe-v5 .mt-custom-select-option:hover,
.metatechs-migration-safe-v5 .mt-custom-select-option.is-selected {
  background: rgba(53, 231, 255, .14) !important;
}

.metatechs-migration-safe-v5 .mt-visible-flag {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 46px !important;
  min-width: 46px !important;
  min-height: 50px !important;
  height: 100% !important;
  border-right: 1px solid rgba(83, 218, 255, .16) !important;
  background: rgba(255,255,255,.055) !important;
  font-size: 0 !important;
  line-height: 1 !important;
  overflow: hidden !important;
}

.metatechs-migration-safe-v5 .mt-visible-flag img {
  display: block !important;
  width: 27px !important;
  height: 19px !important;
  object-fit: cover !important;
  border-radius: 3px !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 4px 10px rgba(0,0,0,.24) !important;
}

.metatechs-migration-safe-v5 .mt-visible-flag-globe {
  font-size: 20px !important;
}

.metatechs-migration-safe-v5 .mt-custom-select-text,
.metatechs-migration-safe-v5 .mt-custom-option-text {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-weight: 900 !important;
  color: #f3f8ff !important;
}

.metatechs-migration-safe-v5 .mt-custom-chevron {
  color: rgba(235, 248, 255, .86) !important;
  font-size: 18px !important;
  text-align: center !important;
}

.metatechs-migration-safe-v5 .mt-phone-row {
  display: grid !important;
  grid-template-columns: minmax(150px, 196px) minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: stretch !important;
  min-width: 0 !important;
}

.metatechs-migration-safe-v5 .mt-phone-row input[type="tel"] {
  min-width: 0 !important;
  width: 100% !important;
}

body.single-post,
body.single-post .metatechs-single-main,
body.single-post .dts-single-post,
body.single-post .migration-article-single,
body.single-post .dts-single-hero,
body.single-post .migration-single-hero,
body.single-post .dts-single-content-wrap,
body.single-post .migration-content-wrap,
body.single-post .dts-single-content,
body.single-post .single-post-content,
body.single-post .wp-article-content {
  box-sizing: border-box !important;
  max-width: 100vw !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
}

body.single-post .dts-single-content-wrap,
body.single-post .migration-content-wrap,
body.single-post .migration-post-navigation,
body.single-post .migration-related-section {
  width: min(1060px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  display: block !important;
}

body.single-post .single-post-content,
body.single-post .wp-article-content {
  display: block !important;
  padding: 0 !important;
  contain: layout paint !important;
}

body.single-post .single-post-content > *,
body.single-post .wp-article-content > * {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body.single-post .single-post-content :where(p, li, h1, h2, h3, h4, h5, h6, a, span, strong, em),
body.single-post .wp-article-content :where(p, li, h1, h2, h3, h4, h5, h6, a, span, strong, em) {
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

body.single-post .single-post-content :where(figure, img, picture, video, iframe, embed, object, table, pre, code, blockquote, .wp-block-image, .wp-block-table),
body.single-post .wp-article-content :where(figure, img, picture, video, iframe, embed, object, table, pre, code, blockquote, .wp-block-image, .wp-block-table) {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body.single-post .single-post-content :where(img, video, iframe, embed, object),
body.single-post .wp-article-content :where(img, video, iframe, embed, object) {
  width: auto !important;
  height: auto !important;
}

body.single-post .single-post-content :where(table, .wp-block-table),
body.single-post .wp-article-content :where(table, .wp-block-table),
body.single-post .single-post-content pre,
body.single-post .wp-article-content pre {
  display: block !important;
  width: 100% !important;
  overflow-x: auto !important;
}

@media (max-width: 1180px) {
  body.nav-open { overflow: hidden !important; touch-action: none !important; }
  .site-header, .site-header.mt-sticky-header, .site-header.is-scrolled { z-index: 2147483000 !important; }
  .menu-toggle { position: relative !important; z-index: 2147483002 !important; }
  #primary-nav {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: min(460px, 100vw) !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 96px 22px 28px !important;
    box-sizing: border-box !important;
    background: rgba(2, 9, 19, .97) !important;
    border-right: 1px solid rgba(52, 232, 255, .18) !important;
    box-shadow: 24px 0 80px rgba(0, 0, 0, .45) !important;
    z-index: 2147483001 !important;
  }
  body.nav-open .whatsapp-float,
  body.nav-open .ht-ctc-chat,
  body.nav-open [class*="ht_ctc"],
  body.nav-open [id*="ht-ctc"],
  body.nav-open .floating-tools,
  body.nav-open [class*="translate"] {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }
}

@media (max-width: 1024px) {
  body.single-post .dts-single-hero,
  body.single-post .migration-single-hero {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  body.single-post .article-toc { display: none !important; }
}

@media (max-width: 640px) {
  .metatechs-migration-safe-v5 .mt-phone-row {
    grid-template-columns: minmax(128px, 158px) minmax(0, 1fr) !important;
    gap: 8px !important;
  }
  .metatechs-migration-safe-v5 .mt-custom-select-toggle,
  .metatechs-migration-safe-v5 .mt-custom-select-option { grid-template-columns: 42px minmax(0, 1fr) 20px !important; }
  .metatechs-migration-safe-v5 .mt-custom-select-option { grid-template-columns: 42px minmax(0, 1fr) !important; }
  .metatechs-migration-safe-v5 .mt-visible-flag { width: 42px !important; min-width: 42px !important; }
  .metatechs-migration-safe-v5 .mt-visible-flag img { width: 24px !important; height: 17px !important; }

  body.single-post .dts-single-content-wrap,
  body.single-post .migration-content-wrap,
  body.single-post .migration-post-navigation,
  body.single-post .migration-related-section {
    width: calc(100vw - 22px) !important;
    max-width: calc(100vw - 22px) !important;
  }

  body.single-post .single-post-content,
  body.single-post .wp-article-content {
    font-size: 15.5px !important;
    line-height: 1.74 !important;
  }

  body.single-post .ht-ctc-chat,
  body.single-post [class*="ht_ctc"],
  body.single-post [id*="ht-ctc"],
  body.single-post .floating-tools:not(.whatsapp-float) {
    display: none !important;
  }
}

/* V5.8.11 mobile article floating tools and phone width correction */
@media (max-width: 640px) {
  .metatechs-migration-safe-v5 .mt-phone-row {
    grid-template-columns: 118px minmax(0, 1fr) !important;
  }

  .metatechs-migration-safe-v5 .mt-phone-custom-select .mt-custom-select-toggle {
    grid-template-columns: 40px minmax(0, 1fr) 18px !important;
    padding-right: 6px !important;
  }

  body.single-post .whatsapp-float,
  body.single-post a.whatsapp-float,
  body.single-post .ht-ctc-chat,
  body.single-post [class*="ht_ctc"],
  body.single-post [id*="ht-ctc"],
  body.single-post .floating-tools,
  body.single-post [class*="trp-"],
  body.single-post [class*="translate"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}