/* Wish box + secret wish inbox. Feature styles only; no palette changes. */

button.section-tag.wish-trigger {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
  text-align: center;
}

button.section-tag.wish-trigger:hover {
  filter: brightness(1.08);
}

button.section-tag.wish-trigger:focus-visible {
  outline: 2px solid #e9d5ff;
  outline-offset: 4px;
}

button.section-tag.wish-trigger:active {
  transform: translateY(1px);
}

/* Sits above the gift overlay so the owner can open the inbox from ?wishes=1
   without entering the site first. */
.wish-backdrop {
  z-index: 20000;
}

.wish-card {
  position: relative;
  width: min(92vw, 440px);
  max-height: 88vh;
  overflow-y: auto;
  padding: 30px 22px 22px;
  color: #f7f2ff;
  background: linear-gradient(180deg, rgba(33, 22, 54, 0.99) 0%, rgba(17, 11, 29, 0.99) 100%);
  border: 2px solid rgba(216, 180, 254, 0.36);
  border-radius: 22px;
  box-shadow:
    0 5px 0 var(--garden-rim, #2a1b40),
    0 24px 70px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.wish-card .modal-close {
  top: 12px;
  right: 12px;
}

.wish-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f3e8ff;
  background: rgba(192, 132, 252, 0.16);
  border: 1px solid rgba(216, 180, 254, 0.3);
  border-radius: 999px;
}

.wish-title {
  margin: 0 0 8px;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  line-height: 1.2;
}

.wish-note {
  margin: 0 0 18px;
  color: #c9b8e6;
  font-size: 0.95rem;
  line-height: 1.5;
}

.wish-label {
  display: block;
  margin: 14px 0 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #e7dcf7;
}

.wish-label span {
  font-weight: 500;
  color: #9d8bbd;
}

.wish-input,
.wish-textarea {
  width: 100%;
  padding: 11px 13px;
  color: #f7f2ff;
  background: #0c0816;
  border: 2px solid rgba(216, 180, 254, 0.28);
  border-radius: 12px;
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.5;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
}

.wish-input:focus,
.wish-textarea:focus {
  outline: none;
  border-color: #c084fc;
  box-shadow:
    0 0 0 3px rgba(192, 132, 252, 0.22),
    inset 0 2px 6px rgba(0, 0, 0, 0.35);
}

.wish-textarea {
  min-height: 132px;
  resize: vertical;
}

.wish-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.wish-actions {
  margin-top: 16px;
}

.wish-actions .btn {
  width: 100%;
}

.wish-status {
  min-height: 1.35em;
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: #c9b8e6;
}

.wish-status.is-ok {
  color: #b8f5c8;
}

.wish-status.is-error {
  color: #ff9db3;
}

.wish-admin-form {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.wish-admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.wish-admin-count {
  color: #a996c7;
  font-size: 0.82rem;
}

.wish-admin-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.wish-item {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(216, 180, 254, 0.18);
  border-radius: 12px;
}

.wish-item header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wish-item strong {
  font-size: 0.92rem;
}

.wish-item time {
  color: #a996c7;
  font-size: 0.76rem;
}

.wish-item p {
  margin: 8px 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.wish-item.is-pending {
  border-style: dashed;
}

.wish-pending-tag {
  color: #fcd34d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.wish-delete {
  margin-left: auto;
  padding: 4px 9px;
  font: inherit;
  font-size: 0.72rem;
  color: #ffb3c1;
  background: rgba(255, 80, 120, 0.08);
  border: 1px solid rgba(255, 120, 150, 0.3);
  border-radius: 999px;
  cursor: pointer;
}

.wish-delete:hover,
.wish-delete:focus-visible {
  background: rgba(255, 80, 120, 0.18);
  outline: none;
}

.wish-empty {
  color: #a996c7;
  font-size: 0.9rem;
}
