/* UWT Google Clothing Bank Locator - clean UX redesign */
.uwt-g-cbl,
.uwt-g-cbl * {
  box-sizing: border-box;
}

.uwt-g-cbl {
  --uwt-primary: #082c5e;
  --uwt-secondary: #0f6fa4;
  --uwt-red: #0f6fa4;
  --uwt-text: #143252;
  --uwt-muted: #66788c;
  --uwt-border: rgba(8, 44, 94, 0.10);
  --uwt-soft: #f6f9fc;

  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  font-family: "Gotham", "Gotham A", "Gotham B", "Montserrat", Arial, sans-serif;
  color: var(--uwt-text);
}

.uwt-g-cbl__shell {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(8, 44, 94, 0.08);
  box-shadow: 0 24px 60px rgba(8, 44, 94, 0.08);
}

.uwt-g-cbl__searchbar {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 22px;
  background: #0f78aa;
}

.uwt-g-cbl__searchbar label {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
  margin: 0;
}

.uwt-g-cbl__searchbar input {
  width: 100%;
  min-height: 52px;
  border: 0;
  outline: 0;
  border-radius: 14px;
  background: #ffffff;
  color: var(--uwt-primary);
  padding: 0 18px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(8, 44, 94, 0.12);
}

.uwt-g-cbl__searchbar input::placeholder {
  color: #9aa9ba;
}

.uwt-g-cbl__searchbar input:focus {
  box-shadow:
    0 0 0 4px rgba(255,255,255,0.22),
    inset 0 0 0 1px rgba(8,44,94,0.18);
}

.uwt-g-cbl__search-btn,
.uwt-g-cbl__geo-btn {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 0 24px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease;
}

.uwt-g-cbl__search-btn {
  background: #082c5e;
  color: #ffffff;
  border-color: rgba(255,255,255,0.16);
}

.uwt-g-cbl__geo-btn {
  background: rgba(255,255,255,0.13);
  color: #ffffff;
  border-color: rgba(255,255,255,0.32);
}

.uwt-g-cbl__search-btn:hover,
.uwt-g-cbl__geo-btn:hover {
  transform: translateY(-1px);
}

.uwt-g-cbl__body {
  display: grid;
  grid-template-columns: 430px 1fr;
  min-height: 540px;
  background: #ffffff;
}

.uwt-g-cbl__results {
  background: #ffffff;
  border-right: 1px solid rgba(8,44,94,0.08);
  max-height: 540px;
  overflow-y: auto;
  overflow-x: hidden;
}

.uwt-g-cbl__results::-webkit-scrollbar {
  width: 8px;
}

.uwt-g-cbl__results::-webkit-scrollbar-track {
  background: #f2f6fa;
}

.uwt-g-cbl__results::-webkit-scrollbar-thumb {
  background: #bfd0dc;
  border-radius: 999px;
}

.uwt-g-cbl__status {
  padding: 16px 26px;
  color: #52677c;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
  border-bottom: 1px solid rgba(8,44,94,0.06);
  background: #fbfdff;
}

.uwt-g-cbl__list {
  display: grid;
}

.uwt-g-cbl__item {
  display: block;
  padding: 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(8,44,94,0.08);
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease;
}

.uwt-g-cbl__item-inner {
  padding: 26px 28px;
}

.uwt-g-cbl__item:hover,
.uwt-g-cbl__item.is-active {
  background: #f8fbfd;
}

.uwt-g-cbl__item.is-nearest {
  background: #f6fbfe;
  box-shadow: inset 4px 0 0 var(--uwt-red);
}

.uwt-g-cbl__item-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}

.uwt-g-cbl__item h3 {
  margin: 0 0 8px;
  color: var(--uwt-primary);
  font-size: 21px;
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: 0;
}

.uwt-g-cbl__item-address {
  margin: 0;
  color: #213a56;
  font-size: 15.5px;
  line-height: 1.45;
  font-weight: 750;
}

.uwt-g-cbl__nearest-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--uwt-red);
  color: #ffffff;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  box-shadow: 0 0 0 6px rgba(15,111,164,.10);
  white-space: nowrap;
}

.uwt-g-cbl__item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.uwt-g-cbl__distance {
  color: #607286;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
}

