.lpm-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.lpm-item {
  text-align: center;
}

.lpm-logo-trigger {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  width: auto;
  max-width: 100%;
}

.lpm-logo-image {
  display: inline-block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.lpm-placeholder {
  display: block;
  padding: 1rem;
  border: 1px solid #d5d5d5;
  border-radius: 10px;
}

.lpm-modal[hidden] {
  display: none;
}

.lpm-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lpm-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.lpm-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(700px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 1.6rem 1.4rem 1.4rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.lpm-modal-dialog .lpm-close-button {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d8e3;
  border-radius: 50%;
  background: #ffffff;
  color: #0f172a;
  font-size: 0;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: all 0.18s ease;
}

.lpm-close-icon {
  display: block;
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  pointer-events: none;
}

.lpm-modal-dialog .lpm-close-button:hover {
  background: #f8fafc;
  border-color: #b8c3d4;
  transform: translateY(-1px);
}

.lpm-modal-dialog .lpm-close-button:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.lpm-modal-body,
.lpm-modal-body * {
  font-family: Arial, Helvetica, sans-serif;
  color: #000;
}

.lpm-modal-body a {
  color: #0000ee;
}

.lpm-modal-body a:visited {
  color: #551a8b;
}

.lpm-modal-open {
  overflow: hidden;
}
