.elementor-widget-mumak_score_card {
  container-name: mumak-score-card-widget;
  container-type: inline-size;
}

.mumak-score-card {
  --mumak-divider-width: 1px;
  box-sizing: border-box;
  width: 100%;
  margin-inline: auto;
  padding: 20px;
  background-color: #fff;
  border-color: #e8dcbf;
  border-width: 1px;
  border-style: solid;
  border-radius: 10px;
  overflow: hidden;
}

.mumak-score-card *,
.mumak-score-card *::before,
.mumak-score-card *::after {
  box-sizing: border-box;
}

.mumak-score-card__header {
  display: block;
  padding-bottom: 20px;
  border-bottom-style: solid;
  border-bottom-width: var(--mumak-divider-width);
  border-bottom-color: #e8dcbf;
}

.mumak-score-card__headline {
  min-width: 0;
  margin: 0;
  color: #c6a75e;
  font-family: Sora, sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}

.mumak-score-card__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
  min-height: 190px;
  margin-top: 20px;
}

.mumak-score-card__header:not(.has-logo) .mumak-score-card__summary {
  grid-template-columns: 1fr;
}

.mumak-score-card__header:not(.has-logo) .mumak-score-card__score-column {
  justify-content: center;
}

.mumak-score-card__header:not(.has-logo) .mumak-score-card__score-graphic {
  max-width: 360px;
}

.mumak-score-card__logo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-width: 0;
}

.mumak-score-card__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 260px;
  max-height: 100px;
  object-fit: contain;
}

.mumak-score-card__body {
  padding-top: 20px;
}

.mumak-score-card__score-column {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.mumak-score-card__score-graphic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: 180px;
  max-width: 100%;
}

.mumak-score-card__compass {
  display: block;
  flex: 0 0 auto;
  max-width: 62%;
  max-height: 180px;
  object-fit: contain;
}

.mumak-score-card__score {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58%;
  transform: translateY(-50%);
  color: #35515e;
  font-family: Sora, sans-serif;
  font-size: 48px;
  font-weight: 200;
  line-height: 1;
  white-space: nowrap;
}

.mumak-score-card__score span {
  font-size: inherit;
  font-weight: inherit;
}

.mumak-score-card__criteria {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1.35fr) minmax(0, 0.95fr) minmax(0, 1.1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.mumak-score-card__criterion {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 112px;
  margin: 0;
  padding: 8px 6px;
  border-right-style: solid;
  border-right-width: var(--mumak-divider-width);
  border-right-color: #e8dcbf;
}

.mumak-score-card__criterion:last-child {
  border-right-width: 0;
}

.mumak-score-card__criterion-label {
  color: #45382a;
  font-family: Inter, sans-serif;
  max-width: 100%;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-align: center;
}

.mumak-score-card__mammoth {
  display: block;
  order: -1;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  -webkit-mask-image: var(--mumak-mammoth-mask);
  mask-image: var(--mumak-mammoth-mask);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.mumak-score-card__mammoth.is-active {
  background-color: #c6a75e;
}

.mumak-score-card__mammoth.is-inactive {
  background-color: #ebebeb;
}

.mumak-score-card__detail {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(14px, 5%, 48px);
  min-height: 140px;
}

.mumak-score-card__detail-compass-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.mumak-score-card__detail-compass {
  display: block;
  width: 180px;
  height: 180px;
  max-width: min(100%, 130px);
  max-height: 130px;
  object-fit: contain;
}

.mumak-score-card__detail-content {
  min-width: 0;
}

.mumak-score-card__company {
  margin: 0 0 18px;
  color: #45382a;
  font-family: Sora, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
}

.mumak-score-card__detail-mammoths {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: clamp(4px, 3%, 18px);
  width: 100%;
  max-width: 460px;
}

.mumak-score-card__detail-mammoth {
  display: block;
  width: 100%;
  max-width: 50px;
  aspect-ratio: 1;
  -webkit-mask-image: var(--mumak-mammoth-mask);
  mask-image: var(--mumak-mammoth-mask);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.mumak-score-card__detail-mammoth.is-default {
  background-color: #aec4cf;
}

.mumak-score-card__detail-mammoth.is-active-positive {
  background-color: #c6a75e;
}

.mumak-score-card__detail-mammoth.is-active-negative {
  background-color: #ccc;
}

.mumak-score-card__detail-mammoth.is-inactive-positive {
  background-color: #e8dcbf;
}

.mumak-score-card__detail-mammoth.is-inactive-negative {
  background-color: #ebebeb;
}

.mumak-score-card__detail-result {
  margin-top: 16px;
  color: #45382a;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
}

@media (max-width: 767px) {
  .mumak-score-card__company {
    font-size: 20px;
  }
}

.mumak-score-card__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 220px;
  padding-top: 20px;
  color: #45382a;
  font-family: Inter, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.mumak-score-card__placeholder-title {
  color: #35515e;
  font-family: Sora, sans-serif;
  font-size: 24px;
  font-weight: 700;
}

@container mumak-score-card-widget (min-width: 587px) and (max-width: 680px) {
  .mumak-score-card__summary {
    min-height: 150px;
  }

  .mumak-score-card__score-graphic {
    min-height: 140px;
  }

  .mumak-score-card__compass {
    max-height: 140px;
  }

  .mumak-score-card__criterion {
    min-height: 100px;
    padding-inline: 4px;
  }

  .mumak-score-card__criterion-label {
    font-size: 13px !important;
  }
}

@container mumak-score-card-widget (min-width: 587px) and (max-width: 648px) {
  .mumak-score-card__criterion-label {
    font-size: 12px !important;
  }
}

@container mumak-score-card-widget (max-width: 586px) {
  .mumak-score-card__headline {
    font-size: 20px;
    text-align: center;
  }

  .mumak-score-card__logo img {
    max-width: 170px;
  }

  .mumak-score-card__summary {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    min-height: 0;
    margin-top: 18px;
  }

  .mumak-score-card__logo {
    justify-content: center;
  }

  .mumak-score-card__score-column {
    justify-content: center;
    width: 100%;
  }

  .mumak-score-card__score-graphic {
    justify-content: center;
    width: min(100%, 220px);
    min-height: 170px;
  }

  .mumak-score-card__compass {
    max-width: 170px;
    max-height: 170px;
  }

  .mumak-score-card__score {
    inset: 0;
    width: 100%;
    transform: none;
  }

  .mumak-score-card__score {
    font-size: 32px;
  }

  .mumak-score-card__mammoth {
    order: 0;
    width: 30px;
    height: 30px;
  }

  .mumak-score-card__header {
    min-height: 0;
    gap: 14px;
    padding-bottom: 18px;
  }

  .mumak-score-card__body {
    padding-top: 18px;
  }

  .mumak-score-card__criteria {
    display: block;
  }

  .mumak-score-card__criterion {
    flex-direction: row;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
    padding: 6px 0;
    border-right-width: 0;
    border-bottom-style: solid;
    border-bottom-width: var(--mumak-divider-width);
    border-bottom-color: #e8dcbf;
  }

  .mumak-score-card__criterion:last-child {
    border-bottom-width: 0;
  }

  .mumak-score-card__criterion-label {
    font-size: 14px;
    overflow-wrap: normal;
    text-align: left;
  }

  .mumak-score-card__placeholder {
    min-height: 180px;
  }
}
