[data-theme="light"],
:root:not([data-theme="dark"]) {
  --btn-background: #fcfcff;
  --background-secondary: #edf2f7;
  --tertiary: #5ca7c9;
  --container-surface: #dee3eb;
  --on-surface-variant: #42474e;
  --line-color: #d6e4ee;
  --brand-color-text: #027eba;
  --brand-color: #006495;

  --fddb-primary: hsla(200, 100%, 29%, 1);
  --fddb-on-primary: #ffffff;
  --fddb-fill-primary: hsla(200, 100%, 29%, 1);
  --fddb-fill-primary-hover: hsla(200, 100%, 24%, 1);
  --fddb-on-fill-primary: #ffffff;
  --fddb-secondary: #8fcdff;
  --fddb-on-secondary: #00334d;
  --fddb-fill-secondary: hsla(207, 100%, 88%, 1);
  --fddb-fill-secondary-hover: hsla(207, 100%, 83%, 1);
  --container-secondary: var(--fddb-fill-secondary);
  --fddb-on-fill-secondary: #00334d;
  --fddb-tertiary: #48a5c4;
  --fddb-on-tertiary: #ffffff;
  --fddb-fill-tertiary: #bde8f1;
  --fddb-on-fill-tertiary: #00334d;
  --fddb-error: #ba1a1a;
  --fddb-on-error: #ffffff;
  --fddb-fill-error: #ffdad6;
  --fddb-on-fill-error: #93000a;
  --fddb-background: #fcfdfe;
  --fddb-on-background: #1a1c1e;
  --fddb-surface: #eef5fa;
  --fddb-on-surface: #1a1c1e;
  --fddb-surface-container-lowest: #f9fcff;
  --fddb-surface-container-low: #f0f7fc;
  --fddb-surface-container: #ebf3f9;
  --fddb-surface-container-high: #e4eef5;
  --fddb-surface-container-highest: #d6e5f0;
  --fddb-surface-variant: #ffffff;
  --fddb-on-surface-variant: #4d5e6f;
  --fddb-on-surface-low: #7e8d9a;
  --fddb-outline: #72787e;
  --fddb-outline-variant: #c1c7ce;
  --fddb-box-shadow-color: rgba(0, 0, 0, 0.1);
  --fddb-box-shadow-color-high: rgba(0, 0, 0, 0.2);

  --form-element-focus-color: var(--fddb-primary);
  --fddb-partnerlogo-bg: invert(0%) sepia(0%) saturate(0%) hue-rotate(326deg)
    brightness(97%) contrast(104%);
  --fddb-logo-divider: #000;
  --fddb-logo-url: url("../assets/coupon/fddb-logo.svg");
}

@media only screen and (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --primary: #8fcdff;
    /* --primary-hover: #2196f3; */
    /* --primary-focus: rgba(30, 136, 229, 0.25); */
    --btn-background: #191c1e;
    --background-secondary: #42474e;
    --tertiary: #5ca7c9;
    --container-surface: #42474e;
    --on-surface-variant: #c2c7cf;
    --line-color: #d6e4ee;
    --brand-color-text: #003450;
    --brand-color: #8fcdff;
    --container-secondary: #e0efff;

    --fddb-primary: hsla(207, 100%, 79%, 1);
    --fddb-on-primary: #021d31;
    --fddb-fill-primary: hsla(207, 100%, 79%, 1);
    --fddb-fill-primary-hover: hsla(207, 100%, 74%, 1);
    --fddb-on-fill-primary: #021d31;
    --fddb-secondary: #017eba;
    --fddb-on-secondary: #8fcdff;
    --fddb-fill-secondary: hsla(200, 100%, 29%, 1);
    --fddb-fill-secondary-hover: hsla(200, 100%, 24%, 1.1);
    --fddb-on-fill-secondary: #f0f7ff;
    --fddb-tertiary: #72bccc;
    --fddb-on-tertiary: #003546;
    --fddb-fill-tertiary: #1b7c94;
    --fddb-on-fill-tertiary: #f0f7ff;
    --fddb-error: #ff453a;
    --fddb-on-error: #690005;
    --fddb-fill-error: #690005;
    --fddb-on-fill-error: #fff4f3;
    --fddb-background: #151718;
    --fddb-on-background: #e2e2e5;
    --fddb-surface: #1b1f23;
    --fddb-on-surface: #e8e8e8;
    --fddb-surface-container-lowest: #151b1f;
    --fddb-surface-container-low: #1d262e;
    --fddb-surface-container: #212b33;
    --fddb-surface-container-high: #26313b;
    --fddb-surface-container-highest: #2c3944;
    --fddb-surface-variant: #1f272d;
    --fddb-on-surface-variant: #c0c6cd;
    --fddb-on-surface-low: #92a1ad;
    --fddb-outline: #8b9198;
    --fddb-outline-variant: #c1c7ce;
    --fddb-box-shadow-color: rgba(0, 0, 0, 0.1);
    --fddb-box-shadow-color-high: rgba(0, 0, 0, 0.2);
    --fddb-partnerlogo-bg: invert(100%) sepia(0%) saturate(7494%)
      hue-rotate(156deg) brightness(95%) contrast(112%);
    --fddb-logo-divider: #fff;
    --fddb-logo-url: url("../assets/coupon/fddb-logo-dark.svg");
  }
}

