/* Backdrop */
#gift-modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .5);
  z-index: 9999;
}

#gift-modal-backdrop.gift-open {
  display: flex;
}

/* Modal */
#gift-modal {
  position: relative;
  max-width: 560px;
  width: calc(100% - 2rem);
  background: var(--wp--preset--color--bg-neutral);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  overflow: hidden;
}

#gift-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 16px;
}

#gift-modal-icon img {
  max-width: 100px;
  height: auto;
  display: block;
}

#gift-modal-body {
  padding: 0 22px 22px 22px;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 30px !important;
}

#gift-modal-actions {
  display: flex;
  gap: 10px;
  padding: 0 22px 32px 22px;
  justify-content: center;
}

#gift-modal .gift-close-x {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  color: #444;
}

#gift-modal .gift-close-x:hover {
  color: #000;
}

@media (prefers-reduced-motion: no-preference) {
  #gift-modal-backdrop.gift-open {
    animation: giftFade .18s ease-out;
  }

  #gift-modal {
    transform: translateY(8px);
    animation: giftRise .18s ease-out;
  }

  @keyframes giftFade {
    from { opacity: 0 }
    to { opacity: 1 }
  }

  @keyframes giftRise {
    from { opacity: .96; transform: translateY(16px) }
    to { opacity: 1; transform: translateY(0) }
  }
}
