.gift-promo-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 16px;
  box-sizing: border-box;
}

.gift-promo-modal.hidden {
  display: none;
}

.gift-promo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 35, 0.55);
  backdrop-filter: blur(2px);
}

.gift-promo-modal__dialog {
  text-align: left;
  position: relative;
  width: min(520px, calc(100vw - 28px));
  max-height: min(90vh, 720px);
  overflow-y: auto;
  border-radius: 18px;
  border: 1px solid rgba(196, 210, 250, 0.95);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 44px rgba(9, 20, 48, 0.25);
  padding: 44px 18px 18px;
}

.gift-promo-modal__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 14px;
}

.gift-promo-modal__body {
  color: #3f5280;
  font-size: 0.92rem;
  line-height: 1.45;
}

.gift-promo-modal__body p {
  margin: 0 0 12px;
}

.gift-promo-modal__body p:last-child {
  margin-bottom: 0;
}

.gift-promo-modal__body strong {
  color: #1f2f58;
}

.gift-promo-modal__body a {
  color: #3d5a9e;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gift-promo-modal__body a:hover {
  color: #2a4380;
}

.gift-promo-modal__list {
  margin: 8px 0 12px;
  padding-left: 1.2em;
}

.gift-promo-modal__list li {
  margin-bottom: 6px;
}

.gift-promo-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #36538e;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.gift-promo-modal__close:hover {
  opacity: 0.75;
}

.gift-promo-modal__body code {
  font-size: 0.9em;
  background: rgba(61, 90, 158, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

.gift-promo-fab {
  position: fixed;
  z-index: 1050;
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  right: max(18px, env(safe-area-inset-right, 0px));
  width: 58px;
  height: 58px;
  padding: 4px;
  border: 2px solid rgba(255, 236, 160, 0.95);
  border-radius: 50%;
  background: linear-gradient(155deg, #fff0a3 0%, #f0c41a 55%, #e8a800 100%);
  color: #3a2f00;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(180, 130, 0, 0.42);
  animation: gift-promo-fab-nudge 2.8s ease-in-out infinite;
}

.gift-promo-fab:hover {
  filter: brightness(1.05);
}

.gift-promo-fab:active {
  filter: brightness(0.97);
}

@keyframes gift-promo-fab-nudge {
  0%,
  100% {
    transform: translate(0, 0);
  }
  35% {
    transform: translate(1px, -3px);
  }
  70% {
    transform: translate(-1px, -2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gift-promo-fab {
    animation: none;
  }
}
