.flip-x {
  --tw-scale-x: -1;
}

.flip-y {
  --tw-scale-y: -1;
}
/* Based on https://glennmccomb.com/articles/building-a-pure-css-animated-svg-spinner */
/* We could have relied on calc() to simplify this but during development we realized */
/* using calc() broke the animation */

.spinner {
  --dash-base: 74;
  --dash-small: 60;
  --dash-large: 20;
  --stroke-width: 6;
  --size: var(--text--line-height);

  animation: 2.5s linear infinite svg-animation;
  height: var(--size);
  width: var(--size);

  &.spinner-xxl {
    --dash-base: 310;
    --dash-small: 280;
    --dash-large: 75;
    --stroke-width: 10;
    --size: var(--text-xxl--line-height);
  }

  &.spinner-xl {
    --dash-base: 150;
    --dash-small: 135;
    --dash-large: 50;
    --stroke-width: 7;
    --size: var(--text-xl--line-height);
  }

  &.spinner-lg {
    --dash-base: 100;
    --dash-small: 90;
    --dash-large: 55;
    --stroke-width: 4;
    --size: var(--text-lg--line-height);
  }

  &.spinner-sm {
    --dash-base: 38;
    --dash-small: 34;
    --dash-large: 18;
    --stroke-width: 3;
    --size: var(--text-sm--line-height);
  }

  & .segment {
    display: block;
    stroke: currentColor;
    fill: transparent;
    stroke-linecap: round;
    stroke-width: var(--stroke-width);
    transform-origin: 50% 50%;
  }

  & .segment-foreground {
    animation: 2s ease-in-out infinite both circle-animation;
    stroke-dasharray: var(--dash-base);
    stroke-opacity: 0.5;
  }

  & .segment-background {
    stroke-opacity: 0.5;
  }
}

@keyframes svg-animation {
  0% {
    transform: rotateZ(0deg);
  }

  100% {
    transform: rotateZ(360deg);
  }
}

@keyframes circle-animation {
  0%,
  25% {
    stroke-dashoffset: var(--dash-small);
    transform: rotate(0);
  }

  50%,
  75% {
    stroke-dashoffset: var(--dash-large);
    transform: rotate(45deg);
  }

  100% {
    stroke-dashoffset: var(--dash-small);
    transform: rotate(360deg);
  }
}
.btn {
  cursor: pointer;
  display: inline-flex;
  user-select: none;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border-width: var(--border-width);
  border-color: transparent;
  padding: var(--spacing-xxs);
  text-align: center;
  font-weight: bold;
  color: var(--color-text-semantic);
  outline: none;
  transition-property:
    color, background-color, border-color, text-decoration-color, fill, stroke,
    opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;

  &.btn-xs {
    border-width: var(--border-width);
    padding: 0;
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
  }

  &.btn-sm {
    border-width: var(--border-width);
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
  }

  &.btn-lg {
    border-width: var(--border-width-md);
    padding: var(--spacing-xs);
    font-size: var(--text-lg);
    line-height: var(--text-lg--line-height);
  }

  &.btn-rounded-none {
    border-radius: var(--radius-none);
  }

  &.btn-rounded-full {
    border-radius: 9999px;
  }

  &.btn-full-width {
    display: flex;
    flex-grow: 1;
    width: 100%;
  }

  &.btn-solid,
  &.btn-outline {
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
  }

  &:disabled {
    cursor: auto;
  }

  &:focus {
    outline: none;
    box-shadow: 0 0 0 2px;
  }

  &:active,
  &.btn-active {
    box-shadow: none;
  }

  &.btn-main {
    &:focus {
      box-shadow: 0 0 0 2px var(--color-main-dark);
    }

    &.btn-solid {
      background-color: var(--color-main);

      &:active,
      &.btn-active {
        background-color: var(--color-main-dark);
        color: var(--color-main);
      }

      &:disabled {
        background-color: var(--color-main-faded);
        color: var(--color-main-faded);

        &.btn-loading {
          color: var(--color-main);
        }
      }

      &:not(:disabled, :active):hover {
        background-color: var(--color-main-light);
      }
    }

    &.btn-outline {
      border-color: var(--color-main-faded);

      &:active,
      &.btn-active,
      &:focus {
        box-shadow: 0 0 0 2px var(--color-main-dark);
      }
    }

    &.btn-outline,
    &.btn-subtle {
      color: var(--color-main);

      &:disabled {
        color: var(--color-main-faded);

        &.btn-loading {
          color: var(--color-main);
        }
      }

      &:not(:disabled) {
        &:active {
          background-color: var(--color-main-faded);
          color: var(--color-main-faded);
        }

        &:hover,
        &.btn-active {
          background-color: var(--color-main-faded);
        }
      }
    }
  }

  &.btn-neutral {
    &:focus {
      box-shadow: 0 0 0 2px var(--color-neutral-dark);
    }

    &.btn-solid {
      background-color: var(--color-neutral);

      &:active,
      &.btn-active {
        background-color: var(--color-neutral-dark);
        color: var(--color-neutral);
      }

      &:disabled {
        background-color: var(--color-neutral-faded);
        color: var(--color-neutral-faded);

        &.btn-loading {
          color: var(--color-neutral);
        }
      }

      &:not(:disabled, :active):hover {
        background-color: var(--color-neutral-light);
      }
    }

    &.btn-outline {
      border-color: var(--color-neutral-faded);

      &:active,
      &.btn-active,
      &:focus {
        box-shadow: 0 0 0 2px var(--color-neutral-dark);
      }
    }

    &.btn-outline,
    &.btn-subtle {
      color: var(--color-neutral);

      &:disabled {
        color: var(--color-neutral-faded);

        &.btn-loading {
          color: var(--color-neutral);
        }
      }

      &:not(:disabled) {
        &:active {
          background-color: var(--color-neutral-faded);
          color: var(--color-neutral-faded);
        }

        &:hover,
        &.btn-active {
          background-color: var(--color-neutral-faded);
        }
      }
    }
  }

  &.btn-info {
    &:focus {
      box-shadow: 0 0 0 2px var(--color-info-dark);
    }

    &.btn-solid {
      background-color: var(--color-info);

      &:active,
      &.btn-active {
        background-color: var(--color-info-dark);
        color: var(--color-info);
      }

      &:disabled {
        background-color: var(--color-info-faded);
        color: var(--color-info-faded);

        &.btn-loading {
          color: var(--color-info);
        }
      }

      &:not(:disabled, :active):hover {
        background-color: var(--color-info-light);
      }
    }

    &.btn-outline {
      border-color: var(--color-info-faded);

      &:active,
      &.btn-active,
      &:focus {
        box-shadow: 0 0 0 2px var(--color-info-dark);
      }
    }

    &.btn-outline,
    &.btn-subtle {
      color: var(--color-info);

      &:disabled {
        color: var(--color-info-faded);

        &.btn-loading {
          color: var(--color-info);
        }
      }

      &:not(:disabled) {
        &:active {
          background-color: var(--color-info-faded);
          color: var(--color-info-faded);
        }

        &:hover,
        &.btn-active {
          background-color: var(--color-info-faded);
        }
      }
    }
  }

  &.btn-positive {
    &:focus {
      box-shadow: 0 0 0 2px var(--color-positive-dark);
    }

    &.btn-solid {
      background-color: var(--color-positive);

      &:active,
      &.btn-active {
        background-color: var(--color-positive-dark);
        color: var(--color-positive);
      }

      &:disabled {
        background-color: var(--color-positive-faded);
        color: var(--color-positive-faded);

        &.btn-loading {
          color: var(--color-positive);
        }
      }

      &:not(:disabled, :active):hover {
        background-color: var(--color-positive-light);
      }
    }

    &.btn-outline {
      border-color: var(--color-positive-faded);

      &:active,
      &.btn-active,
      &:focus {
        box-shadow: 0 0 0 2px var(--color-positive-dark);
      }
    }

    &.btn-outline,
    &.btn-subtle {
      color: var(--color-positive);

      &:disabled {
        color: var(--color-positive-faded);

        &.btn-loading {
          color: var(--color-positive);
        }
      }

      &:not(:disabled) {
        &:active {
          background-color: var(--color-positive-faded);
          color: var(--color-positive-faded);
        }

        &:hover,
        &.btn-active {
          background-color: var(--color-positive-faded);
        }
      }
    }
  }

  &.btn-caution {
    &:focus {
      box-shadow: 0 0 0 2px var(--color-caution-dark);
    }

    &.btn-solid {
      background-color: var(--color-caution);

      &:active,
      &.btn-active {
        background-color: var(--color-caution-dark);
        color: var(--color-caution);
      }

      &:disabled {
        background-color: var(--color-caution-faded);
        color: var(--color-caution-faded);

        &.btn-loading {
          color: var(--color-caution);
        }
      }

      &:not(:disabled, :active):hover {
        background-color: var(--color-caution-light);
      }
    }

    &.btn-outline {
      border-color: var(--color-caution-faded);

      &:active,
      &.btn-active,
      &:focus {
        box-shadow: 0 0 0 2px var(--color-caution-dark);
      }
    }

    &.btn-outline,
    &.btn-subtle {
      color: var(--color-caution);

      &:disabled {
        color: var(--color-caution-faded);

        &.btn-loading {
          color: var(--color-caution);
        }
      }

      &:not(:disabled) {
        &:active {
          background-color: var(--color-caution-faded);
          color: var(--color-caution-faded);
        }

        &:hover,
        &.btn-active {
          background-color: var(--color-caution-faded);
        }
      }
    }
  }

  &.btn-critical {
    &:focus {
      box-shadow: 0 0 0 2px var(--color-critical-dark);
    }

    &.btn-solid {
      background-color: var(--color-critical);

      &:active,
      &.btn-active {
        background-color: var(--color-critical-dark);
        color: var(--color-critical);
      }

      &:disabled {
        background-color: var(--color-critical-faded);
        color: var(--color-critical-faded);

        &.btn-loading {
          color: var(--color-critical);
        }
      }

      &:not(:disabled, :active):hover {
        background-color: var(--color-critical-light);
      }
    }

    &.btn-outline {
      border-color: var(--color-critical-faded);

      &:active,
      &.btn-active,
      &:focus {
        box-shadow: 0 0 0 2px var(--color-critical-dark);
      }
    }

    &.btn-outline,
    &.btn-subtle {
      color: var(--color-critical);

      &:disabled {
        color: var(--color-critical-faded);

        &.btn-loading {
          color: var(--color-critical);
        }
      }

      &:not(:disabled) {
        &:active {
          background-color: var(--color-critical-faded);
          color: var(--color-critical-faded);
        }

        &:hover,
        &.btn-active {
          background-color: var(--color-critical-faded);
        }
      }
    }
  }
}
.btn-group {
  display: flex;
  column-gap: 0.125rem;

  & .btn {
    border-radius: var(--radius-none);

    &:first-child {
      border-top-left-radius: var(--radius);
      border-bottom-left-radius: var(--radius);
    }

    &:last-child {
      border-top-right-radius: var(--radius);
      border-bottom-right-radius: var(--radius);
    }

    &:only-child {
      border-radius: var(--radius);
    }
  }
}
.modal-dialog {
  padding: var(--spacing-base);
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: var(--z-backdrop);
  background-color: var(--color-overlay);
  display: flex;
  align-items: center;
  backdrop-filter: blur(1px);
}

