.coindpay-checkout-open {
  overflow: hidden;
}

.coindpay-checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgb(0 0 0 / 72%);
  box-sizing: border-box;
}

.coindpay-checkout-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100%, 520px);
  height: min(520px, 100%);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 18px;
  background: #fff;
  color: #161616;
  box-shadow: 0 24px 80px rgb(0 0 0 / 45%);
}

.coindpay-checkout-header {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px 6px 18px;
  border-bottom: 1px solid #e9e9e9;
}

.coindpay-checkout-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.coindpay-checkout-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #222;
  font: 30px/1 system-ui, sans-serif;
  cursor: pointer;
}

.coindpay-checkout-close:focus-visible,
.coindpay-checkout-launch:focus-visible {
  outline: 3px solid #6b4eff;
  outline-offset: 2px;
}

.coindpay-checkout-handoff {
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px 28px;
  text-align: center;
}

.coindpay-checkout-handoff-title {
  margin: 0;
  color: #161616;
  font-size: 24px;
  line-height: 1.3;
}

.coindpay-checkout-handoff-copy {
  max-width: 360px;
  margin: 0;
  color: #595959;
  font-size: 16px;
  line-height: 1.5;
}

.coindpay-checkout-launch {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 12px 24px;
  border-radius: 12px;
  background: #161616;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}

@media (max-width: 640px) {
  .coindpay-checkout-overlay {
    padding: 0;
  }

  .coindpay-checkout-panel {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
  }

  .coindpay-checkout-header {
    padding-top: max(6px, env(safe-area-inset-top));
  }

  .coindpay-checkout-handoff {
    padding-right: max(24px, env(safe-area-inset-right));
    padding-bottom: max(40px, env(safe-area-inset-bottom));
    padding-left: max(24px, env(safe-area-inset-left));
  }
}
