.ag-sp-popup {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9998;
  max-width: min(360px, calc(100vw - 36px));
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.26s ease,
    transform 0.26s ease;
}

.ag-sp-popup.is-mounted {
  display: block;
}

.ag-sp-popup.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ag-sp-popup__card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border: 1px solid rgb(var(--ag-gold-rgb) / 0.35);
  background: rgba(12, 12, 12, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  color: #eaeaea;
  text-decoration: none;
  border-radius: 0;
  backdrop-filter: blur(6px);
}

.ag-sp-popup__card:hover {
  border-color: rgb(var(--ag-gold-rgb) / 0.55);
}

.ag-sp-popup__img {
  width: 56px;
  height: 56px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgb(var(--ag-gold-rgb) / 0.25);
  background-color: rgba(255, 255, 255, 0.06);
}

.ag-sp-popup__body {
  min-width: 0;
}

.ag-sp-popup__badge {
  display: inline-block;
  margin: 0 0 6px;
  padding: 3px 6px;
  border: 1px solid rgb(var(--ag-gold-rgb) / 0.45);
  color: var(--ag-gold);
  background: rgb(var(--ag-gold-rgb) / 0.08);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.1;
}

.ag-sp-popup__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: #f0f0f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ag-sp-popup__meta {
  margin-top: 4px;
  font-size: 12px;
  color: #bdbdbd;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ag-sp-popup__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #9d9d9d;
  font-size: 18px;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
}

.ag-sp-popup__close:hover {
  color: #e0e0e0;
}

@media (max-width: 480px) {
  .ag-sp-popup {
    left: 12px;
    bottom: 12px;
    max-width: min(360px, calc(100vw - 24px));
  }
  .ag-sp-popup__card {
    grid-template-columns: 50px 1fr auto;
    padding: 9px 9px;
  }
  .ag-sp-popup__img {
    width: 50px;
    height: 50px;
  }
}

