.cb-city-welcome[hidden] { display: none !important; }

body.cb-city-welcome-open {
  overflow: hidden;
  max-width: 100vw;
}

body.cb-city-welcome-open .cb-cookie-banner,
body.cb-city-welcome-open .cb-cookie-modal {
  display: none !important;
}

.cb-city-welcome {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.cb-city-welcome__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.cb-city-welcome__dialog {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  max-width: 100%;
  min-width: 0;
  max-height: min(90vh, 720px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
  padding: 22px 22px 20px;
  box-sizing: border-box;
}

.cb-city-welcome__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cb-city-welcome__brand {
  display: grid;
  gap: 10px;
}

.cb-city-welcome__brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%)
    center/100% 100% no-repeat;
  position: relative;
}

.cb-city-welcome__brand-icon::before {
  content: "";
  position: absolute;
  inset: 12px 18px auto 18px;
  height: 18px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #93c5fd 0%, #60a5fa 100%);
}

.cb-city-welcome__brand-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 16px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 50% 50% 50% 0;
  background: #2563eb;
  rotate: -45deg;
}

.cb-city-welcome__head h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.cb-city-welcome__close {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.cb-city-welcome__body p {
  margin: 0 0 12px;
  color: #334155;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cb-city-welcome__intro {
  font-size: 15px;
}

.cb-city-welcome__label {
  display: block;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 4px;
}

.cb-city-welcome__region {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.cb-city-welcome__region-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cb-city-welcome__region-row strong {
  font-size: 1rem;
}

.cb-city-welcome__region-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 800;
}

.cb-city-welcome__search {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
}

.cb-city-welcome__suggest {
  margin-top: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.cb-city-welcome__suggest button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  padding: 10px 12px;
  cursor: pointer;
}

.cb-city-welcome__suggest button:hover {
  background: #eff6ff;
}

.cb-city-welcome__regions,
.cb-city-welcome__cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.cb-city-welcome__region-btn,
.cb-city-welcome__city,
.cb-city-welcome__whole {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
}

.cb-city-welcome__region-btn.is-active,
.cb-city-welcome__city.is-active,
.cb-city-welcome__whole.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.cb-city-welcome__fallback {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.cb-city-welcome__info {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.cb-city-welcome__info-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.cb-city-welcome__info p {
  margin: 0;
  font-size: 0.88rem;
  color: #1e3a8a !important;
}

@media (max-width: 640px) {
  .cb-city-welcome {
    align-items: flex-end;
    padding: 0;
  }

  .cb-city-welcome__dialog {
    width: 100%;
    max-width: 100%;
    max-height: min(88vh, 100dvh);
    border-radius: 18px 18px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .cb-city-welcome__head h2 {
    font-size: 1.1rem;
    padding-right: 8px;
  }

  .cb-city-welcome__close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f1f5f9;
  }

  .cb-city-welcome__regions,
  .cb-city-welcome__cities {
    gap: 6px;
  }

  .cb-city-welcome__region-btn,
  .cb-city-welcome__city,
  .cb-city-welcome__whole {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.3;
    white-space: normal;
    text-align: center;
  }
}
