/* DigiKey-style locale Settings modal */
.lp-locale-settings-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.lp-locale-settings-btn .lp-locale-summary {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Unicode flag emoji — crisp on retina (site sprite is only 20px wide) */
.lp-locale-flag {
  display: inline-flex !important;
  float: none !important;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 1.35em;
  height: auto;
  padding: 0 !important;
  margin: 0 5px 0 0;
  vertical-align: -0.15em;
  line-height: 1 !important;
  overflow: visible;
  font-size: 20px;
  font-style: normal;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
  color: inherit;
  background: none !important;
  background-image: none !important;
  flex: 0 0 auto;
  speak: never;
}
.header_sidebar_first_country a {
  display: flex;
  align-items: center;
}
.header_sidebar_first_country .lp-locale-flag {
  margin: 0 8px 0 0;
  font-size: 22px;
}
.lp-locale-modal-overlay {
  display: none;
  position: fixed;
  z-index: 10050;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
}
.lp-locale-modal-overlay.is-open {
  display: block;
}
html.lp-locale-open,
body.lp-locale-open {
  overflow: hidden;
}
.lp-locale-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 980px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  color: #242b33;
  font-size: 13px;
}
.lp-locale-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  padding: 14px 18px;
  border-bottom: 1px solid #e6ebf0;
}
.lp-locale-modal__head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.lp-locale-modal__close {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #66707a;
}
.lp-locale-modal__body {
  display: flex;
  gap: 20px;
  padding: 16px 18px;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.lp-locale-modal__left {
  flex: 1 1 62%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.lp-locale-modal__right {
  flex: 0 0 280px;
  align-self: flex-start;
  max-height: 100%;
  overflow: auto;
}
.lp-locale-modal__left h3,
.lp-locale-modal__right h3,
.lp-locale-modal__foot h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  flex: 0 0 auto;
}
.lp-locale-search {
  flex: 0 0 auto;
  margin: 0 0 12px;
}
.lp-locale-search__input {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d0d7de;
  border-radius: 4px;
  font-size: 13px;
  color: #242b33;
  background: #fff;
  outline: none;
}
.lp-locale-search__input:focus {
  border-color: #8a949e;
}
.lp-locale-search__input::-webkit-search-cancel-button {
  cursor: pointer;
}
.lp-locale-countries {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}
.lp-locale-continent {
  margin-bottom: 16px;
}
.lp-locale-continent:last-child {
  margin-bottom: 4px;
}
.lp-locale-continent__title {
  font-weight: 600;
  color: #4f565d;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #eef2f6;
}
.lp-locale-country-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lp-locale-country-list li {
  min-width: 0;
}
.lp-locale-country-list button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #2f5bea;
  cursor: pointer;
  padding: 5px 4px;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 2px;
}
.lp-locale-country-list button:hover {
  background: #f3f6fb;
}
.lp-locale-country-list button.is-active {
  color: #c41230;
  font-weight: 600;
  background: #fff5f6;
}
.lp-locale-country-empty {
  flex: 0 0 auto;
  margin-top: 8px;
  padding: 18px 12px;
  text-align: center;
  color: #8a949e;
  background: #f7f9fb;
  border-radius: 4px;
}
.lp-locale-options {
  border: 1px solid #e6ebf0;
  border-radius: 4px;
  padding: 14px;
  background: #f7f9fb;
}
.lp-locale-options__label {
  font-size: 12px;
  color: #66707a;
  margin: 8px 0 6px;
}
.lp-locale-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lp-locale-chip {
  border: 1px solid #d0d7de;
  background: #fff;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  min-width: 88px;
  text-align: center;
}
.lp-locale-chip.is-active {
  border-color: #c41230;
  border-width: 2px;
  padding: 7px 11px;
  font-weight: 600;
}
.lp-locale-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.lp-locale-insight {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e6ebf0;
}
.lp-locale-insight__title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #4f565d;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.lp-locale-insight__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lp-locale-insight__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  font-size: 12px;
  line-height: 1.35;
}
.lp-locale-insight__k {
  flex: 0 0 auto;
  color: #8a949e;
}
.lp-locale-insight__v {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  color: #242b33;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lp-locale-insight__tip {
  margin: 10px 0 0;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #4f565d;
  background: #fff;
  border: 1px solid #e6ebf0;
  border-radius: 4px;
}
.lp-locale-btn {
  flex: 1;
  height: 36px;
  border-radius: 4px;
  border: 1px solid #d0d7de;
  cursor: pointer;
  font-size: 14px;
}
.lp-locale-btn--primary {
  background: #c41230;
  border-color: #c41230;
  color: #fff;
}
.lp-locale-btn--ghost {
  background: #fff;
  color: #242b33;
}
@media (max-width: 900px) {
  .lp-locale-country-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .lp-locale-modal {
    max-height: 92vh;
  }
  .lp-locale-modal__body {
    flex-direction: column;
    overflow: auto;
  }
  .lp-locale-modal__left {
    flex: none;
    max-height: none;
  }
  .lp-locale-countries {
    max-height: 42vh;
  }
  .lp-locale-modal__right {
    flex: none;
    width: 100%;
    max-height: none;
    overflow: visible;
  }
  .lp-locale-country-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .lp-locale-country-list {
    grid-template-columns: 1fr;
  }
}
