.guarantee-checkout {
  margin: 1.25rem 0 0;
  font-size: .875rem;
}

.guarantee-checkout a {
  color: var(--btcpay-body-text, #14171a);
  text-decoration: underline;
  text-underline-offset: .16em;
}

.guarantee-dialog {
  box-sizing: border-box;
  width: min(44rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid #e4e6e1;
  border-radius: .75rem;
  background: #fff;
  color: #14171a;
  color-scheme: light;
  font: 1rem/1.5 var(--display, system-ui, sans-serif);
  overflow: auto;
}

.guarantee-dialog::backdrop { background: rgb(0 0 0 / 55%); }
html:has(.guarantee-dialog[open]) { overflow: hidden; }

.guarantee-dialog-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  background: #fff;
  border-bottom: 1px solid #e4e6e1;
}

.guarantee-dialog-header h2 {
  margin: 0;
  color: #14171a;
  font: 600 1rem/1.4 var(--display, system-ui, sans-serif);
}

.guarantee-dialog-header button {
  flex-shrink: 0;
  min-height: 44px;
  padding: .4rem .75rem;
  border: 1px solid #e4e6e1;
  border-radius: .4rem;
  background: #fff;
  color: #14171a;
  font: inherit;
  cursor: pointer;
}

.guarantee-dialog :focus-visible {
  outline: 2px solid #a9440a;
  outline-offset: 2px;
}

.guarantee-notice {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.guarantee-resources {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  font-size: .875rem;
}

.guarantee-dialog .guarantee-resources { margin: 0; padding: 1rem; }
.guarantee-dialog a { color: #14171a; text-decoration: underline; }

@media (max-width: 480px) {
  .guarantee-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); }
}
