.representantes-plugin {
  --rp-preto: #111111;
  --rp-branco: #ffffff;
  --rp-gelo: #f3f4f5;
  --rp-cinza: #c7c9cc;
  --rp-cinza-escuro: #5f6368;
  --rp-escuro-1: #111111;
  --rp-escuro-2: #222222;
  --rp-escuro-4: #393939;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: var(--rp-branco);
  border-top: 0;
}

.representantes-plugin *,
.representantes-plugin *::before,
.representantes-plugin *::after {
  box-sizing: border-box;
}

.representantes-plugin__quadro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
  width: 100%;
  max-width: 1500px;
}

.representantes-plugin__mapa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52%;
  min-width: 420px;
}

.representantes-plugin__svg-map {
  display: block;
  width: 100%;
  max-width: 680px;
  height: auto;
}

.representantes-plugin__estado {
  fill: var(--rp-cinza);
  stroke: var(--rp-branco);
  cursor: pointer;
  outline: none;
  transition: fill 0.2s ease, transform 0.2s ease;
}

.representantes-plugin__estado:hover,
.representantes-plugin__estado:focus {
  fill: var(--rp-gelo);
}

.representantes-plugin__estado:focus-visible {
  filter: drop-shadow(0 0 2px var(--rp-preto));
}

.representantes-plugin__estado.is-active {
  fill: var(--rp-preto);
}

.representantes-plugin__resultado {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 48%;
  min-width: 360px;
}

.representantes-plugin__topo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 250px));
  align-items: start;
  justify-content: flex-start;
  width: 100%;
  gap: 15px;
}

.representantes-plugin__topo h3 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--rp-preto);
  font-family: inherit;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.representantes-plugin__seletor {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.representantes-plugin__subregiao-wrap[hidden] {
  display: none;
}

.representantes-plugin__seletor::after {
  content: "";
  position: absolute;
  right: 16px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--rp-preto);
  border-bottom: 2px solid var(--rp-preto);
  pointer-events: none;
  transform: rotate(45deg) translateY(-2px);
}

.representantes-plugin__seletor select {
  width: 100%;
  min-height: 48px;
  padding: 12px 40px 12px 15px;
  appearance: none;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--rp-gelo);
  color: var(--rp-preto);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.2;
}

.representantes-plugin__seletor select:focus {
  border-color: var(--rp-preto);
  outline: none;
}

.representantes-plugin__lista {
  width: 100%;
}

.representantes-plugin__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding: 15px;
  margin: 20px 0 0;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 8px;
  background: linear-gradient(to right, var(--rp-gelo), var(--rp-branco));
}

.representantes-plugin__foto {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(to right, var(--rp-escuro-4), var(--rp-escuro-1));
}

.representantes-plugin__foto svg {
  width: 17px;
  height: 17px;
  fill: var(--rp-cinza);
}

.representantes-plugin__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-width: 0;
  margin: 0 0 0 12px;
}

.representantes-plugin__info h3 {
  width: 100%;
  margin: 0;
  color: var(--rp-preto);
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.representantes-plugin__info p {
  width: 100%;
  margin: 2px 0 0;
  color: var(--rp-preto);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.representantes-plugin__botoes {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  margin-left: 12px;
}

.representantes-plugin__botoes a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--rp-branco);
  cursor: pointer;
  text-decoration: none;
}

.representantes-plugin__botoes a span {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, var(--rp-cinza), var(--rp-escuro-4));
  transform: skewX(-15deg);
  transition: filter 0.2s ease;
}

.representantes-plugin__botoes a svg {
  position: relative;
  z-index: 2;
  width: 22px;
  height: 22px;
  fill: var(--rp-branco);
  transition: transform 0.2s ease;
}

.representantes-plugin__botoes a:hover span,
.representantes-plugin__botoes a:focus span {
  filter: brightness(1.16);
}

.representantes-plugin__botoes a:hover svg,
.representantes-plugin__botoes a:focus svg {
  transform: scale(1.08);
}

.representantes-plugin__vazio {
  width: 100%;
  margin: 20px 0 0;
  padding: 18px;
  border-radius: 8px;
  background: var(--rp-gelo);
  color: var(--rp-cinza-escuro);
  font-size: 15px;
  line-height: 1.45;
}

.representantes-plugin__data {
  display: none;
}

@media screen and (max-width: 1100px) {
  .representantes-plugin__quadro {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
  }

  .representantes-plugin__mapa,
  .representantes-plugin__resultado {
    width: 100%;
    min-width: 0;
  }

  .representantes-plugin__mapa {
    margin: 0;
  }

  .representantes-plugin__svg-map {
    max-width: 440px;
  }

  .representantes-plugin__topo h3 {
    font-size: 22px;
  }
}

@media screen and (max-width: 560px) {
  .representantes-plugin__topo {
    grid-template-columns: 1fr;
  }

  .representantes-plugin__seletor {
    width: 100%;
  }

  .representantes-plugin__item {
    flex-wrap: wrap;
  }

  .representantes-plugin__info {
    width: calc(100% - 52px);
  }

  .representantes-plugin__botoes {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 0 0 52px;
    margin-left: 0;
  }
}