[data-theme="dark"] {
  --primary: #8fcdff;
  --btn-background: #191c1e;
  --background-secondary: #42474e;
  --tertiary: #5ca7c9;
  --container-surface: #42474e;
  --on-surface-variant: #c2c7cf;
  --line-color: #d6e4ee;
  --brand-color-text: #003450;
  --brand-color: #8fcdff;
  --container-secondary: #e0efff;

  --fddb-primary: hsla(207, 100%, 79%, 1);
  --fddb-on-primary: #021d31;
  --fddb-fill-primary: hsla(207, 100%, 79%, 1);
  --fddb-fill-primary-hover: hsla(207, 100%, 74%, 1.1);
  --fddb-on-fill-primary: #021d31;
  --fddb-secondary: #017eba;
  --fddb-on-secondary: #8fcdff;
  --fddb-fill-secondary: hsla(200, 100%, 29%, 1);
  --fddb-fill-secondary-hover: hsla(200, 100%, 24%, 1.1);
  --fddb-on-fill-secondary: #f0f7ff;
  --fddb-tertiary: #72bccc;
  --fddb-on-tertiary: #003546;
  --fddb-fill-tertiary: #1b7c94;
  --fddb-on-fill-tertiary: #f0f7ff;
  --fddb-error: #ff453a;
  --fddb-on-error: #690005;
  --fddb-fill-error: #690005;
  --fddb-on-fill-error: #fff4f3;
  --fddb-background: #151718;
  --fddb-on-background: #e2e2e5;
  --fddb-surface: #1b1f23;
  --fddb-on-surface: #e8e8e8;
  --fddb-surface-container-lowest: #151b1f;
  --fddb-surface-container-low: #1d262e;
  --fddb-surface-container: #212b33;
  --fddb-surface-container-high: #2a3742;
  --fddb-surface-container-highest: #344452;
  --fddb-surface-variant: #1f272d;
  --fddb-on-surface-variant: #c0c6cd;
  --fddb-on-surface-low: #92a1ad;
  --fddb-outline: #8b9198;
  --fddb-outline-variant: #c1c7ce;
  --fddb-box-shadow-color: rgba(0, 0, 0, 0.1);
  --fddb-box-shadow-color-high: rgba(0, 0, 0, 0.2);
  --fddb-logo: invert(76%) sepia(11%) saturate(1688%) hue-rotate(179deg)
    brightness(101%) contrast(103%);
}

@font-face {
  font-family: "Open Sans";
  src:
    url("/static/fonts/fonts/Regular/OpenSans-Regular.woff2?v=1.1.0")
      format("woff2"),
    url("/static/fonts/fonts/Regular/OpenSans-Regular.woff?v=1.1.0")
      format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Open Sans";
  src:
    url("/static/fonts/fonts/Semibold/OpenSans-Semibold.woff2?v=1.1.0")
      format("woff2"),
    url("/static/fonts/fonts/Semibold/OpenSans-Semibold.woff?v=1.1.0")
      format("woff");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Open Sans";
  src:
    url("/static/fonts/fonts/Bold/OpenSans-Bold.woff2?v=1.1.0") format("woff2"),
    url("/static/fonts/fonts/Bold/OpenSans-Bold.woff?v=1.1.0") format("woff");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Open Sans";
  src:
    url("/static/fonts/fonts/ExtraBold/OpenSans-ExtraBold.woff2?v=1.1.0")
      format("woff2"),
    url("/static/fonts/fonts/ExtraBold/OpenSans-ExtraBold.woff?v=1.1.0")
      format("woff");
  font-weight: 800;
  font-style: normal;
}

:root {
  --font-family: "Open Sans", sans-serif;
  --font-size-small: 12px;
  --border-radius: 1rem;
  --border-radius-big: 1.25rem;
  --border-radius-small: 0.5rem;
  --letter-spacing: 0.031rem;
  --letter-spacing-small: 0.016rem;
  --transition-duration: 0.2s;
  --transition-duration-fast: 0.125s;
  scrollbar-width: thin;
  font-weight: 400 !important;
  transition: all var(--transition-duration) ease-in-out;
}

