/* Comptons Memory Moment overlay fix. Keeps Dalston and Horse Meat Disco untouched. */

.comptons-safe-memory-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: grid !important;
  place-items: center !important;
  padding: 18px !important;
  background: rgba(5, 8, 18, .74) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

.comptons-safe-memory-sheet {
  width: min(92vw, 760px) !important;
  max-height: 90dvh !important;
  overflow: auto !important;
  border-radius: 30px !important;
  background: #fff !important;
  box-shadow: 0 28px 90px rgba(0,0,0,.50) !important;
  position: relative !important;
  border: 1px solid rgba(231, 201, 130, .72) !important;
}

.comptons-safe-memory-close {
  position: sticky !important;
  top: 12px !important;
  float: right !important;
  z-index: 5 !important;
  width: 58px !important;
  height: 58px !important;
  margin: 12px 12px -70px 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #07162d !important;
  font-size: 44px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.28) !important;
}

.comptons-safe-memory-hero {
  background: #050505 !important;
}

.comptons-safe-memory-hero img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
}

.comptons-safe-memory-body {
  padding: 24px !important;
  color: #111827 !important;
}

.comptons-safe-memory-kicker {
  color: #003b8f !important;
  font-weight: 950 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  font-size: 13px !important;
  margin-bottom: 10px !important;
}

.comptons-safe-memory-body h2 {
  margin: 0 0 10px !important;
  font-size: clamp(30px, 7vw, 52px) !important;
  line-height: .95 !important;
  font-weight: 950 !important;
}

.comptons-safe-memory-body p {
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
  font-weight: 650 !important;
}

html.comptons-safe-memory-open,
body.comptons-safe-memory-open {
  overflow: hidden !important;
}

/* Safety: legacy Memory Moment overlays should never sit behind the detail card. */
.lb-memory-backdrop,
.lb-memory-modal,
#memoryMomentModal {
  z-index: 2147483000 !important;
}

@media (max-width: 430px) {
  .comptons-safe-memory-overlay {
    align-items: end !important;
    padding: 0 !important;
  }

  .comptons-safe-memory-sheet {
    width: 100vw !important;
    max-height: 94dvh !important;
    border-radius: 30px 30px 0 0 !important;
  }
}