.modal-element {
  width: 100%;
  border-radius: var(--radius);
  background-color: var(--color-surface);
  color: var(--color-text);
  box-shadow:
    0 20px 25px -5px rgb(0 0 0 / 10%),
    0 8px 10px -6px rgb(0 0 0 / 10%);
  margin-left: auto;
  margin-right: auto;
  margin-top: auto;
  outline: 0;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 100%;

  @media (min-width: 768px) {
    margin-bottom: auto;
  }
}
:root {
  --toastify-color-light: #fff;
  --toastify-color-dark: #121212;
  --toastify-color-info: #3498db;
  --toastify-color-success: #07bc0c;
  --toastify-color-warning: #f1c40f;
  --toastify-color-error: hsl(6, 78%, 57%);
  --toastify-color-transparent: rgba(255, 255, 255, 0.7);

  --toastify-icon-color-info: var(--toastify-color-info);
  --toastify-icon-color-success: var(--toastify-color-success);
  --toastify-icon-color-warning: var(--toastify-color-warning);
  --toastify-icon-color-error: var(--toastify-color-error);

  --toastify-container-width: fit-content;
  --toastify-toast-width: 320px;
  --toastify-toast-offset: 16px;
  --toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));
  --toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));
  --toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));
  --toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));
  --toastify-toast-background: #fff;
  --toastify-toast-padding: 14px;
  --toastify-toast-min-height: 64px;
  --toastify-toast-max-height: 800px;
  --toastify-toast-bd-radius: 6px;
  --toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  --toastify-font-family: sans-serif;
  --toastify-z-index: 9999;
  --toastify-text-color-light: #757575;
  --toastify-text-color-dark: #fff;

  /* Used only for colored theme */
  --toastify-text-color-info: #fff;
  --toastify-text-color-success: #fff;
  --toastify-text-color-warning: #fff;
  --toastify-text-color-error: #fff;

  --toastify-spinner-color: #616161;
  --toastify-spinner-color-empty-area: #e0e0e0;
  --toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);
  --toastify-color-progress-dark: #bb86fc;
  --toastify-color-progress-info: var(--toastify-color-info);
  --toastify-color-progress-success: var(--toastify-color-success);
  --toastify-color-progress-warning: var(--toastify-color-warning);
  --toastify-color-progress-error: var(--toastify-color-error);
  /* used to control the opacity of the progress trail */
  --toastify-color-progress-bgo: 0.2;
}

.Toastify__toast-container {
  z-index: var(--toastify-z-index);
  -webkit-transform: translate3d(0, 0, var(--toastify-z-index));
  position: fixed;
  width: var(--toastify-container-width);
  box-sizing: border-box;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.Toastify__toast-container--top-left {
  top: var(--toastify-toast-top);
  left: var(--toastify-toast-left);
}

.Toastify__toast-container--top-center {
  top: var(--toastify-toast-top);
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
}

.Toastify__toast-container--top-right {
  top: var(--toastify-toast-top);
  right: var(--toastify-toast-right);
  align-items: end;
}

.Toastify__toast-container--bottom-left {
  bottom: var(--toastify-toast-bottom);
  left: var(--toastify-toast-left);
}

.Toastify__toast-container--bottom-center {
  bottom: var(--toastify-toast-bottom);
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
}

.Toastify__toast-container--bottom-right {
  bottom: var(--toastify-toast-bottom);
  right: var(--toastify-toast-right);
  align-items: end;
}

.Toastify__toast {
  --y: 0;
  position: relative;
  touch-action: none;
  width: var(--toastify-toast-width);
  min-height: var(--toastify-toast-min-height);
  box-sizing: border-box;
  margin-bottom: 1rem;
  padding: var(--toastify-toast-padding);
  border-radius: var(--toastify-toast-bd-radius);
  box-shadow: var(--toastify-toast-shadow);
  max-height: var(--toastify-toast-max-height);
  font-family: var(--toastify-font-family);
  /* webkit only issue #791 */
  z-index: 0;
  /* inner swag */
  display: flex;
  flex: 1 auto;
  align-items: center;
  word-break: break-word;
}

@media only screen and (max-width: 480px) {
  .Toastify__toast-container {
    width: 100vw;
    left: env(safe-area-inset-left);
    margin: 0;
  }
  .Toastify__toast-container--top-left,
  .Toastify__toast-container--top-center,
  .Toastify__toast-container--top-right {
    top: env(safe-area-inset-top);
    transform: translateX(0);
  }
  .Toastify__toast-container--bottom-left,
  .Toastify__toast-container--bottom-center,
  .Toastify__toast-container--bottom-right {
    bottom: env(safe-area-inset-bottom);
    transform: translateX(0);
  }
  .Toastify__toast-container--rtl {
    right: env(safe-area-inset-right);
    left: initial;
  }
  .Toastify__toast {
    --toastify-toast-width: 100%;
    margin-bottom: 0;
    border-radius: 0;
  }
}

.Toastify__toast-container[data-stacked='true'] {
  width: var(--toastify-toast-width);
}

.Toastify__toast--stacked {
  position: absolute;
  width: 100%;
  transform: translate3d(0, var(--y), 0) scale(var(--s));
  transition: transform 0.3s;
}

.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,
.Toastify__toast--stacked[data-collapsed] .Toastify__close-button {
  transition: opacity 0.1s;
}

.Toastify__toast--stacked[data-collapsed='false'] {
  overflow: visible;
}

.Toastify__toast--stacked[data-collapsed='true']:not(:last-child) > * {
  opacity: 0;
}

.Toastify__toast--stacked:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: calc(var(--g) * 1px);
  bottom: 100%;
}

.Toastify__toast--stacked[data-pos='top'] {
  top: 0;
}

.Toastify__toast--stacked[data-pos='bot'] {
  bottom: 0;
}

.Toastify__toast--stacked[data-pos='bot'].Toastify__toast--stacked:before {
  transform-origin: top;
}

.Toastify__toast--stacked[data-pos='top'].Toastify__toast--stacked:before {
  transform-origin: bottom;
}

.Toastify__toast--stacked:before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  transform: scaleY(3);
  z-index: -1;
}

.Toastify__toast--rtl {
  direction: rtl;
}

.Toastify__toast--close-on-click {
  cursor: pointer;
}

