.header-actions .ciip-foreign-nav-wrap,
.header-actions .ciip-lang-nav-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  margin: 0;
  background: transparent;
  z-index: 1;
}

.header-actions .ciip-foreign-nav-wrap .ciip-foreign-trigger,
.header-actions .ciip-lang-nav-wrap .ciip-lang-trigger {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  align-self: stretch;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  min-height: 40px;
  line-height: 1.2;
  text-decoration: none;
}

.header-actions .ciip-foreign-nav-wrap:hover .ciip-foreign-trigger,
.header-actions .ciip-foreign-nav-wrap:focus-within .ciip-foreign-trigger,
.header-actions .ciip-lang-nav-wrap:hover .ciip-lang-trigger,
.header-actions .ciip-lang-nav-wrap:focus-within .ciip-lang-trigger {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.header-actions .ciip-foreign-nav-wrap .ciip-foreign-dropdown,
.header-actions .ciip-lang-nav-wrap .ciip-lang-dropdown {
  min-width: min(540px, calc(100vw - 48px));
  max-width: min(560px, calc(100vw - 48px));
  left: auto;
  right: 0;
  transform: none;
  padding: 10px 12px;
  z-index: 200;
  background: rgba(255, 255, 255, 0.82) !important;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (min-width: 1136px) {
  .header-actions .ciip-foreign-nav-wrap:hover .mega-dropdown,
  .header-actions .ciip-foreign-nav-wrap:focus-within .mega-dropdown,
  .header-actions .ciip-lang-nav-wrap:hover .mega-dropdown,
  .header-actions .ciip-lang-nav-wrap:focus-within .mega-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

.header-actions .ciip-foreign-nav-wrap .ciip-foreign-grid,
.header-actions .ciip-lang-nav-wrap .ciip-lang-grid {
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.ciip-foreign-countries,
.ciip-foreign-metaverse-section,
.ciip-foreign-about-section,
.ciip-foreign-countries-section {
  background: transparent;
  border: 1px solid rgba(0, 18, 51, 0.08);
  border-radius: 8px;
}

.ciip-foreign-countries {
  padding: 0;
  border: 0;
  background: transparent;
}

.ciip-foreign-countries-section {
  padding: 6px 4px 4px;
}

.ciip-foreign-footer {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(0, 18, 51, 0.12);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 10px;
  row-gap: 6px;
  width: 100%;
  box-sizing: border-box;
}
.header-actions .ciip-foreign-nav-wrap .mega-link,
.header-actions .ciip-lang-nav-wrap .mega-link {
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.header-actions .ciip-foreign-nav-wrap .mega-link .mi,
.header-actions .ciip-lang-nav-wrap .mega-link .mi {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 18, 51, 0.1);
  box-shadow: 0 1px 4px rgba(0, 18, 51, 0.1);
}

.header-actions .ciip-foreign-nav-wrap .mega-link .ciip-foreign-flag,
.header-actions .ciip-lang-nav-wrap .mega-link .ciip-foreign-flag {
  width: 34px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 18, 51, 0.12);
  display: block;
  box-shadow: 0 1px 4px rgba(0, 18, 51, 0.08);
}

.header-actions .ciip-foreign-nav-wrap .mega-link .ciip-foreign-code {
  font-family: Exo, "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #003087;
  line-height: 1;
}

.header-actions .ciip-foreign-nav-wrap .mega-link .mi-blue { background: rgba(0, 72, 180, 0.16); }
.header-actions .ciip-foreign-nav-wrap .mega-link .mi-green { background: rgba(0, 163, 77, 0.16); }
.header-actions .ciip-foreign-nav-wrap .mega-link .mi-orange { background: rgba(200, 120, 0, 0.16); }
.header-actions .ciip-foreign-nav-wrap .mega-link .mi-cyan { background: rgba(0, 130, 180, 0.16); }
.header-actions .ciip-foreign-nav-wrap .mega-link .mi-gold { background: rgba(180, 140, 40, 0.18); }
.header-actions .ciip-foreign-nav-wrap .mega-link .mi-teal { background: rgba(0, 140, 120, 0.16); }

.header-actions .ciip-foreign-nav-wrap .mega-link .mt .mn,
.header-actions .ciip-lang-nav-wrap .mega-link .mt .mn {
  font-size: 11px !important;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions .ciip-foreign-nav-wrap .mega-link .mt,
.header-actions .ciip-lang-nav-wrap .mega-link .mt {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.header-actions .ciip-foreign-nav-wrap .mega-link .mt .md,
.header-actions .ciip-lang-nav-wrap .mega-link .mt .md {
  display: none;
}

.ciip-foreign-footer-section {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  row-gap: 4px;
  border-radius: 8px;
  padding: 6px 4px 4px;
}

.ciip-foreign-metaverse-section {
  border: 1px solid rgba(0, 18, 51, 0.1);
}

.ciip-foreign-metaverse-section .ciip-foreign-footer-title {
  color: #0066a8;
}

.ciip-foreign-about-section {
  border: 1px solid rgba(0, 18, 51, 0.1);
}

.ciip-foreign-about-section .ciip-foreign-footer-title {
  color: #8a6a10;
}

.ciip-foreign-footer-title {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: #003087;
  text-align: center;
  padding: 0 4px 5px;
}

.ciip-foreign-footer-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  column-gap: 10px;
  row-gap: 4px;
}

.ciip-foreign-countries-row {
  row-gap: 2px;
}

.ciip-foreign-footer-row > .mega-link,
.ciip-foreign-footer-row > .ciip-foreign-footer-item {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.ciip-foreign-video-row {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.ciip-foreign-footer-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  line-height: 1.2;
  text-align: left;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.ciip-foreign-footer-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 18, 51, 0.1);
  box-shadow: 0 1px 4px rgba(0, 18, 51, 0.1);
}

.ciip-foreign-footer-icon .svg-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.ciip-foreign-footer-icon.mi-blue { background: rgba(0, 72, 180, 0.16); }
.ciip-foreign-footer-icon.mi-cyan { background: rgba(0, 130, 180, 0.16); }
.ciip-foreign-footer-icon.mi-orange { background: rgba(200, 120, 0, 0.16); }
.ciip-foreign-footer-icon.mi-teal { background: rgba(0, 140, 120, 0.16); }

.ciip-foreign-footer-label {
  font-size: 11px !important;
  font-weight: 700;
  line-height: 1.2;
  margin-left: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.ciip-foreign-footer-item > .ciip-foreign-footer-label {
  flex: 1;
  min-width: 0;
}

.ciip-foreign-video-item {
  justify-content: flex-start;
}

.ciip-foreign-video-item .ciip-foreign-footer-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-left: 2px;
  min-width: 0;
  flex: 1;
}

.ciip-foreign-footer-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1.2;
}

.ciip-foreign-footer-line2 {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0;
}

.ciip-foreign-video-item .ciip-foreign-footer-label {
  margin-left: 0;
  font-size: 11px !important;
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
}

.ciip-foreign-video-item .ciip-foreign-footer-line2 .ciip-foreign-footer-label {
  font-size: 11px !important;
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
}

.ciip-foreign-video-item .ciip-foreign-footer-sub {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: #64748b;
}

.ciip-foreign-video-group {
  cursor: default;
}

.ciip-foreign-lang-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  margin-top: 1px;
}

.ciip-foreign-video-group .ciip-foreign-lang-links {
  justify-content: flex-start;
}

a.ciip-foreign-lang-link {
  font-size: 10px !important;
  font-weight: 600;
  line-height: 1.2;
  color: #64748b;
  text-decoration: none;
  white-space: nowrap;
}

a.ciip-foreign-lang-link:hover {
  color: #003087;
  text-decoration: underline;
}

.ciip-foreign-footer-sub {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: #64748b;
}

a.ciip-foreign-footer-item {
  text-decoration: none;
  color: #003087;
  transition: background 0.2s;
}

a.ciip-foreign-footer-item:hover {
  background: rgba(0, 48, 135, 0.06);
}

.ciip-foreign-footer-disabled {
  color: #888;
  cursor: default;
  pointer-events: none;
}

.ciip-foreign-footer-pending {
  font-size: 9px;
  font-weight: 400;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (max-width: 750px) {
  body.ciip-foreign-mobile-dropdown-open .header,
  body.with-preview-site-nav.ciip-foreign-mobile-dropdown-open .header {
    z-index: 13000 !important;
  }

  .ciip-foreign-dismiss-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(14, 165, 233, 0.28);
    font-size: 12px;
    line-height: 1.45;
    color: #0c4a6e;
  }

  .ciip-foreign-dismiss-hint-text {
    flex: 1;
    min-width: 0;
  }

  .ciip-foreign-dismiss-hint-btn {
    flex-shrink: 0;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #0284c7;
    cursor: pointer;
  }

  .ciip-foreign-dismiss-hint-btn:hover {
    background: #0369a1;
  }

  .header-actions .ciip-foreign-nav-wrap.ciip-foreign-is-open,
  .header-actions .ciip-lang-nav-wrap.ciip-foreign-is-open {
    z-index: 12000;
  }

  .header-actions .ciip-foreign-nav-wrap.ciip-foreign-is-open .ciip-foreign-dropdown,
  .header-actions .ciip-lang-nav-wrap.ciip-foreign-is-open .ciip-lang-dropdown {
    display: block !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    position: fixed !important;
    top: calc(64px + 4px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100vh - 72px);
    overflow-y: auto !important;
    padding: 8px !important;
    border-radius: 0 !important;
    background: #eef1f5 !important;
    box-shadow: 0 8px 24px rgba(0, 18, 51, 0.12) !important;
    border-top: 2px solid rgba(14, 165, 233, 0.45) !important;
    transform: none !important;
    z-index: 12000 !important;
    -webkit-overflow-scrolling: touch;
  }

  /* 首页 preview：自动展开时完整展示，不出现滚动条 */
  @media (max-width: 500px) {
    body.ciip-foreign-auto-panel.ciip-foreign-mobile-dropdown-open
      .header-actions .ciip-foreign-nav-wrap.ciip-foreign-is-open .ciip-foreign-dropdown,
    body.ciip-foreign-auto-panel.ciip-foreign-mobile-dropdown-open
      .header-actions .ciip-lang-nav-wrap.ciip-foreign-is-open .ciip-lang-dropdown {
      max-height: none !important;
      height: auto !important;
      overflow: visible !important;
      -webkit-overflow-scrolling: auto;
    }

    body.ciip-foreign-auto-panel .ciip-foreign-footer {
      gap: 6px;
    }

    body.ciip-foreign-auto-panel .ciip-foreign-footer-section,
    body.ciip-foreign-auto-panel .ciip-foreign-countries-section {
      padding: 8px 8px 6px;
    }

    body.ciip-foreign-auto-panel .ciip-foreign-metaverse-section,
    body.ciip-foreign-auto-panel .ciip-foreign-about-section {
      padding: 6px 8px 4px;
    }

    body.ciip-foreign-auto-panel .ciip-foreign-footer-title {
      padding: 0 0 6px;
      font-size: 12px;
    }

    body.ciip-foreign-auto-panel .ciip-foreign-dismiss-hint {
      margin-bottom: 6px;
      padding: 6px 8px;
    }

    body.ciip-foreign-auto-panel .ciip-foreign-footer-icon {
      width: 40px;
      height: 40px;
      min-width: 40px;
    }

    body.ciip-foreign-auto-panel .ciip-foreign-footer-icon .svg-icon {
      width: 20px;
      height: 20px;
    }
  }

  /* 国际地图页：面板插在顶栏与地图之间 */
  body.ciip-index-page .ciip-foreign-mobile-slot {
    display: none;
    position: fixed;
    top: var(--preview-header-total, 66px);
    left: 0;
    right: 0;
    z-index: 12000;
    max-height: min(46vh, 400px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #eef1f5;
    border-bottom: 2px solid rgba(14, 165, 233, 0.45);
    box-shadow: 0 8px 24px rgba(0, 18, 51, 0.1);
  }

  body.ciip-index-page.ciip-intl-mobile-panel-open .ciip-foreign-mobile-slot {
    display: block;
  }

  body.ciip-index-page.ciip-intl-mobile-panel-open .ciip-foreign-mobile-slot .ciip-foreign-dropdown {
    display: block !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  body.ciip-index-page.ciip-intl-mobile-panel-open #pc-view {
    top: calc(var(--preview-header-total, 66px) + var(--ciip-foreign-slot-height, 0px));
  }

  body.ciip-index-page .header-actions .ciip-foreign-nav-wrap .ciip-foreign-dropdown {
    display: none !important;
  }

  .ciip-foreign-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    grid-template-columns: unset;
  }

  .ciip-foreign-footer-section,
  .ciip-foreign-countries-section,
  .ciip-foreign-metaverse-section,
  .ciip-foreign-about-section {
    display: block;
    grid-column: unset;
    grid-template-columns: unset;
    background: #fff;
    border-radius: 12px;
    padding: 12px 10px 10px;
    box-shadow: 0 1px 4px rgba(0, 18, 51, 0.08);
    border: 0;
    row-gap: 0;
  }

  .ciip-foreign-metaverse-section,
  .ciip-foreign-about-section {
    padding: 8px 10px 6px;
  }

  .ciip-foreign-metaverse-section .ciip-foreign-footer-title,
  .ciip-foreign-about-section .ciip-foreign-footer-title {
    padding: 0 0 6px;
  }

  .ciip-foreign-metaverse-section .ciip-foreign-footer-item,
  .ciip-foreign-about-section .ciip-foreign-footer-item {
    gap: 4px;
    padding: 2px 2px;
  }

  .ciip-foreign-countries-section {
    padding: 12px 10px 10px;
  }

  .ciip-foreign-footer-title {
    font-size: 13px;
    font-weight: 700;
    padding: 0 0 10px;
    margin: 0;
    border-bottom: 0;
  }

  .ciip-foreign-metaverse-section .ciip-foreign-footer-title {
    color: #6366f1;
  }

  .ciip-foreign-about-section .ciip-foreign-footer-title {
    color: #c27800;
  }

  .ciip-foreign-footer-row {
    display: grid;
    grid-column: unset;
    grid-template-columns: unset;
    column-gap: 0;
    row-gap: 0;
  }

  .ciip-foreign-countries-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 6px;
  }

  .ciip-foreign-countries-row .mega-link {
    gap: 4px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    min-width: 0;
  }

  .ciip-foreign-countries-row .mega-link .ciip-foreign-flag {
    width: 28px;
    height: 20px;
    min-width: 28px;
    border-radius: 3px;
  }

  .ciip-foreign-countries-row .mega-link .mt .mn {
    font-size: 11px !important;
    font-weight: 600;
    color: #0f172a;
  }

  .ciip-foreign-metaverse-section .ciip-foreign-footer-row,
  .ciip-foreign-about-section .ciip-foreign-footer-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .ciip-foreign-video-group .ciip-foreign-lang-links {
    flex-direction: column;
    justify-content: center;
    width: 100%;
    gap: 4px;
    margin-top: 4px;
  }

  a.ciip-foreign-lang-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 30px;
    padding: 5px 4px;
    font-size: 11px !important;
    color: #0f172a;
    background: rgba(0, 48, 135, 0.05);
    border: 1px solid rgba(0, 48, 135, 0.1);
    border-radius: 6px;
    box-sizing: border-box;
  }

  a.ciip-foreign-lang-link:active {
    background: rgba(0, 48, 135, 0.12);
  }

  .ciip-foreign-footer-item {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 4px 2px;
    background: transparent;
    border: 0;
    box-shadow: none;
    text-align: center;
    color: #0f172a;
  }

  .ciip-foreign-footer-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    border: 0;
    box-shadow: none;
  }

  .ciip-foreign-footer-icon .svg-icon {
    width: 22px;
    height: 22px;
  }

  .ciip-foreign-metaverse-section .ciip-foreign-footer-item:nth-child(1) .ciip-foreign-footer-icon {
    background: rgba(59, 130, 246, 0.14);
  }

  .ciip-foreign-metaverse-section .ciip-foreign-footer-item:nth-child(2) .ciip-foreign-footer-icon {
    background: rgba(139, 92, 246, 0.14);
  }

  .ciip-foreign-metaverse-section .ciip-foreign-footer-item:nth-child(3) .ciip-foreign-footer-icon {
    background: rgba(34, 197, 94, 0.14);
  }

  .ciip-foreign-about-section .ciip-foreign-footer-item:nth-child(1) .ciip-foreign-footer-icon {
    background: rgba(249, 115, 22, 0.14);
  }

  .ciip-foreign-about-section .ciip-foreign-footer-item:nth-child(2) .ciip-foreign-footer-icon {
    background: rgba(234, 179, 8, 0.14);
  }

  .ciip-foreign-about-section .ciip-foreign-footer-item:nth-child(3) .ciip-foreign-footer-icon {
    background: rgba(20, 184, 166, 0.14);
  }

  .ciip-foreign-footer-label {
    margin-left: 0;
    white-space: normal;
    text-align: center;
    font-size: 10px !important;
    font-weight: 600;
    line-height: 1.15;
    color: #0f172a;
    overflow: visible;
    text-overflow: unset;
  }

  .ciip-foreign-footer-item > .ciip-foreign-footer-label {
    flex: unset;
  }

  .ciip-foreign-video-item .ciip-foreign-footer-text {
    align-items: center;
    margin-left: 0;
    width: 100%;
    flex: unset;
  }

  .ciip-foreign-footer-lines {
    align-items: center;
  }

  .ciip-foreign-footer-line2 {
    justify-content: center;
  }

  .ciip-foreign-video-item .ciip-foreign-footer-label,
  .ciip-foreign-video-item .ciip-foreign-footer-line2 .ciip-foreign-footer-label {
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
  }

  .ciip-foreign-video-item .ciip-foreign-footer-sub {
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #64748b !important;
  }

  a.ciip-foreign-footer-item:hover,
  a.ciip-foreign-footer-item:active {
    background: transparent;
  }

  .ciip-foreign-countries-row .mega-link:hover,
  .ciip-foreign-countries-row .mega-link:active {
    background: transparent;
  }
}

