.DateSession {
  container: amb-dates / inline-size;
}

.DateSession .amb-slider {
  --amb-arrow: 1.9rem;
  --amb-arrow-gap: 0.3rem;
  display: flex;
  align-items: stretch;
  margin: 0 0 1.4rem;
}

.DateSession .amb-slider__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.DateSession .amb-slider__track {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.DateSession .amb-slider__side {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  box-sizing: content-box;
  width: var(--amb-arrow);
}

.DateSession .amb-slider__side--prev {
  padding-right: var(--amb-arrow-gap);
}

.DateSession .amb-slider__side--next {
  padding-left: var(--amb-arrow-gap);
}

.DateSession .amb-slider__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--amb-arrow);
  height: var(--amb-arrow);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #1e1b6b;
  cursor: pointer;
  transition: background-color 120ms ease, opacity 120ms ease;
}

.DateSession .amb-slider__arrow svg {
  width: 1rem;
  height: 1rem;
}

.DateSession .amb-slider__arrow:hover:not(:disabled) {
  background: #ececf6;
}

.DateSession .amb-slider__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .DateSession .amb-slider__track {
    transition: none;
  }
}

.DateSession ul.amb-sessions {
  flex: 0 0 100%;
  box-sizing: border-box;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e6e6ef;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.DateSession .amb-session {
  border-top: 1px solid #f0f0f5;
}

.DateSession .amb-session:first-child {
  border-top: none;
}

.DateSession .amb-session__button {
  --amb-row-bg: #fff;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  margin: 0;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 0;
  background: var(--amb-row-bg);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.DateSession .amb-session__button:hover {
  --amb-row-bg: #f6f6fb;
}

.DateSession .amb-session.amb-copied .amb-session__button {
  --amb-row-bg: #e6f4ec;
}

.DateSession .amb-session__button:focus-visible {
  outline: 2px solid #1e1b6b;
  outline-offset: -2px;
}

.DateSession .amb-session__icon {
  --amb-icon: 2.25rem;
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: var(--amb-icon);
  height: var(--amb-icon);
  border-radius: 50%;
  background: var(--amb-status-color);
  color: var(--amb-status-color);
}

.DateSession .amb-session__icon > svg {
  width: 52%;
  height: 52%;
}

.DateSession .amb-session__icon--garantie {
  --amb-status-color: #16a34a;
}

.DateSession .amb-session__icon--bientot {
  --amb-status-color: #ea580c;
}

.DateSession .amb-session__icon--open {
  --amb-status-color: #2563eb;
}

.DateSession .amb-session__flame {
  position: absolute;
  right: -14%;
  bottom: -14%;
  display: grid;
  place-items: center;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 0 calc(var(--amb-icon) * 0.07) var(--amb-row-bg);
}

.DateSession .amb-session__flame svg {
  width: 50%;
  height: 50%;
}

.DateSession .amb-session__info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.35;
}

.DateSession .amb-session__dates {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e1b6b;
}

.DateSession .amb-session__format,
.DateSession .amb-session__internal {
  font-size: 0.7rem;
  color: #7a7d8c;
}

.DateSession .amb-session__internal {
  font-style: italic;
}

.DateSession .amb-session__status {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.9em;
  clip-path: inset(0 0 0 0.9em);
  font-size: 0.72rem;
  font-weight: 700;
}

.DateSession .amb-session__tag {
  white-space: nowrap;
}

.DateSession .amb-session__tag::before {
  content: "·";
  display: inline-block;
  width: 0.9em;
  text-align: center;
  font-weight: 400;
  color: #b4b6c8;
}

.DateSession .amb-session__tag--garantie {
  color: #15803d;
}

.DateSession .amb-session__tag--bientot {
  color: #c2410c;
}

.DateSession .amb-session__tag--open {
  color: #1d4ed8;
}

.DateSession .amb-session__tag--last {
  color: #b91c1c;
}

@container amb-dates (max-width: 520px) {
  .DateSession .amb-slider {
    --amb-arrow: 1.4rem;
  }

  .DateSession .amb-session__button {
    gap: 0.7rem;
    padding: 0.8rem 0.7rem;
  }

  .DateSession .amb-session__icon {
    --amb-icon: 2rem;
  }
}

@container amb-dates (max-width: 319px) {
  .DateSession .amb-slider {
    --amb-arrow: 1.25rem;
    --amb-arrow-gap: 0.2rem;
  }

  .DateSession .amb-session__button {
    gap: 0.6rem;
    padding: 0.75rem 0.5rem;
  }

  .DateSession .amb-session__icon {
    --amb-icon: 1.6rem;
  }

  .DateSession .amb-session__dates {
    font-size: clamp(0.7rem, 4.3cqi, 0.85rem);
  }
}

@container amb-dates (max-width: 279px) {
  .DateSession .amb-session__button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.15rem 0.6rem;
  }

  .DateSession .amb-session__info {
    display: contents;
  }

  .DateSession .amb-session__dates {
    grid-row: 1;
    grid-column: 1 / -1;
    font-size: clamp(0.68rem, 4.8cqi, 0.82rem);
  }

  .DateSession .amb-session__format {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .DateSession .amb-session__status {
    grid-row: 3;
    grid-column: 2;
  }

  .DateSession .amb-session__internal {
    grid-row: 4;
    grid-column: 1 / -1;
  }

  .DateSession .amb-session__icon {
    --amb-icon: 1.35rem;
    grid-row: 3;
    grid-column: 1;
  }

  .DateSession .amb-session__flame svg {
    width: 75%;
    height: 75%;
  }
}
