/* Shared overlay shell (subset of fp-multi-select overlay) */
.fp-ms-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.fp-ms-overlay.hidden,
.fp-ms-overlay[hidden] {
  display: none;
}

.fp-ms-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fp-ms-overlay__panel {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(100%, 26rem);
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(8, 12, 8, 0.97) 0%, rgba(4, 8, 4, 0.99) 100%);
  border: 1px solid rgba(0, 255, 65, 0.35);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.fp-ms-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(0, 255, 65, 0.12);
  flex-shrink: 0;
}

.fp-ms-overlay__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b8dcc8;
}

.fp-ms-overlay__close {
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  padding: 0.2rem;
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
  transition: color 0.12s;
}

.fp-ms-overlay__close:hover {
  color: #f1f5f9;
}

.fp-external-link-overlay__panel {
  padding: 0 1rem 1rem;
}

.fp-external-link-overlay__message {
  margin: 1rem 0 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.fp-external-link-overlay__url {
  margin: 0 0 1.25rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  line-height: 1.4;
  word-break: break-all;
}

.fp-external-link-overlay__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

body.fp-external-link-open {
  overflow: hidden;
}
