:root {
  --primary-500: #D90023;
  --primary-400: #E71A3B;
  --primary-300: #FC617A;
  --primary-200: #FC8397;
  --primary-100: #FFDEE3;

  --neutral-50: #4A4A4A;
  --neutral-30: #A3A3A3;
  --neutral-20: #E0E0E0;
  --neutral-10: #F2F2F2;
}

* {
  margin: 0;
  padding: 0;
  font: 14px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  touch-action: manipulation;

  scroll-behaviour: smooth;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;

  height: 100%;
  margin: 0;
  padding: 0;

  touch-action: manipulation;

  overflow-x: hidden;
  overflow-y: scroll;

  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;

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

textarea:focus, input:focus {
  outline: none;
}

*:focus {
  outline: none;
}

.display-none {
  display: none !important;
}

.desktop-optimization {
  width: 100vw;
}

@media screen and (min-width: 800px) {
  body {
    background-color: #eaeaea;
  }
  .desktop-optimization {
    max-width: 450px;
  }
}

.container {
  grid-column: 1;
  grid-row: 1;

  width: 100%;
  height: 100vh;
  background-color: white;
  /* max-width: 400px; */
}

.application {
  padding: 48px 24px 48px 24px;

  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bold {
  font-weight: 600 !important;
}

.normal {
  font-weight: 400;
}

.title-section {
  display: flex;
  flex-direction: row;
  gap: 6px;
}

/* .title { */
/*   font-size: 24px; */
/*   line-height: 32px; */
/*   font-weight: normal; */

/*   text-align: center; */
/*   margin-bottom: 32px; */
/* } */

.box-number {
  font-size: 28px;
  line-height: 32px;
  font-weight: 400;
}

.point-address {
  font-size: 20px;
  line-height: 24px;
  font-weight: 400;
  opacity: 0.64;
}

.payment-amount-section {
  display: flex;
  flex-direction: row;

  gap: 8px;
}

.payment-amount {
  width: 100%;
  height: 60px;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 32px;
  font-weight: 600;
  line-height: 48px;
}

.payment-amount-error {
  animation: payment-amount-error-animation 1.0s infinite;
}

@keyframes payment-amount-error-animation
{
  00%   {color: black;}
  05%   {color: black;}
  10%  {color: var(--primary-500);}
  15%  {color: var(--primary-500);}
  20%   {color: black;}
  25%   {color: black;}
  30%  {color: var(--primary-500);}
  35%  {color: var(--primary-500);}
  40%   {color: black;}
}

.payment-selection-button {
  background-color: var(--primary-500);
  border: none;
  border-radius: 8px;

  width: 100%;
  height: 60px;

  color: var(--primary-500);
  font-weight: bold;
  font-size: 24px;

  display: flex;
  justify-content: center;
  align-items: center;

  &:hover {
    background-color: #F20229;
    cursor: pointer;
  }
}

.icon-button {
  border: none;
  border-radius: 8px;

  width: 48px;
  height: 48px;

  padding: 16px;
  
  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--primary-500);
  color: white;

  &:hover {
    background-color: #F20229;
    cursor: pointer;
  }
}

.icon-button > svg {
  color: white;
  font-size: 24px;
}

.primary-button {
  border: none;
  background-color: var(--primary-500);

  padding: 16px 24px 16px 24px;

  width: 100%;

  color: white;

  border-radius: 8px;

  font-size: 16px;
  line-height: 24px;

  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;

  &:hover {
    background-color: #F20229;
    cursor: pointer;
  }

  &:disabled {
    background-color: var(--primary-400);
    color: white;
  }

}

.alt-button {
  border: none;
  background-color: white;

  padding: 16px 24px 16px 24px;

  width: 100%;

  color: var(--primary-500);

  border-radius: 8px;

  font-size: 16px;
  line-height: 24px;

  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;

  &:hover {
    background-color: #f5f5f5;
    cursor: pointer;
  }

  &:disabled {
    color: var(--primary-100);
    font-weight: 600;
  }

}

.tinted-button {
  border: none;
  background-color: var(--primary-400);

  padding: 16px 24px 16px 24px;

  width: 100%;

  color: white;

  border-radius: 8px;

  font-size: 16px;
  line-height: 24px;

  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;

  &:hover {
    background-color: #f02e4e;
    cursor: pointer;
  }

  &:disabled {
    background-color: var(--primary-200);
    color: white;
  }

}

.loader {
  border: 4px solid #ff1238;
  border-top: 4px solid #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin .5s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.email-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.email-label {
  font-size: 16px;
  line-height: 24px;
}

.email-input {
  border: none;
  background-color: #EAEAEA;

  padding: 16px 24px 16px 24px;

  border-radius: 8px;

  font-size: 16px;
  line-height: 24px;

  &::placeholder {
    color: rgba(0, 0, 0, 0.64);
  }
}

.email-input-button {
  border: none;
  background-color: #EAEAEA;

  display: flex;
  justify-content: start;

  padding: 16px 24px 16px 24px;

  border-radius: 8px;

  font-size: 16px;
  line-height: 24px;

  color: rgba(0, 0, 0, 0.64);
}

.input-error {
  -webkit-box-shadow:inset 0px 0px 8px 2px rgba(256, 0, 0, 0.6);
  -moz-box-shadow:inset 0px 0px 8px 2px rgba(256, 0, 0, 0.6);
  box-shadow:inset 0px 0px 8px 2px rgba(256, 0, 0, 0.6);
}

.email-error {
  font-size: 16px;
  line-height: 24px;
  color: var(--primary-500);
}

.keyboard {
  display: flex;
  flex-direction: column;

  gap: 8px;
}

.keyboard-row {
  display: flex;
  flex-direction: row;

  gap: 8px;
}

.keyboard-button {
  background-color: var(--primary-100);
  border: none;
  border-radius: 8px;

  width: 100%;
  height: 60px;

  color: var(--primary-500);
  font-weight: bold;
  font-size: 24px;

  &:hover {
    background-color: #ffe3e7;
    cursor: pointer;
  }
}

.widget {
  box-shadow: 0 0 10px rgba(0.0, 0.0, 0.0, 0.1);
  padding: 20px 24px;
  border-radius: 24px;

  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.widget-title {
  font-size: 24px;
  line-height: 24px;
  font-weight: 500;
}

.widget-text {
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
}

.widget-icon {
  width: 32px;
  height: 32px;
}

.widget-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
