.webbed-minimal-lessons {
  direction: rtl;
}

.webbed-minimal-lessons h3 {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-color: transparent;
  background-image: linear-gradient(
    90deg,
    var(--e-global-color-accent) 0%,
    var(--e-global-color-text) 90%
  );
  font-family: 'Ella Sans', Sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0px;
  color: var(--e-global-color-primary);
}

.webbed-minimal-lessons ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.webbed-minimal-lessons li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.webbed-minimal-lessons .webbed-lesson-title {
  text-decoration: none;
  color: inherit;
  flex-grow: 1;
  position: relative;
  display: block;
  overflow: hidden;
  height: 1.6em;
  line-height: 1.6em;
  perspective: 500px;
}

.webbed-minimal-lessons .webbed-lesson-title .webbed-lesson-title-text {
  display: block;
  transform: translateY(0) rotateX(0deg);
  transform-origin: center top;
  transition: transform 0.32s ease;
}

.webbed-minimal-lessons .webbed-lesson-title::after {
  content: attr(data-hover-label);
  position: absolute;
  right: 0;
  left: 0;
  top: 0;
  font-family: 'Simona Pro', Sans-serif;
  font-size: inherit;
  font-weight: 600;
  color: var(--e-global-color-primary);
  transform: translateY(100%) rotateX(-90deg);
  transform-origin: center bottom;
  transition: transform 0.32s ease;
}

.webbed-minimal-lessons .webbed-lesson-title:hover::after,
.webbed-minimal-lessons .webbed-lesson-title:focus::after,
.webbed-minimal-lessons .webbed-lesson-title:focus-visible::after {
  transform: translateY(0);
}

.webbed-minimal-lessons .webbed-lesson-title:hover .webbed-lesson-title-text,
.webbed-minimal-lessons .webbed-lesson-title:focus .webbed-lesson-title-text,
.webbed-minimal-lessons
  .webbed-lesson-title:focus-visible
  .webbed-lesson-title-text {
  transform: translateY(-100%) rotateX(90deg);
}

.webbed-minimal-lessons .webbed-lesson-title.current_lesson {
  color: white;
  background-color: transparent;
  background-image: linear-gradient(
    90deg,
    var(--e-global-color-accent) 0%,
    var(--e-global-color-text) 90%
  );
  border-radius: 20px 0 0 20px;
  padding: 4px 12px;
  height: calc(1.6em + 8px);
}

.webbed-minimal-lessons .webbed-lesson-title.current_lesson::after {
  right: 12px;
  left: 12px;
  color: #ffffff;
}

.webbed-minimal-lessons .webbed-lesson-time {
  color: #585858;
  font-size: 14px;
  font-weight: 200;
  text-align: center;
}

.webbed-minimal-lessons .webbed-data-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  text-decoration: none;
  background-color: #f2f2f2;
  font-family: 'Simona Pro', Sans-serif;
  font-size: 12px;
  color: var(--e-global-color-primary);
  border-style: none;
  border-radius: 50px 50px 50px 50px;
}

.webbed-minimal-lessons .webbed-data-store-button.is-loading {
  pointer-events: none;
  opacity: 0.9;
}

.webbed-minimal-lessons .webbed-data-store-button.is-loading::after {
  content: '';
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: webbedDataStoreSpin 0.7s linear infinite;
}

@keyframes webbedDataStoreSpin {
  to {
    transform: rotate(360deg);
  }
}

.webbed-minimal-lessons .webbed-data-store-button.is-checked {
  background-color: #0079ad;
  color: #ffffff;
}