@media (max-width: 1135px) {
  .header-actions .ciip-foreign-nav-wrap,
  .header-actions .ciip-lang-nav-wrap {
    flex-direction: row !important;
    align-items: center !important;
    width: auto !important;
    max-width: none;
    flex-shrink: 0;
  }

  .header-actions .ciip-foreign-nav-wrap.ciip-foreign-is-open,
  .header-actions .ciip-lang-nav-wrap.ciip-foreign-is-open {
    z-index: 130;
  }

  .header-actions .ciip-foreign-nav-wrap .ciip-foreign-trigger,
  .header-actions .ciip-lang-nav-wrap .ciip-lang-trigger {
    width: auto !important;
    padding: 8px 6px;
    font-size: 11px;
    min-height: 36px;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-actions .ciip-foreign-nav-wrap .ciip-foreign-dropdown,
  .header-actions .ciip-lang-nav-wrap .ciip-lang-dropdown {
    display: none !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .header-actions .ciip-foreign-nav-wrap .ciip-foreign-grid,
  .header-actions .ciip-lang-nav-wrap .ciip-lang-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1135px) {
  .ciip-foreign-countries,
  .ciip-foreign-metaverse-section,
  .ciip-foreign-about-section {
    background: transparent;
  }

  .header-actions .ciip-foreign-nav-wrap.ciip-foreign-is-open .ciip-foreign-dropdown,
  .header-actions .ciip-lang-nav-wrap.ciip-foreign-is-open .ciip-lang-dropdown {
    display: block !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    position: fixed;
    top: calc(64px + 4px);
    right: 12px;
    left: auto;
    min-width: min(280px, calc(100vw - 24px));
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 8px 10px;
    transform: none;
    border-top: 3px solid #00a3e0;
    background: rgba(255, 255, 255, 0.82) !important;
    box-shadow: 0 8px 32px rgba(0, 18, 51, 0.18);
    border-radius: 0 0 10px 10px;
  }
}

@media (min-width: 1136px) {
  .header-actions .ciip-foreign-nav-wrap .ciip-foreign-dropdown,
  .header-actions .ciip-lang-nav-wrap .ciip-lang-dropdown {
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 10px;
  }

  .ciip-foreign-footer {
    margin-top: 4px;
    padding-top: 4px;
    column-gap: 6px;
    row-gap: 3px;
  }

  .ciip-foreign-countries-section,
  .ciip-foreign-footer-section {
    padding: 4px 2px 2px;
    row-gap: 2px;
  }

  .ciip-foreign-footer-row {
    column-gap: 6px;
    row-gap: 2px;
  }

  .ciip-foreign-countries-row {
    row-gap: 1px;
  }

  .ciip-foreign-footer-title {
    padding: 0 2px 3px;
  }

  .header-actions .ciip-foreign-nav-wrap .mega-link,
  .header-actions .ciip-lang-nav-wrap .mega-link {
    gap: 6px;
    padding: 4px 5px;
  }

  .ciip-foreign-footer-item {
    gap: 6px;
    padding: 4px 5px;
  }

  .ciip-foreign-footer,
  .ciip-foreign-footer-section,
  .ciip-foreign-footer-row {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
}
