.tmav-map .tmav-office-map {
  display: inline-block;
  height: 480px;
  margin: 0;
}

.tmav-map .tmav-office-map[height="500"] {
  height: 500px;
}

.tmav-map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 8px 16px;
  justify-content: center;
}

.tmav-map-links a {
  color: #a71226;
  text-decoration: underline;
}

.tmav-lead-error {
  color: #a71226;
  margin-bottom: 16px;
}

select.turnintodropdown[hidden],
.tmav-custom-select li[hidden] {
  display: none;
}

.tmav-custom-select ul li:first-child:not([hidden]) {
  display: list-item;
}

#calculator-try,
#calculator-recalculate {
  cursor: pointer;
}

.tmav-testimonial-columns {
  position: relative;
}

.tmav-testimonial-columns > .testimonials_item {
  position: absolute;
}

.clients__container > :is(.clients__logo, .client_logo):has(> img[alt="Walbridge"]) {
  order: -1;
}

.tmav-share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tmav-share-links a {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  background: #f3f3f3;
  color: #333;
}

.tmav-share-links a:is(:hover, :focus-visible) {
  color: #a71226;
}

.podcast__share .tmav-share-links,
.award__share .tmav-share-links {
  justify-content: center;
}

.tmav-application-trigger {
  margin-top: 16px;
}

.tmav-application-dialog {
  box-sizing: border-box;
  width: min(900px, 100%);
  max-width: 100%;
  padding: 0;
  border: 0;
}

.tmav-application-dialog::backdrop {
  background: rgb(0 0 0 / 30%);
}

.tmav-application-frame {
  display: block;
  width: 100%;
  height: min(600px, 75vh);
  border: 0;
}

.tmav-application-dialog > a.button,
.tmav-application-dialog > button {
  display: inline-block;
  margin: 8px;
}

.tmav-gift-designs {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 27px 4%;
  width: 97%;
  min-inline-size: 0;
  margin: 0 auto 28px;
  padding: 0 2.7%;
  border: 0;
}

.tmav-gift-designs legend,
.forms .tmav-gift-designs input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.tmav-gift-designs label {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.tmav-gift-designs img {
  display: block;
  width: 100%;
  height: auto;
}

.tmav-gift-designs input:checked + img {
  outline: 2px solid #000;
}

.tmav-gift-designs input:focus-visible + img {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.add_certificate_form > .certificate {
  margin-top: 0;
}

.add_certificate_form .certificate_data_slider img {
  display: block;
  max-width: none;
  height: auto;
}

@supports not selector(:has(*)) {
  .add_certificate_form .certificate_data_slides.is-selected {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
  }
}

.certificate_form .tmav-gift-form-note {
  margin: 0 0 12px;
  color: #333;
}

.certificate_form .tmav-gift-form-note[role="alert"] {
  color: #a71226;
}

.certificate_form_full .preview-form-note {
  color: #fff;
  text-align: center;
}

@media (min-width: 758px) {
  .tmav-gift-designs {
    grid-template-columns: repeat(6, minmax(0, 90px));
    justify-content: space-between;
    gap: 32px 12px;
    width: 750px;
    margin-bottom: 36px;
    padding-inline: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .add_certificate_form .certificate_data_slides {
    transition: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  [data-tmav-motion-pending] {
    opacity: 0;
  }

  svg:has(#spaceman) :is(#headStripe, #spaceman, #craterSmall, #craterBig, #planet,
    #starsBig g, #starsSmall g, #circlesSmall circle, #circlesBig circle) {
    transform-box: fill-box;
    transform-origin: center;
    animation: tmav-space-drift 1s ease-in-out infinite alternate;
  }

  #headStripe, #spaceman { --tmav-space-motion: translateY(.5px) rotate(1deg); }
  #craterSmall { --tmav-space-motion: translateX(-3px); }
  #craterBig { --tmav-space-motion: translateX(3px); }
  #planet { --tmav-space-motion: rotate(-2deg); }
  #starsBig g { --tmav-space-motion: rotate(20deg); }
  #starsSmall g { --tmav-space-motion: scale(.15); }
  #circlesSmall circle { --tmav-space-motion: translateY(-4px); }
  #circlesBig circle { --tmav-space-motion: translateY(-2px); }
}

@keyframes tmav-space-drift {
  to { transform: var(--tmav-space-motion); }
}

@media (max-width: 757px) {
  .residental__block h1.block__caption,
  .commercial_main h1.block__caption {
    font-size: 40px;
  }

  .service_icons .block__caption,
  .locations_list .block__caption,
  .block__caption--blog {
    font-size: 36px;
  }

  .locations_list {
    overflow-x: clip;
  }

  .locations_list .grid__row {
    width: auto;
    margin-inline: -12px;
  }

  .emergency_line_title {
    font-size: 2em;
  }

  .emergency_line_title strong {
    font-size: 1.4em;
  }

  .block.about img {
    max-width: min(200px, 100%);
  }
}
