.pt-country-menu {
  position: relative;
}

.pt-country-menu > .pt-country-menu-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #285b7a;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.pt-country-menu-trigger::-webkit-details-marker { display: none; }
.pt-country-menu-trigger::marker { content: ""; }

.pt-country-menu-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-country-menu-chevron,
.pt-country-menu-all::after {
  flex: none;
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}

.pt-country-menu[open] .pt-country-menu-chevron { transform: translateY(2px) rotate(225deg); }

.pt-country-menu-panel {
  background: #fff;
  border: 1px solid #dce5eb;
  border-radius: 10px;
  padding: 8px;
  color: #243746;
  font-size: 15px;
  line-height: 1.4;
}

.pt-country-menu-heading {
  margin: 0;
  padding: 5px 7px 7px;
  color: #425f73;
  font-size: 13px;
  font-weight: 700;
}

.pt-country-menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pt-country-menu-panel a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 4px 7px;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}

.pt-country-menu .pt-country-menu-panel a:is(:link, :visited, :focus) { color: #243746; }

.pt-country-menu .pt-country-menu-list a:is(:hover, :focus-visible, [aria-current]) {
  background: #eaf3f8;
  color: #205775;
}

.pt-country-menu-list img {
  flex: none;
  width: 24px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
  filter: saturate(.72);
}

.pt-country-menu .pt-country-menu-panel .pt-country-menu-all {
  display: inline-flex;
  gap: 9px;
  min-height: 28px;
  margin: 8px 7px 2px;
  padding: 3px 10px;
  border: 1px solid #8194a4;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
  font-weight: 650;
}
.pt-country-menu .pt-country-menu-panel .pt-country-menu-all:is(:link, :visited, :focus) { color: #365b76; }
.pt-country-menu .pt-country-menu-panel .pt-country-menu-all:is(:hover, :focus-visible) {
  border-color: #658095;
  background: #f1f4f6;
}
.pt-country-menu-all::after {
  content: "";
  transform: rotate(-45deg);
}

@media (min-width: 768px) {
  .header-block__nav .pt-country-menu-name { max-width: clamp(110px, 15vw, 190px); }
  .header-block__nav .pt-country-menu[open]::after {
    position: absolute;
    inset: 100% auto auto 0;
    width: 336px;
    height: 11px;
    content: "";
  }
  .header-block__nav .pt-country-menu-panel {
    position: absolute;
    z-index: 1000;
    inset: calc(100% + 11px) auto auto 0;
    width: 336px;
    max-height: min(366px, calc(100dvh - 146px));
    overflow: auto;
    overscroll-behavior: contain;
    box-shadow: 0 12px 30px rgb(22 46 64 / .14), 0 2px 6px rgb(22 46 64 / .06);
  }
}

.pt-mobile-menu-nav .pt-country-menu > .pt-country-menu-trigger {
  gap: 12px;
  min-height: 2.8em;
  padding: 4px 7px;
  border-radius: 8px;
  font-size: var(--pt-mobile-menu-link-size);
  line-height: 1.5;
}
.pt-mobile-menu-nav .pt-country-menu-trigger > svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: #56758e;
}
.pt-mobile-menu-nav .pt-country-menu-panel { margin-bottom: 6px; }
.pt-mobile-menu-nav .pt-country-menu-list a { min-height: 40px; }
