/* Overlay */
.gfm-aff-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.5);
}

/* Card */
.gfm-aff-card {
  position: relative;
  width: min(520px, 95vw);
  max-width: 520px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  overflow: hidden;
}

/* Header row */
.gfm-aff-topbar {
  display: flex;
  justify-content: flex-end;
  padding: 10px 10px 0 10px;
}

/* Close button (thật sự đóng popup) */
.gfm-aff-close-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gfm-aff-close-btn:hover {
  background: rgba(0,0,0,0.06);
}

/* X icon */
.gfm-aff-close-btn svg {
  width: 22px;
  height: 22px;
}

/* Image link */
.gfm-aff-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.gfm-aff-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  margin: 0 auto;
}

/* Small footer (optional) */
.gfm-aff-footer {
  padding: 10px 14px 14px 14px;
  font-size: 12px;
  color: #666;
  text-align: center;
}
