/* Recipient keep banner — product/keep.md */

.fw-keep {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.96);
  color: var(--ink, #2a103b);
  box-shadow: 0 10px 28px rgb(42 16 59 / 0.16);
}

.fw-keep-copy {
  min-width: 0;
}

.fw-keep p {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.fw-keep--soon {
  background: #fff6e6;
}

.fw-keep-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.fw-keep-actions .btn {
  padding: 10px 18px;
  font-size: 14px;
}

.fw-keep-actions form {
  margin: 0;
}

.fw-keep-signin {
  font-size: 14px;
  font-weight: 700;
  color: var(--purple, #5b1f78);
  white-space: nowrap;
}

body.fw-unwrap-page .fw-card-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 70;
  width: 100%;
  padding: 0 16px 24px;
  pointer-events: none;
}

body.fw-unwrap-page .fw-card-dock .flip-btn,
body.fw-unwrap-page .fw-card-dock .fw-keep,
body.fw-unwrap-page .fw-card-dock .fw-unwrap-hint,
body.fw-unwrap-page .fw-card-dock .fw-demo-bar {
  pointer-events: auto;
}

body.fw-unwrap-page .fw-card-dock .flip-btn {
  margin: 0;
  flex-shrink: 0;
}

body.fw-unwrap-page .fw-keep {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  z-index: 70;
  width: auto;
  max-width: min(420px, calc(100vw - 100px));
  padding: 10px 14px;
  transform: none;
}

body.fw-unwrap-page .fw-keep[hidden] {
  display: none;
}

body.fw-unwrap-page .fw-keep p {
  font-size: 14px;
}

body.fw-unwrap-page .fw-keep-actions .btn {
  padding: 8px 14px;
  font-size: 13px;
}

body.fw-group-unwrap .flip-btn {
  display: none;
}

body.fw-board-page .fw-keep,
body.fw-unwrap-page .fw-board .fw-keep {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  z-index: 3;
  width: auto;
  margin: 0 16px 14px;
  transform: none;
}

body.fw-messages-page .fw-keep {
  margin: 0 auto;
  max-width: 1320px;
  width: calc(100% - 80px);
}

@media (max-width: 640px) {
  body.fw-messages-page .fw-keep {
    width: calc(100% - 40px);
  }
}

@media (max-width: 720px) {
  .fw-keep {
    flex-direction: column;
    align-items: stretch;
  }

  .fw-keep-actions {
    justify-content: space-between;
  }

  body.fw-unwrap-page .fw-card-dock {
    flex-wrap: wrap;
  }

  body.fw-unwrap-page .fw-keep {
    max-width: calc(100vw - 32px);
  }
}

/* the bar that says "this is an example" — fixed to the bottom, always there */
.fw-demo-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  text-align: center;
  pointer-events: none;
}

.fw-demo-bar-inner {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: min(620px, 100%);
  padding: 11px 12px 11px 22px;
  border: 1px solid rgba(247, 239, 228, 0.24);
  border-radius: 999px;
  /* darker than the plum a wall sits on, so the pill reads on both */
  background: rgba(26, 8, 40, 0.94);
  box-shadow: 0 14px 34px rgba(12, 4, 20, 0.4);
  font-size: 15px;
  font-weight: 600;
  color: #f7efe4;
  text-align: center;
  pointer-events: auto;
  backdrop-filter: blur(6px);
}

.fw-demo-bar .btn {
  padding: 9px 18px;
  font-size: 14px;
  white-space: nowrap;
}

/* Greeting card and group unwrap: sit in the dock, beside the page action */
.fw-card-dock .fw-demo-bar,
.fw-board-dock .fw-demo-bar,
.fw-invite-card .fw-demo-bar {
  position: static;
  padding: 0;
  pointer-events: auto;
}

.fw-card-dock .fw-demo-bar-inner,
.fw-board-dock .fw-demo-bar-inner {
  box-shadow: 0 8px 22px rgba(20, 6, 30, 0.24);
}

/* Group card / event wall: one row with Add a wish, above the footer */
.fw-board-dock {
  position: sticky;
  bottom: 16px;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 28px);
  margin: auto auto 16px;
  pointer-events: none;
}

.fw-board-dock > * {
  pointer-events: auto;
}

.fw-board-dock .fw-wall-add {
  position: static;
  right: auto;
  bottom: auto;
  min-height: 44px;
  padding: 10px 18px;
  box-shadow: 0 8px 22px rgba(20, 6, 30, 0.24);
}

body.fw-messages-page:has(.fw-board-dock) .fw-board-canvas {
  padding-bottom: 24px;
}

/* Invitation: the last strip of the card, not over the RSVP */
.fw-invite-card .fw-demo-bar-inner {
  display: flex;
  width: 100%;
  max-width: none;
  border: 0;
  border-radius: 0;
  justify-content: space-between;
  padding: 14px 22px 16px;
  box-shadow: none;
}

@media (max-width: 560px) {
  .fw-demo-bar-inner {
    gap: 10px;
    padding: 11px 14px;
    font-size: 14px;
  }

  .fw-board-dock {
    flex-wrap: wrap;
    bottom: 12px;
  }

  .fw-invite-card .fw-demo-bar-inner {
    flex-direction: column;
    padding: 14px 16px 16px;
  }
}
