.amlap {
  --amlap-primary: #372014;
  --amlap-accent: #372014;
  --amlap-surface: #fff;
  --amlap-muted: #aea7a1;
  max-width: 1120px;
  margin: 0 auto;
  color: #372014;
}

.amlap__card {
  background: var(--amlap-surface);
  border: 1px solid color-mix(in srgb, var(--amlap-muted) 35%, transparent);
  border-radius: 22px;
  padding: clamp(20px, 4vw, 42px);
  box-shadow: 0 18px 50px rgba(55, 32, 20, 0.09);
}

.amlap__calendar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 54px);
}

.amlap-month__title {
  margin: 0 0 20px;
  text-align: center;
  color: #372014;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 650;
  text-transform: none;
}

.amlap-month__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(34px, 1fr));
  gap: 7px;
  align-items: center;
}

.amlap-month__weekday {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  color: #372014;
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
}

.amlap-day {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: rgba(55, 32, 20, 0.46);
  font: inherit;
  font-size: 0.95rem;
  cursor: default;
}

.amlap-day--blank {
  visibility: hidden;
}

.amlap-day.is-available {
  border: 2px solid #372014;
  color: #372014;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.amlap-day.is-available:hover {
  background: rgba(55, 32, 20, 0.09);
  color: #372014;
  transform: translateY(-1px);
}

.amlap-day.is-selected,
.amlap-day.is-selected:hover {
  background: #372014;
  border-color: #372014;
  color: #fff;
}

.amlap-day:disabled {
  opacity: 1;
}

.amlap-day:focus-visible,
.amlap input:focus,
.amlap textarea:focus,
.amlap button:focus-visible {
  outline: 3px solid rgba(55, 32, 20, 0.24);
  outline-offset: 2px;
}

.amlap__times {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--amlap-muted) 32%, transparent);
  color: #372014;
}

.amlap__selected-date {
  margin-bottom: 16px;
  color: #372014;
  font-weight: 650;
  text-transform: none;
}

.amlap__slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #372014;
}

.amlap__slots button {
  min-width: 78px;
  padding: 10px 14px;
  border: 1px solid #372014;
  border-radius: 999px;
  background: #fff;
  color: #372014;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.amlap__slots button:hover,
.amlap__slots button.is-active {
  background: #372014;
  border-color: #372014;
  color: #fff;
}

.amlap__loading {
  display: block;
  padding: 12px 0;
  color: #372014;
}

.amlap__form {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--amlap-muted) 32%, transparent);
  color: #372014;
}

.amlap__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.amlap label {
  display: block;
  margin-bottom: 8px;
  color: #372014;
  font-weight: 650;
}

.amlap input,
.amlap textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #372014;
  border-radius: 10px;
  padding: 11px 13px;
  background: #fff;
  color: #372014;
}

.amlap textarea {
  min-height: 110px;
}

.amlap__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0;
  color: #372014;
  font-weight: 400;
}

.amlap__check span,
.amlap__check a {
  color: #372014;
}

.amlap__check input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: #372014;
}

/* El botó conserva les classes i l'estil predeterminat del tema PrestaShop. */
.amlap__submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.amlap__message {
  margin-top: 14px;
  color: #372014;
}

.amlap-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
}

.amlap__success {
  padding: 25px;
  background: rgba(55, 32, 20, 0.06);
  border-radius: 14px;
  color: #372014;
}

@media (max-width: 820px) {
  .amlap__calendar {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}

@media (max-width: 720px) {
  .amlap__card {
    padding: 18px 12px;
    border-radius: 16px;
  }

  .amlap__grid {
    grid-template-columns: 1fr;
  }

  .amlap__submit {
    width: 100%;
  }

  .amlap-month__grid {
    gap: 4px;
  }

  .amlap-day {
    width: 37px;
    height: 37px;
  }
}
