/* Fonts */

/* open-sans-300 - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300;
  src: url("/spenden/fonts/open-sans-v40-latin-300.woff2") format("woff2");
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* open-sans-regular - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  src: url("/spenden/fonts/open-sans-v40-latin-regular.woff2") format("woff2");
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* open-sans-600 - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  src: url("/spenden/fonts/open-sans-v40-latin-600.woff2") format("woff2");
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root,
:host {
  --fa-style-family-classic: "Font Awesome 6 Free";
  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
}

@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src:
    url("/spenden/fonts/fa-solid-900.woff2") format("woff2"),
    url("/spenden/fonts/fa-solid-900.ttf") format("truetype");
}

.fas,
.fa-solid {
  font-weight: 900;
}

/* Color Scheme */

:root {
  --primary-color: #f8d600;
  --secondary-color: #00366a;
  --background-color: #f9f9f9;
  --border-color: #ececec;
  --active-control-color: #ececec;
  --placeholder-color: #868685;
  --readonly-background-color: #eeeeee;
}

/* Global Styles */

html {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--secondary-color);
  background-color: var(--background-color);
}

html,
body {
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
}

.container {
  display: flex;
  flex-direction: column;
  padding: 28px 20px 34px 20px;
  height: 100%;
  max-width: 800px !important;
}

h1 {
  margin-bottom: 24px;
  text-align: center;
  font-size: 26px;
  font-weight: 300;
}

h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

p {
  margin-bottom: 24px;
}

label.label,
legend {
  font-weight: 600;
}

legend {
  margin-bottom: 8px;
}

form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

input.input {
  border: 2px solid var(--border-color);
}

input::placeholder {
  color: var(--placeholder-color);
}

button.button,
input.button {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  padding: 10px 20px 10px 16px;
  border-radius: 40px;
  margin-bottom: 24px;
}

button.button i {
  flex-grow: 1;
  text-align: right;
}

b {
  font-weight: 600;
}

.payment_credit_card_expiry iframe,
.payment_credit_card_secure_id iframe,
.payment_credit_card_number iframe {
  height: 40px;
}

[readonly] {
  background-color: var(--readonly-background-color);
  pointer-events: none;
}

/* Custom checkbox */

.custom-checkbox-wrapper {
  display: flex;
  flex-wrap: wrap;
}

.custom-checkbox {
  display: flex;
  height: 70px;
  min-width: 80px;
  flex-grow: 1;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  font-weight: 300;
  margin-right: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}

.custom-checkbox:last-of-type {
  margin-right: 0;
}

.custom-checkbox.active {
  border-color: var(--secondary-color);
  background-color: var(--active-control-color);
}

/* Custom styles */

.field .field {
  flex-grow: 1;
}

.custom-checkbox {
  font-size: 18px;
  line-height: 121%;
}

.field > .field:not(:last-of-type) {
  margin-right: 8px;
}

.illustration {
  max-height: 300px;
}

/* Loading indicator */

.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: var(--background-color);
  transition: opacity 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 4;
}

.loader {
  height: 80px;
  width: 80px;
}

/* Notifications */

.notification {
  width: 100%;
  position: absolute;
}

/* Helper classes */

.flex {
  display: flex;
}

.space-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.column {
  flex-direction: column;
}

.illustration {
  max-height: 300px;
}
