.mgpl-public {
  display: grid;
  gap: 28px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: #202124;
}

.mgpl-week {
  padding-top: 8px;
}

.mgpl-week-title {
    display: flex;
    align-items: center;
    justify-content: space-between;

   width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;

    margin: 0 0 12px;
    padding: 12px 16px;

    border: 1px solid #e2e8e3;
    border-radius: 12px;

    background: #f6faf7;
    color: #285f38;

    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-align: left;

    cursor: pointer;
}

.mgpl-week-sessions {
    display: grid;
    gap: 8px;
}

.mgpl-week-sessions.closed {
    display: none;
}

.mgpl-session {
  position: relative;
  display: grid;
  grid-template-columns:
    120px
    155px
    minmax(145px, 1fr)
    minmax(120px, 1fr)
    62px;
  gap: 16px;
  align-items: center;

  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;

  padding: 13px 16px;

  border: 1px solid #e7e9e8;
border-left: 4px solid #55ad63;
border-radius: 10px;

background: #fff;
box-shadow: 0 2px 7px rgba(0, 0, 0, 0.035);
}


.mgpl-session-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mgpl-day {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: #327443;
}

.mgpl-date {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: #6a6a6a;
}

.mgpl-session-time {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  color: #202124;
}

.mgpl-time-separator {
  margin: 0 3px;
  color: #777;
  font-weight: 500;
}

.mgpl-session-level {
  min-width: 0;
}

.mgpl-session-level span {
  display: inline-flex;
  align-items: center;

  max-width: 100%;
  padding: 5px 10px;

  border-radius: 999px;

  background: #eaf5e9;
  color: #2f6b37;

  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.mgpl-power-pilates .mgpl-session {
  border-left-color: #4c91c7;
}

.mgpl-power-pilates .mgpl-session-level span {
  background: #e8f1fa;
  color: #245b82;
}

.mgpl-renforcement .mgpl-session {
  border-left-color: #c89b52;
}

.mgpl-renforcement .mgpl-session-level span {
  background: #f5eee2;
  color: #735424;
}

.mgpl-session-team {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mgpl-team-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #262626;
  overflow-wrap: anywhere;
}

.mgpl-session-image {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.mgpl-session-image img {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: cover;

  border-radius: 8px;
  border: 1px solid #ececec;

  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.mgpl-session.is-canceled {
  opacity: 0.55;
}

.mgpl-session.is-canceled::before {
  content: "";
  position: absolute;

  left: 10px;
  right: 10px;
  top: 50%;

  height: 2px;

  background: #c91515;

  transform: translateY(-50%);

  z-index: 3;
  pointer-events: none;
}

.mgpl-cancelled-label {
  position: absolute;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%) rotate(-7deg);

  z-index: 4;

  padding: 7px 16px;

  border-radius: 7px;

  background: #d41313;
  color: #fff;

  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;

  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.14);
}

.mgpl-empty {
  padding: 14px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 9px;
  background: #fafafa;
  font-size: 15px;
}


/* TABLETTE */
@media (max-width: 900px) {

  .mgpl-session {
    grid-template-columns:
      105px
      135px
      minmax(120px, 1fr)
      minmax(100px, 1fr)
      56px;

    gap: 10px;
    padding: 12px 13px;
  }

  .mgpl-session-time {
    font-size: 16px;
  }

  .mgpl-team-name {
    font-size: 14px;
  }

  .mgpl-session-image img {
    width: 52px;
    height: 52px;
  }
}


/* SMARTPHONE */
@media (max-width: 700px) {

  .mgpl-public {
    gap: 20px;
  }

 .mgpl-week {
    padding-top: 8px;
}

.mgpl-week-title {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    box-sizing: border-box;

    margin: 0;
    padding: 13px 16px;

    border: 1px solid #dfe5e0;
    border-radius: 12px 12px 0 0;

    background: #f6faf7;
    color: #285f38;

    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-align: left;

    cursor: pointer;
}
.mgpl-session {
   grid-template-columns: minmax(0, 1fr) 50px;

    grid-template-areas:
        "date image"
        "time image"
        "level image"
        "team image";

    gap: 5px 10px;
    padding: 12px;

    min-height: 0 !important;
height: auto !important;
}

.mgpl-week-title:hover {
    background: #f0f7f2;
}

.mgpl-week-title:focus-visible {
    outline: 2px solid #55ad63;
    outline-offset: 2px;
}

.mgpl-week-chevron {
    flex: 0 0 auto;

    margin-left: 15px;

    font-size: 23px;
    font-weight: 700;
    line-height: 1;

    transition: transform 0.18s ease;
}

.mgpl-week-toggle[aria-expanded="true"] .mgpl-week-chevron {
    transform: rotate(180deg);
}

.mgpl-week-sessions {
    display: grid;
    gap: 0;

    border: 1px solid #e7e9e8;
    border-top: 0;
    border-left: 4px solid #55ad63;

    border-radius: 0 0 12px 12px;

    overflow: hidden;
    background: #fff;
}

.mgpl-week-sessions.closed {
    display: none;
}

.mgpl-week-sessions.open {
    display: grid;
}

  .mgpl-session-date {
    grid-area: date;

    flex-direction: row;
    align-items: baseline;

    gap: 7px;

    min-width: 0;
  }

  .mgpl-day {
    font-size: 14px;
  }

  .mgpl-date {
    font-size: 13px;
  }

  .mgpl-session-time {
    grid-area: time;

    min-width: 0;

    font-size: 16px;
    font-weight: 700;

    white-space: normal;
  }

  .mgpl-session-level {
    grid-area: level;
    min-width: 0;
  }

  .mgpl-session-level span {
    padding: 4px 8px;

    font-size: 12px;

    white-space: normal;
  }

  .mgpl-session-team {
    grid-area: team;

    min-width: 0;
    margin-top: 2px;
  }

  .mgpl-team-name {
    font-size: 14px;
    font-weight: 600;
  }

  .mgpl-session-image {
    grid-area: image;
    display: flex !important;
    align-self: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
}

  .mgpl-session-image img {
    display: block !important;
    width: 46px !important;
    height: 46px !important;
    max-width: 46px !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-radius: 7px;
}

  .mgpl-cancelled-label {
    font-size: 12px;
    padding: 6px 12px;
  }
}


/* TRES PETITS SMARTPHONES */
@media (max-width: 380px) {

  

  .mgpl-session {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 4px 8px;
    padding: 11px 10px;
  }

  .mgpl-session-time {
    font-size: 15px;
  }

  .mgpl-session-level span {
    font-size: 11px;
  }

  .mgpl-team-name {
    font-size: 13px;
  }

  .mgpl-session-image img {
    width: 40px;
    height: 40px;
  }

.mgpl-week-sessions.closed {
  display: none !important;
}
}