.aef-state-map {
  padding: 120px 40px;
}

.aef-state-map .aef-block-title {
  text-align: center;
  max-width: calc((8/12) * 100%);
  margin-bottom: 150px;
  margin-left: auto;
  margin-right: auto;
}

.aef-state-map svg {
  display: block;
  width: 100%;
  height: auto;
}

#aef-state-map-container {
  position: relative;
  width: 100%;
  max-width: calc((10/12) * 100%);
  margin-left: auto;
  margin-right: auto;
}

#aef-state-map-svg g,
#aef-state-map-svg path {
  cursor: pointer;
}

#aef-state-map-svg g g path {
  pointer-events: none;
}

#aef-state-map-svg .active,
#aef-state-map-svg .active path,
#aef-state-map-svg .active g {
  fill: #D4BC8C;
}

#aef-state-map-container select {
  display: none;
}

/* Tooltip styling */
#aef-state-map-container .state-tooltip {
  display: none;
  position: absolute;
  height: auto;
  width: 336px;
  padding-bottom: 26px;
  padding-left: 12px;
  padding-right: 12px;
  background-color: #FFF;
  border-radius: 10px;
  z-index: 1000;
  transform: translateY(calc(-50% + -26px));
}

#aef-state-map-container .state-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 26px 14px 0 14px;
  border-style: solid;
  border-color: #FFF transparent transparent transparent;
}

#aef-state-map-container .state-tooltip * {
  pointer-events: none;
}

#aef-state-map-container .state-tooltip h4 {
  margin: 0;
  padding: 0;
  color: #56565A;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.5;
}
#aef-state-map-container .state-tooltip .metrics {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#aef-state-map-container .state-tooltip .metric {
  display: flex;
  padding-top: 4px;
  border-top: 1px solid #8CA4D4;
  column-gap: 12px;
  justify-content: space-between;
}
#aef-state-map-container .state-tooltip .metric h5 {
  max-width: 161px;
  width: 100%;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  color: rgba(81, 91, 105, 0.65);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.55px;
  line-height: 1.4;
  text-transform: uppercase;
}
#aef-state-map-container .state-tooltip .metric div {
  flex: 0 0 auto;
  color: #515B69;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  text-align: right;
}

.aef-state-map .state-supporting-content {
  max-width: calc((8/12) * 100%);
  margin-left: auto;
  margin-right: auto;
  margin-top: 140px;
}
.aef-state-map .state-supporting-content .supporting-content-heading {
  display: flex;
  padding-bottom: 37px;
  column-gap: 25px;
  align-items: flex-end;
}
.aef-state-map .state-supporting-content .supporting-content-heading h3 {
  display: block;
  width: 50%;
  margin: 0;
  color: #D4BC8C;
  font-size: 32px;
  font-weight: 500;
  line-height: 36px;
}
.aef-state-map .state-supporting-content .supporting-content-heading div {
  color: #FFF;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.4;
  text-transform: uppercase;
}
.aef-state-map .state-supporting-content .supporting-content-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.aef-state-map .state-supporting-content .supporting-content-info .info-block {
  padding-top: 12px;
  border-top: 2px solid #D4BC8C;
}
.aef-state-map .state-supporting-content .supporting-content-info .info-block h4 {
  margin: 0;
  padding: 0;
  color: #FFF;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.1px;
  line-height: 1.4;
}
.aef-state-map .state-supporting-content .supporting-content-info .info-block div {
  color: #FFF;
  font-size: 20px;
  line-height: 1.4;
}
.aef-state-map .state-supporting-content .supporting-content-footer {
  display: flex;
  margin-top: 55px;
  column-gap: 25px;
  align-items: flex-end;
  justify-content: space-between;
}
.aef-state-map .state-supporting-content .supporting-content-footer .aef-button {
  border-color: #D4BC8C;
  color: #D4BC8C;
  transition: 300ms ease-in-out;
}
.aef-state-map .state-supporting-content .supporting-content-footer .aef-button:hover {
  opacity: 0.6;
}
.aef-state-map .state-supporting-content .supporting-content-footer div {
  width: 50%;
}
.aef-state-map .state-supporting-content .supporting-content-footer p {
  color: #ffffff;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.1px;
}
@media(max-width: 767px) {
  .aef-state-map {
    padding: 64px 40px;
  }
  .aef-state-map .aef-block-title {
    max-width: none !important;
    margin-bottom: 64px;
  }
  #aef-state-map-container {
    max-width: none !important;
  }
  #aef-state-map-container select {
    display: block;
    width: 100%;
    margin-top: 32px;
    margin-bottom: 24px;
    border: 2px solid #D4BC8C;
    padding: 14px 20px;
    border-radius: 10px;
    background: none;
    color: #D4BC8C;
    font-family: "articulat-cf", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23D4BC8C' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 14px 8px;
  }
  #aef-state-map-container .state-tooltip {
    position: static;
    transform: none;
    width: 100%;
  }
  #aef-state-map-container .state-tooltip::after {
    display: none;
  }
  #aef-state-map-container .state-tooltip.active {
    display: block !important;
  }

  #aef-state-map-svg .mobile-active,
  #aef-state-map-svg .mobile-active path,
  #aef-state-map-svg .mobile-active g {
    fill: #D4BC8C;
  }

  .aef-state-map .state-supporting-content {
    max-width: none !important;
    margin-top: 64px;
  }
  .aef-state-map .state-supporting-content .supporting-content-heading {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 16px;
  }
  .aef-state-map .state-supporting-content .supporting-content-info {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .aef-state-map .state-supporting-content .supporting-content-footer {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 16px;
  }
  .aef-state-map .state-supporting-content .supporting-content-footer div {
    width: 100%;
  }
}