/* ==========================================================================
   Wishlist and notifications. Loaded after account.css. Theme tokens only.
   ========================================================================== */

/* ---------- Wishlist ---------- */

/* The heart sits in its own form now, positioned against the card. */
.wish-form { position: absolute; top: 18px; right: 18px; z-index: 2; margin: 0; }
.wish-btn.is-saved { border-color: var(--accent, #C42130); color: var(--accent, #C42130); }
.pdp-main .wish-form { top: 12px; right: 12px; }
.pdp-wish.is-saved { border-color: var(--accent, #C42130); color: var(--accent, #C42130); }

.wish-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--assured-bg, #FBF1E6); border: 1.5px solid var(--assured-line, #EBD9BE);
  border-radius: var(--radius); padding: 15px 20px; margin-bottom: 20px;
  font-size: 13.5px; color: var(--ink, #3A2C28);
}
.wish-bar .rule { flex-grow: 1; }

.wish-item { display: flex; flex-direction: column; gap: 8px; }
.wish-remove { display: flex; }
.wish-remove button {
  flex-grow: 1; height: 36px; border: 1.5px solid var(--line, #EADFD4); border-radius: 8px;
  background: var(--surface, #fff); color: var(--ink-muted, #6B5A56);
  font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.wish-remove button:hover {
  border-color: var(--accent-dark, #B8420E); color: var(--accent-dark, #B8420E);
}

/* ---------- Notifications ---------- */

.notif-heading {
  font-size: 15px; font-weight: 900; margin: 26px 0 12px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted, #8A756D);
}
.notif-heading:first-of-type { margin-top: 0; }

.notif-list { display: flex; flex-direction: column; gap: 12px; }

.notif {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface, #fff); border: 1px solid var(--line, #EADFD4);
  border-radius: var(--radius); padding: 16px 18px;
}
.notif.is-unread { border-color: var(--accent, #C42130); background: var(--surface, #fff); }
.notif.is-announcement { background: var(--assured-bg, #FBF1E6); border-color: var(--assured-line, #EBD9BE); }

.notif-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--surface-alt, #F6EADC); color: var(--assured-fg, #A8641B);
  display: flex; align-items: center; justify-content: center;
}
.notif.is-unread .notif-icon { background: var(--accent, #C42130); color: var(--accent-ink, #fff); }

.notif-body { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.notif-body b { font-size: 14.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.notif-body span { font-size: 13px; line-height: 1.55; color: var(--ink, #3A2C28); }
.notif-body em { font-style: normal; font-size: 11.5px; color: var(--ink-muted, #8A756D); }

.notif-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent, #C42130); display: inline-block;
}

.notif-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.notif-go {
  height: 36px; padding: 0 14px; border: 1.5px solid var(--accent, #C42130); border-radius: 8px;
  background: transparent; color: var(--accent, #C42130);
  font-family: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer;
  display: inline-flex; align-items: center;
}
.notif-go:hover {
  background: var(--accent, #C42130); color: var(--accent-ink, #fff); text-decoration: none;
}
.notif-del {
  width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent;
  color: var(--ink-muted, #8A756D); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.notif-del:hover { background: var(--surface-alt, #F1E4D5); color: var(--accent-dark, #B8420E); }

/* Wishlist badge uses the discount green so it reads apart from the booking-list count. */
.count-alt { background: var(--discount-bg, #12764A) !important; }

@media (max-width: 760px) {
  .notif { flex-wrap: wrap; }
  .notif-actions { width: 100%; justify-content: flex-end; }
  .wish-bar { flex-direction: column; align-items: stretch; }
  .wish-bar .btn-outline { justify-content: center; }
}

/* ---------- Sharing ---------- */

.share-panel {
  background: var(--surface, #fff); border: 1px solid var(--line, #EADFD4);
  border-radius: var(--radius, 14px); padding: 22px; margin-bottom: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.share-panel-intro h2 { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.share-panel-intro p { margin: 7px 0 0; font-size: 13px; line-height: 1.65; color: var(--ink-muted, #6B5A56); max-width: 62ch; }
.share-title {
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 9px;
  border-radius: 999px; background: var(--assured-bg, #FBF1E6); color: var(--ink, #1B1412);
}

.share-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.share-form .field { flex: 1 1 260px; margin: 0; }
.share-form .field label span { font-weight: 400; font-size: 11.5px; color: var(--ink-muted, #6B5A56); }

.share-link { display: flex; gap: 9px; }
.share-link input {
  flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 13px;
  border: 1px solid var(--line, #EADFD4); border-radius: 10px;
  background: var(--surface-alt, #F4F1EC); font: inherit; font-size: 13px;
  color: var(--ink-muted, #6B5A56);
}
.share-link .btn-outline { flex-shrink: 0; }

.share-buttons { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.share-revoke {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 12.5px; color: var(--ink-muted, #6B5A56); text-decoration: underline;
}
.share-revoke:hover { color: var(--accent, #C7262C); }
.share-privacy { margin: 0; font-size: 12px; line-height: 1.6; color: var(--ink-muted, #6B5A56); }

.share-owner-note {
  background: var(--assured-bg, #FBF1E6); border: 1px solid var(--assured-line, #EBD9BE);
  border-radius: 10px; padding: 12px 15px; margin-bottom: 18px; font-size: 13px;
}

.share-actions {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--surface, #fff); border: 1px solid var(--line, #EADFD4);
  border-radius: var(--radius, 14px); padding: 16px 20px; margin-bottom: 20px;
}
.share-actions b { font-size: 19px; font-weight: 900; }
.share-actions em { display: block; font-style: normal; font-size: 12px; color: var(--ink-muted, #6B5A56); margin-top: 2px; }
.share-foot { margin: 18px 0 0; font-size: 12px; line-height: 1.6; color: var(--ink-muted, #6B5A56); }

@media (max-width: 620px) {
  .share-link { flex-direction: column; }
  .share-link .btn-outline { width: 100%; }
}

.share-expiry { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-muted, #6B5A56); }
.share-expiry.is-soon { color: var(--ink, #1B1412); }
.share-expiry.is-soon b { color: var(--accent, #C7262C); }
