@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

.sr-modal {
  z-index: 999;
  display: block;
  backface-visibility: hidden;
  position: fixed;
  inset: 0px;
  pointer-events: none;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  transition: opacity 0.2s cubic-bezier(0, 0, 0.22, 1),
    backdrop-filter 0.2s cubic-bezier(0, 0, 0.22, 1);
}

.sr-modal-open {
  opacity: 1;
  pointer-events: auto;
}
.sr-modal-open .sr-card {
  animation: zoom-modal-in 0.2s cubic-bezier(0.45, 0, 1, 1);
  animation-fill-mode: backwards;
}
.sr-modal-overlay {
  overflow: hidden auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.sr-card {
  max-width: 360px;
  width: 100%;
  position: relative;
  outline: none;
  display: block;
  border-radius: clamp(0px, 36px, 44px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
  background-color: #121313;
  overflow: hidden;
  margin: 0px;
  box-sizing: border-box;
  font-style: normal;
  text-rendering: optimizespeed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  backface-visibility: hidden;
  font-family: Inter, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans,
    Droid Sans, Helvetica Neue, sans-serif;
  color: #e4e7e7;
  text-align: center;
  padding: 0;
  --local-border-bottom-mobile-radius: 0px;
}

.sr-card button {
  border-radius: 12px;
  color: #e4e7e7;
  padding: 7px;
  font-size: inherit;
  outline: none;
  border: none;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  background-color: transparent;
  transition: background-color 200ms cubic-bezier(0, 0, 0.55, 1);
  overflow: hidden;
  position: relative;
}
.sr-card button:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.sr-transaction-list {
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: none;
}

.sr-header {
  align-items: center;
  justify-content: space-between;
  display: flex;
  width: inherit;
  height: inherit;
  box-sizing: border-box;
  padding: 16px 18px;
}

.sr-header-title {
  transform: translateY(0);
  opacity: 1;
}

.sr-header-title[view-direction="prev"] {
  animation: slide-down-out 60ms forwards cubic-bezier(0, 0, 0.22, 1),
    slide-down-in 60ms forwards cubic-bezier(0, 0, 0.22, 1);
  animation-delay: 0ms, 100ms;
}

.sr-header-title[view-direction="next"] {
  animation: slide-up-out 60ms forwards cubic-bezier(0, 0, 0.22, 1),
    slide-up-in 60ms forwards cubic-bezier(0, 0, 0.22, 1);
  animation-delay: 0ms, 100ms;
}

.sr-container[view-direction="prev"] {
  animation: 75ms ease 0ms 1 normal forwards running slide-left-out,
    75ms ease 100ms 1 normal forwards running slide-left-in;
}

.sr-container[view-direction="next"] {
  animation: 75ms ease 0ms 1 normal forwards running slide-right-out,
    75ms ease 100ms 1 normal forwards running slide-right-in;
}

.sr-snackbar {
  opacity: 0;
  transform: translateX(-50%) scale(0.85);
  transition: opacity 150ms, transform 150ms;
  display: block;
  position: absolute;
  left: 50%;
  top: 11px;
  width: max-content;
  pointer-events: none;
  padding: 8px 14px 8px 8px;
  align-items: center;
  display: flex;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background-color: #222525;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 14px 64px -4px,
    rgba(0, 0, 0, 0.15) 0px 8px 22px -6px;
  max-width: 300px;
  column-gap: 12px;
}

.sr-snackbar.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.sr-snackbar .snackbar-icon {
  color: color-mix(in srgb, #fff 0%, #26d962);
  width: 24px;
  aspect-ratio: 1/1;
}

.sr-snackbar .snackbar-icon svg {
  object-fit: contain;
  object-position: center center;
  width: inherit;
  height: inherit;
}

.sr-snackbar .snackbar-text {
  text-align: left;
  color: #e4e7e7;
  font-size: 16px;
  letter-spacing: -0.64px;
  width: 100%;
  display: inline-block;
  line-height: 130%;
  font-weight: 500;
}

.sr-body {
  flex-direction: column;
  display: flex;
  margin-top: 4px;
  padding-top: 4px;
  padding-left: 12px;
  padding-right: 12px;
  padding-bottom: 0;
  gap: 8px;
}

.sr-body-item {
  flex-direction: column;
  display: flex;
  width: inherit;
  height: inherit;
}
.sr-body-item button {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  outline: none;
  border: none;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.02);
  width: 100%;
  min-height: 50px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 200ms cubic-bezier(0, 0, 0.55, 1),
    background-color 200ms cubic-bezier(0, 0, 0.55, 1),
    border 200ms cubic-bezier(0, 0, 0.55, 1),
    border-radius 200ms cubic-bezier(0, 0, 0.55, 1),
    box-shadow 200ms cubic-bezier(0, 0, 0.55, 1);
}
.sr-body-item input {
  background-color: rgba(255, 255, 255, 0.075);
  border: 0;
  outline: 0;
  color: white;
  font-family: "Inter";
  font-size: 20px;
  border-radius: 12px;
  padding: 10px;
  font-weight: 600;
}
.sr-body-item .sr-transaction {
  column-gap: 12px;
  padding: 7px 16px 7px 8px;
  justify-content: flex-start;
}
.sr-body-item .sr-transaction div:last-child {
  margin-left: auto;
}
.sr-body-item button .sr-transaction-image {
  border-radius: 12px;
  width: 40px;
  height: 40px;
}
.sr-body-item button .sr-transaction-text {
  text-align: left;
  flex: 1 1 0%;
  font-weight: bold;
}

.sr-body-item .deposit-button {
  background-color: #5773ff;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.sr-body-item .deposit-button:hover {
  background-color: #5773ffde;
}

.sr-body-item .withdraw-button {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.sr-body-item .withdraw-button:hover {
  background-color: rgba(255, 255, 255, 0.025);
}

.sr-body-item button .sr-transaction-tag {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  padding: 11px 5px !important;
  border-radius: 4px;
  line-height: 0px;
  transform: translateY(-2%);
}

.sr-body-item button .sr-transaction-tag[data-variant="deposit"] {
  background-color: color-mix(
    in srgb,
    hsla(230, 100%, 67%, 1) 15%,
    transparent
  );
  color: color-mix(in srgb, hsla(230, 100%, 67%, 1) 100%, transparent);
}

.sr-body-item button .sr-transaction-tag[data-variant="pending"] {
  background-color: color-mix(in srgb, rgb(255, 182, 87) 15%, transparent);
  color: color-mix(in srgb, rgb(255, 182, 87) 100%, transparent);
}

.sr-body-item button .sr-transaction-tag[data-variant="withdraw"] {
  background-color: color-mix(in srgb, rgb(185, 87, 255) 15%, transparent);
  color: color-mix(in srgb, rgb(185, 87, 255) 100%, transparent);
}

.sr-body-item button .sr-transaction-tag[data-variant="earnings"] {
  background-color: color-mix(in srgb, #1f3a28 100%, transparent);
  color: color-mix(in srgb, #26d962 100%, transparent);
}

.sr-body-item button .sr-transaction-tag[data-variant="failed"] {
  background-color: color-mix(in srgb, hsla(0, 100%, 67%) 15%, transparent);
  color: color-mix(in srgb, hsl(0, 100%, 67%) 100%, transparent);
}

.sr-footer {
  padding-top: 28px;
  padding-bottom: 24px;
  color: #949e9e;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.56px;
  font-feature-settings: "tnum", "lnum", "case";
  display: inline-block;
}
.sr-footer a {
  text-decoration: none;
  color: #495fd0;
  font-weight: bold;
}

.sr-card button svg {
  width: inherit;
  height: inherit;
  width: 16px;
  aspect-ratio: 1 / 1;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

.sr-transaction-time {
  font-weight: 300;
  font-size: 10px;
  color: grey;
}
#withdraw-amount {
  width: 80%;
}

#withdraw-next:disabled {
  opacity: 0.2;
  background-color: #782222;
  cursor: not-allowed;
}

#withdraw-max {
  width: 20%;
}

button .sr-transaction-image svg {
  width: 25px;
}

@keyframes zoom-modal-in {
  0% {
    transform: scale(0.95) translateY(0px);
  }
  100% {
    transform: scale(1) translateY(0px);
  }
}
@keyframes slide-left-out {
  0% {
    transform: translateX(0px);
    opacity: 1;
  }
  100% {
    transform: translateX(10px);
    opacity: 0;
  }
}

@keyframes slide-left-in {
  0% {
    transform: translateX(-10px);
    opacity: 0;
  }
  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

@keyframes slide-right-out {
  0% {
    transform: translateX(0px);
    opacity: 1;
  }
  100% {
    transform: translateX(-10px);
    opacity: 0;
  }
}

@keyframes slide-right-in {
  0% {
    transform: translateX(10px);
    opacity: 0;
  }
  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

@keyframes sr-modal-view-height {
  from {
    height: var(--prev-height);
  }
  to {
    height: var(--new-height);
  }
}

@keyframes slide-down-out {
  0% {
    transform: translateY(0px);
    opacity: 1;
  }
  100% {
    transform: translateY(-3px);
    opacity: 0;
  }
}
@keyframes slide-down-in {
  0% {
    transform: translateY(3px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

@keyframes slide-up-out {
  0% {
    transform: translateY(0px);
    opacity: 1;
  }
  100% {
    transform: translateY(3px);
    opacity: 0;
  }
}
@keyframes slide-up-in {
  0% {
    transform: translateY(-3px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}
