.an-booking {
  max-width: 640px;
}

.an-booking-title {
  margin-bottom: .25em;
}

.an-booking-links {
  margin: 0 0 1em;
}

.an-booking-links a {
  margin-right: 1em;
}

.an-booking-intro {
  font-style: italic;
  color: #555;
}

.an-booking-message {
  padding: .8em 1em;
  margin-bottom: 1em;
  border-radius: 4px;
}

.an-booking-message.is-error {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: #842029;
}

.an-booking-message.is-success {
  background: #e8f5e9;
  border: 1px solid #b6dcb9;
  color: #1b5e20;
}

.an-booking-fieldset {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1em 1.25em;
  margin: 0 0 1.25em;
}

.an-booking-fieldset legend {
  font-weight: 600;
  padding: 0 .5em;
}

.an-booking-field {
  /*
  display: flex;
  flex-direction: column;
  */
  margin: 0 0 1em;
}

.an-booking-field label {
  font-weight: 600;
  margin-bottom: .25em;
}

.an-booking-field .req {
  color: #c0392b;
}

.an-booking-field input,
.an-booking-field select,
.an-booking-field textarea {
  padding: .5em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
  width: 100%;
  box-sizing: border-box;
}

/* Calendrier */
.an-booking-calendar-fieldset {
  position: relative;
  min-height: 420px;
}

.an-booking-calendar {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: .75em;
  margin-bottom: 1em;
}

.an-booking-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .5em;
}

.an-booking-cal-title {
  font-weight: 600;
}

.an-booking-prev,
.an-booking-next {
  border: 1px solid #ccc;
  background: #f7f7f7;
  border-radius: 4px;
  cursor: pointer;
  padding: .25em .7em;
  font-size: 1em;
  color: #999;
}

.an-booking-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.an-booking-dow {
  text-align: center;
  font-size: .75em;
  font-weight: 600;
  color: #777;
  padding: .25em 0;
}

.an-booking-day {
  text-align: center;
  padding: .55em 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #f3f6f9;
  cursor: pointer;
  user-select: none;
}

.an-booking-day.is-empty {
  background: transparent;
  cursor: default;
}

.an-booking-day.is-disabled,
.an-booking-day.is-booked {
  background: #eee;
  color: #b0b0b0;
  cursor: not-allowed;
  text-decoration: line-through;
}

.an-booking-day.is-selected,
.an-booking-day.is-in-range {
  background: #2271b1;
  color: #fff;
}

.an-booking-day.is-in-range {
  background: #6ea8d8;
}

.an-booking-legend {
  font-size: .8em;
  color: #555;
  margin: .75em 0 0;
  display: none;
}

.an-booking-swatch {
  display: inline-block;
  width: 1em;
  height: 1em;
  border-radius: 3px;
  vertical-align: middle;
  margin: 0 .25em 0 1em;
}

.an-booking-swatch.is-booked {
  background: #eee;
  border: 1px solid #ccc;
}

.an-booking-swatch.is-selected {
  background: #2271b1;
}

.an-booking-button {
  background: #2271b1;
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: .7em 1.5em;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.an-booking-button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.an-booking-error {
  padding: 1em;
  background: #fdecea;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  color: #842029;
}

.an-booking-calendar-loader {
  position: absolute;
  left: 0;
  top: 210px;
  width: 100%;
  height: 100px;
  display: none;
  transform: translateY(-50%);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.an-booking-calendar-loader.is-visible {
  display: flex;
}

.an-booking-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #ddd;
  border-top-color: #0d6efd;
  border-radius: 50%;
  animation: an-booking-spin .8s linear infinite;
}

.an-booking-calendar-loader p {
  font-size: 0.8rem;
}

@keyframes an-booking-spin {
  to {
    transform: rotate(360deg);
  }
}