.uwt-g-cbl__directions-btn,
.uwt-g-cbl__popup-directions {
  appearance: none;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: #eef7fc;
  color: var(--uwt-secondary);
  padding: 0 18px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.uwt-g-cbl__directions-btn:hover,
.uwt-g-cbl__popup-directions:hover {
  background: var(--uwt-secondary);
  color: #ffffff;
  transform: translateY(-1px);
}

.uwt-g-cbl__map-wrap {
  min-height: 540px;
  background: #e8eef3;
  padding: 12px;
}

.uwt-g-cbl__map {
  width: 100%;
  min-height: 516px;
  height: 100%;
  background: #e8eef3;
  border-radius: 18px;
  overflow: hidden;
}

.uwt-g-cbl__popup {
  max-width: 270px;
  padding: 4px;
  font-family: "Gotham", "Gotham A", "Gotham B", "Montserrat", Arial, sans-serif;
}

.uwt-g-cbl__popup-title {
  margin: 0 0 8px;
  color: var(--uwt-primary);
  font-size: 18px;
  line-height: 1.18;
  font-weight: 900;
}

.uwt-g-cbl__popup-address {
  margin: 0 0 14px;
  color: #52647a;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.uwt-g-cbl__nearest-popup {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--uwt-red);
  color: #ffffff;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.uwt-g-cbl__pulse-marker {
  position: absolute;
  width: 62px;
  height: 62px;
  margin-left: -31px;
  margin-top: -55px;
  border-radius: 999px;
  border: 3px solid rgba(15,111,164,.42);
  pointer-events: none;
  animation: uwtMapPulse 1.45s ease-out infinite;
}

.uwt-g-cbl-error {
  padding: 18px 20px;
  border-radius: 12px;
  background: #fff4e5;
  border: 1px solid #ffd599;
  color: #8a4b00;
  font-weight: 700;
}

@keyframes uwtMapPulse {
  0% {
    transform: scale(.55);
    opacity: .85;
  }
  100% {
    transform: scale(1.85);
    opacity: 0;
  }
}

@media (max-width: 1100px) {
  .uwt-g-cbl__searchbar {
    grid-template-columns: 1fr;
  }
  .uwt-g-cbl__search-btn,
  .uwt-g-cbl__geo-btn {
    width: fit-content;
  }
}

@media (max-width: 900px) {
  .uwt-g-cbl {
    width: min(100% - 24px, 1280px);
  }
  .uwt-g-cbl__body {
    grid-template-columns: 1fr;
  }
  .uwt-g-cbl__results {
    max-height: 360px;
    border-right: 0;
    border-bottom: 1px solid rgba(8,44,94,0.08);
  }
  .uwt-g-cbl__map-wrap {
    min-height: 430px;
  }
  .uwt-g-cbl__map {
    min-height: 406px;
  }
}

@media (max-width: 560px) {
  .uwt-g-cbl {
    width: min(100% - 20px, 1280px);
  }
  .uwt-g-cbl__shell {
    border-radius: 18px;
  }
  .uwt-g-cbl__searchbar {
    padding: 16px;
    gap: 10px;
  }
  .uwt-g-cbl__searchbar input,
  .uwt-g-cbl__search-btn,
  .uwt-g-cbl__geo-btn {
    width: 100%;
    min-height: 50px;
  }
  .uwt-g-cbl__item-inner {
    padding: 22px 20px;
  }
  .uwt-g-cbl__item-top {
    grid-template-columns: 1fr;
  }
  .uwt-g-cbl__item h3 {
    font-size: 19px;
  }
  .uwt-g-cbl__item-foot {
    align-items: flex-start;
    flex-direction: column;
  }
}



/* Clean nearest label - not a button/tag */
.uwt-g-cbl__item.is-nearest {
  background: #ffffff !important;
  box-shadow: inset 4px 0 0 var(--uwt-secondary, #0f6fa4) !important;
}

.uwt-g-cbl__nearest-badge {
  min-height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: var(--uwt-secondary, #0f6fa4) !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  box-shadow: none !important;
  animation: none !important;
  white-space: nowrap !important;
}

.uwt-g-cbl__nearest-badge::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--uwt-secondary, #0f6fa4);
  vertical-align: 1px;
}

.uwt-g-cbl__nearest-popup {
  background: #ffffff !important;
  color: var(--uwt-secondary, #0f6fa4) !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.uwt-g-cbl__nearest-popup::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--uwt-secondary, #0f6fa4);
  vertical-align: 1px;
}



/* Full map coverage - no inner padding */
.uwt-g-cbl__map-wrap {
  padding: 0 !important;
  background: #e8eef3 !important;
}

.uwt-g-cbl__map {
  min-height: 540px !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

@media (max-width: 900px) {
  .uwt-g-cbl__map {
    min-height: 430px !important;
  }
}



/* Remove locator status text */
.uwt-g-cbl__status {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}



/* Current location button loading/fix */
.uwt-g-cbl__geo-btn.is-loading,
.uwt-g-cbl__geo-btn:disabled {
  opacity: 0.78;
  cursor: wait;
  transform: none !important;
}
