:root {
  --tb-loc-purple: #501098;
  --tb-loc-purple-bright: #9a23f8;
  --tb-loc-ink: #000;
  --tb-loc-muted: #585858;
  --tb-loc-bg: #f2f2f2;
  --tb-loc-card: #fff;
  --tb-loc-line: #dfdfdf;
}

body.locations-body {
  background: var(--tb-loc-bg);
  color: var(--tb-loc-ink);
}

.locations-body .locations-scroll {
  overflow: hidden;
}

.locations-body .main-navigation a.current {
  color: var(--tb-loc-purple);
}

.tb-locations {
  background: var(--tb-loc-bg);
  display: grid;
  grid-template-areas:
    "map search"
    "map results";
  grid-template-columns: minmax(0, 1fr) 430px;
  grid-template-rows: auto minmax(0, 1fr);
  height: calc(100vh - 80px);
  min-height: 620px;
  width: 100%;
}

.tb-locations [hidden] {
  display: none !important;
}

.tb-locations__map-shell {
  background: #d8eef7;
  grid-area: map;
  min-height: 100%;
  position: relative;
}

.tb-locations__map {
  height: 100%;
  min-height: 100%;
  width: 100%;
}

.tb-locations__map-fallback {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(80, 16, 152, .06) 1px, transparent 1px),
    linear-gradient(rgba(80, 16, 152, .06) 1px, transparent 1px),
    #edf5f7;
  background-size: 44px 44px;
  color: var(--tb-loc-purple);
  display: flex;
  font-family: InterstateBold, Arial, Helvetica, sans-serif;
  inset: 0;
  justify-content: center;
  position: absolute;
  text-transform: uppercase;
}

.tb-locations.is-map-ready .tb-locations__map-fallback {
  display: none;
}

.tb-locations__search-panel,
.tb-locations__results-panel {
  background: var(--tb-loc-bg);
}

.tb-locations__search-panel {
  grid-area: search;
  padding: 28px 15px 12px;
}

.tb-locations__results-panel {
  grid-area: results;
  overflow-y: auto;
  padding: 0 15px 24px;
}

.tb-locations__search-wrap {
  margin: 0 auto;
  max-width: 398px;
  padding: 0 8px 12px;
  text-align: center;
}

.tb-locations__search-wrap h1 {
  font-family: InterstateBoldCondensed, GT-America-Condensed-Bold, Arial, Helvetica, sans-serif;
  font-size: 2rem;
  line-height: 1;
  margin: 2px 0 16px;
}

.tb-locations__required {
  color: var(--tb-loc-purple);
  font-family: InterstateBold, Arial, Helvetica, sans-serif;
  font-size: .875rem;
  line-height: 1.25;
  margin: -8px auto 16px;
  max-width: 310px;
}

.tb-locations__mode-tabs {
  background: #fff;
  border: 1px solid var(--tb-loc-line);
  border-radius: 999px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto 14px;
  max-width: 350px;
  padding: 4px;
}

.tb-locations__mode-tabs button {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--tb-loc-muted);
  cursor: pointer;
  font-family: InterstateBold, Arial, Helvetica, sans-serif;
  font-size: .9375rem;
  min-height: 34px;
  padding: 8px 12px;
}

.tb-locations__mode-tabs button.is-active {
  background: var(--tb-loc-purple);
  color: #fff;
}

.tb-locations__form {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 40px;
  margin: 0 auto;
  max-width: 350px;
}

.tb-locations__input {
  appearance: none;
  background: #fff;
  border: 1px solid #bdbdbd;
  border-radius: 999px;
  color: var(--tb-loc-ink);
  font-family: InterstateRegular, Arial, Helvetica, sans-serif;
  font-size: 1rem;
  height: 40px;
  outline: none;
  padding: 0 16px;
  width: 100%;
}

.tb-locations__input:focus {
  border-color: var(--tb-loc-purple-bright);
  box-shadow: 0 0 0 3px var(--tb-loc-purple-bright);
}

.tb-locations__submit,
.tb-locations__use-location {
  appearance: none;
  background: #fff;
  border: 1px solid #bdbdbd;
  color: var(--tb-loc-ink);
  cursor: pointer;
}

.tb-locations__submit {
  align-items: center;
  border-radius: 50%;
  display: flex;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 40px;
}

.tb-locations__submit svg,
.tb-locations__use-location svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.tb-locations__submit svg {
  height: 23px;
  width: 23px;
}

.tb-locations__submit:disabled {
  cursor: progress;
  opacity: .55;
}

.tb-locations__helper {
  color: var(--tb-loc-ink);
  margin: 18px auto 0;
  max-width: 350px;
  text-align: center;
}

.tb-locations__helper p {
  font-family: InterstateBold, Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.25;
  margin: 0;
}

.tb-locations__delivery-helper {
  margin-top: 22px;
}

