/* SafePay embedded checkout */

.safepay-embed-shell {
  position: relative;
  width: 100%;
  min-height: 480px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fb;
}

body.night-mode .safepay-embed-shell {
  background: var(--card-dark-input, #1a1d24);
}

.safepay-embed-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: #64748b;
  background: inherit;
  z-index: 1;
  transition: opacity 0.2s ease;
}

body.night-mode .safepay-embed-loading {
  color: var(--body-color-dark, #94a3b8);
}

.safepay-embed-frame {
  display: block;
  width: 100%;
  min-height: 480px;
  height: 520px;
  border: 0;
  background: #fff;
  position: relative;
  z-index: 2;
}

.pay-checkout-wrap,
.tip-checkout-wrap {
  min-height: 480px;
  border-radius: 12px;
  overflow: hidden;
}

#safepay-checkout-iframe,
#modal .safepay-embed-shell {
  min-height: 480px;
}

#modal .modal-body.p0 {
  padding: 0 !important;
}

#modal .safepay-embed-frame {
  min-height: 500px;
  height: 540px;
}

@media (max-width: 575px) {
  .safepay-embed-frame,
  #modal .safepay-embed-frame {
    min-height: 440px;
    height: 460px;
  }
}
