body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  display: grid;
  grid-template-rows: 100px 1fr 430px;
  height: 100dvh;
}

input {
  min-height: 2rem;
  padding: 0.25rem 0.25rem 0.25rem 0.5rem;
}
p {
  text-wrap-style: pretty;
}

header {
  background-image: linear-gradient(180deg, #d1dc6a 0%, #004e25 100%);
  height: 100px;
  width: 100%;
  padding: 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header__logo {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
}

.header__logo svg {
  max-height: 100%;
}
.header__login {
  height: 100%;
  padding: 0.75rem;
  fill: white;
}
main {
  display: grid;
  justify-content: center;
  padding-left: min(1.5rem, 2vw);
  padding-right: min(1.5rem, 2vw);
  padding-bottom: 3rem;
  padding-top: 3rem;
  gap: 1.5rem;
}
.card {
  border: 1px solid #ddd;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  border-radius: 10px;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  padding: min(1.5rem, 3vw);
  width: min(95vw, 25rem);
  background-color: #f3f3f3;
}
.form__title {
  text-align: center;
  font-weight: 500;
}
.form__content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100%;
  scroll-margin: 2rem;
}
.section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  align-items: center;
  scroll-margin: 2rem;
}
.section__title {
  font-weight: 400;
  font-size: 1rem;
  color: #333;
  text-align: center;
}
.section__subtext {
  font-size: 0.8rem;
  color: #5b5b5b;
  text-align: center;
  line-height: 1rem;
}
.section__error {
  color: red;
  text-align: center;
}
.calendar {
  background-color: white;
  max-width: 358px;
  width: 100%;
}
.calendar__header {
  color: #5b5b5b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: min(1rem, 6vw);
}
.calendar__body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  max-width: 358px;
  min-height: 254px;
}
.calendar__button,
.times__time,
.calculator__button {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  text-align: center;
  cursor: pointer;
  color: #5b5b5b;
  border-radius: 10px;
  transition: background-color 0.25s;
  padding: 0;
}
.calendar__button:disabled,
.times__time:disabled {
  -webkit-text-fill-color: #ddd;
  color: #ddd;
  background-color: white;
}
.calendar__button:disabled:hover,
.times__time:disabled:hover {
  background-color: white;
}
.calendar__button:hover,
.times__time:hover {
  background-color: #ebebeb;
}

.times__time--Alto {
  border: 1px solid red !important;
}

.times__time--Medio {
  border: 1px solid orange !important;
}

.times__time--Bajo {
  border: 1px solid #01c901 !important;
}
.calendar__button--disabled,
.times__time--disabled {
  -webkit-text-fill-color: #ddd;
  color: #ddd;
}
.calendar__button--disabled:hover,
.times__time--disabled:hover {
  background-color: white;
}
.calendar__arrow {
  padding: 0 10px 5px 10px;
  font-size: min(2rem, 16vw);
  width: min(50px, 16vw);
}
.calendar__day {
  font-weight: 400;
  font-size: min(1rem, 8vw);
}
.times__body {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.times__body.active {
  max-height: 1000px;
}
.times__time {
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  min-width: 5rem;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  background-color: white;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
label {
  font-weight: 600;
  line-height: 1;
  font-size: 0.875rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}
.field > input {
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border-radius: 5px;
  background-color: white;
}
.field > p {
  line-height: 1.5rem;
}
.selected {
  background-color: #cbf6ce;
  border: none;
}
.selected:hover {
  background-color: #cbf6ce;
}
.selected--Bajo {
  background-color: #cbf6ce;
}
.selected--Bajo:hover {
  background-color: #cbf6ce;
}
.selected--Medio {
  background-color: #f6f6ce;
}
.selected--Medio:hover {
  background-color: #f6f6ce;
}
.selected--Alto {
  background-color: #f6cece;
}
.selected--Alto:hover {
  background-color: #f6cece;
}
.calculator-wrapper {
  display: flex;
  height: 50px;
  gap: 1rem;
}
.calculator {
  display: grid;
  grid-auto-flow: column;
  justify-content: space-between;
  width: 100%;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border-radius: 5px;
  max-width: 160px;
  background-color: white;
}
.calculator__button {
  height: 100%;
  width: min(50px, 18vw);
  font-size: 1.25rem;
}
.calculator > input {
  width: 100%;
  text-align: center;
  padding: 0;
}
.calculator-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
}
.calculator-icon-wrapper--sauce-sm {
  padding: 0.25rem;
}
.cart-wrapper {
  display: flex;
  gap: 1.5rem;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.5rem 1.5rem 1rem;
  flex: 1;
  font-size: 1.25rem;
  width: 100%;
}
.cart-wrapper__icon {
  height: 1.5rem;
}
.cart-wrapper__amount {
  display: flex;
  justify-content: end;
  gap: 0.5rem;
  font-weight: 600;
}
.submit-button {
  font-weight: 600;
  font-size: 1.1rem;
  color: white;
  border-radius: 10px;
  display: flex;
  background-color: #383838;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1rem;
  gap: 2rem;
  flex: 1;
  text-align: center;
  transition: background-color 0.25s;
}
.submit-button:disabled {
  background-color: #ddd;
  color: #5b5b5b;
  cursor: not-allowed;
}
.submit-button:disabled:hover {
  background-color: #ddd;
}
.submit-button:hover {
  background-color: #4d4d4d;
}

.back-button {
  color: black;
}
.errorlist {
  color: red;
}
.footer {
  display: flex;
  justify-content: center;
  flex-direction: column;
  background-color: #004e25;
  gap: 1rem;
  padding: 1rem;
}
.footer__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
}
.footer__logo svg {
  max-height: 100%;
}
.contacts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}
.contact {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  color: white;
  text-decoration: none;
  text-align: center;
}
.contact__icon {
  width: 18px;
  fill: #95c11f;
  display: flex;
}
.contact__icon--mobile {
  padding: 0.15rem;
}
.divider {
  border: 1px solid #fff;
  width: 100%;
}
.invalid {
  border: 1px solid rgb(255, 180, 180);
}
.loader {
  width: 50px;
  height: 50px;
  border: 5px solid #9fd99e;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

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

.loader2 {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 32px 0 #fff, -32px 0 #fff;
  position: relative;
  animation: flash 0.5s ease-out infinite alternate;
}

@keyframes flash {
  0% {
    background-color: #9fd99e;
    box-shadow: 32px 0 #9fd99e, -32px 0 #fff;
  }
  50% {
    background-color: #fff;
    box-shadow: 32px 0 #9fd99e, -32px 0 #9fd99e;
  }
  100% {
    background-color: #9fd99e;
    box-shadow: 32px 0 #fff, -32px 0 #9fd99e;
  }
}