.tb-locations__delivery-helper small {
  color: var(--tb-loc-muted);
  display: block;
  font-family: InterstateRegular, Arial, Helvetica, sans-serif;
  font-size: .875rem;
  line-height: 1.3;
  margin: 14px auto 0;
  max-width: 310px;
}

.tb-locations__helper div {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto 1fr;
  margin: 22px auto 18px;
  max-width: 120px;
}

.tb-locations__helper div span {
  background: #000;
  display: block;
  height: 1px;
}

.tb-locations__helper strong {
  font-family: InterstateBold, Arial, Helvetica, sans-serif;
  font-size: 1rem;
}

.tb-locations__use-location {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--tb-loc-purple);
  display: inline-grid;
  font-family: InterstateRegular, Arial, Helvetica, sans-serif;
  font-size: 1rem;
  gap: 14px;
  grid-template-columns: auto 40px;
  padding: 0;
}

.tb-locations__use-location svg {
  background: #fff;
  border: 1px solid #bdbdbd;
  border-radius: 50%;
  color: var(--tb-loc-purple);
  height: 40px;
  padding: 8px;
  width: 40px;
}

.tb-locations__status {
  color: var(--tb-loc-muted);
  font-family: InterstateBold, Arial, Helvetica, sans-serif;
  font-size: .875rem;
  min-height: 20px;
  padding: 0 18px 8px;
  text-align: center;
}

.tb-locations__results {
  display: grid;
  gap: 10px;
  padding: 0 3px 24px;
}

.tb-location-card {
  background: var(--tb-loc-card);
  border: 1px solid transparent;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .08);
  display: grid;
  gap: 14px;
  min-height: 186px;
  padding: 20px 18px 18px;
}

.tb-location-card.is-active {
  border-color: var(--tb-loc-purple-bright);
}

.tb-location-card__address {
  display: grid;
  gap: 2px;
}

.tb-location-card__street {
  font-family: InterstateBoldCondensed, GT-America-Condensed-Bold, Arial, Helvetica, sans-serif;
  font-size: 1.55rem;
  line-height: .95;
}

.tb-location-card__city {
  color: var(--tb-loc-muted);
  font-family: InterstateBold, Arial, Helvetica, sans-serif;
  font-size: .95rem;
}

.tb-location-card__meta {
  align-items: center;
  color: var(--tb-loc-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: .8125rem;
  gap: 4px;
}

.tb-location-card__meta a {
  color: var(--tb-loc-purple);
  font-family: InterstateBold, Arial, Helvetica, sans-serif;
}

.tb-location-card__hours {
  font-family: InterstateBold, Arial, Helvetica, sans-serif;
  font-size: .875rem;
}

.tb-location-card__button {
  align-items: center;
  background: #fff;
  border: 2px solid var(--tb-loc-purple);
  color: var(--tb-loc-purple);
  cursor: pointer;
  display: flex;
  font-family: InterstateBold, Arial, Helvetica, sans-serif;
  font-size: 1rem;
  justify-content: center;
  min-height: 55px;
  text-decoration: none;
  text-transform: none;
  width: 100%;
}

.tb-location-card__button[aria-disabled="true"] {
  background: #e6e6e6;
  border-color: #e6e6e6;
  color: #fff;
  cursor: default;
  pointer-events: none;
}

.tb-locations__raw-note {
  display: none;
}

@media screen and (max-width: 989px) {
  .locations-body .locations-scroll {
    overflow: auto;
  }

  .tb-locations {
    grid-template-areas:
      "search"
      "map"
      "results";
    grid-template-columns: 100%;
    grid-template-rows: auto 302px auto;
    height: auto;
    min-height: calc(100vh - 111px);
  }

  .tb-locations__map-shell {
    grid-area: map;
    min-height: 302px;
  }

  .tb-locations__search-panel {
    background: var(--tb-loc-bg);
    grid-area: search;
    padding: 30px 16px 42px;
  }

  .tb-locations__search-wrap {
    max-width: none;
    padding: 0;
  }

  .tb-locations__search-wrap h1 {
    font-size: 1.75rem;
    margin-bottom: 13px;
  }

  .tb-locations__form {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 40px;
    max-width: 343px;
  }

  .tb-locations__mode-tabs {
    max-width: 343px;
  }

  .tb-locations__results-panel {
    background: var(--tb-loc-bg);
    grid-area: results;
    overflow: visible;
    padding: 0;
  }

  .tb-locations__helper,
  .tb-locations__status,
  .tb-locations__results {
    background: var(--tb-loc-bg);
  }

  .tb-locations__helper {
    margin: 0;
    max-width: none;
    padding: 24px 16px 32px;
  }

  .tb-locations__status {
    padding: 12px 16px 0;
  }

  .tb-locations__results {
    gap: 10px;
    padding: 12px 11px 26px;
  }

  .tb-location-card {
    min-height: 186px;
    padding: 20px 19px 18px;
  }
}
