﻿.pd-profile-birthday-banner {
  position: relative; isolation: isolate; display: flex; align-items: center; grid-column: 1 / -1;
  gap: clamp(12px, 3vw, 32px); overflow: hidden; margin: 0 0 22px;
  padding: 20px clamp(20px, 4vw, 42px) 22px;
  border: 1px solid #edcddd; border-radius: 24px;
  background: radial-gradient(ellipse at 95% 5%, #ffe6b9 0, transparent 48%), linear-gradient(115deg, #fff7f1, #fae8f1 55%, #f0e9fa);
  color: #653244; box-shadow: 0 8px 28px #723b6610;
}
.pd-birthday-art { flex: 0 1 210px; min-width: 140px; pointer-events: none; }
.pd-birthday-art svg { display: block; width: 100%; height: auto; }
.pd-birthday-message { position: relative; z-index: 1; flex: 1; min-width: 0; }
.pd-birthday-eyebrow { display: block; margin-bottom: 7px; font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #87516e; }
.pd-profile-birthday-banner h2 { margin: 0; color: #783856; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.15; letter-spacing: -.035em; }
.pd-profile-birthday-banner p { margin: 10px 0 0; font-size: .95rem; line-height: 1.55; }
.pd-profile-birthday-banner .pd-birthday-personal { font-size: 1rem; }
.pd-birthday-personal strong { overflow-wrap: anywhere; }
.pd-birthday-wish-action { margin-top: 16px; }
.pd-birthday-composer { width: min(92vw, 520px); max-height: 85vh; overflow: auto; padding: 24px; border: 1px solid #edcddd; border-radius: 20px; color: #653244; background: #fff8fa; }
.pd-birthday-composer::backdrop { background: #24112888; }
.pd-birthday-composer label { display: block; margin-bottom: 8px; }
.pd-birthday-composer textarea { display: block; box-sizing: border-box; width: 100%; min-height: 150px; padding: 12px; font: inherit; }
.pd-birthday-composer-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 12px; margin-top: 16px; }
.pd-birthday-wish { width: fit-content; max-width: 100%; margin-top: 14px; }
.pd-birthday-wish summary { padding: 8px 14px; border: 1px solid #bc7b9b; border-radius: 22px; background: #fff9; color: #743650; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.pd-birthday-wish summary:hover { background: #fff; }
.pd-birthday-wish summary:focus-visible { outline: 3px solid #895798; outline-offset: 3px; }
.pd-birthday-wish summary span { margin-left: 7px; color: #9b6822; }
.pd-birthday-wish[open] summary { background: #fff; }
.pd-birthday-wish p { max-width: 34ch; font-size: .85rem; }
.pd-birthday-today-badge { border-color: #e8bfd3; background: #fff0f7; color: #813d60; }
.pd-birthday-balloon, .pd-birthday-heart { animation: pd-birthday-float 2400ms ease-in-out 1 both; }
.pd-birthday-balloon--gold { animation-delay: 120ms; }
.pd-birthday-heart { animation-delay: 180ms; }
.pd-birthday-confetti { position: fixed; z-index: 2147483000; inset: 0; overflow: hidden; pointer-events: none; contain: strict; }
.pd-birthday-confetti span { position: absolute; top: -12px; width: 7px; height: 11px; border-radius: 2px; animation: pd-birthday-fall 3200ms cubic-bezier(.18,.48,.48,1) 1 both; }
@keyframes pd-birthday-float { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-7px); } }
@keyframes pd-birthday-fall {
  from { opacity: 0; transform: translate3d(0, -12px, 0) rotate(0deg); }
  12% { opacity: .8; }
  to { opacity: 0; transform: translate3d(var(--pd-confetti-drift, 0px), 110vh, 0) rotate(540deg); }
}
/* The existing profile has explicit desktop rows. Add one row only on birthday pages. */
@media (min-width: 1001px) {
  .pd-profile-birthday-banner { grid-row: 1; }
  .pd-profile-birthday-banner + .pd-profile-hero { grid-row: 2; }
  .pd-profile-birthday-banner ~ .pd-profile-details { grid-row: 3 / 7; }
  .pd-profile-birthday-banner ~ .pd-profile-details--wide { grid-row: auto; }
  .pd-profile-birthday-banner ~ .pd-profile-access { grid-row: 3; }
  .pd-profile-birthday-banner ~ .pd-profile-greetings { grid-row: 4; }
  .pd-profile-birthday-banner ~ .pd-profile-integrations { grid-row: 5; }
  .pd-profile-birthday-banner ~ .pd-profile-notice { grid-row: 7; }
  .pd-profile-birthday-banner ~ .pd-profile-admin { grid-row: 8; }
}
@media (max-width: 480px) {
  .pd-profile-birthday-banner { flex-direction: column; gap: 0; padding: 14px 18px 22px; text-align: center; }
  .pd-birthday-art { flex: none; width: 145px; }
  .pd-birthday-eyebrow { font-size: .65rem; }
  .pd-profile-birthday-banner h2 { font-size: 2rem; }
  .pd-birthday-desktop-break { display: none; }
  .pd-birthday-wish { margin: 14px auto 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pd-birthday-confetti { display: none; }
  .pd-birthday-confetti span, .pd-birthday-balloon, .pd-birthday-heart { animation: none; }
}