button:focus {
  box-shadow: none !important;
}

@keyframes wiggle {
  0%,
  100% {
    transform: translateX(-2px);
  }

  50% {
    transform: translateX(2px);
  }
}

.wiggle {
  animation: wiggle 0.2s ease-in-out;
}

[data-loading] {
  display: none;
}

article {
  background: var(--fddb-surface-variant);
}

.no-hover {
  pointer-events: none;
}

html {
  background-color: var(--fddb-background);
  height: 100%;
}

body {
  background-color: var(--fddb-background);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

main.payment {
  padding-bottom: 0 !important;
}

.htmx-indicator {
  display: none;
}

::-webkit-scrollbar {
  width: 0;
}

input[type="checkbox"] {
  background-color: var(--fddb-surface-variant);
  border: 2px solid var(--fddb-on-surface-variant);
  border-radius: 0.25rem;
  min-width: 1.25rem;
  margin-right: 1rem;
}

input[type="checkbox"]:checked {
  background-color: var(--fddb-primary);
  border-color: var(--fddb-primary);
}

input[type="checkbox"].error {
  border-color: var(--fddb-error);
}

input[type="radio"]:checked {
  background-color: var(--fddb-fill-primary);
}

.terms-container {
  display: flex;
  align-items: center;
  flex-flow: row;
  padding: 1rem 0;
  margin: 0.5rem 0;
}

.terms-label {
  font-size: calc(var(--font-size) * 0.75);
  letter-spacing: 0.0333rem;
  word-wrap: normal;
  text-align: left;
  color: var(--fddb-on-surface);
  cursor: auto;
}

.terms-label a {
  color: var(--fddb-on-surface);
  text-decoration: underline;
}

.terms-label a:focus {
  background-color: inherit;
  color: var(--fddb-primary);
}

.terms-label a:hover {
  color: var(--fddb-primary);
}

.hidden {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fddb-logo {
  max-width: 145px;
}

.fddb-logo path {
  fill: var(--fddb-primary);
  mix-blend-mode: normal;
}

#paypal-button {
  position: relative;
}

#paypal-button-container {
  border-radius: var(--border-radius-big) !important;
  width: 100% !important;
  height: 100% !important;
  position: absolute;
  top: 0;
  opacity: 0.0000001;
  z-index: 100;
}

#paypal-button-container iframe {
  border-radius: calc(var(--border-radius-big) * 2) !important;
}

.fddb-button {
  font-weight: 600;
  border-radius: calc(var(--border-radius-big) * 1.25);
  font-size: calc(var(--font-size) * 0.85);
  letter-spacing: var(--letter-spacing);
  min-width: 5.537rem;
  border-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 2.5rem;
  transition: all var(--transition-duration) ease-in-out;
}

.fddb-button-primary {
  --btn-background: var(--fddb-fill-primary);
  background-color: var(--btn-background);
  color: var(--fddb-on-fill-primary);
}

.fddb-button-secondary {
  --btn-background: var(--fddb-fill-secondary);
  background-color: var(--btn-background);
  color: var(--fddb-on-fill-secondary);
}

.fddb-button-primary:hover {
  background-color: var(--fddb-fill-primary-hover);
}

.fddb-button-secondary:hover {
  background-color: var(--fddb-fill-secondary-hover);
}

.fddb-button-min {
  background: none;
  color: var(--fddb-primary);
  width: auto;
  margin: 1rem auto 0 auto;
}

article {
  border-radius: var(--border-radius);
}

#keybindings-modal article {
  min-width: 50%;
  width: 100%;
}

.input-container {
  position: relative;
  margin-bottom: 1rem;
}

#login-form .input-container:nth-child(2),
#doi-login-form .input-container:nth-child(2) {
  margin-bottom: 0.5rem !important;
}

#register-form .input-container:nth-child(4) {
  margin-bottom: 0.5rem !important;
}

.input-container .toggle-visibility,
.input-container .toggle-invisibility {
  position: absolute;
  right: 1.5rem;
  bottom: 50%;
  transform: translateY(50%);
  cursor: pointer;
  z-index: 10;
  width: 1.5rem;
  height: auto;
  transition: all var(--transition-duration) ease-in-out;
}

.set-visible-icon:hover path,
.set-invisible-icon:hover path {
  fill: var(--fddb-primary);
  transition: all var(--transition-duration) ease-in-out;
}

.toggle-invisibility {
  display: none;
}

.fddb-text-input-label {
  position: absolute;
  left: 1rem;
  top: -0.5rem;
  line-height: 1rem;
  font-size: calc(var(--font-size) * 0.75);
  transition: all var(--transition-duration);
  overflow: hidden;
  color: var(--fddb-on-surface-variant);
  white-space: nowrap;
  z-index: 1;
  background-color: var(--fddb-surface-container-lowest);
  padding: 0 0.25rem;
  opacity: 0;
}

