/* The offer a guest sees when the star refuses a fourth favorite. */

.cap-sheet[hidden] {
  display: none;
}

.scrim {
  position: fixed;
  z-index: 10;
  inset: 0;
  background: rgba(13, 20, 31, 0.72);
}

/* The favorites card is what's being offered, so it stays lit above the scrim. */
body:has(.cap-sheet:not([hidden])) .page:not([data-search-open]) .group--bookmarks {
  position: relative;
  z-index: 11;
}

.sheet {
  position: fixed;
  z-index: 12;
  right: 0;
  bottom: 0;
  left: 0;
  max-width: 480px;
  /* Short and keyboard-resized viewports scroll the sheet, so its actions stay reachable. */
  max-height: calc(100vh - 1rem);
  max-height: calc(100dvh - 1rem);
  margin: 0 auto;
  overflow: auto;
  overscroll-behavior: contain;
  padding-top: 16px;
  padding-right: max(18px, env(safe-area-inset-right, 0px));
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  background: var(--surface);
  box-shadow: 0 -10px 30px rgba(13, 20, 31, 0.35);
}

@media (min-width: 600px) {
  .sheet {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: min(440px, calc(100% - 48px));
    margin: 0;
    padding: 24px;
    border-radius: var(--radius-panel);
    transform: translate(-50%, -50%);
  }
}

.sheet:focus {
  outline: none;
}

.sheet::before {
  display: block;
  width: 36px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 2px;
  background: var(--line);
  content: "";
}

.sheet .btns {
  margin-top: 14px;
}

.offer__t {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.offer__p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .8125rem;
  line-height: 1.5;
}
