.country-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.country-button,
.country-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #171724;
  cursor: pointer;
}

.country-button {
  text-decoration: none;
  flex-direction: column;
  gap: 3px;
  height: 54px;
  overflow: hidden;
}

.country-flag {
  display: block;
  width: 28px;
  height: 19px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(23, 23, 36, 0.13);
}

.country-code {
  color: #171724;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.country-button:hover,
.country-toggle:hover,
.country-button.is-selected,
.country-toggle.is-selected {
  border-color: #d6c8ee;
  background: #f2ecfb;
}

.country-button:focus-visible,
.country-toggle:focus-visible,
.country-menu a:focus-visible {
  outline: 2px solid #6b39bd;
  outline-offset: 2px;
}

.country-toggle {
  border-color: #dedce4;
}

.country-chevron {
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.country-toggle[aria-expanded="true"] .country-chevron {
  margin-top: 4px;
  transform: rotate(225deg);
}

.country-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: 138px;
  max-height: min(320px, 60vh);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #e5e1eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 23, 36, 0.15);
}

.country-menu[hidden] {
  display: none;
}

.country-menu a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 36px;
  padding: 6px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #171724;
  font: inherit;
  font-size: 14px;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.country-menu .country-code {
  font-size: 13px;
}

.country-menu a:hover,
.country-menu a.is-selected {
  background: #f2ecfb;
}

.rd-navbar-fullwidth .navbar-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rd-navbar-fullwidth .navbar-info > * + * {
  margin-left: 0;
}

.rd-navbar-fixed .navbar-info {
  flex-direction: column;
  align-items: stretch;
  width: min(320px, 100%);
  padding: 12px 16px 16px;
}

.rd-navbar-fixed .navbar-info > * {
  margin: 0;
}

.rd-navbar-fixed .navbar-info > * + * {
  margin-top: 12px;
}

.rd-navbar-fixed .country-picker {
  justify-content: center;
  width: 100%;
}

.rd-navbar-fixed .navbar-info > a,
.rd-navbar-fixed .navbar-action-button {
  width: 100%;
}

@media (min-width: 1200px) and (max-width: 1350px) {
  .rd-navbar-fullwidth.navbar-app .navbar-cell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .rd-navbar-fullwidth .navbar-navigation {
    margin-right: -11px;
    margin-left: -11px;
  }

  .rd-navbar-fullwidth .navbar-navigation-root-item {
    padding-right: 11px;
    padding-left: 11px;
  }

  .rd-navbar-fullwidth .navbar-info {
    gap: 10px;
  }
}