.input-container input:focus + label {
  color: var(--fddb-primary);
}

.input-container.error input:focus + label {
  color: var(--fddb-surface-container-highest);
}

.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label {
  opacity: 1;
  background-color: var(--fddb-surface-variant);
}

.input-container input:focus::placeholder {
  color: transparent;
}

.undo {
  opacity: 1;
  color: var(--fddb-on-surface-variant);
}

.visibility-button path {
  fill: var(--fddb-on-surface-variant);
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
}

.login-button {
  max-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#logout-form {
  padding: 0;
  margin: 0;
}

.fddb-input {
  border-radius: calc(var(--border-radius-big) * 0.5);
  border: none;
  outline: 1px solid var(--fddb-outline);
  padding-top: 1.75rem !important;
  padding-bottom: 1.75rem !important;
  letter-spacing: var(--letter-spacing);
  background-color: var(--fddb-surface-variant);
  margin-bottom: 0 !important;
  position: relative;
  transition: all var(--transition-duration) ease-in-out;
}

.fddb-input:focus {
  outline: 2px solid var(--fddb-primary);
  transition: all var(--transition-duration) ease-in-out;
}

.fddb-input.error {
  outline: 2px solid var(--fddb-error);
}

.fddb-input.error + label {
  color: var(--fddb-error);
}

.fddb-input.error:focus + label {
  color: var(--fddb-error);
}

.input-error-container {
  margin: 0 1rem;
}

.register-input-error,
.input-error {
  color: var(--fddb-error);
  font-size: calc(var(--font-size) * 0.75);
  letter-spacing: var(--letter-spacing);
  text-align: left;
  display: block;

  & a {
    color: var(--fddb-error);
    text-decoration: underline;
  }
}

dialog {
  padding: 1rem 0.5rem;
}

#header {
  background-color: var(--fddb-surface);
  border-bottom: 1px solid var(--fddb-surface-container-high);
  padding: 1rem 0 !important;
  margin-top: 0;
}

#header .fddb-logo {
  max-height: 2rem;
  width: 100%;
}

#footer .container {
  padding: 0 !important;
}

#footer {
  padding-bottom: 0.5rem;
}

nav li {
  padding-top: 0;
  padding-bottom: 0;
}

.alt-link {
  text-align: right;
  margin-bottom: 1rem;
}

.alt-link a {
  color: var(--on-surface-variant);
  font-size: calc(var(--font-size) * 0.875);
  letter-spacing: var(--letter-spacing-small);
  font-weight: 600;
  transition: all var(--transition-duration) ease-in-out !important;
}

.alt-link a:hover {
  text-decoration: underline !important;
  transition: all var(--transition-duration) ease-in-out !important;
}

.alt-link a:focus {
  background-color: inherit;
  color: var(--fddb-primary);
}

.mainmenubtn {
  background-color: var(--fddb-surface-container-high);
  color: var(--fddb-on-fill-secondary);
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius-big);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 300px;
  height: 2.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.mainmenubtn:focus {
  border: none;
  box-shadow: none;
}

.mainmenubtn:hover {
  background-color: var(--fddb-surface-container-highest);
}

.mainmenubtn > .username {
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 10ch;
}

.mainmenubtn > svg {
  padding-left: 0;
}

.mainmenubtn > svg path {
  fill: var(--fddb-on-fill-secondary);
}

.mainmenubtn > .arrow {
  padding-right: 0.25rem;
}

.dropdown article p {
  font-size: calc(var(--font-size) * 0.875);
  letter-spacing: var(--letter-spacing);
  margin-bottom: 0;
}

.dropdown,
.language-dropdown {
  position: relative;
  display: block;
}

.dropdown-account-info {
  padding: 0.5rem;
  margin: 0 0.5rem;
}

.dropdown-account-info p {
  margin-bottom: 0;
}

.dropdown article {
  display: none;
  position: absolute;
  z-index: 1;
  margin: 0;
  padding: 0;
  right: 0;
}

.dropdown-child {
  min-width: 250px;
  max-width: fit-content;
}

.language-dropdown-child {
  min-width: 250px;
  display: none;
  position: absolute;
  z-index: 1;
  padding: 0.5rem;
  margin: 0.25rem 0;
  right: 0;
}

.language-dropdown-child,
.dropdown-child {
  -webkit-box-shadow: 0px 4px 10px 0px var(--fddb-box-shadow-color);
  -moz-box-shadow: 0px 4px 10px 0px var(--fddb-box-shadow-color);
  box-shadow: 0px 4px 10px 0px var(--fddb-box-shadow-color);
}