.Toastify__toast-icon {
  margin-inline-end: 10px;
  width: 22px;
  flex-shrink: 0;
  display: flex;
}

.Toastify--animate {
  animation-fill-mode: both;
  animation-duration: 0.5s;
}

.Toastify--animate-icon {
  animation-fill-mode: both;
  animation-duration: 0.3s;
}

.Toastify__toast-theme--dark {
  background: var(--toastify-color-dark);
  color: var(--toastify-text-color-dark);
}

.Toastify__toast-theme--light {
  background: var(--toastify-color-light);
  color: var(--toastify-text-color-light);
}

.Toastify__toast-theme--colored.Toastify__toast--default {
  background: var(--toastify-color-light);
  color: var(--toastify-text-color-light);
}

.Toastify__toast-theme--colored.Toastify__toast--info {
  color: var(--toastify-text-color-info);
  background: var(--toastify-color-info);
}

.Toastify__toast-theme--colored.Toastify__toast--success {
  color: var(--toastify-text-color-success);
  background: var(--toastify-color-success);
}

.Toastify__toast-theme--colored.Toastify__toast--warning {
  color: var(--toastify-text-color-warning);
  background: var(--toastify-color-warning);
}

.Toastify__toast-theme--colored.Toastify__toast--error {
  color: var(--toastify-text-color-error);
  background: var(--toastify-color-error);
}

.Toastify__progress-bar-theme--light {
  background: var(--toastify-color-progress-light);
}

.Toastify__progress-bar-theme--dark {
  background: var(--toastify-color-progress-dark);
}

.Toastify__progress-bar--info {
  background: var(--toastify-color-progress-info);
}

.Toastify__progress-bar--success {
  background: var(--toastify-color-progress-success);
}

.Toastify__progress-bar--warning {
  background: var(--toastify-color-progress-warning);
}

.Toastify__progress-bar--error {
  background: var(--toastify-color-progress-error);
}

.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {
  background: var(--toastify-color-transparent);
}

.Toastify__close-button {
  color: #fff;
  position: absolute;
  top: 6px;
  right: 6px;
  background: transparent;
  outline: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s ease;
  z-index: 1;
}

.Toastify__toast--rtl .Toastify__close-button {
  left: 6px;
  right: unset;
}

.Toastify__close-button--light {
  color: #000;
  opacity: 0.3;
}

.Toastify__close-button > svg {
  fill: currentColor;
  height: 16px;
  width: 14px;
}

.Toastify__close-button:hover,
.Toastify__close-button:focus {
  opacity: 1;
}

@keyframes Toastify__trackProgress {
  0% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}

.Toastify__progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.7;
  transform-origin: left;
}

.Toastify__progress-bar--animated {
  animation: Toastify__trackProgress linear 1 forwards;
}

.Toastify__progress-bar--controlled {
  transition: transform 0.2s;
}

.Toastify__progress-bar--rtl {
  right: 0;
  left: initial;
  transform-origin: right;
  border-bottom-left-radius: initial;
}

.Toastify__progress-bar--wrp {
  position: absolute;
  overflow: hidden;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  border-bottom-left-radius: var(--toastify-toast-bd-radius);
  border-bottom-right-radius: var(--toastify-toast-bd-radius);
}

.Toastify__progress-bar--wrp[data-hidden='true'] {
  opacity: 0;
}

.Toastify__progress-bar--bg {
  opacity: var(--toastify-color-progress-bgo);
  width: 100%;
  height: 100%;
}

.Toastify__spinner {
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 2px solid;
  border-radius: 100%;
  border-color: var(--toastify-spinner-color-empty-area);
  border-right-color: var(--toastify-spinner-color);
  animation: Toastify__spin 0.65s linear infinite;
}

@keyframes Toastify__bounceInRight {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(3000px, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(-25px, 0, 0);
  }
  75% {
    transform: translate3d(10px, 0, 0);
  }
  90% {
    transform: translate3d(-5px, 0, 0);
  }
  to {
    transform: none;
  }
}

