.quick-checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  z-index: 4;
}

.quick-checkout-modal__body {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.quick-checkout-modal__close-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.quick-checkout-modal__close-button:hover {
  background-color: var(--color-gray6);
}

.quick-checkout-modal__close-icon {
  color: var(--color-gray3);
  width: 20px;
  height: 20px;
}

.quick-checkout-modal__content {
  position: relative;
  height: 90%;
  width: 90%;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  border-radius: 12px;
  background-color: var(--color-background);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.quick-checkout-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px 16px;
}

.quick-checkout-modal__iframe {
  width: 100%;
  height: 100%;
  border: none;
  transition: opacity 0.3s ease;
}

.quick-checkout-modal__loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-background);
  z-index: 1;
}

.quick-checkout-modal__loading-text {
  color: var(--color-gray3);
  margin-top: 16px;
  font-size: 14px;
}

.quick-checkout-modal__overlay {
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: hsl(0 0% 0% / 20%)
}

.quick-checkout-modal__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-gray5);
  border-top-color: var(--color-blue1);
  border-radius: 50%;
  animation: quick-checkout-spin 1s linear infinite;
}

.quick-checkout-modal__title {
  color: var(--color-gray1);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

@keyframes quick-checkout-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .quick-checkout-modal__content {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
  }

  .quick-checkout-modal__header {
    padding: 16px 20px;
  }

  .quick-checkout-modal__title {
    font-size: 18px;
  }
}