.language-dropdown-link {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  margin: 0;
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--on-surface-variant);
}

.language-dropdown-link div {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 60%;
}

.language-dropdown-link div span {
  margin-left: 0.5rem;
}

.language-dropdown-link-active {
  background-color: var(--fddb-surface-container-high);
  pointer-events: none;
  cursor: default;
}

.language-dropdown-link img {
  width: 1.5rem;
}

.language-country-logo {
  height: 1rem;
}

.language-dropdown-checkmark {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  margin: 0;
}

.language-dropdown-checkmark {
  fill: red;
}

.language-dropdown-link:hover {
  background-color: var(--fddb-surface-container-high);
}

.dropdown-child h3 {
  margin-top: 0;
  margin-bottom: 0;
}

.dropdown-child p {
  color: var(--on-surface-variant);
  margin-bottom: 1rem;
}

.dropdown:focus-within .dropdown-child {
  display: block;
}

#lottie {
  width: 6.375rem;
  /* height: 5rem; */
  padding: 0;
  margin: auto;
}

.success-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.success-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--fddb-surface-container-low);
  border-radius: var(--border-radius-big);
  padding: 1rem;
  padding-bottom: 0;
}

.success-card h5 {
  margin-bottom: 0;
  font-size: 1rem;
}

.success-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
}

.success-header h4 {
  margin-bottom: 0;
  font-size: 1.375rem;
}

.success-container p {
  color: var(--fddb-on-surface-variant);
  font-size: 14px;
  letter-spacing: var(--letter-spacing-small);
  text-align: center;
  margin-bottom: 0;
}

.success-header p {
  letter-spacing: var(--letter-spacing);
}

.success-help p {
  font-size: 14px;
  color: var(--fddb-on-surface-variant);
  margin-bottom: 0.5rem;
}

.app-store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin: 1rem 0;
  width: 100%;
}

.app-store-buttons a {
  margin: 0.5rem 0;
  max-height: 3rem;
  max-width: 10rem;
}

.app-store-buttons a img {
  object-fit: contain;
  height: 100%;
  width: 100%;
}

.success-help {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.success-help a {
  width: 100%;
}

.dropdown:focus-within .arrow {
  transform: rotate(180deg);
  padding-right: 0;
  padding-left: 0.25rem;
}

.dropdown-child hr {
  width: 95%;
  padding: 0;
  margin: auto;
}

.logout-button {
  background: none;
  border: none;
  color: var(--fddb-primary);
  font-weight: 600;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  letter-spacing: var(--letter-spacing);
  width: 100%;
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}

.logout-button:hover + hr {
  display: none;
}

.logout-button svg path {
  fill: var(--fddb-primary);
  mix-blend-mode: normal;
}

.logout-button:hover {
  background-color: var(--fddb-surface-container-high);
}

.language-select {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--fddb-surface-container-high);
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.language-select:focus {
  border: none;
  box-shadow: none;
}

.language-dropdown:focus-within .language-dropdown-child {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: column;
}

.language-select:hover {
  background-color: var(--fddb-surface-container-highest);
}

.language-dropdown-button {
  background: none;
  border: none;
  color: var(--fddb-primary);
}

.language-image img {
  border-radius: 10%;
}

.heading-payment {
  text-align: center;
}

.heading-payment h1 {
  margin-bottom: 0;
}

.heading-payment p {
  color: var(--on-surface-variant);
  letter-spacing: var(--letter-spacing);
}

dialog article > header .close {
  position: relative;
  top: 0;
  right: 0;
  margin-left: 0;
}

#login-modal,
#register-modal,
#loading-modal,
#doi-modal {
  text-align: center;
}

#loading-modal {
  z-index: 1000000;
}

#loading-modal h3 {
  margin: 0;
}

#login-modal header,
#register-modal header,
#doi-modal header {
  border-bottom: none;
  margin-bottom: 0.75rem;
  background-color: inherit;
}

#login-modal article,
#register-modal article,
#doi-modal article {
  width: 100%;
}

#login-modal .modal-headline,
#register-modal .modal-headline,
#doi-modal .modal-headline {
  /* font-size: calc(var(--font-size) * 1.375); */
  margin-bottom: 0;
  /* font-weight: 600; */
}

.product-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 1rem;
  margin-top: 3rem;
}

.product-card-recommended {
  /* outline nicht ganz bündig */
  background-color: var(--fddb-surface-container-highest);
  color: var(--fddb-on-surface-variant);
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
  width: 100%;
  height: 2.75rem;
  text-align: center;
  z-index: 1;
  transform: translateY(-50%);
  border: 2px solid var(--fddb-surface-container-highest);
  transition: all var(--transition-duration) ease-in-out;
}

