@tailwind base;
@tailwind components;
@tailwind utilities;

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: var(--en-fonts);
  -webkit-tap-highlight-color: transparent;
  --toastify-color-warning: rgb(61, 212, 175) !important;
}

a,
p,
b,
h1,
h2,
h3,
h4,
h5,
h6,
img,
video,
button,
span {
  user-select: none;
  -webkit-user-select: none;
}

input,
textarea {
  user-select: text;
  -webkit-user-select: text;
}

.chartAnimation {
  animation: revealFromLeft 2.5s ease-in-out forwards;
}

.singleChartAnimation {
  animation: revealFromLeftByPx 2.5s ease-in-out forwards;
}

.gridLineFade {
  animation: fadeIn 0.3s forwards 2s;
}

.lang-fa {
  font-family: var(--fa-fonts);
}

.lang-en {
  font-family: var(--en-fonts);
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 100%;
  }
}

.modal__popup {
  padding: 15px 10px !important;
}

.modal__body {
  display: flex;
  justify-content: center;
}

.modal__close-button {
  color: #000;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--en-fonts);
}

input {
  font-family: inherit;
  touch-action: none !important;
  -webkit-user-scalable: no !important;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

ul {
  list-style-type: none;
}

:root {
  --rsbs-backdrop-bg: rgba(0, 0, 0, 0.6);
  --rsbs-bg: #fff;
  --rsbs-handle-bg: hsla(0, 0%, 0%, 0.14);
  --rsbs-max-w: auto;
  --rsbs-ml: env(safe-area-inset-left);
  --rsbs-mr: env(safe-area-inset-right);
  --rsbs-overlay-rounded: 16px;
}

/**
    * react-modern-drawer
    * _______________________________________________________________________________
    */

input {
  -webkit-text-size-adjust: 100%;
}

input::-webkit-inner-spin-button {
  /* Hide the spinner */
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  /* Optional: Remove default margin */
}

/* Additional styling for autofill */
input:-internal-autofill-selected {
  background-color: inherit !important;
  background: inherit !important;
  color: inherit !important;
}

.EZDrawer .EZDrawer__checkbox {
  display: none;
}

.EZDrawer .EZDrawer__checkbox:checked~.EZDrawer__overlay {
  display: block;
  opacity: 1;
}

.EZDrawer .EZDrawer__checkbox:checked~.EZDrawer__container {
  visibility: visible;
  transform: translate3d(0, 0, 0) !important;
}

.modal__popup {
  max-width: 1000px !important;
  max-height: 95vh;
  padding: 0;
}

.PaypalRoot {
  border: 1px solid red;
}

.EZDrawer .EZDrawer__overlay {
  display: none;
  height: 100vh;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
}

.modal {
  z-index: 100;
}

.EZDrawer .EZDrawer__container {
  position: fixed;
  visibility: hidden;
  background: white;
  transition: all;
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
}

.backgroundTriangle1 {
  -webkit-animation: taadaa1 1.5s ease-in-out 3s infinite;
  animation: taadaa1 1.5s ease-in-out 3s infinite;
  transform: translateX(64px);
}

.backgroundTriangle2 {
  -webkit-animation: taadaa2 1.5s ease-in-out 3s infinite;
  animation: taadaa2 1.5s ease-in-out 3s infinite;
  transform: translateX(49px);
}

.backgroundTriangle3 {
  -webkit-animation: taadaa3 1.5s ease-in-out 3s infinite;
  animation: taadaa3 1.5s ease-in-out 3s infinite;
  transform: translateX(34px);
}

.backgroundTriangle4 {
  -webkit-animation: taadaa4 1.5s ease-in-out 3s infinite;
  animation: taadaa4 1.5s ease-in-out 3s infinite;
  transform: translateX(19px);
}

.backgroundTriangle1,
.backgroundTriangle2,
.backgroundTriangle3,
.backgroundTriangle4 {
  position: absolute;
  right: -12px;
  max-height: 264px;
  bottom: 20px;
  z-index: 0;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(78, 208, 154, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(78, 208, 154, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

@keyframes pulse-disabled {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.12);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(78, 208, 154, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

.checkoutButton {
  animation: pulse 1.25s cubic-bezier(0.66, 0, 0, 1) infinite;
}

.checkoutButton:disabled {
  animation: pulse-disabled 1.25s cubic-bezier(0.66, 0, 0, 1) infinite;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.titleFadeIn {
  animation: fade-in 2s forwards;
  opacity: 1;
}

.titleFadeOut {
  animation: fade-out 2s forwards;
  opacity: 0;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.titleFadeIn {
  animation: fade-in 5s forwards;
  opacity: 1;
}

.titleFadeOut {
  animation: fade-out 1s forwards;
  opacity: 0;
}

.backgroundTriangle1 {
  -webkit-animation: taadaa1 1.5s ease-in-out 3s infinite;
  animation: taadaa1 1.5s ease-in-out 3s infinite;
  transform: translateX(64px);
}

.backgroundTriangle2 {
  -webkit-animation: taadaa2 1.5s ease-in-out 3s infinite;
  animation: taadaa2 1.5s ease-in-out 3s infinite;
  transform: translateX(49px);
}

.backgroundTriangle3 {
  -webkit-animation: taadaa3 1.5s ease-in-out 3s infinite;
  animation: taadaa3 1.5s ease-in-out 3s infinite;
  transform: translateX(34px);
}

.backgroundTriangle4 {
  -webkit-animation: taadaa4 1.5s ease-in-out 3s infinite;
  animation: taadaa4 1.5s ease-in-out 3s infinite;
  transform: translateX(19px);
}

.backgroundTriangle1,
.backgroundTriangle2,
.backgroundTriangle3,
.backgroundTriangle4 {
  position: absolute;
  right: -12px;
  max-height: 264px;
  bottom: 20px;
  z-index: 0;
}

@keyframes taadaa1 {
  0% {
    opacity: 0;
  }

  25% {
    opacity: 1;
  }
}

@keyframes taadaa2 {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

@keyframes taadaa3 {
  0% {
    opacity: 0;
  }

  75% {
    opacity: 1;
  }
}

@keyframes taadaa4 {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

form#text-box-container label#outlined-multiline-static-label {
  color: var(--primary-text-color);
  left: unset;
  text-align: right;
  font-size: 16px;
  right: 25px;
  display: none;
}

form#text-box-container label#outlined-multiline-static-label .Mui-focuesed {
  visibility: hidden;
}

form#text-box-container .MuiInputBase-root {
  background: white;
  font-family: inherit;
  font-size: 16px;
}

form#text-box-container fieldset.MuiOutlinedInput-notchedOutline {
  border: 1px solid var(--primary-color);
  text-align: right;
}

form#text-box-container legend {
  margin-right: -7px;
  overflow: unset;
  padding: 4px;
  height: auto;
  visibility: visible !important;
  max-width: 100px;
}

form#text-box-container legend span {
  display: contents;
}

div#payment-summary .MuiListItemSecondaryAction-root {
  right: 0;
}

.paymentMethod .inActive {
  -webkit-filter: grayscale(75%);
  /* Safari 6.0 - 9.0 */
  filter: grayscale(75%);
  border: 1px solid #d2d5da;
  background: #f7f7f8;
  border-radius: 8px;
  height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.paymentMethod .active {
  border: 2px solid #e04141;
  box-shadow:
    0 12px 24px rgba(43, 49, 57, 0.08),
    0 4px 8px rgba(43, 55, 70, 0.06);
  border-radius: 8px;
  height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

form#card-form .submit-button {
  color: #ffffff;
  background-color: #00cfc3;
  border-radius: 27px;
  box-shadow: 0 12px 23px rgb(7 205 205 / 31%);
  width: 100%;
  height: 45px;
  margin-top: 20px;
  margin-bottom: 40px;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

form#card-form .submit-button:disabled {
  background-color: #d6d7d8;
  box-shadow: 0 12px 23px #d6d7d899;
}

#card-number,
#cvv,
#expiration-date {
  outline: 1px solid #d6d7d8;
  height: 40px;
  background: #f9f9f9;
}

#cvv,
#expiration-date {
  width: calc(50% - 1.5px);
  margin-top: 1.96px;
}

#card-number {
  width: 100%;
  border-radius: 10px 10px 0 0;
}

