.guarantee-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(11, 18, 32, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.guarantee-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.guarantee-modal-panel {
  width: 100%;
  max-width: 36rem;
  max-height: min(88vh, 720px);
  overflow-y: auto;
  background: #f7f8fb;
  border-radius: 24px 24px 0 0;
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 -8px 40px rgba(11, 18, 32, 0.18);
}

.guarantee-modal.is-open .guarantee-modal-panel {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .guarantee-modal {
    align-items: center;
    padding: 24px;
  }
  .guarantee-modal-panel {
    border-radius: 24px;
    transform: translateY(12px) scale(0.98);
  }
  .guarantee-modal.is-open .guarantee-modal-panel {
    transform: translateY(0) scale(1);
  }
}