.product-card-recommended-text {
  margin: auto 1rem;
}

#premium-form {
  display: contents;
}

.product-card-container {
  position: relative;
  --width: 100%;
  width: var(--width);
  max-height: calc(var(--width) * 0.75);
  margin: 1rem 0;
  padding: 0.5rem 0;
  /* min-width: 400px; */
  max-width: 400px;
}

.product-card-container-label:hover {
  -webkit-box-shadow: 0px 4px 10px 0px var(--fddb-box-shadow-color);
  -moz-box-shadow: 0px 4px 10px 0px var(--fddb-box-shadow-color);
  box-shadow: 0px 4px 10px 0px var(--fddb-box-shadow-color);
}

.product-card-container-label {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
  padding: 1.5rem 1rem;
  color: var(--fddb-on-surface-variant);
  cursor: pointer;
  background-color: var(--fddb-surface-variant);
  border: 2px solid var(--fddb-surface-container-highest);
  border-radius: var(--border-radius);
  transition: all var(--transition-duration) ease-in-out;
}

.product-card-container-input {
  visibility: hidden;
  width: 0;
  height: 0;
  position: absolute;
}

.product-card-container-label.selected {
  border: 2px solid var(--fddb-primary);
  -webkit-box-shadow: 0px 4px 10px 0px var(--fddb-box-shadow-color);
  -moz-box-shadow: 0px 4px 10px 0px var(--fddb-box-shadow-color);
  box-shadow: 0px 4px 10px 0px var(--fddb-box-shadow-color);
}

.product-card-container-label h4 {
  margin: 0 0 1.5rem 0;
}

.product-card-container-label h4,
.product-card-container-label .product-card-prize,
.product-card-container-label .product-card-prize-original,
.product-card-container-label .product-card-per-month {
  color: var(--fddb-on-surface-variant);
  transition: all var(--transition-duration) ease-in-out;
}

.product-card-container-label.selected h4,
.product-card-container-label.selected .product-card-prize,
.product-card-container-label.selected .product-card-prize-original,
.product-card-container-label.selected .product-card-per-month {
  color: var(--fddb-on-surface);
  transition: all var(--transition-duration) ease-in-out;
}

.product-card-container input[type="radio"] {
  border-color: var(--fddb-surface-container-high);
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 0.5rem;
}

.product-card-recommended.selected {
  background-color: var(--fddb-primary);
  color: var(--fddb-on-fill-primary);
  border: 2px solid var(--fddb-primary);
}

.product-card-radio-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.product-card-per-month,
.product-card-prize-original {
  font-size: calc(var(--font-size) * 0.875);
  letter-spacing: 0.1px;
}

.product-card-prize-original {
  text-decoration: line-through;
}

.product-card-prize-original.invisible {
  visibility: hidden;
}

.product-card-per-month {
  margin-bottom: 0.25rem;
}

.product-card-prize-div {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.product-card-prize {
  font-size: calc(var(--font-size) * 1.75);
  font-weight: 600;
  margin-right: 0.25rem;
  margin-bottom: 0;
}

.discount-banner {
  position: absolute;
  top: 1.5rem;
  right: -10px;
  background-color: #ff8a00;
  /* Your banner background color */
  color: var(--fddb-surface-variant);
  /* Banner text color */
  border-top-left-radius: 1rem;
  /* Rounded top-right corner */
  border-bottom-left-radius: 1rem;
  /* Rounded bottom-right corner */
  border-bottom-right-radius: 0.125rem;
  padding: 0.25rem 0.75rem;
  min-width: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.discount-banner::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 0;
  border-width: 6px 8px 0 0;
  border-style: solid;
  border-color: #b94509 transparent transparent transparent;
  /* Match your banner background color */
  transform: rotateX(180deg);
  z-index: -1;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin: auto;
  margin-bottom: 3rem;
  z-index: 998;
  width: 100%;
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
  transition: all var(--transition-duration) ease-in-out;
  background-color: transparent;
}

/* add shadow back, change shadow color */
.payment-methods.sticky {
  /* background-color: transparent; */
  transition: all var(--transition-duration) ease-in-out;
  position: sticky;
  bottom: 0;
}

.payment-methods.sticky.show-background {
  box-shadow: 0px -4px 10px 0px var(--fddb-box-shadow-color);
  -moz-box-shadow: 0px -4px 10px 0px var(--fddb-box-shadow-color);
  -webkit-box-shadow: 0px -4px 10px 0px var(--fddb-box-shadow-color);
  background-color: var(--fddb-surface-variant);
}

.sticky .fddb-button {
  margin-bottom: auto;
}

.payment-disclaimer {
  text-align: center;
  margin: auto;
  /* padding: 0.5rem 1rem 2rem 1rem;  */
}

.payment-disclaimer p,
.payment-disclaimer a {
  color: var(--fddb-on-surface);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.4px;
}

.payment-disclaimer p {
  margin-bottom: 0;
  padding-bottom: 0;
}

.payment-disclaimer a {
  text-decoration: underline;
}

.payment-disclaimer a:hover {
  background-color: inherit;
  color: var(--fddb-primary);
}

.payment-disclaimer a:focus {
  background-color: inherit;
  color: var(--fddb-primary);
}

.checkout svg {
  width: auto;
  height: 1.5rem;
  margin: 0 0.5rem;
}

.credit-card-icon path {
  fill: var(--fddb-on-fill-primary);
}

.line-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
}