#expiration-date {
  border-radius: 0px 0px 0px 10px;
}

#cvv {
  border-radius: 0px 0px 10px 0px;
}

.braintree-hosted-fields-focused {
  outline: 1px solid #00cfc3 !important;
  background: rgb(7 205 205 / 10%) !important;
}

.braintree-hosted-fields-valid {
  outline: 1px solid #00cfc3 !important;
  background: rgb(7 205 205 / 10%) !important;
}

.braintree-hosted-fields-invalid {
  outline: 1px solid #e04141 !important;
  background: #e041411c !important;
}

.payments-sdk-contingency-handler payments-sdk-contingency-handler-tag-payments-sdk-contingency-handler payments-sdk-contingency-handler-context-iframe payments-sdk-contingency-handler-focus {
  z-index: 9999 !important;
}

.chartAnimation {
  animation: revealFromLeft 2s ease-in-out forwards;
}

@keyframes revealFromLeft {
  0% {
    width: 100%;
  }

  100% {
    width: 0;
  }
}

.singleChartAnimation {
  animation: revealFromLeftByPx 2s ease-in-out forwards;
}

@keyframes revealFromLeftByPx {
  0% {
    width: 100%;
  }

  100% {
    width: 0;
  }
}

.gridLineFade {
  animation: fadeIn 0.3s forwards 2s;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 100%;
  }
}

.swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.slider-parasite-bullets {
  bottom: 85px !important;
}

.swiper-pagination-bullet-active {
  background: black !important;
}

.send_phone_sheet {
  max-width: 100% !important;
}