/* Minimal modal styles used by pk modal shim */
#pk-modal {
  display: none;
  position: fixed;
  z-index: 1200;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
}
#pk-modal.pk-open {
  display: flex;
}
#pk-modal .pk-modal-container {
  background: #fff;
  max-width: 900px;
  width: 90%;
  max-height: 80vh;
  overflow: auto;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
#pk-modal .pk-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}
#pk-modal .pk-modal-title {
  margin: 0;
  font-size: 18px;
}
#pk-modal .pk-modal-close {
  background: none;
  border: 0;
  font-size: 18px;
  cursor: pointer;
}
#pk-modal .pk-modal-content {
  padding: 16px;
}
.pk-loading,
.pk-error {
  padding: 20px;
  text-align: center;
  color: #666;
}

/* Prevent background scroll when modal is open */
body.pk-modal-open {
  overflow: hidden;
}

/* Small responsive tweaks */
@media (max-width: 480px) {
  #pk-modal .pk-modal-container {
    width: 95%;
    max-height: 90vh;
  }
}

/* Anchored / tooltip-style modal variant (small box positioned near trigger) */
#pk-modal.pk-modal-anchored {
  align-items: flex-start; /* allow top positioning */
  justify-content: flex-start;
}
#pk-modal.pk-modal-anchored {
  /* lighter backdrop so anchored box reads like a tooltip/popover */
  background: rgba(0,0,0,0.12);
}
#pk-modal.pk-modal-anchored .pk-modal-container {
  max-width: 360px;
  width: auto;
  box-shadow: 0 12px 34px rgba(0,0,0,0.35);
  border-radius: 6px;
  margin: 0;
}

/* Ensure content is readable in anchored mode */
#pk-modal.pk-modal-anchored .pk-modal-content {
  padding: 12px;
}