.line {
  flex-grow: 1;
  border: none;
  border-top: 1px solid var(--line-color);
}

.line-text {
  margin: 0 0.625rem;
  font-size: calc(var(--font-size) * 0.875);
  color: var(--on-surface-variant);
  letter-spacing: var(--letter-spacing-small);
}

/* .coupon-form { */
/*   /* margin-top: 2rem; */
*/
/* } */

.coupon-form .input-container {
  margin-bottom: 0.5rem;
}

.coupon-form .fddb-button {
  margin-top: 1rem;
}

.coupon-submit {
  opacity: 0;
  transform: translateY(-50%);
  transition: all var(--transition-duration) ease-in-out;
}

.coupon-submit.visible {
  transform: translateY(0);
  opacity: 1;
  transition: all var(--transition-duration) ease-in-out;
}

#undo-coupon-form {
  position: relative;
}

#undo-coupon {
  opacity: 1;
}

.coupon-checkmark {
  position: absolute;
  right: 1.5rem;
  bottom: 50%;
  transform: translateY(50%);
  width: 1.5rem;
  height: auto;
}

.coupon-success,
#coupon-error {
  font-size: var(--font-size-small);
  letter-spacing: var(--letter-spacing);
  padding: 0 1rem;
  margin: auto;
}

.coupon-success {
  color: var(--fddb-on-surface-variant);
}

#coupon-error {
  color: var(--fddb-error);
}

.coupon-heading {
  margin: 2rem auto 2rem auto;
  text-align: center;
}

.coupon-heading h3 {
  margin-bottom: 0;
  font-weight: 600;
}

.coupon-heading p {
  color: var(--on-surface-variant);
  letter-spacing: var(--letter-spacing);
  margin-bottom: 1rem;
}

#footer {
  background-color: var(--fddb-surface);
  padding-top: 1rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  padding-bottom: 1rem;
}

.footer-social {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: auto;
  padding: 1rem 0;
  width: 8rem;
}

.footer-social li {
  width: auto;
  list-style: none;
  font-weight: bold;
}

.footer-social-icon path {
  fill: var(--fddb-tertiary);
  transition: fill 0.25s ease-in-out;
}

.footer-social-icon:hover path {
  fill: var(--fddb-primary);
}

.footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 1rem 0;
  font-size: calc(var(--font-size) * 0.75);
}

.footer-links li {
  width: auto;
  list-style: none;
  margin: 0;
  font-weight: 600;
}

.footer-links a {
  color: var(--fddb-primary);
  transition: all var(--transition-duration) ease-in-out !important;
}

.footer-links a:focus {
  background-color: inherit;
  color: var(--fddb-primary);
}

button {
  color: var(--fddb-on-fill-primary);
}

.footer-links li:not(:last-child) {
  border-right: 1px solid var(--background-secondary);
  padding-right: 1rem;
}

.footer-disclaimer {
  margin: 1.25rem 0;
  margin-top: 0;
  text-align: center;
}

.footer-disclaimer small {
  font-size: calc(var(--font-size) * 0.75);
}

footer hr {
  background-color: var(--fddb-surface-container-lowest);
  height: 2px;
}

/* Toast Styles */
.alert {
  border-radius: var(--border-radius-small);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 0 0.5rem;
  width: fit-content;
  max-width: 100%;
  margin: auto;
}

.alert-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
}

.apple-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: auto;
  width: fit-content;
}

.apple-svg svg {
  /* width: 100%; */
  /* max-width: 125px; */
  width: 100%;
  height: auto;
}

.apple-svg-text {
  flex: 1;
  fill: var(--fddb-on-surface);
}

.apple-svg small {
  flex-basis: 100%;
  font-size: var(--font-size-small);
  letter-spacing: var(--letter-spacing);
  color: var(--fddb-on-surface);
  margin-top: 0.25rem;
}