@keyframes Toastify__bounceOutRight {
  20% {
    opacity: 1;
    transform: translate3d(-20px, var(--y), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(2000px, var(--y), 0);
  }
}

@keyframes Toastify__bounceInLeft {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    transform: translate3d(-3000px, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(25px, 0, 0);
  }
  75% {
    transform: translate3d(-10px, 0, 0);
  }
  90% {
    transform: translate3d(5px, 0, 0);
  }
  to {
    transform: none;
  }
}

@keyframes Toastify__bounceOutLeft {
  20% {
    opacity: 1;
    transform: translate3d(20px, var(--y), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(-2000px, var(--y), 0);
  }
}

@keyframes Toastify__bounceInUp {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(0, 3000px, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, -20px, 0);
  }
  75% {
    transform: translate3d(0, 10px, 0);
  }
  90% {
    transform: translate3d(0, -5px, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes Toastify__bounceOutUp {
  20% {
    transform: translate3d(0, calc(var(--y) - 10px), 0);
  }
  40%,
  45% {
    opacity: 1;
    transform: translate3d(0, calc(var(--y) + 20px), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -2000px, 0);
  }
}

@keyframes Toastify__bounceInDown {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    transform: translate3d(0, -3000px, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, 25px, 0);
  }
  75% {
    transform: translate3d(0, -10px, 0);
  }
  90% {
    transform: translate3d(0, 5px, 0);
  }
  to {
    transform: none;
  }
}

@keyframes Toastify__bounceOutDown {
  20% {
    transform: translate3d(0, calc(var(--y) - 10px), 0);
  }
  40%,
  45% {
    opacity: 1;
    transform: translate3d(0, calc(var(--y) + 20px), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 2000px, 0);
  }
}

.Toastify__bounce-enter--top-left,
.Toastify__bounce-enter--bottom-left {
  animation-name: Toastify__bounceInLeft;
}

.Toastify__bounce-enter--top-right,
.Toastify__bounce-enter--bottom-right {
  animation-name: Toastify__bounceInRight;
}

.Toastify__bounce-enter--top-center {
  animation-name: Toastify__bounceInDown;
}

.Toastify__bounce-enter--bottom-center {
  animation-name: Toastify__bounceInUp;
}

.Toastify__bounce-exit--top-left,
.Toastify__bounce-exit--bottom-left {
  animation-name: Toastify__bounceOutLeft;
}

.Toastify__bounce-exit--top-right,
.Toastify__bounce-exit--bottom-right {
  animation-name: Toastify__bounceOutRight;
}

.Toastify__bounce-exit--top-center {
  animation-name: Toastify__bounceOutUp;
}

.Toastify__bounce-exit--bottom-center {
  animation-name: Toastify__bounceOutDown;
}

@keyframes Toastify__zoomIn {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  50% {
    opacity: 1;
  }
}

@keyframes Toastify__zoomOut {
  from {
    opacity: 1;
  }
  50% {
    opacity: 0;
    transform: translate3d(0, var(--y), 0) scale3d(0.3, 0.3, 0.3);
  }
  to {
    opacity: 0;
  }
}

.Toastify__zoom-enter {
  animation-name: Toastify__zoomIn;
}

.Toastify__zoom-exit {
  animation-name: Toastify__zoomOut;
}

@keyframes Toastify__flipIn {
  from {
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    animation-timing-function: ease-in;
    opacity: 0;
  }
  40% {
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    animation-timing-function: ease-in;
  }
  60% {
    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    opacity: 1;
  }
  80% {
    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
  }
  to {
    transform: perspective(400px);
  }
}

@keyframes Toastify__flipOut {
  from {
    transform: translate3d(0, var(--y), 0) perspective(400px);
  }
  30% {
    transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, -20deg);
    opacity: 1;
  }
  to {
    transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, 90deg);
    opacity: 0;
  }
}

.Toastify__flip-enter {
  animation-name: Toastify__flipIn;
}

.Toastify__flip-exit {
  animation-name: Toastify__flipOut;
}

@keyframes Toastify__slideInRight {
  from {
    transform: translate3d(110%, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}

@keyframes Toastify__slideInLeft {
  from {
    transform: translate3d(-110%, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}

@keyframes Toastify__slideInUp {
  from {
    transform: translate3d(0, 110%, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}

@keyframes Toastify__slideInDown {
  from {
    transform: translate3d(0, -110%, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}

@keyframes Toastify__slideOutRight {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(110%, var(--y), 0);
  }
}

@keyframes Toastify__slideOutLeft {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(-110%, var(--y), 0);
  }
}

@keyframes Toastify__slideOutDown {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(0, 500px, 0);
  }
}

@keyframes Toastify__slideOutUp {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(0, -500px, 0);
  }
}

.Toastify__slide-enter--top-left,
.Toastify__slide-enter--bottom-left {
  animation-name: Toastify__slideInLeft;
}

.Toastify__slide-enter--top-right,
.Toastify__slide-enter--bottom-right {
  animation-name: Toastify__slideInRight;
}

.Toastify__slide-enter--top-center {
  animation-name: Toastify__slideInDown;
}

.Toastify__slide-enter--bottom-center {
  animation-name: Toastify__slideInUp;
}

.Toastify__slide-exit--top-left,
.Toastify__slide-exit--bottom-left {
  animation-name: Toastify__slideOutLeft;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}

.Toastify__slide-exit--top-right,
.Toastify__slide-exit--bottom-right {
  animation-name: Toastify__slideOutRight;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}

.Toastify__slide-exit--top-center {
  animation-name: Toastify__slideOutUp;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}

.Toastify__slide-exit--bottom-center {
  animation-name: Toastify__slideOutDown;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}

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

:root {
  --toastify-color-light: var(--color-surface);
  --toastify-color-dark: var(--color-surface);
  --toastify-color-info: var(--color-info-dark);
  --toastify-color-success: var(--color-positive-dark);
  --toastify-color-warning: var(--color-caution-dark);
  --toastify-color-error: var(--color-critical-dark);
  --toastify-color-transparent: rgb(255 255 255 / 70%);

  --toastify-icon-color-info: var(--color-info);
  --toastify-icon-color-success: var(--color-positive);
  --toastify-icon-color-warning: var(--color-caution);
  --toastify-icon-color-error: var(--color-critical);

  --toastify-toast-width: 400px;
  --toastify-toast-background: var(--color-surface);
  --toastify-toast-min-height: 64px;
  --toastify-toast-max-height: 800px;
  --toastify-font-family: sans-serif;
  --toastify-z-index: var(--z-popover);

  --toastify-text-color-light: var(--color-text);
  --toastify-text-color-dark: var(--color-text);

  --toastify-text-color-info: var(--color-text-semantic);
  --toastify-text-color-success: var(--color-text-semantic);
  --toastify-text-color-warning: var(--color-text-semantic);
  --toastify-text-color-error: var(--color-text-semantic);

  --toastify-spinner-color: var(--color-text);
  --toastify-spinner-color-empty-area: var(--color-text-subtle);

  --toastify-color-progress-light: linear-gradient(
    to right,
    var(--color-main-dark),
    var(--color-main)
  );
  --toastify-color-progress-dark: linear-gradient(
    to right,
    var(--color-main-dark),
    var(--color-main)
  );
  --toastify-color-progress-info: var(--color-info);
  --toastify-color-progress-success: var(--color-positive);
  --toastify-color-progress-warning: var(--color-caution);
  --toastify-color-progress-error: var(--color-critical);
}
.skeleton {
  background: linear-gradient(
    -90deg,
    var(--color-surface-subtle) 0%,
    var(--color-surface-strong) 50%,
    var(--color-surface-subtle) 100%
  );
  background-size: 400% 400%;
  animation: skeleton-wave 1.2s ease-in-out infinite;
}

@keyframes skeleton-wave {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: -135% 0;
  }
}
.badge {
  font-weight: bold;
  display: inline;
  padding-left: var(--spacing-xxs);
  padding-right: var(--spacing-xxs);
  border-radius: var(--radius);
  text-align: center;
  color: var(--color-text-semantic);
  transition-property:
    color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  min-width: var(--text-sm--line-height);

  &.badge-main {
    background-color: var(--color-main);

    &.badge-subtle {
      background-color: var(--color-main-faded);
      color: var(--color-main);
    }
  }

  &.badge-neutral {
    background-color: var(--color-neutral);

    &.badge-subtle {
      background-color: var(--color-neutral-faded);
      color: var(--color-neutral);
    }
  }

  &.badge-info {
    background-color: var(--color-info);

    &.badge-subtle {
      background-color: var(--color-info-faded);
      color: var(--color-info);
    }
  }

  &.badge-positive {
    background-color: var(--color-positive);

    &.badge-subtle {
      background-color: var(--color-positive-faded);
      color: var(--color-positive);
    }
  }

  &.badge-caution {
    background-color: var(--color-caution);

    &.badge-subtle {
      background-color: var(--color-caution-faded);
      color: var(--color-caution);
    }
  }

  &.badge-critical {
    background-color: var(--color-critical);

    &.badge-subtle {
      background-color: var(--color-critical-faded);
      color: var(--color-critical);
    }
  }
}
.bottom-menu {
  display: flex;
  overflow: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none; /* Firefox */

  &::-webkit-scrollbar {
    display: none;
  }
}
/* stylelint-disable selector-no-id, declaration-no-important */
[data-rsbs-root] {
  --rsbs-antigap-scale-y: 0;
  --rsbs-backdrop-bg: rgb(0 0 0 / 60%);
  --rsbs-backdrop-opacity: 1;
  --rsbs-bg: var(--color-surface);
  --rsbs-content-opacity: 1;
  --rsbs-handle-bg: var(--color-text-subtle);
  --rsbs-max-w: auto;
  --rsbs-ml: env(safe-area-inset-left);
  --rsbs-mr: env(safe-area-inset-right);
  --rsbs-overlay-h: 0;
  --rsbs-overlay-rounded: 16px;
  --rsbs-overlay-translate-y: 0;
}

[data-rsbs-overlay] {
  border-top-left-radius: var(--rsbs-overlay-rounded);
  border-top-right-radius: var(--rsbs-overlay-rounded);
  display: flex;
  background: var(--rsbs-bg);
  flex-direction: column;
  height: var(--rsbs-overlay-h);
  transform: translate3d(0, var(--rsbs-overlay-translate-y), 0);
  will-change: height;
}

[data-rsbs-overlay]:focus {
  outline: none;
}

[data-rsbs-is-blocking='false'] [data-rsbs-overlay] {
  box-shadow:
    0 -5px 60px 0 rgb(38 89 115 / 11%),
    0 -1px 0 rgb(38 89 115 / 5%);
}

[data-rsbs-overlay],
[data-rsbs-root]::after {
  max-width: var(--rsbs-max-w);
  margin-left: var(--rsbs-ml);
  margin-right: var(--rsbs-mr);
}

[data-rsbs-overlay],
[data-rsbs-backdrop],
[data-rsbs-root]::after {
  z-index: var(--z-popover);
  overscroll-behavior: none;
  touch-action: none;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

[data-rsbs-backdrop] {
  top: -60px;
  bottom: -60px;
  background-color: var(--rsbs-backdrop-bg);
  will-change: opacity;
  cursor: pointer;
  opacity: 1;
}

[data-rsbs-is-dismissable='false'] [data-rsbs-backdrop] {
  cursor: ns-resize;
}

[data-rsbs-root]::after {
  content: '';
  pointer-events: none;
  background: var(--rsbs-bg);
  height: 1px;
  transform-origin: bottom;
  transform: scale3d(1, var(--rsbs-antigap-scale-y), 1);
  will-change: transform;
}

[data-rsbs-footer],
[data-rsbs-header] {
  flex-shrink: 0;
  cursor: ns-resize;
  padding: 16px;
}

[data-rsbs-header] {
  text-align: center;
  user-select: none;
  box-shadow: 0 1px 0 rgb(46 59 66 / calc(var(--rsbs-content-opacity) * 0.125));
  z-index: 1;
  padding-top: calc(20px + env(safe-area-inset-top));
  padding-bottom: 8px;
}

[data-rsbs-header]::before {
  position: absolute;
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  top: calc(8px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  background-color: var(--rsbs-handle-bg);
}

@media (min-resolution: 2dppx) {
  [data-rsbs-header]::before {
    transform: translateX(-50%) scaleY(0.75);
  }
}

/* [data-rsbs-content] {
  !* The overflow hidden is to ensure any margin on child nodes are included when the resize observer is measuring the height *!
  overflow: hidden;
} */

[data-rsbs-has-header='false'] [data-rsbs-header] {
  box-shadow: none;
  padding-top: calc(12px + env(safe-area-inset-top));
}

[data-rsbs-scroll] {
  flex-shrink: 1;
  flex-grow: 1;
  -webkit-tap-highlight-color: revert;
  -webkit-touch-callout: revert;
  user-select: auto;
  /* overflow: auto; */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

[data-rsbs-scroll]:focus {
  outline: none;
}

[data-rsbs-has-footer='false'] [data-rsbs-content] {
  padding-bottom: env(safe-area-inset-bottom);
}

[data-rsbs-footer] {
  box-shadow:
    0 -1px 0 rgb(46 59 66 / calc(var(--rsbs-content-opacity) * 0.125)),
    0 2px 0 var(--rsbs-bg);
  overflow: hidden;
  z-index: 1;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

[data-rsbs-is-dismissable='true'],
[data-rsbs-is-dismissable='false']:matches(
  [data-rsbs-state='opening'],
  [data-rsbs-state='closing']
) {
  & :is([data-rsbs-header], [data-rsbs-scroll], [data-rsbs-footer]) > * {
    opacity: var(--rsbs-content-opacity);
  }

  & [data-rsbs-backdrop] {
    opacity: var(--rsbs-backdrop-opacity);
  }
}

[data-rsbs-state='closed'],
[data-rsbs-state='closing'] {
  /* Allows interactions on the rest of the page before the close transition is finished */
  pointer-events: none;
}
.context-menu-option {
  background-color: var(--color-surface-subtle);
  padding: var(--spacing-base) var(--spacing-sm);
  user-select: none;
  cursor: pointer;

  &:not(.context-menu-disabled-option) {
    &:hover {
      background-color: var(--color-surface);
      color: var(--color-text-strong);
      transition-property:
        color, background-color, border-color, text-decoration-color, fill,
        stroke, opacity, box-shadow, transform, filter, backdrop-filter;
      transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
      transition-duration: 150ms;
    }

    &:first-child {
      border-radius: var(--radius) var(--radius) 0 0;
    }

    &:last-child {
      border-radius: 0 0 var(--radius) var(--radius);
    }

    &:active {
      background-color: var(--color-surface-strong);
      color: var(--color-text-subtle);
    }
  }

  &.context-menu-disabled-option {
    cursor: not-allowed;
    opacity: 0.5;
  }
}
.context-menu-container {
  position: absolute;
  background-color: var(--color-surface-subtle);
  border-radius: var(--radius);
  box-shadow:
    0 1px 3px 0 rgb(0 0 0 / 10%),
    0 1px 2px -1px rgb(0 0 0 / 10%);
  min-width: 250px;
}
.copy-text-wrapper {
  display: inline-flex;
  align-items: flex-end;
  position: relative;

  & .copy-text-button {
    margin-left: var(--spacing-xxs);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    right: 0;

    & .copy-text-status {
      background-color: var(--color-surface);
      font-weight: 300;
      padding-left: var(--spacing-xxs);
      padding-right: var(--spacing-xxs);
      border-radius: var(--radius-md) 0 0 var(--radius-md);
      color: var(--color-text-strong);
      font-size: var(--text-sm);
      transition-property:
        color, background-color, border-color, text-decoration-color, fill,
        stroke, opacity, box-shadow, transform, filter, backdrop-filter;
      transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
      transition-duration: 150ms;
      min-width: max-content;
      text-align: right;
      position: absolute;
      right: 100%;
      top: 50%;
      transform-origin: right;
      transform: translate(0%, -50%) scale(0, 1);
      opacity: 0;
    }

    &:hover .copy-text-status {
      transform: translate(0%, -50%) scale(1, 1);
      opacity: 1;
    }

    & .copy-text-icon {
      background-color: var(--color-surface);
      border-radius: var(--radius);
      transition-property:
        color, background-color, border-color, text-decoration-color, fill,
        stroke, opacity, box-shadow, transform, filter, backdrop-filter;
      transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
      transition-duration: 150ms;
      padding: var(--spacing-xxs);
      isolation: isolate;
      color: var(--color-text-strong);

      &.copy-text-icon-copied {
        color: var(--color-positive);
      }
    }

    &:hover .copy-text-icon:not(.copy-text-icon-copied) {
      color: var(--color-main);
    }
  }

  &.copy-text-wrapper-only-hover {
    & .copy-text-button {
      transition-property:
        color, background-color, border-color, text-decoration-color, fill,
        stroke, opacity, box-shadow, transform, filter, backdrop-filter;
      transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
      transition-duration: 150ms;
      position: absolute;
      opacity: 0;
    }

    &:hover .copy-text-button {
      opacity: 1;
    }
  }
}
input.form-field,
textarea.form-field {
  border-radius: var(--radius-md);
  border-width: var(--border-width);
  border-color: transparent;
  background-color: var(--color-input-background);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  transition-property:
    color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;

  &::placeholder {
    color: var(--color-neutral);
  }

  &:focus {
    border-color: var(--color-main);
    outline: none;
    box-shadow: 0 0 0 1px var(--color-main);
  }
}

.form-field-error {
  &:focus {
    border-color: var(--color-critical);
    box-shadow: 0 0 0 1px var(--color-critical);
  }
}

.form-field-success {
  &:focus {
    border-color: var(--color-positive);
    box-shadow: 0 0 0 1px var(--color-positive);
  }
}

.form-field-input-wrapper {
  width: 100%;
  border-radius: var(--radius);
  border-width: var(--border-width);
  border-color: transparent;
  background-color: var(--color-input-background);
  transition-property:
    color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;

  &:focus-within {
    border-color: var(--color-main);
    outline: none;
    box-shadow: 0 0 0 1px var(--color-main);
  }

  & .form-field {
    width: 100%;
    border: none;
    background-color: transparent;

    &:focus {
      box-shadow: none;
    }
  }

  &.form-field-error {
    &:focus-within {
      border-color: var(--color-critical);
      box-shadow: 0 0 0 1px var(--color-critical);
    }
  }

  &.form-field-success {
    &:focus-within {
      border-color: var(--color-positive);
      box-shadow: 0 0 0 1px var(--color-positive);
    }
  }
}

input.form-field:disabled,
textarea.form-field:disabled,
.form-field-disabled {
  background-color: var(--color-input-background-disabled);
  color: var(--color-neutral-faded);

  &:hover {
    cursor: not-allowed;
  }
}

.form-field-select {
  & > option {
    background-color: var(--color-input-background);
    color: var(--color-text);
  }
}

label {
  cursor: pointer;
}
.progress-bar-track {
  background-color: var(--color-surface-strong);
  overflow: hidden;
  width: 100%;

  &.progress-bar-sm {
    height: 6px;
  }

  &.progress-bar-base {
    height: 8px;
  }

  &.progress-bar-lg {
    height: 12px;
  }
}

/* Corner rounding — applied to both track and fill so the ends match. */
.progress-bar-rounded-full {
  border-radius: 9999px;
}

.progress-bar-rounded-default {
  border-radius: var(--radius);
}

.progress-bar-rounded-none {
  border-radius: 0;
}

.progress-bar-fill {
  height: 100%;
  transition-property: width;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;

  &.progress-bar-main {
    background-color: var(--color-main);
  }

  &.progress-bar-neutral {
    background-color: var(--color-neutral);
  }

  &.progress-bar-positive {
    background-color: var(--color-positive);
  }

  &.progress-bar-caution {
    background-color: var(--color-caution);
  }

  &.progress-bar-critical {
    background-color: var(--color-critical);
  }

  &.progress-bar-info {
    background-color: var(--color-info);
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress-bar-fill {
    transition-duration: 0ms;
  }
}
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xxs);
}

.status-dot-indicator {
  position: relative;
  display: inline-flex;
  flex: none;
  border-radius: 9999px;

  &.status-dot-main {
    background-color: var(--color-main);
  }

  &.status-dot-neutral {
    background-color: var(--color-neutral);
  }

  &.status-dot-positive {
    background-color: var(--color-positive);
  }

  &.status-dot-caution {
    background-color: var(--color-caution);
  }

  &.status-dot-critical {
    background-color: var(--color-critical);
  }

  &.status-dot-info {
    background-color: var(--color-info);
  }
}

.status-dot-base .status-dot-indicator {
  width: 0.5rem;
  height: 0.5rem;
}

.status-dot-sm .status-dot-indicator {
  width: 0.375rem;
  height: 0.375rem;
}

/* Expanding/fading ring inherits the indicator's background color. */
.status-dot-pulse {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: inherit;
  animation: status-dot-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes status-dot-ping {
  75%,
  100% {
    transform: scale(2.25);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot-pulse {
    animation: none;
  }
}

.status-dot-label {
  line-height: 1;
}

.status-dot-sm .status-dot-label {
  font-size: var(--text-sm);
}
input.form-checkbox[type='checkbox'] {
  height: var(--spacing-lg);
  width: var(--spacing-lg);
  outline-offset: 0;

  &:checked,
  &:checked:focus {
    background-color: var(--color-main-dark);

    &.form-field-error {
      background-color: var(--color-critical-dark);
    }

    &.form-field-success {
      background-color: var(--color-positive-dark);
    }

    &.form-field-disabled {
      background-color: var(--color-neutral-faded);
    }
  }
}
.form-field-color-picker {
  border-width: var(--border-width);
  background-color: var(--color-surface);
  border-color: var(--color-border);

  & div {
    border-color: var(--color-border);
  }

  & input {
    border-radius: var(--radius);
    box-shadow: none;
    background-color: var(--color-input-background);
  }

  & label {
    color: var(--color-text);
  }
}
.tab {
  padding: var(--spacing-sm) var(--spacing-xs);
  font-weight: 500;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  transition-property:
    color, background-color, border-color, text-decoration-color, fill, stroke,
    opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-subtle);
  cursor: pointer;

  &.tab-with-border {
    border-bottom-width: var(--border-width-md);
    border-color: transparent;
  }

  &.tab-pill {
    border-radius: var(--radius-md);
  }

  &:hover {
    color: var(--color-text);

    &.tab-with-border {
      border-color: var(--color-border);
    }
  }

  &:focus {
    outline: none;
  }

  &:focus-visible {
    outline: 2px solid var(--color-main);
    outline-offset: -2px;
    border-radius: var(--radius-sm);
  }

  &:active {
    color: var(--color-main-faded);

    &.tab-with-border {
      border-color: var(--color-main-faded);
    }
  }

  &.tab-active {
    color: var(--color-main);
    cursor: default;

    &.tab-with-border {
      border-color: var(--color-main);
    }

    &.tab-pill {
      background-color: var(--color-main-faded);
    }
  }

  &.tab-disabled {
    cursor: default;
    user-select: none;
    color: var(--color-neutral-faded);

    &:hover {
      &.tab-with-border {
        border-color: transparent;
      }
    }
  }
}

.tabs-scroll {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;

  &::-webkit-scrollbar {
    display: none;
  }
}

.tabs-scroll-chevron {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--spacing-xs);
  color: var(--color-text-subtle);
  cursor: pointer;
  background-color: var(--color-background);

  &:hover {
    color: var(--color-text);
  }

  &.tabs-scroll-chevron-left {
    left: 0;
  }

  &.tabs-scroll-chevron-right {
    right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tabs-scroll {
    scroll-behavior: auto;
  }
}
input.form-field-number[type='number'] {
  text-align: center;
  font-weight: bold;
  -moz-appearance: textfield;

  &::-webkit-outer-spin-button,
  &::-webkit-inner-spin-button {
    -webkit-appearance: none;
  }
}
input.form-radio {
  height: 1.25rem;
  width: 1.25rem;
  border-width: var(--border-width-md);
  border-color: transparent;
  border-radius: 9999px;
  cursor: pointer;
  transition-property:
    color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;

  &:focus {
    border-color: transparent;
    outline: none;
    box-shadow: 0 0 0 2px var(--color-main);
    outline-offset: 0;
  }

  &.form-field-active:checked {
    background-color: var(--color-main-dark);
  }

  &.form-field-error {
    &:focus {
      box-shadow: 0 0 0 2px var(--color-critical);
    }

    &:checked {
      background-color: var(--color-critical-dark);
    }
  }

  &.form-field-valid {
    &:focus {
      box-shadow: 0 0 0 2px var(--color-positive);
    }

    &:checked {
      background-color: var(--color-positive-dark);
    }
  }
}
.rdw-option-wrapper {
  background: var(--color-neutral);
  border: 1px solid var(--color-border);
  border-radius: 0.2em;
  color: var(--color-text-semantic);
  cursor: pointer;
  padding: 2px;
  margin: 0 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: capitalize;
  transition: all 150ms ease-in-out;
}

.rdw-option-active {
  background: var(--color-neutral-dark);
}

.rdw-option-disabled {
  opacity: 0.3;
  cursor: default;
}

.rdw-dropdown-wrapper {
  height: 30px;
  background: var(--color-neutral);
  color: var(--color-text-semantic);
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--color-border);
  border-radius: 0.2em;
  margin: 0 2px;
  text-transform: capitalize;
  transition: all 150ms ease-in-out;
  width: 45px;
}

.rdw-dropdown-wrapper:focus {
  outline: none;
}

.rdw-option-wrapper:hover,
.rdw-dropdown-wrapper:hover {
  background: var(--color-neutral-light);

  &.rdw-option-active {
    background: var(--color-neutral-dark);
  }
}

.rdw-option-wrapper:active,
.rdw-dropdown-wrapper:active {
  background: var(--color-neutral-dark);
}

.rdw-dropdown-carettoopen {
  height: 0;
  width: 0;
  position: absolute;
  top: 35%;
  right: 10%;
  border-top: 6px solid var(--color-text-semantic);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

.rdw-dropdown-carettoclose {
  height: 0;
  width: 0;
  position: absolute;
  top: 35%;
  right: 10%;
  border-bottom: 6px solid var(--color-text-semantic);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

.rdw-dropdown-selectedtext {
  display: flex;
  position: relative;
  height: 100%;
  align-items: center;
  padding: 0 5px;
}

.rdw-dropdown-optionwrapper {
  z-index: var(--z-dropdown);
  position: relative;
  border: 1px solid var(--color-border);
  width: 98%;
  background: var(--color-surface);
  border-radius: 2px;
  margin: 0;
  padding: 0;
  max-height: 250px;
  overflow-y: scroll;
}

.rdw-dropdownoption-default {
  min-height: 25px;
  display: flex;
  align-items: center;
  padding: 0 5px;
}

.rdw-dropdownoption-highlighted {
  background: var(--color-surface-strong);
}

.rdw-dropdownoption-active {
  background: var(--color-surface-subtle);
}

.rdw-dropdownoption-disabled {
  opacity: 0.3;
  cursor: default;
}

.rdw-inline-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.rdw-inline-dropdown {
  width: 50px;
}

.rdw-inline-dropdownoption {
  height: 40px;
  display: flex;
  justify-content: center;
}

.rdw-block-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.rdw-block-dropdown {
  width: 110px;
}

.rdw-fontsize-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.rdw-fontsize-dropdown {
  min-width: 40px;
}

.rdw-fontsize-option {
  color: var(--color-text);
  font-weight: normal;
  display: flex;
  justify-content: center;
}

.rdw-fontfamily-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.rdw-fontfamily-dropdown {
  width: 115px;
}

.rdw-fontfamily-placeholder {
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rdw-fontfamily-optionwrapper {
  width: 140px;
}

.rdw-list-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.rdw-list-dropdown {
  width: 50px;
  z-index: var(--z-dropdown);
}

.rdw-list-dropdownOption {
  height: 40px;
  display: flex;
  justify-content: center;
}

.rdw-text-align-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.rdw-text-align-dropdown {
  width: 50px;
  z-index: var(--z-dropdown);
}

.rdw-text-align-dropdownOption {
  height: 40px;
  display: flex;
  justify-content: center;
}

.rdw-right-aligned-block {
  text-align: right;
}

.rdw-left-aligned-block {
  text-align: left !important;
}

.rdw-center-aligned-block {
  text-align: center !important;
}

.rdw-justify-aligned-block {
  text-align: justify !important;
}

.rdw-right-aligned-block > div {
  display: inline-block;
}

.rdw-left-aligned-block > div {
  display: inline-block;
}

.rdw-center-aligned-block > div {
  display: inline-block;
}

.rdw-justify-aligned-block > div {
  display: inline-block;
}

.rdw-colorpicker-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  position: relative;
  flex-wrap: wrap;
}

.rdw-colorpicker-modal {
  position: absolute;
  top: 35px;
  left: 5px;
  display: flex;
  flex-direction: column;
  width: 250px;
  border: 1px solid var(--color-border);
  padding: var(--spacing-sm);
  border-radius: 0.2em;
  z-index: var(--z-dropdown);
  background: var(--color-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.rdw-colorpicker-modal-header {
  display: flex;
}

.rdw-colorpicker-modal-style-label {
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  padding: var(--spacing-xs) var(--spacing-base);
}

.rdw-colorpicker-modal-style-label-active {
  background: var(--color-surface-strong);
  border-bottom: 2px solid var(--color-main);
  color: var(--color-text-strong);
}

.rdw-colorpicker-modal-options {
  margin: 5px auto;
  display: flex;
  width: 100%;
  height: 100%;
  flex-wrap: wrap;
}

.rdw-colorpicker-cube {
  width: 22px;
  height: 22px;
  border: 1px solid var(--color-border);
}

.rdw-colorpicker-option {
  margin: 3px;
  padding: 0;
  min-height: 20px;
  border: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.rdw-colorpicker-option:hover {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.rdw-colorpicker-option:active {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.rdw-colorpicker-option-active {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.rdw-link-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  position: relative;
  flex-wrap: wrap;
}

.rdw-link-dropdown {
  width: 50px;
}

.rdw-link-dropdownOption {
  height: 40px;
  display: flex;
  justify-content: center;
}

.rdw-link-dropdownPlaceholder {
  margin-left: 8px;
}

.rdw-link-modal {
  position: absolute;
  top: 35px;
  left: 5px;
  display: flex;
  flex-direction: column;
  width: 250px;
  border: 1px solid var(--color-border);
  padding: 15px;
  border-radius: 2px;
  z-index: var(--z-modal-backdrop);
  background: var(--color-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/*
.rdw-link-modal-label {
  font-size: 15px;
}
*/

.rdw-link-modal-input {
  background: var(--color-surface-strong);
  margin: var(--spacing-xxs) 0;
  border-radius: 0.2em;
  padding: var(--spacing-xxs) var(--spacing-xs);
}

.rdw-link-modal-input:focus {
  outline: none;
}

.rdw-link-modal-buttonsection {
  margin: 0 auto;
}

.rdw-link-modal-target-option {
  margin-bottom: 20px;
}

.rdw-link-modal-target-option > span {
  margin-left: 5px;
}

.rdw-link-modal-btn,
.rdw-image-modal-btn {
  color: var(--color-text-semantic);
  margin-left: 10px;
  font-weight: 500;
  width: 75px;
  height: 30px;
  border-radius: 0.2em;
  cursor: pointer;
  background: var(--color-main);
  text-transform: capitalize;
  transition: all 150ms ease-in-out;

  &:last-child {
    background: var(--color-neutral);
  }
}

.rdw-link-modal-btn:hover,
.rdw-image-modal-btn:hover {
  background: var(--color-main-light);

  &:last-child {
    background: var(--color-neutral-light);
  }
}

.rdw-link-modal-btn:active,
.rdw-image-modal-btn:active {
  background: var(--color-main-dark);

  &:last-child {
    background: var(--color-neutral-dark);
  }
}

.rdw-link-modal-btn:focus,
.rdw-image-modal-btn:focus {
  outline: none !important;
}

.rdw-link-modal-btn:disabled,
.rdw-image-modal-btn:disabled {
  opacity: 0.3;
}

.rdw-link-dropdownoption {
  height: 40px;
  display: flex;
  justify-content: center;
}

.rdw-history-dropdown {
  width: 50px;
}

.rdw-embedded-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  position: relative;
  flex-wrap: wrap;
}

.rdw-embedded-modal {
  position: absolute;
  top: 35px;
  left: 5px;
  display: flex;
  flex-direction: column;
  width: 235px;
  height: 180px;
  border: 1px solid var(--color-border);
  padding: 15px;
  border-radius: 2px;
  z-index: var(--z-modal-backdrop);
  background: white;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.rdw-embedded-modal-header {
  font-size: 15px;
  display: flex;
}

.rdw-embedded-modal-header-option {
  width: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.rdw-embedded-modal-header-label {
  width: 95px;
  border: 1px solid var(--color-border);
  margin-top: 5px;
  background: #6eb8d4;
  border-bottom: 2px solid #0a66b7;
}

.rdw-embedded-modal-link-section {
  display: flex;
  flex-direction: column;
}

.rdw-embedded-modal-link-input {
  width: 88%;
  height: 35px;
  margin: 10px 0;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-size: 15px;
  padding: 0 5px;
}

.rdw-embedded-modal-link-input-wrapper {
  display: flex;
  align-items: center;
}

.rdw-embedded-modal-link-input:focus {
  outline: none;
}

.rdw-embedded-modal-btn-section {
  display: flex;
  justify-content: center;
}

.rdw-embedded-modal-btn {
  margin: 0 3px;
  width: 75px;
  height: 30px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  cursor: pointer;
  background: white;
  text-transform: capitalize;
}

.rdw-embedded-modal-btn:hover {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.rdw-embedded-modal-btn:active {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.rdw-embedded-modal-btn:focus {
  outline: none !important;
}

.rdw-embedded-modal-btn:disabled {
  background: #ece9e9;
}

.rdw-embedded-modal-size {
  align-items: center;
  display: flex;
  margin: 8px 0;
  justify-content: space-between;
}

.rdw-embedded-modal-size-input {
  width: 80%;
  height: 20px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-size: 12px;
}

.rdw-embedded-modal-size-input:focus {
  outline: none;
}

.rdw-emoji-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  position: relative;
  flex-wrap: wrap;
}

.rdw-emoji-modal {
  overflow: auto;
  position: absolute;
  top: 35px;
  left: 5px;
  display: flex;
  flex-wrap: wrap;
  width: 250px;
  height: 200px;
  border: 1px solid var(--color-border);
  padding: var(--spacing-sm);
  border-radius: 0.2em;
  z-index: var(--z-dropdown);
  background: var(--color-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin: auto;
}

.rdw-emoji-icon {
  margin: 2.5px;
  height: 24px;
  width: 24px;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rdw-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm);
  height: 100%;
  width: 100%;
}

.rdw-spinner > div {
  width: 16px;
  height: 16px;
  background-color: var(--color-text);
  border-radius: 100%;
  display: inline-block;
  margin: 0 var(--spacing-xxs);
  -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
  animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.rdw-spinner .rdw-bounce1 {
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}

.rdw-spinner .rdw-bounce2 {
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
  }
  40% {
    -webkit-transform: scale(1);
  }
}

@keyframes sk-bouncedelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }

  40% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

.rdw-image-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  position: relative;
  flex-wrap: wrap;
}

.rdw-image-modal {
  position: absolute;
  top: 35px;
  right: 5px;
  display: flex;
  flex-direction: column;
  width: 275px;
  border: 1px solid var(--color-border);
  padding: var(--spacing-base);
  border-radius: 0.2em;
  z-index: var(--z-dropdown);
  background: var(--color-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.rdw-image-modal-header {
  margin: var(--spacing-xs) 0;
  display: flex;
}

.rdw-image-modal-header-option {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-right: var(--spacing-base);
  min-width: 50px;
}

.rdw-image-modal-header-label {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.rdw-image-modal-header-label-highlighted {
  border-bottom: 2px solid var(--color-main);
  margin-top: var(--spacing-xxs);
  width: 100%;
}

.rdw-image-modal-upload-option {
  width: 100%;
  color: var(--color-text-subtle);
  cursor: pointer;
  display: flex;
  border: none;
  align-items: center;
  justify-content: center;
  background-color: var(--color-surface-strong);
  outline: 2px dashed var(--color-text-subtle);
  outline-offset: -10px;
  margin: 10px 0;
  padding: 9px 0;
}

.rdw-image-modal-upload-option-highlighted {
  outline: 2px dashed var(--color-text-subtle);
}

.rdw-image-modal-upload-option-label {
  cursor: pointer;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  word-break: break-all;
}

.rdw-image-modal-upload-option-label span {
  padding: var(--spacing-sm);
}

.rdw-image-modal-upload-option-image-preview {
  max-width: 100%;
  max-height: 200px;
}

.rdw-image-modal-upload-option-input {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.rdw-image-modal-url-section {
  display: flex;
  align-items: center;
}

.rdw-image-modal-url-input {
  width: 90%;
  height: 35px;
  margin: 15px 0 12px;
  background-color: var(--color-surface-strong);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-size: 15px;
  padding: 0 5px;
}

.rdw-image-modal-btn-section {
  margin: 10px auto 0;
}

.rdw-image-modal-url-input:focus {
  outline: none;
}

.rdw-image-modal-spinner {
  background: var(--color-surface);
  position: absolute;
  top: -3px;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.rdw-image-modal-alt-input {
  width: 70%;
  height: 20px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-size: 12px;
  margin-left: 5px;
}

.rdw-image-modal-alt-input:focus {
  outline: none;
}

.rdw-image-modal-alt-lbl {
  font-size: 12px;
}

.rdw-image-modal-size {
  align-items: center;
  display: flex;
  margin: 8px 0;
  justify-content: space-between;
}

.rdw-image-modal-size-input {
  width: 40%;
  height: 20px;
  background-color: var(--color-surface-strong);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-size: var(--size-text-sm);
  padding: var(--spacing-xs);
}

.rdw-image-modal-size-input:focus {
  outline: none;
}

.rdw-image-mandatory-sign {
  color: var(--color-critical);
  margin-left: 3px;
  margin-right: 3px;
}

.rdw-remove-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  position: relative;
  flex-wrap: wrap;
}

.rdw-history-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.rdw-history-dropdownoption {
  height: 40px;
  display: flex;
  justify-content: center;
}

.rdw-history-dropdown {
  width: 50px;
}

.rdw-link-decorator-wrapper {
  position: relative;
  color: var(--color-main);
}

.rdw-link-decorator-icon {
  position: absolute;
  left: 40%;
  top: 0;
  cursor: pointer;
  background-color: var(--color-text-semantic);
}

.rdw-mention-link {
  text-decoration: none;
  color: #1236ff;
  background-color: #f0fbff;
  padding: 1px 2px;
  border-radius: 2px;
}

.rdw-suggestion-wrapper {
  position: relative;
}

.rdw-suggestion-dropdown {
  position: absolute;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  min-width: 100px;
  max-height: 150px;
  overflow: auto;
  background: white;
  z-index: 100;
}

.rdw-suggestion-option {
  padding: 7px 5px;
  border-bottom: 1px solid #f1f1f1;
}

.rdw-suggestion-option-active {
  background-color: #f1f1f1;
}

.rdw-hashtag-link {
  text-decoration: none;
  color: #1236ff;
  background-color: #f0fbff;
  padding: 1px 2px;
  border-radius: 2px;
}

.rdw-image-alignment-options-popup {
  position: absolute;
  background: var(--color-surface-strong);
  display: flex;
  padding: 5px 2px;
  border-radius: 2px;
  border: 1px solid var(--color-border);
  width: 105px;
  cursor: pointer;
  z-index: var(--z-dropdown);
}

.rdw-alignment-option-left {
  justify-content: flex-start;
}

.rdw-image-alignment-option {
  flex: 1;
  padding: 2px;
  min-width: 15px;
}

.rdw-image-alignment {
  position: relative;
}

.rdw-image-imagewrapper {
  position: relative;
}

.rdw-image-center {
  display: flex;
  justify-content: center;
}

.rdw-image-left {
  display: flex;
}

.rdw-image-right {
  display: flex;
  justify-content: flex-end;
}

.rdw-image-alignment-options-popup-right {
  right: 0;
}

.rdw-editor-main {
  background-color: var(--color-input-background);
  box-sizing: border-box;
  height: 100%;
  min-height: 200px;
  overflow: auto;
  padding: 0 var(--spacing-base);
}

.rdw-editor-toolbar {
  padding: var(--spacing-xs);
  border-radius: 0.2em 0.2em 0 0;
  display: flex;
  justify-content: flex-start;
  background: var(--color-surface-strong);
  flex-wrap: wrap;
  font-size: var(--size-text-sm);
  margin-bottom: 5px;
  user-select: none;
}

.public-DraftStyleDefault-block {
  margin: 1em 0;
}

.rdw-editor-wrapper:focus {
  outline: none;
}

.rdw-editor-wrapper {
  background: var(--color-surface-subtle);
  box-sizing: content-box;
}

.rdw-editor-main blockquote {
  border-left: 5px solid var(--color-surface);
  padding-left: 5px;
}

.rdw-editor-main pre {
  background: var(--color-surface);
  border-radius: 3px;
  padding: 1px 10px;
}

/**
 * Draft v0.9.1
 *
 * Copyright (c) 2013-present, Facebook, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 */
.DraftEditor-editorContainer,
.DraftEditor-root,
.public-DraftEditor-content {
  height: inherit;
  text-align: initial;
}

.public-DraftEditor-content[contenteditable='true'] {
  -webkit-user-modify: read-write-plaintext-only;
}

.DraftEditor-root {
  position: relative;
}

.DraftEditor-editorContainer {
  background-color: rgba(255, 255, 255, 0);
  border-left: 0.1px solid transparent;
  position: relative;
}

.public-DraftEditor-block {
  position: relative;
}

.DraftEditor-alignLeft .public-DraftStyleDefault-block {
  text-align: left;
}

.DraftEditor-alignLeft .public-DraftEditorPlaceholder-root {
  left: 0;
  text-align: left;
}

.DraftEditor-alignCenter .public-DraftStyleDefault-block {
  text-align: center;
}

.DraftEditor-alignCenter .public-DraftEditorPlaceholder-root {
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.DraftEditor-alignRight .public-DraftStyleDefault-block {
  text-align: right;
}

.DraftEditor-alignRight .public-DraftEditorPlaceholder-root {
  right: 0;
  text-align: right;
}

.public-DraftEditorPlaceholder-root {
  color: #9197a3;
  position: absolute;
}

.public-DraftEditorPlaceholder-hasFocus {
  color: #bdc1c9;
}

.DraftEditorPlaceholder-hidden {
  display: none;
}

.public-DraftStyleDefault-block {
  position: relative;
  white-space: pre-wrap;
}

.public-DraftStyleDefault-ltr {
  direction: ltr;
  text-align: left;
}

.public-DraftStyleDefault-rtl {
  direction: rtl;
  text-align: right;
}

.public-DraftStyleDefault-listLTR {
  direction: ltr;
}

.public-DraftStyleDefault-listRTL {
  direction: rtl;
}

.public-DraftStyleDefault-ol,
.public-DraftStyleDefault-ul {
  margin: 16px 0;
  padding: 0;
}

.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listLTR {
  margin-left: 1.5em;
}

.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listRTL {
  margin-right: 1.5em;
}

.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listLTR {
  margin-left: 3em;
}

.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listRTL {
  margin-right: 3em;
}

.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listLTR {
  margin-left: 4.5em;
}

.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listRTL {
  margin-right: 4.5em;
}

.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listLTR {
  margin-left: 6em;
}

.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listRTL {
  margin-right: 6em;
}

.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listLTR {
  margin-left: 7.5em;
}

.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listRTL {
  margin-right: 7.5em;
}

.public-DraftStyleDefault-unorderedListItem {
  list-style-type: square;
  position: relative;
}

.public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth0 {
  list-style-type: disc;
}

.public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth1 {
  list-style-type: circle;
}

.public-DraftStyleDefault-orderedListItem {
  list-style-type: none;
  position: relative;
}

.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listLTR::before {
  left: -36px;
  position: absolute;
  text-align: right;
  width: 30px;
}

.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listRTL::before {
  position: absolute;
  right: -36px;
  text-align: left;
  width: 30px;
}

.public-DraftStyleDefault-orderedListItem::before {
  content: counter(ol0) '. ';
  counter-increment: ol0;
}

.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth1::before {
  content: counter(ol1) '. ';
  counter-increment: ol1;
}

.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth2::before {
  content: counter(ol2) '. ';
  counter-increment: ol2;
}

.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth3::before {
  content: counter(ol3) '. ';
  counter-increment: ol3;
}

.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth4::before {
  content: counter(ol4) '. ';
  counter-increment: ol4;
}

.public-DraftStyleDefault-depth0.public-DraftStyleDefault-reset {
  counter-reset: ol0;
}

.public-DraftStyleDefault-depth1.public-DraftStyleDefault-reset {
  counter-reset: ol1;
}

.public-DraftStyleDefault-depth2.public-DraftStyleDefault-reset {
  counter-reset: ol2;
}

.public-DraftStyleDefault-depth3.public-DraftStyleDefault-reset {
  counter-reset: ol3;
}

.public-DraftStyleDefault-depth4.public-DraftStyleDefault-reset {
  counter-reset: ol4;
}
.form-slider-wrapper {
  flex-grow: 1;
  padding: var(--spacing-base);

  &:not(.form-slider-wrapper-disabled) {
    cursor: pointer;
  }

  &.form-slider-wrapper-disabled {
    color: var(--color-text-subtle);
    cursor: not-allowed;
  }
}

.form-slider-track {
  flex-grow: 1;
  height: var(--spacing-xs);
  border-radius: var(--radius);
}

.form-slider-thumb {
  background-color: var(--color-main);
  font-weight: bold;
  padding: var(--spacing-xxs) var(--spacing-xs);
  border-radius: var(--radius);
  box-shadow: 0 0 0 2px transparent;
  text-align: center;
  color: var(--color-text-semantic);
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  min-width: var(--spacing-xl);

  &:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-main-dark);
  }

  &.form-slider-thumb-disabled {
    background-color: var(--color-neutral);
    cursor: not-allowed;
    color: var(--color-text-subtle);
  }
}
button.form-field-toggle {
  background-color: var(--color-neutral);
  position: relative;
  display: flex;
  width: 2.75rem;
  border-width: var(--border-md);
  border-color: transparent;
  border-radius: 9999px;
  cursor: pointer;
  transition-property:
    color, background-color, border-color, text-decoration-color, fill, stroke,
    opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  outline: 2px solid transparent;
  outline-offset: 2px;

  &:focus {
    border-color: transparent;
    outline: 2px solid var(--color-main);
  }

  & .form-field-toggle-handle {
    pointer-events: none;
    display: inline-block;
    height: 1.25rem;
    width: 1.25rem;
    border-radius: 9999px;
    box-shadow:
      0 1px 3px 0 rgb(0 0 0 / 10%),
      0 1px 2px -1px rgb(0 0 0 / 10%);
    transform: translateX(0);
    transition-property:
      color, background-color, border-color, text-decoration-color, fill,
      stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    background-color: var(--color-text-semantic);

    &.form-field-toggle-handle-active {
      transform: translateX(1.25rem);
    }
  }

  &.form-field-toggle-active {
    background-color: var(--color-main-dark);
  }

  &.form-field-error {
    background-color: var(--color-critical-dark);

    &:focus {
      outline-color: var(--color-critical);
    }
  }

  &.form-field-valid {
    background-color: var(--color-positive-dark);

    &:focus {
      outline-color: var(--color-positive);
    }
  }

  &.form-field-disabled {
    background-color: var(--color-neutral-faded);
    user-select: none;

    &:focus {
      outline-color: transparent;
    }

    & .form-field-toggle-handle {
      background-color: var(--color-neutral);
    }
  }
}
.horizontal-scroll-container {
  display: grid;
  grid-auto-flow: column;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;

  &::-webkit-scrollbar {
    display: none;
  }

  & > * {
    scroll-snap-align: center;
  }
}
