/* Kosmo Dom: the CitySelect chooser only. */
.fancybox-overlay:has(#cityselect__change) {
  background: rgba(17, 32, 44, .52);
}
.fancybox-wrap:has(#cityselect__change) .fancybox-skin {
  background: #fff;
  color: #1d303e;
  border-radius: 16px;
  box-shadow: 0 18px 64px rgba(17, 32, 44, .22);
}
.fancybox-wrap:has(#cityselect__change) .fancybox-inner {
  overflow: visible !important;
}
#cityselect__change {
  box-sizing: border-box;
  padding: 14px 15px 12px;
  background: #fff;
  border-radius: 12px;
  color: #1d303e;
  text-align: left;
  font: 400 14px/1.45 Poppins, Arial, sans-serif;
}
#cityselect__change .b-cityselect__change_info {
  padding-right: 36px;
  margin: 0 0 14px;
  color: #1d303e;
  font-size: 18px;
  font-weight: 600;
}
#cityselect__change .b-cityselect__change_info i,
#cityselect__change .b-cityselect__change_info .i-cityselect__city {
  color: #167bab;
}
#cityselect__change .b-cityselect__change_city_wrapper {
  position: relative;
  margin: 0 0 14px;
  z-index: 1;
}
#cityselect__change .i-cityselect__input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 13px;
  margin: 0;
  border: 1px solid #d7e4eb;
  border-radius: 8px;
  background: #f7fafc;
  color: #1d303e;
  font: inherit;
}
#cityselect__change .i-cityselect__input:focus {
  border-color: #269dd8;
  outline: 2px solid #cbeafb;
  outline-offset: 1px;
  background: #fff;
}
#cityselect__change .suggestions-suggestions {
  border: 1px solid #d7e4eb;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(17, 32, 44, .12);
}
#cityselect__change .suggestions-suggestion:hover,
#cityselect__change .suggestions-selected {
  background: #edf7fc;
}
#cityselect__change .b-cityselect__list_wrapper {
  margin: 0;
  max-height: min(48vh, 340px);
  overflow: auto;
}
#cityselect__change .b-cityselect__list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 4;
  column-gap: 12px;
}
#cityselect__change .b-cityselect__list li {
  width: auto;
  padding: 0;
  margin: 0;
  break-inside: avoid;
}
#cityselect__change .b-cityselect__list .i-cityselect__set_city {
  display: block;
  padding: 5px 7px;
  border-radius: 6px;
  color: #405b6c;
  text-decoration: none;
  overflow-wrap: anywhere;
}
#cityselect__change .i-cityselect__set_city:hover,
#cityselect__change .i-cityselect__set_city:focus-visible {
  background: #edf7fc;
  color: #167bab;
}
.fancybox-wrap:has(#cityselect__change) .fancybox-close {
  inset: 12px 12px auto auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f6f9;
  color: #405b6c;
}
.fancybox-wrap:has(#cityselect__change) .fancybox-close::before,
.fancybox-wrap:has(#cityselect__change) .fancybox-close::after {
  content: "";
  grid-area: 1 / 1;
  width: 14px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.fancybox-wrap:has(#cityselect__change) .fancybox-close::after {
  transform: rotate(-45deg);
}
.fancybox-wrap:has(#cityselect__change) .fancybox-close:hover {
  background: #e4f2fa;
  color: #167bab;
}
@media (max-width: 650px) {
  #cityselect__change { padding: 8px 4px 5px; }
  #cityselect__change .b-cityselect__change_info { font-size: 16px; }
  #cityselect__change .i-cityselect__input { font-size: 16px; }
  #cityselect__change .b-cityselect__list { columns: 2; column-gap: 6px; }
  #cityselect__change .b-cityselect__list .i-cityselect__set_city { padding: 7px 5px; }
}

/* Keep the real viewport gutter when Fancybox locks the city picker. */
@supports (scrollbar-gutter: stable) {
  html.fancybox-lock.kd-city-chooser-lock {
    overflow-y: hidden !important;
    scrollbar-gutter: stable;
    margin-right: 0 !important;
  }
  html.fancybox-lock.kd-city-chooser-lock .fancybox-overlay {
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Same outline pin as the storefront header, without a font dependency. */
#cityselect__change .b-cityselect__change_info > i { display: none; }
#cityselect__change .b-cityselect__change_info::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 7px;
  vertical-align: -3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23167bab' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 18s5.5-6 5.5-10A5.5 5.5 0 0 0 4.5 8C4.5 12 10 18 10 18Z'/%3E%3Ccircle cx='10' cy='8' r='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
}

