:root {
  --loadersize: min(8rem, 30vw); /* Define the CSS variable --loadersize */
}

.loader {
  display: inline-block;
  height: 0.8em;
  padding: 0.25em;
  margin-left: 0.5em;
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
  --_m: conic-gradient(#0000 10%, #000), linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
  mask: var(--_m);
  -webkit-mask-composite: source-out;
  mask-composite: subtract;
  animation: l3 1s infinite linear;
}
@keyframes l3 {
  to {
    transform: rotate(1turn);
  }
}

.ginger-loader {
  color: var(--accent, #ff0000);
  position: relative;
  font-size: clamp(0.5rem, 5vw, 2rem);
  background: var(--accent, #ff0000);
  animation: escaleY 1s infinite ease-in-out;
  width: 1em;
  height: 4em;
  animation-delay: -0.16s;
}
.ginger-loader:before,
.ginger-loader:after {
  content: '';
  position: absolute;
  top: 0;
  left: 2em;
  background: var(--accent, #ff0000);
  width: 1em;
  height: 4em;
  animation: escaleY 1s infinite ease-in-out;
}
.ginger-loader:before {
  left: -2em;
  animation-delay: -0.32s;
}

@keyframes escaleY {
  0%,
  80%,
  100% {
    box-shadow: 0 0;
    height: 4em;
  }
  40% {
    box-shadow: 0 -2em;
    height: 5em;
  }
}

.shiny {
  position: relative;
  overflow: hidden;
  pointer-events: initial;
}

.shiny::after {
  content: '';
  position: absolute;
  z-index: -1;
  --_size: 100vw;
  top: calc(var(--y, 0) * 1px - calc(var(--_size, 500px) / 2));
  left: calc(var(--x, 0) * 1px - calc(var(--_size, 500px) / 2));
  width: var(--_size, 500px);
  height: var(--_size, 500px);
  background: radial-gradient(var(--sphere-accent), transparent 50%);

  opacity: 0;
  transition: opacity 0.5s;
}

.shiny:hover::after {
  opacity: 0.25;
}

.pricing-checkbox {
  width: 300px;
  height: 50px;
}

input.subscription-type {
  display: none;
}

/* Unchecked State */
input.subscription-type + label {
  height: 100%;
  width: 100%;
}

input.subscription-type + label > .status-switch {
  cursor: pointer;
  width: 100%;
  height: 100%;
  position: relative;

  /* Background and border styles */
  border-top: 1px solid var(--Card-Border, hsla(0, 0%, 100%, 0.15));
  border-right: 1px solid var(--Card-Border, hsla(0, 0%, 100%, 0.12));
  border-left: 1px solid var(--Card-Border, hsla(0, 0%, 100%, 0.12));
  border-bottom: 1px solid var(--Card-Border, hsla(0, 0%, 100%, 0.1));
  box-shadow: inset 0 1px 0 0 hsla(0, 0%, 100%, 0.1);
  color: #ffffff99;
  transition: all 0.5s ease;
  padding: 4px;
  border-radius: 100vw;
  background: #00000099;
}

input.subscription-type + label > .status-switch:before,
input.subscription-type + label > .status-switch:after {
  border-radius: 100vw;
  height: calc(100% - 8px);
  width: calc(50% - 6px);
  display: flex;
  align-items: center;
  position: absolute;
  justify-content: center;
  transition: all 0.3s ease;
  font-weight: 400;
}

input.subscription-type + label > .status-switch:before {
  background: radial-gradient(51.07% 92.4% at 51% 7.61%, #5a5a5a 0, #1a1a1a 100%);
  left: 6px;
  color: white;
  z-index: 10;
  content: attr(data-unchecked);
}

input.subscription-type + label > .status-switch:after {
  right: 0;
  content: attr(data-checked);
}

/* Checked State */
input.subscription-type:checked + label > .status-switch:after {
  left: 0;
  content: attr(data-unchecked);
}

input.subscription-type:checked + label > .status-switch:before {
  left: 50%;
  content: attr(data-checked);
}
