@charset "UTF-8";
:root {
  --bg-body: #f6f6f9;
  --bg-article: #ffffff;

  --bg-brand: #2182c2;
  --bg-brand-f: rgba(33, 130, 194, 0.4);

  --bg-decline: #c22121;
  --bg-decline-h: #a81d1d;
  --bg-decline-f: rgba(168, 29, 29, 0.4);

  --bg-accept: #1da369;
  --bg-accept-h: #188958;
  --bg-accept-f: rgba(29, 163, 105, 0.4);

  --fg-decline: #ffffff;
  --fg-accept: #ffffff;
  --fg-body: #000000;

  --border: #e0e0e0;

  --mod-hover: rgba(0, 0, 0, 0.05);

  --card-border-radius: 12px;
  --button-border-radius: 12px;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  overflow-y: auto;
  background-color: var(--bg-body);
  color: var(--fg-body);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, “Segoe UI”, “Roboto”, “Oxygen”, “Ubuntu”, “Cantarell”, “Fira Sans”, “Droid Sans”, “Helvetica Neue”, sans-serif;
}

* {
  box-sizing: border-box;
  font-family: inherit;
}

main {
  width: 100%;
  max-width: 1080px;
  padding: calc(24px + 8vh) 24px 24px;
  margin: 0 auto;
  overflow: hidden;
  display: none;
  opacity: 0;
  transition: opacity 135ms ease-out;
}
main.display {
  display: block;
}
main.show {
  opacity: 1;
}
main img {
  max-width: 256px;
}
main article {
  border-radius: var(--card-border-radius);
  background-color: var(--bg-article);
  padding: 24px;
  margin-top: 16px;
}
main article h1 {
  margin: 0;
  font-size: 26px;
}
main article > p > img {
  vertical-align: middle;
  height: 24px;
  border-radius: 50%;
  margin-bottom: 2px;
}
main article .itemTable {
  width: calc(100% + 48px);
  margin-left: -24px;
  margin-bottom: -12px;
  border-collapse: collapse;
}
main article .itemTable thead > tr {
  font-weight: 700;
  border-bottom: solid 1px var(--border);
}
main article .itemTable tr {
  height: 40px;
  border-bottom: solid 1px var(--border);
}
main article .itemTable tr:hover {
  background-color: var(--mod-hover);
}
main article .itemTable td:first-child {
  padding-left: 24px;
}
main article .itemTable td:last-child {
  padding-right: 24px;
}
main article .itemTable tfoot > tr {
  border-bottom: none !important;
}
.buttonRow {
  display: flex;
  margin-top: 8px;
}
.buttonRow > button {
  margin-left: 8px;
}
.spacer {
  flex: 1;
}
main .buttonRow > .providerLink {
  opacity: 0.3;
  height: 16px;
}
main .buttonRow > .providerLink svg {
  height: 16px;
  width: auto;
}
main .buttonRow > .providerLink svg * {
  fill: var(--fg-body);
}

.button {
  outline: none;
  position: relative;
  height: 44px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--button-border-radius);
  background-color: #fff;
  cursor: pointer;
  transition: 55ms background-color ease-out;
}
.button.decline {
  background-color: var(--bg-decline);
  color: var(--fg-decline);
}
.button.decline:hover {
  background-color: var(--bg-decline-h);
}
.button.decline:focus {
  box-shadow: 0 0 0 2px var(--bg-body), 0 0 0 4px var(--bg-decline-f);
}
.button.accept {
  background-color: var(--bg-accept);
  color: var(--fg-accept);
}
.button.accept:hover {
  background-color: var(--bg-accept-h);
}
.button.accept:focus {
  box-shadow: 0 0 0 2px var(--bg-body), 0 0 0 4px var(--bg-accept-f);
}
.button:focus {
  box-shadow: 0 0 0 1px var(--bg-body);
}
.button.neutral {
  border: solid 1px var(--border);
}
.button.neutral:hover {
  background-color: var(--mod-hover);
}
.button.neutral:focus {
  box-shadow: 0 0 0 2px var(--bg-body), 0 0 0 4px var(--bg-brand-f);
}

div.statRow {
  display: flex;
}

div.stat {
  margin-right: 36px;
}
div.stat h2 {
  font-size: 14px;
  font-size: 600;
  margin: 0;
}
div.stat p {
  font-size: 24px;
  margin: 0;
}
div.stat.small p {
  font-size: 18px;
}

#branding {
  margin-top: 0;
}

a {
  color: var(--bg-brand);
}

#spinner {
  position: absolute;
  z-index: 0;

  height: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  left: 50%;
  transform: translate(-50%);
}

#spinner.unshow {
  opacity: 0 !important;
}

#main, #error {
  position: relative;
  z-index: 5;
}

.spinner {
	/* transform: translate(-50%, -50%); */
  margin: 0 auto;
}

.spinner g {
  transform-origin: 50% 50%;
  animation: 1115ms linear infinite spin;
}

.spinner circle {
  stroke-width: 15;
  stroke-dasharray: 150;
  stroke-linecap: round;
  stroke: var(--bg-brand);

  transform-origin: 50% 50%;
  animation: 1800ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite dash;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes dash {
	0% {
		stroke-dasharray: 162 150;
		stroke-dashoffset: 162;
		transform: rotate(0deg);
	}
	50% {
		stroke-dasharray: 50 250;
		stroke-dashoffset: 89;
	}
	100% {
		stroke-dasharray: 162 150;
		stroke-dashoffset: 162;
		transform: rotate(360deg);
	}
}

@media screen and (max-width: 600px) {
  main {
    padding: 24px;
  }

  .buttonRow {
    flex-direction: column-reverse;

    align-items: stretch;
  }

  .buttonRow > * {
    margin-left: 0 !important;
    margin-bottom: 4px;
    width: auto !important;
  }
}
