.darkroom-logo-first {
  animation: inout 2s ease alternate infinite;
  transform: scale(0.9);
  transition-timing-function: ease-in-out;
  transition-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
}

.darkroom-logo-second {
  animation: inout 2s ease alternate infinite;
  transform: scale(0.9);
  animation-delay: 0.6s;
}

.darkroom-logo-third {
  animation: inout 2s ease alternate infinite;
  transform: scale(0.9);
  animation-delay: 1.3s;
}

@keyframes inout {
  100% {
    transform: scale(1);
  }
}

.onoffswitch {
  position: relative;
  width: 32px;
  user-select: none;
}

.onoffswitch-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.onoffswitch-label {
  display: block;
  overflow: hidden;
  cursor: pointer;
  height: 12px;
  padding: 0;
  line-height: 12px;
  border: 0 solid #fff;
  border-radius: 18px;
  background-color: #dadada;
}

.onoffswitch-label::before {
  content: "";
  display: block;
  width: 18px;
  margin: -3px;
  background: #fff;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 24px;
  border: 0.1px solid #dadada;
  border-radius: 18px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 25%);
  transition: all 0.2s cubic-bezier(0, 0, 0, 0.1);
}

.onoffswitch-checkbox:checked + .onoffswitch-label {
  background-color: #dadada;
}

.onoffswitch-checkbox:checked + .onoffswitch-label,
.onoffswitch-checkbox:checked + .onoffswitch-label::before {
  border-color: #dadada;
  margin-left: 0;
}

.onoffswitch-checkbox:checked + .onoffswitch-label::before {
  right: -4px;
  background-color: #000;
  border: 0.1px solid #000;
  box-shadow: 0 4px 8px rgb(0 0 0 / 25%);
}

.spinner {
  position: relative;
  width: 24px;
  height: 24px;
}

.spinner .spinner-blade {
  position: absolute;
  top: 7.5px;
  left: 11px;
  width: 2.5px;
  height: 7.5px;
  border-radius: 1.25px;
  animation: spinnerblade 1s linear infinite;
  will-change: opacity;
}

.spinner .spinner-blade:nth-child(1) {
  transform: rotate(45deg) translateY(-7.5px);
  animation-delay: -1.625s;
}

.spinner .spinner-blade:nth-child(2) {
  transform: rotate(90deg) translateY(-7.5px);
  animation-delay: -1.5s;
}

.spinner .spinner-blade:nth-child(3) {
  transform: rotate(135deg) translateY(-7.5px);
  animation-delay: -1.375s;
}

.spinner .spinner-blade:nth-child(4) {
  transform: rotate(180deg) translateY(-7.5px);
  animation-delay: -1.25s;
}

.spinner .spinner-blade:nth-child(5) {
  transform: rotate(225deg) translateY(-7.5px);
  animation-delay: -1.125s;
}

.spinner .spinner-blade:nth-child(6) {
  transform: rotate(270deg) translateY(-7.5px);
  animation-delay: -1s;
}

.spinner .spinner-blade:nth-child(7) {
  transform: rotate(315deg) translateY(-7.5px);
  animation-delay: -0.875s;
}

.spinner .spinner-blade:nth-child(8) {
  transform: rotate(360deg) translateY(-7.5px);
  animation-delay: -0.75s;
}

@keyframes spinnerblade {
  0% {
    opacity: 0.85;
  }

  50% {
    opacity: 0.25;
  }

  100% {
    opacity: 0.25;
  }
}

.toast-base {
  visibility: hidden;
  width: 100%;
  position: fixed;
  bottom: 0;
  z-index: 1000;
  animation: fadein 0.5s, fadeout 0.5s 4s;
}

@keyframes fadein {
  from {
    bottom: -100px;
    opacity: 0;
  }

  to {
    bottom: 0;
    opacity: 1;
  }
}

@keyframes fadeout {
  from {
    bottom: 0;
    opacity: 1;
  }

  to {
    bottom: -100px;
    opacity: 0;
  }
}

.toggle-wrapper input.toggle {
  position: absolute;
  opacity: 0;
}

.toggle-wrapper input.toggle + label {
  position: relative;
  display: inline-block;
  width: 2rem;
  height: 0.75rem;
  background-color: rgb(209 213 219);
  border-radius: 9999px;
  user-select: none;
  transition: 0.4s ease;
  cursor: pointer;
}

.toggle-wrapper input.toggle + label::before {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  border-radius: 9999px;
  content: "";
  transition: 0.25s;
}

.toggle-wrapper input.toggle + label::after {
  position: absolute;
  display: block;
  content: "";
  background-color: rgb(255 255 255);
  top: -2px;
  left: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  box-shadow: 0 0 0 1px hsl(0deg 0% 0% / 10%), 0 4px 0 0 hsl(0deg 0% 0% / 4%), 0 4px 9px hsl(0deg 0% 0% / 13%), 0 3px 3px hsl(0deg 0% 0% / 5%);
  transition: 0.35s cubic-bezier(0.54, 1.6, 0.5, 1);
}

.toggle-wrapper input.toggle:checked + label::before {
  background-color: rgb(209 213 219);
  transition: width 0.2s cubic-bezier(0, 0, 0, 0.1);
}

.toggle-wrapper input.toggle:checked + label::after {
  background-color: rgb(0 0 0);
  left: 16px;
  top: -2px;
}

.loading .button-text {
  visibility: hidden;
  opacity: 0;
}

.purchase-button.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  border: 4px solid transparent;
  border-top-color: #fff;
  border-radius: 50%;
  animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
  from {
    transform: rotate(0turn);
  }

  to {
    transform: rotate(1turn);
  }
}

.reloading {
  border-radius: 9999px;
  width: 6rem;
  height: 1.5rem;
  background-image: linear-gradient(90deg, #ddd 0, #e8e8e8 40px, #ddd 80px);
  background-size: 20rem;
  animation: shine-lines 1.6s infinite linear;
}

.reloading > span {
  visibility: hidden;
  opacity: 0;
}

@keyframes shine-lines {
  0% {
    background-position: -50px;
  }

  40%,
  100% {
    background-position: 125px;
  }
}

.pulse-animation {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.ping-animation {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* flip card for admin/products#show */
.flip-card {
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.rotate {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.flip-card-back {
  transform: rotateY(180deg);
}

.text-pulse-animation {
  animation: soft-pulse 2s ease-in-out infinite;
}

@keyframes soft-pulse {
  0%,
  100% { opacity: 1; }
  50% { opacity: 0.7; }
}
