/* Full-screen dark backdrop */
.ifp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2147483647;
}

/* Full-screen modal container */
.ifp-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Header bar: warning + close button */
.ifp-header {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff3cd; /* yellowish header */
  color: #856404; /* darker warning text */
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 20px 12px; /* reduced vertical padding */
  border-bottom: 1px solid #ffeeba; /* matching border */
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* Warning text centered */
.ifp-warning-text {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

/* Close button aligned in flow */
.ifp-close {
  margin-left: 20px;
  background: #333333; /* dark button */
  color: #ffffff;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ifp-close:hover {
  background: #555555;
}

/* Embedded checkout pane */
.ifp-iframe {
  flex: 1;
  border: none;
  width: 100%;
  height: 100%;
}

/* Spinner overlay */
.ifp-spinner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.ifp-spinner-overlay::after {
  content: "";
  width: 40px;
  height: 40px;
  border: 4px solid #ddd;
  border-top-color: #333;
  border-radius: 50%;
  animation: ifp-spin 0.8s linear infinite;
}

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