.cp-birthdays,
.cp-birthdays *,
.cp-birthdays *::before,
.cp-birthdays *::after {
  box-sizing: border-box;
}

.cp-birthdays {
  --cpb-ink: #071427;
  --cpb-muted: #617089;
  --cpb-line: #dfe8f5;
  --cpb-blue: #071c76;
  --cpb-sky: #0f8bc5;
  --cpb-header-navy: #061a2d;
  --cpb-header-violet: #4833ff;
  --cpb-header-blue: #4080fd;
  --cpb-header-mint: #1bd79c;
  background: #ffffff;
  border: 1px solid var(--cpb-line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(12, 31, 56, 0.07);
  color: var(--cpb-ink);
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  overflow: hidden;
  padding: 12px;
  width: 100%;
}

.cp-birthdays-head {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-width: 0;
}

.cp-birthdays-head > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cp-birthdays-head span {
  color: #0b75a5;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.cp-birthdays-head strong {
  color: var(--cpb-ink);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.12;
}

.cp-birthdays-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.cp-birthdays-actions button,
.cp-birthdays-team-strip button,
.cp-bday-card-love {
  appearance: none;
  border: 1px solid var(--cpb-line);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.cp-birthdays-actions button {
  align-items: center;
  background: #ffffff;
  color: #09223d;
  display: inline-flex;
  font-size: 18px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 32px;
}

.cp-bday-wish-count {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--cpb-line);
  border-radius: 6px;
  color: #09223d;
  display: inline-flex;
  gap: 5px;
  min-height: 32px;
  min-width: 58px;
  padding: 0 8px;
  position: relative;
}

.cp-bday-wish-count.is-celebrating {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, var(--cpb-header-navy), var(--cpb-header-violet) 48%, var(--cpb-header-mint));
  border-color: rgba(234, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(72, 51, 255, 0.22), 0 0 16px rgba(27, 215, 156, 0.16);
}

.cp-bday-wish-count span,
.cp-bday-card-love span {
  align-items: center;
  color: #d71920;
  display: inline-flex;
  font-size: 15px;
  inline-size: 20px;
  justify-content: center;
  line-height: 1;
  min-inline-size: 20px;
  text-align: center;
}

.cp-bday-wish-count b {
  color: #09223d;
  display: grid;
  gap: 1px;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.cp-bday-wish-count small {
  color: var(--cpb-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.cp-bday-wish-count i {
  font-style: normal;
}

.cp-bday-wish-count.is-celebrating span,
.cp-bday-wish-count.is-celebrating b,
.cp-bday-wish-count.is-celebrating small,
.cp-bday-wish-count.is-celebrating i {
  color: #ffffff;
}

.cp-birthdays-actions button:hover,
.cp-bday-card-love:hover {
  background: #eef6ff;
  border-color: #b8c9df;
  transform: translateY(-1px);
}

.cp-birthdays-actions button:hover,
.cp-birthdays-actions button:focus-visible {
  background: linear-gradient(135deg, var(--cpb-header-navy), var(--cpb-header-violet) 52%, var(--cpb-header-mint));
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(72, 51, 255, 0.2), 0 0 0 3px rgba(23, 191, 177, 0.14);
  color: #ffffff;
  outline: 0;
}

.cp-birthdays-actions button:active {
  background: #071c76;
  border-color: #071c76;
  box-shadow: 0 3px 10px rgba(7, 28, 118, 0.2);
  color: #ffffff;
  transform: translateY(0) scale(0.96);
}

.cp-birthdays-team-strip {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 1px 2px 8px;
  scrollbar-color: #8fa7c8 #edf3fb;
  scrollbar-width: thin;
  scroll-padding-inline: 2px;
  -webkit-overflow-scrolling: touch;
}

.cp-birthdays-team-strip::-webkit-scrollbar {
  height: 8px;
}

.cp-birthdays-team-strip::-webkit-scrollbar-track {
  background: linear-gradient(90deg, #eef4fb, #f8fbff);
  border-radius: 999px;
}

.cp-birthdays-team-strip::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #071c76, #11b7bd);
  border: 2px solid #edf3fb;
  border-radius: 999px;
}

.cp-birthdays-team-strip button {
  align-items: center;
  background: #ffffff;
  color: #06165d;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  justify-content: center;
  min-height: 38px;
  min-width: 92px;
  padding: 0 12px;
  white-space: nowrap;
}

.cp-birthdays-team-strip button.is-active {
  background: #071c76;
  border-color: #071c76;
  color: #ffffff;
}

.cp-birthdays-track {
  display: grid;
  gap: 10px;
  grid-auto-columns: minmax(238px, 310px);
  grid-auto-flow: column;
  overflow-x: auto;
  padding: 1px 2px 9px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: #98abc5 #edf3fb;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.cp-birthdays-track::-webkit-scrollbar {
  height: 8px;
}

.cp-birthdays-track::-webkit-scrollbar-track {
  background: #f4f7fb;
  border-radius: 999px;
}

.cp-birthdays-track::-webkit-scrollbar-thumb {
  background: #b8c7da;
  border-radius: 999px;
}

.cp-bday-card {
  background:
    linear-gradient(135deg, rgba(7, 28, 118, 0.08), rgba(15, 139, 197, 0.06) 42%, rgba(255, 255, 255, 0.92)),
    #ffffff;
  border: 1px solid #dbe5f3;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(12, 31, 56, 0.08);
  display: grid;
  gap: 9px;
  min-height: 164px;
  min-width: 0;
  overflow: hidden;
  padding: 11px;
  position: relative;
  scroll-snap-align: start;
}

.cp-bday-card.is-today {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(234, 255, 255, 0.88)) padding-box,
    linear-gradient(135deg, var(--cpb-header-navy), var(--cpb-header-violet) 45%, var(--cpb-header-blue) 68%, var(--cpb-header-mint)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 14px 30px rgba(72, 51, 255, 0.12), 0 10px 24px rgba(7, 25, 55, 0.10);
}

.cp-bday-card.is-today .cp-bday-shine {
  background: linear-gradient(90deg, var(--cpb-header-navy), var(--cpb-header-violet), var(--cpb-header-blue), var(--cpb-header-mint));
  height: 4px;
}

.cp-bday-card.is-today .cp-bday-top b {
  background: linear-gradient(135deg, var(--cpb-header-navy), var(--cpb-header-violet) 50%, var(--cpb-header-mint));
  color: #ffffff;
  box-shadow: 0 7px 16px rgba(72, 51, 255, 0.16);
}

.cp-bday-card.is-today .cp-bday-avatar {
  background:
    radial-gradient(circle at 24% 24%, rgba(255, 255, 255, 0.92), transparent 30%),
    linear-gradient(135deg, var(--cpb-header-navy), var(--cpb-header-violet) 46%, var(--cpb-header-blue) 70%, var(--cpb-header-mint));
}

.cp-bday-card[hidden],
.cp-bday-list-row[hidden] {
  display: none !important;
}

.cp-bday-shine {
  background: linear-gradient(90deg, #1a49d8, #11b7bd);
  border-radius: 999px;
  height: 3px;
  left: 10px;
  pointer-events: none;
  position: absolute;
  right: 10px;
  top: 0;
}

.cp-bday-top,
.cp-bday-team,
.cp-bday-list-row {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.cp-bday-top {
  justify-content: space-between;
}

.cp-bday-top span,
.cp-bday-top b {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  min-height: 22px;
  padding: 0 8px;
  white-space: nowrap;
}

.cp-bday-top span {
  background: #ffffff;
  border: 1px solid #dfe8f5;
  color: #384a63;
}

.cp-bday-top b {
  background: #fff3ce;
  color: #6e4700;
}

.cp-bday-main {
  align-items: center;
  display: grid;
  gap: 11px;
  grid-template-columns: 64px minmax(0, 1fr);
  min-width: 0;
}

.cp-bday-avatar {
  align-items: center;
  background:
    radial-gradient(circle at 24% 24%, rgba(255, 255, 255, 0.9), transparent 30%),
    linear-gradient(135deg, #071c76, #0d76bf 54%, #16b7ab);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(7, 28, 118, 0.18);
  color: #ffffff;
  display: inline-flex;
  font-size: 20px;
  font-weight: 950;
  height: 64px;
  justify-content: center;
  line-height: 1;
  width: 64px;
}

.cp-bday-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cp-bday-kicker {
  color: #0b75a5;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.cp-bday-card h3 {
  color: var(--cpb-ink);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.12;
  margin: 0;
  overflow-wrap: anywhere;
}

.cp-bday-copy p {
  color: var(--cpb-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.cp-bday-player-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cp-bday-player-meta span {
  background: #edf5ff;
  border-radius: 999px;
  color: #0a3a87;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  padding: 4px 7px;
  white-space: nowrap;
}

.cp-bday-player-meta b {
  color: var(--cpb-muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.cp-bday-team {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #e1e9f4;
  border-radius: 7px;
  padding: 7px;
}

.cp-bday-flag {
  align-items: center;
  background: #eef4fb;
  border: 1px solid #dbe5f3;
  border-radius: 4px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 24px;
  justify-content: center;
  overflow: hidden;
  width: 34px;
}

.cp-bday-flag img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.cp-bday-flag-text {
  color: #071c76;
  font-size: 11px;
  font-weight: 950;
}

.cp-bday-team span {
  align-items: center;
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.cp-bday-team strong {
  color: var(--cpb-ink);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-bday-team small {
  color: var(--cpb-muted);
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.cp-bday-card-love {
  align-items: center;
  background: #ffffff;
  color: #071c76;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  gap: 6px;
  justify-content: center;
  line-height: 1;
  min-height: 34px;
  overflow: visible;
  padding: 0 10px;
  position: relative;
  width: 100%;
}

.cp-birthdays .cp-bday-card-love,
.cp-birthdays .cp-bday-card-love:hover,
.cp-birthdays .cp-bday-card-love:focus {
  color: #071c76 !important;
}

.cp-birthdays .cp-bday-card-love strong {
  color: inherit !important;
}

.cp-birthdays .cp-bday-card-love:hover {
  background: #eef6ff;
  border-color: #b8c9df;
}

.cp-bday-card-love.is-loved {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

.cp-birthdays .cp-bday-card-love.is-loved,
.cp-birthdays .cp-bday-card-love.is-loved:hover {
  color: #9f1239 !important;
}

.cp-birthdays .cp-bday-card-love.is-upcoming,
.cp-birthdays .cp-bday-card-love.is-upcoming:hover,
.cp-birthdays .cp-bday-card-love:disabled,
.cp-birthdays .cp-bday-card-love:disabled:hover {
  background: #f1f5f9;
  border-color: #dbe5f3;
  color: #8a98ad !important;
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}

.cp-birthdays .cp-bday-card-love.is-upcoming span,
.cp-birthdays .cp-bday-card-love:disabled span {
  color: #a8b4c5;
}

.cp-birthdays .cp-bday-card-love.is-upcoming strong {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-bday-card-love:disabled {
  cursor: default;
  opacity: 1;
}

.cp-bday-love-message {
  animation: cpBdayLoveMessage 1.45s ease forwards;
  background: #ffffff;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(159, 18, 57, 0.16);
  color: #9f1239;
  font-size: 13px;
  font-weight: 950;
  left: 50%;
  line-height: 1;
  padding: 8px 12px;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  white-space: nowrap;
  z-index: 4;
}

.cp-bday-loved-burst::after {
  animation: cpBdayCardPulse 1.2s ease forwards;
  border: 1px solid rgba(215, 25, 32, 0.3);
  border-radius: 8px;
  content: "";
  inset: 8px;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}

.cp-bday-button-sparks {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 5;
}

.cp-bday-button-sparks i {
  animation: cpBdaySpark 0.9s ease-out var(--cp-spark-delay) forwards;
  background: #f6c447;
  border-radius: 50%;
  height: 5px;
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(var(--cp-spark-angle)) translateX(0);
  width: 5px;
}

.cp-bday-button-sparks i:nth-child(3n) {
  background: #11b7bd;
}

.cp-bday-button-sparks i:nth-child(3n + 1) {
  background: #d71920;
}

.cp-birthdays-list {
  background: #fbfdff;
  border: 1px solid #e2ebf6;
  border-radius: 7px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.cp-birthdays-list > strong {
  color: var(--cpb-ink);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
}

.cp-birthdays-list > div {
  display: grid;
  gap: 6px 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  position: relative;
}

.cp-birthdays-no-visible [data-cp-bday-list-items] {
  display: none;
}

@media (min-width: 768px) {
  .cp-birthdays-list > div::before {
    background: linear-gradient(180deg, transparent, #d6e1ee 12%, #d6e1ee 88%, transparent);
    bottom: 0;
    content: "";
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 1px;
  }
}

.cp-bday-list-row {
  background: #ffffff;
  border: 1px solid #e5edf7;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  justify-content: normal;
  min-height: 44px;
  padding: 7px;
}

.cp-bday-list-row.is-today {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, var(--cpb-header-violet), var(--cpb-header-blue), var(--cpb-header-mint)) border-box;
  border-color: transparent;
}

.cp-bday-list-row > span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.cp-bday-list-row strong {
  color: var(--cpb-ink);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-bday-list-row small {
  color: var(--cpb-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-bday-list-row b {
  background: #edf5ff;
  border-radius: 999px;
  color: #0a3a87;
  font-size: 10px;
  font-weight: 950;
  padding: 5px 7px;
}

.cp-bday-list-row.is-today b {
  background: linear-gradient(135deg, var(--cpb-header-navy), var(--cpb-header-violet), var(--cpb-header-mint));
  color: #ffffff;
}

.cp-birthdays-empty {
  background: #f8fbff;
  border: 1px solid #dce5f2;
  border-radius: 6px;
  color: #35445a;
  font-size: 14px;
  font-weight: 800;
  margin: 0;
  padding: 13px 14px;
}

.cp-birthdays-filter-empty {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(8, 35, 126, 0.26), rgba(0, 181, 190, 0.28)) border-box;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #465973;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.cp-birthdays-filter-empty[hidden] {
  display: none !important;
}

.cp-birthdays-filter-empty p {
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
  margin: 0;
}

.cp-bday-suggest {
  display: grid;
  gap: 8px;
  scroll-margin-bottom: 45vh;
  scroll-margin-top: 96px;
}

.cp-bday-suggest label {
  color: #07176f;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.25;
}

.cp-bday-suggest > div {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.cp-bday-suggest input {
  background: #ffffff;
  border: 1px solid #cfdcec;
  border-radius: 6px;
  box-shadow: none;
  color: var(--cpb-ink);
  font-size: 13px;
  font-weight: 800;
  min-height: 36px;
  min-width: 0;
  padding: 8px 10px;
  scroll-margin-bottom: 45vh;
  scroll-margin-top: 96px;
}

.cp-bday-suggest input:focus {
  border-color: #198eea;
  outline: 2px solid rgba(25, 142, 234, 0.16);
}

.cp-bday-suggest button {
  align-items: center;
  background: #07176f;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  justify-content: center;
  line-height: 1.2;
  min-height: 34px;
  padding: 8px 12px;
  text-decoration: none;
}

.cp-bday-suggest button:hover,
.cp-bday-suggest button:focus {
  background: linear-gradient(135deg, var(--cpb-header-navy), var(--cpb-header-violet), var(--cpb-header-mint));
  color: #ffffff;
}

.cp-bday-suggest button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.cp-bday-suggest small,
.cp-bday-suggest-paused {
  color: #5f6f87;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.cp-bday-suggest small[data-state="success"] {
  color: #087451;
}

.cp-bday-suggest small[data-state="error"],
.cp-bday-suggest-paused {
  color: #a3372c;
}

.cp-bday-suggest-site {
  left: -9999px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

@media (max-width: 560px) {
  .cp-bday-suggest > div {
    grid-template-columns: 1fr;
  }
}

@keyframes cpBdayLoveMessage {
  0% {
    opacity: 0;
    transform: translate(-50%, -42%) scale(0.8);
  }
  18%,
  72% {
    opacity: 1;
    transform: translate(-50%, -56%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -72%) scale(0.96);
  }
}

@keyframes cpBdayCardPulse {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }
  24% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

@keyframes cpBdaySpark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--cp-spark-angle)) translateX(0) scale(0.65);
  }
  22% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--cp-spark-angle)) translateX(var(--cp-spark-distance)) scale(0.2);
  }
}

@media (max-width: 767px) {
  .cp-birthdays {
    padding: 10px;
  }

  .cp-birthdays-head strong {
    font-size: 17px;
  }

  .cp-birthdays-head em {
    font-size: 11px;
  }

  .cp-birthdays-track {
    grid-auto-columns: minmax(232px, 86%);
  }

  .cp-birthdays-team-strip {
    margin-bottom: -1px;
    padding-bottom: 10px;
  }

  .cp-birthdays-team-strip::-webkit-scrollbar {
    height: 9px;
  }

  .cp-birthdays-list > div {
    grid-template-columns: 1fr;
  }

  .cp-bday-card h3 {
    font-size: 16px;
  }
}
