.mscr-courts {
  padding-block: 8px;
}

.mscr-courts__title {
  color: #161a1d;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  padding-block: 16px;
  text-align: left;
}

.mscr-courts__nav {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 24px;
}

.mscr-courts.is-overflowing .mscr-courts__nav {
  grid-template-columns: 40px minmax(0, 1fr) 40px;
}

.mscr-courts__tabs {
  display: flex;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.mscr-courts__tabs::-webkit-scrollbar {
  display: none;
}

.mscr-courts__tab,
.mscr-courts__arrow {
  border: 1px solid #002f2a;
  color: #002f2a;
  font: inherit;
}

.mscr-courts__tab {
  align-items: center;
  background: var(--background-fills-button-action-chips-default, #ffffff);
  border: 1px solid var(--Borders-Colors-Action-Chips-default, #002f2a);
  border-radius: 24px;
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  height: 40px;
  padding: 4px 16px;
  justify-content: center;
  line-height: normal;
  white-space: nowrap;
}

.mscr-courts__tab.is-active {
  background: #00463f;
  border-color: #00463f;
  color: #ffffff;
}

.mscr-courts__tab:focus-visible,
.mscr-courts__arrow:focus-visible {
  outline: 3px solid #0b84ff;
  outline-offset: 2px;
}

.mscr-courts__arrow {
  align-items: center;
  background: #00463f;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: none;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 40px;
}

.mscr-courts.is-overflowing .mscr-courts__arrow {
  display: inline-flex;
}

.mscr-courts__arrow[hidden] {
  display: none !important;
}

.mscr-courts__arrow-icon {
  display: block;
  height: 24px;
  width: 24px;
}

.mscr-courts__arrow-icon--prev {
  transform: rotate(180deg);
}

.mscr-courts__panel[hidden] {
  display: none;
}

.mscr-courts__media-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mscr-courts__figure {
  margin: 0;
  min-width: 0;
}

.mscr-courts__caption {
  color: #161a1d;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  margin-bottom: 12px;
}

.mscr-courts__image-wrap {
  aspect-ratio: 16 / 10;
  background: #f4f6f5;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(22, 26, 29, 0.12);
  overflow: hidden;
  width: 100%;
}

.mscr-courts__image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.mscr-courts__placeholder,
.mscr-courts-empty {
  align-items: center;
  background: #f4f6f5;
  color: #4b5653;
  display: flex;
  justify-content: center;
  min-height: 180px;
  padding: 20px;
  text-align: center;
}

.mscr-progress {
  border-top: 1px solid #e6ecea;
  margin-top: 32px;
  padding-top: 28px;
}

.mscr-progress__title {
  color: #41464d;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 24px;
}

.mscr-progress__grid {
  align-items: start;
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 40px;
}

.mscr-progress-table-scroll {
  border: 1px solid #d9dee2;
  border-radius: 6px;
  overflow-x: visible;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.mscr-progress-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.mscr-progress-table th:first-child,
.mscr-progress-table td:first-child {
  width: 34%;
}

.mscr-progress-table th:not(:first-child),
.mscr-progress-table td:not(:first-child) {
  width: 22%;
}

.mscr-progress-table thead {
  background: #002f2a;
  color: #ffffff;
}

.mscr-progress-table th {
  align-content: center;
  background-color: #002f2a !important;
  border-bottom: 0;
  color: #ffffff !important;
  font-size: 14px!important;
  font-weight: 600!important;
  padding: 12px 8px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.mscr-progress-table > thead > tr > th {
  border-bottom: 0px !important;
}

.mscr-progress-table td {
  border-bottom: 1px solid #edf0f2;
  padding: 16px 10px;
  vertical-align: middle;
}

.mscr-progress-table tbody tr:last-child td {
  border-bottom: 0;
}

.mscr-progress-table__total td {
  font-weight: 700;
}

.mscr-progress-table__footnote {
  color: #434343;
  font-size: 16px;
  font-weight: 400;
  margin: 10px 0 0;
}

.mscr-progress-gallery-wrap {
  padding-bottom: 44px;
}

.mscr-progress-gallery__inner {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(22, 26, 29, 0.16);
  height: 225px;
  max-height: 225px;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}

.mscr-progress-gallery:focus {
  outline: none;
}

.mscr-progress-gallery:focus-visible .mscr-progress-gallery__inner {
  outline: 2px solid #006b5f;
  outline-offset: 3px;
}

.mscr-progress-gallery .carousel-item {
  display: block;
  float: none;
  height: 100%;
  inset: 0;
  margin: 0;
  min-height: 100%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(18px);
  transition:
    opacity 280ms ease,
    transform 320ms ease;
  width: 100%;
  border-radius: 16px;
}

.mscr-progress-gallery .carousel-item.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 1;
}

.mscr-progress-gallery.is-moving-prev .carousel-item {
  transform: translateX(-18px);
}

.mscr-progress-gallery.is-moving-prev .carousel-item.active,
.mscr-progress-gallery.is-moving-next .carousel-item.active {
  transform: translateX(0);
}

.mscr-progress-gallery.is-dragging .carousel-item {
  transition: none;
}

.mscr-progress-gallery.is-dragging .carousel-item.active {
  transform: translateX(var(--mscr-swipe-offset, 0));
}

.mscr-progress-gallery__image {
  background: transparent;
  display: block;
  height: 100% !important;
  inset: 0;
  max-height: none;
  max-width: none;
  min-height: 100%;
  min-width: 100%;
  object-fit: cover !important;
  object-position: center center;
  position: absolute;
  user-select: none;
  width: 100% !important;
  -webkit-user-drag: none;
}

.mscr-progress-gallery .carousel-item > img.mscr-progress-gallery__image {
  height: 100% !important;
  inset: 0 !important;
  max-height: none !important;
  max-width: none !important;
  object-fit: cover !important;
  position: absolute !important;
  width: 100% !important;
}

.mscr-progress-gallery__indicators {
  bottom: -36px;
  gap: 8px;
  margin-bottom: 0;
}

.mscr-progress-gallery__indicators [data-bs-target] {
  background-color: #002f2a;
  border: 2px solid #002f2a;
  border-radius: 50%;
  height: 10px;
  margin: 0;
  opacity: 1;
  width: 10px;
}

.mscr-progress-gallery__indicators [data-bs-target]:not(.active) {
  border: 2px solid #ddd;
  background-color: #ddd;
}

@media (max-width: 767px) {
  .mscr-courts {
    margin-top: 24px;
    padding-top: 22px;
  }

  .mscr-courts__title {
    text-align: center;
  }

  .mscr-courts__nav {
    gap: 8px;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
  }

  .mscr-courts.is-overflowing .mscr-courts__nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .mscr-courts__arrow,
  .mscr-courts.is-overflowing .mscr-courts__arrow {
    display: none !important;
  }

  .mscr-courts__tabs {
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    padding: 2px 16px 6px;
    scroll-padding-inline: 16px;
    scroll-snap-type: x proximity;
    width: 100%;
  }

  .mscr-courts__tab {
    font-size: 14px;
    scroll-snap-align: start;
  }

  .mscr-courts__media-grid {
    gap: 20px;
    grid-template-columns: 1fr;
  }

  .mscr-progress {
    margin-top: 24px;
    padding-top: 22px;
  }

  .mscr-progress__title {
    font-size: 20px;
  }

  .mscr-progress__grid {
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .mscr-progress-table th,
  .mscr-progress-table td {
    font-size: 16px;
    padding: 24px 10px;
    white-space: nowrap;
  }

  .mscr-progress-table-scroll {
    overflow-x: auto;
  }

  .mscr-progress-table {
    min-width: 100%;
    table-layout: fixed;
  }

  .mscr-progress-table th:first-child,
  .mscr-progress-table td:first-child {
    width: 30%;
  }

  .mscr-progress-table th:not(:first-child),
  .mscr-progress-table td:not(:first-child) {
    width: 23.333%;
  }

  .mscr-progress-table th {
    align-content: center;
    font-size: 16px;
    line-height: 1.2;
    padding-bottom: 18px;
    padding-top: 18px;
    text-align: center;
    white-space: normal;
  }

  .mscr-progress-gallery__inner,
  .mscr-progress-gallery__image {
    height: min(225px, 56.25vw);
  }
}

@media (max-width: 420px) {
  .mscr-progress-table th:first-child,
  .mscr-progress-table td:first-child {
    width: 30%;
    font-size: 14px !important;
  }

  .mscr-progress-table th:nth-child(2),
  .mscr-progress-table td:nth-child(2) {
    width: 30%;
  }

  .mscr-progress-table th:nth-child(3),
  .mscr-progress-table td:nth-child(3),
  .mscr-progress-table th:nth-child(4),
  .mscr-progress-table td:nth-child(4) {
    width: 20%;
  }
}

@media (max-width: 333px) {
  .mscr-progress-table {
    min-width: 420px;
  }
}

