/* ===== V10.35 votos ultra compactos + toggle ===== */

.am-single-topic-hero__panel,
.am-topic-lead__inner,
.am-topic-reply-card__inner {
  position: relative;
}

.am-topic-lead__inner,
.am-topic-reply-card__inner {
  padding-right: 58px !important;
}

.am-single-topic-hero__panel {
  padding-right: 62px !important;
}

.am-vote-box {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 4;
}

.am-vote-btn {
  appearance: none;
  border: 1px solid rgba(17, 17, 17, .12);
  background: rgba(255,255,255,.82);
  color: #20222e;
  border-radius: 9px;
  min-width: 0;
  height: 25px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, opacity .16s ease;
}

.am-vote-btn:hover,
.am-vote-btn:focus-visible {
  border-color: rgba(17,17,17,.28);
  background: #ffffff;
  outline: none;
}

.am-vote-btn__icon {
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
}

.am-vote-btn--heart .am-vote-btn__icon {
  font-size: 13px;
}

.am-vote-btn__count {
  font-size: 11px;
  font-weight: 800;
  min-width: 1ch;
}

.am-vote-btn--up.is-voted {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.am-vote-btn--heart.is-voted {
  border-color: rgba(214, 59, 115, .35);
  background: #fff5f8;
  color: #d63b73;
}

.am-vote-btn.is-loading {
  opacity: .72;
  pointer-events: none;
}

@media (max-width: 760px) {
  .am-single-topic-hero__panel,
  .am-topic-lead__inner,
  .am-topic-reply-card__inner {
    padding-right: 14px !important;
    padding-top: 42px !important;
  }

  .am-vote-box {
    top: 10px;
    right: 10px;
    gap: 4px;
  }

  .am-vote-btn {
    height: 24px;
    padding: 0 6px;
    border-radius: 8px;
    gap: 3px;
    font-size: 10.5px;
  }

  .am-vote-btn__icon {
    font-size: 13px;
  }

  .am-vote-btn--heart .am-vote-btn__icon {
    font-size: 12.5px;
  }

  .am-vote-btn__count {
    font-size: 10.5px;
  }
}


/* ===== V10.42 mensaje de acceso para votar/responder ===== */
.am-vote-btn--guest {
  opacity: .92;
}

.am-access-message {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 999999;
  width: min(calc(100% - 28px), 430px);
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(17, 17, 17, .12);
  background: #ffffff;
  color: #111111;
  box-shadow: 0 22px 60px rgba(17, 17, 17, .20);
}

.am-access-message__text {
  padding-right: 26px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 800;
}

.am-access-message__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.am-access-message__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.am-access-message__actions a + a {
  background: #ffffff;
  color: #111111;
}

.am-access-message__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(17,17,17,.06);
  color: #111111;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 760px) {
  .am-access-message {
    bottom: 18px;
    border-radius: 16px;
  }

  .am-access-message__text {
    font-size: 14px;
  }
}


/* ===== V10.43 ajuste mensaje login/registro ===== */
.am-access-message {
  width: min(calc(100% - 56px), 420px) !important;
  padding: 16px 52px 14px 16px !important;
}

.am-access-message__close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  text-align: center !important;
  line-height: 1 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

@media (max-width: 760px) {
  .am-access-message {
    left: 16px !important;
    right: auto !important;
    bottom: 18px !important;
    transform: none !important;
    width: min(320px, calc(100vw - 104px)) !important;
    max-width: 320px !important;
    padding: 14px 46px 13px 14px !important;
    border-radius: 16px !important;
  }

  .am-access-message__text {
    padding-right: 0 !important;
    font-size: 13.5px !important;
    line-height: 1.38 !important;
  }

  .am-access-message__actions {
    gap: 8px !important;
    margin-top: 10px !important;
  }

  .am-access-message__actions a {
    min-height: 34px !important;
    padding: 0 11px !important;
    border-radius: 11px !important;
    font-size: 12.5px !important;
  }

  .am-access-message__close {
    top: 10px !important;
    right: 10px !important;
    width: 27px !important;
    height: 27px !important;
    font-size: 17px !important;
  }
}

@media (max-width: 380px) {
  .am-access-message {
    width: min(292px, calc(100vw - 86px)) !important;
  }

  .am-access-message__actions a {
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }
}

/* ===== V10.51 corazón rojo ===== */
.am-vote-btn--heart .am-vote-btn__icon {
  color: #e11d48 !important;
}

.am-vote-btn--heart:hover,
.am-vote-btn--heart:focus-visible,
.am-vote-btn--heart.is-voted {
  border-color: rgba(225, 29, 72, 0.36) !important;
  background: #fff1f3 !important;
}

.am-vote-btn--heart.is-voted .am-vote-btn__icon,
.am-vote-btn--heart:hover .am-vote-btn__icon,
.am-vote-btn--heart:focus-visible .am-vote-btn__icon {
  color: #be123c !important;
}