.info-box {
  background-color: var(--fddb-fill-secondary);
  border-radius: var(--border-radius-small);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0.5rem 0.5rem 0.75rem 0.5rem;
  margin: 1rem 0;
  text-align: left;

  & a {
    color: inherit;
    text-decoration: underline;
  }
}

#doi-resend-form {
  margin: 0;
}

#send-mail.htmx-request,
.fddb-button.htmx-request {
  opacity: 0.5;
  transition: opacity var(--transition-duration) ease-in-out;
}

.doi-text {
  color: var(--fddb-on-fill-secondary);
  font-size: calc(var(--font-size) * 0.875);
  margin-bottom: 0.5rem !important;
}

.doi-send-mail {
  display: flex;
  margin-top: 1rem 0 0 0;
  width: fit-content;
}

.doi-send-mail:hover {
  cursor: pointer;
}

.doi-send-mail p {
  color: var(--fddb-on-fill-secondary);
  letter-spacing: var(--letter-spacing-small);
  font-size: calc(var(--font-size) * 0.875);
  font-weight: 600;
}

.doi-send-mail .mail-icon,
.doi-send-mail .check {
  margin-right: 0.5rem;
  height: auto;
}

.doi-send-mail .mail-icon {
  width: calc(var(--font-size) * 0.875);
}

.doi-send-mail .mail-icon path,
.doi-send-mail .check path {
  fill: var(--fddb-on-fill-secondary);
}

#doi-modal .info-box {
  margin-bottom: 2rem;
  display: flex;
  justify-content: flex-start;
}

.info-content {
  display: flex;
  /* align-items: center; */
  justify-content: space-between;
  flex-direction: column;
  width: 100%;
}

.info-content .fddb-button {
  width: 50%;
  margin: auto - 0.25rem;
}

.error-box {
  background-color: var(--fddb-fill-error);
}

.info-box .alert-icon path {
  fill: var(--fddb-primary);
}

.error-box .alert-icon path {
  fill: var(--fddb-on-fill-error);
}

.info-box span,
.error-box span {
  font-size: calc(var(--font-size) * 0.875);
  color: var(--fddb-on-surface);
  letter-spacing: var(--letter-spacing-small);
  margin: 0;
  padding: 0.5rem 0;
}

.denied-main {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.denied-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.denied-image {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
}

.denied-image img {
  width: -webkit-fill-available;
}

.denied-text {
  text-align: center;
}

.denied-text h4 {
  margin-bottom: 0.5rem;
}

.denied-text p {
  /* font-size: calc(var(--font-size) * 0.8); */
  font-size: 16px;
  color: var(--on-surface-variant);
  letter-spacing: var(--letter-spacing);
}

.denied-app-store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: space-between;
  margin-right: 1rem;
}

/* Media Queries */
@media (min-width: 768px) {
  .dropdown-child,
  .language-dropdown-child {
    right: 0;
    left: auto;
    transform: translateX(0);
  }

  #login-modal article,
  #register-modal article {
    max-width: 75%;
  }

  .footer-links {
    justify-content: space-between;
    width: 50%;
    margin: auto;
  }

  .footer-links li:not(:last-child) {
    border-right: none;
    margin: 0;
    padding: 0;
  }

  .coupon-form {
    max-width: 50%;
    margin: 0rem auto;
  }

  .footer-logo {
    display: none;
  }

  dialog {
    max-width: 50%;
  }

  .footer-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .footer-logo-socials {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .footer-social {
    justify-content: space-between;
    margin: auto;
    width: 8rem;
  }

  .footer-social li {
    margin: 0;
    padding: 0;
  }

  .checkout {
    max-width: 50%;
    margin-bottom: 0;
  }

  .success-container {
    max-width: 75%;
    margin: auto;
  }

  .success-help {
    width: 75%;
    max-width: 480px;
    margin: auto;
  }

  .app-store-buttons {
    justify-content: space-between;
  }

  .app-store-buttons.success {
    justify-content: center;
  }

  .app-store-buttons.success a {
    margin: 0.5rem;
  }

  .denied-container {
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
  }

  .denied-text {
    width: 50%;
    margin: 0;
    text-align: left;
  }

  .denied-image {
    width: auto;
    margin: 0;
  }
}

@media (min-width: 992px) {
  #login-modal article,
  #register-modal article {
    max-width: 40%;
  }

  .payment-methods button,
  .payment-disclaimer {
    width: 40%;
    max-width: 550px;
  }

  .product-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
  }

  .product-card-container {
    width: 35%;
    margin: 0 1.5rem;
    max-height: 80%;
  }

  .denied-text {
    max-width: 45%;
    padding-right: 2rem;
  }
}

@media (min-width: 1200px) {
  #login-modal article,
  #register-modal article {
    max-width: 35%;
  }
}
