:root {
  --color-donate-box-background: #ffffff;
  --color-donate-box-header-background: #f6f6f6;
  --color-donate-box-header-foreground: #444444;

  --color-donate-modal-wrapper-background: #00000080;
  --color-donate-modal-shadow: #1a1a1a1a;
  --color-donate-button-foreground: #ffffff;
  --color-donate-red: #f05159;
  --color-donate-pay-border: #eeeeee;
  --color-donate-button-money-hover: #ff33660f;
}

.dark {
  --color-donate-box-background: #2f2f2f;
  --color-donate-box-header-background: #383838;
  --color-donate-box-header-foreground: ##e6e6e6;
}

.donate {
  margin: 16px auto 16px;
  text-align: center;
}

.donate-slug {
  display: none;
}

.donate,
.donate-button {
  font-size: 1em;
  font-weight: bold;
}

.donate-button {
  color: var(--color-donate-button-foreground);
  background: var(--color-donate-red);
  width: 80px;
  height: 34px;
  border-radius: 0.2rem;
  margin: 12px auto 12px auto;
  padding: 0;
  cursor: pointer;
  border: none;
  outline: none;
}

.donate-modal-wrapper {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  display: none;
  flex-direction: column;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  background-color: var(--color-donate-modal-wrapper-background);
  transform: scale(1.1);
  transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
}

.donate-modal-wrapper-show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
}

.donate-modal {
  width: 360px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 48px);
  margin-right: auto;
  margin-left: auto;
  box-shadow: 0 5px 20px var(--color-donate-modal-shadow);
  box-sizing: border-box;
}

.donate-box {
  overflow: auto;
  background: var(--color-donate-box-background);
  border-radius: 0.2rem;
}

.donate-box-content {
  flex: 1 1;
  padding: 24px;
  line-height: 1em;
}

.donate-box-content-inner {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-items: stretch;
}

.donate-box-close-button {
  position: absolute;
  top: 8px;
  right: -60px;
  padding: 12px;
  height: auto;
  line-height: inherit;
  background-color: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  outline: none;
}

.donate-box-close-button-icon {
  vertical-align: top;
}

.donate-box-header {
  height: 2em;
  font-size: 1em;
  font-weight: bold;
  line-height: 2em;
  background: var(--color-donate-box-header-background);
  border-radius: 0.2rem;
  color: var(--color-donate-box-header-foreground);
  margin-bottom: 20px;
  position: relative;
  text-align: center;
}

.donate-box-body {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-items: stretch;
}

.donate-box-money,
.donate-box-footer {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  display: flex;
}

.donate-box-money-button {
  border-color: var(--color-donate-red);
  color: var(--color-donate-red);
  width: 29%;
  margin: 0 0 24px;
  font-size: 1em;
  font-weight: bold;
  display: inline-block;
  padding: 0;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  background: none;
  border: 1px solid var(--color-donate-red);
  border-radius: 0.2rem;
  outline: none;
}

.donate-box-money-button-unchecked:hover {
  background-color: var(--color-donate-button-money-hover);
}

.donate-box-money-button-checked {
  background: var(--color-donate-red);
  color: var(--color-donate-button-foreground);
}

.donate-box-pay {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
  display: none;
}

.donate-box-pay-qrcode {
  max-height: 200px;
  vertical-align: middle;
}

.donate-box-pay-method {
  width: 46%;
  padding: 10px 20px;
  border: 1px solid;
  border-radius: 0.2rem;
  border-color: var(--color-donate-pay-border);
  cursor: pointer;
}

.donate-box-pay-method-checked {
  border-color: var(--color-donate-red);
}

.donate-box-pay-method-image {
  max-height: 40px;
  vertical-align: middle;
}
