/* Course boxes generated by [ymm_termine]. Mirrors the hand-built BeBuilder boxes (two columns, light grey). */
.ymm-termine {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 40px;

  &.ymm-count-1 {
    grid-template-columns: minmax(0, 1fr);
  }

  @media (max-width: 767px) {
    grid-template-columns: minmax(0, 1fr);
  }

  & .ymm-box {
    background: #f8f9f9;
    padding: 80px 10% 90px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    @media (max-width: 767px) {
      padding: 50px 24px 60px;
    }

    & h3,
    & h5,
    & p {
      margin: 0;
      text-align: center;
    }

    & .ymm-button {
      margin-top: 12px;
    }

    & .ymm-full {
      font-weight: 600;
      margin-top: 12px;
    }
  }

  /* The admin preview has no theme CSS */
  .ymm-admin-preview & {
    gap: 8px;

    & .ymm-box {
      padding: 24px;
    }
  }
}

/* Single box inside a BeBuilder wrap that already has background + padding */
.ymm-box.ymm-bare {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;

  & h3,
  & h5,
  & p {
    margin: 0;
    text-align: center;
  }

  & .ymm-button {
    margin-top: 0;
  }

  & .ymm-full {
    font-weight: 600;
  }
}

/* A box slot that has no entry (anymore) */
.mcb-wrap:has(.ymm-empty) {
  display: none;
}
