/*
 * NORDIAL — compact product description and parameters v2
 * Safe version: changes only the description text range and the parameter table.
 */

body.type-detail .ndc-hidden-heading {
  display: none !important;
}

/* DESCRIPTION */
body.type-detail .ndc-description-content {
  position: relative;
  width: 100%;
}

body.type-detail .ndc-description-content.has-overflow.is-collapsed {
  max-height: var(--ndc-description-height, 320px);
  overflow: hidden;
}

body.type-detail .ndc-description-content.has-overflow.is-collapsed::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 76px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 92%);
}

body.type-detail .ndc-description-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 10px 0 22px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #202420;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

body.type-detail .ndc-description-toggle[hidden] {
  display: none !important;
}

body.type-detail .ndc-description-toggle:hover {
  color: #1c3b2d;
}

/* PARAMETERS */
body.type-detail .ndc-parameters {
  width: 100%;
  margin: 8px 0 22px;
}

body.type-detail .ndc-parameter-summary {
  display: grid;
  gap: 13px;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

body.type-detail .ndc-parameter-summary[hidden] {
  display: none !important;
}

body.type-detail .ndc-parameter-summary > li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0;
}

body.type-detail .ndc-check {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  border: 1.5px solid #202420;
  border-radius: 50%;
}

body.type-detail .ndc-check::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 6px;
  width: 7px;
  height: 4px;
  border-bottom: 1.5px solid #202420;
  border-left: 1.5px solid #202420;
  transform: rotate(-45deg);
}

body.type-detail .ndc-parameter-text {
  min-width: 0;
  color: #202420;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body.type-detail .ndc-parameter-toggle {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 62px;
  margin: 0;
  border: 0;
  border-top: 1px solid #e2e3e0;
  border-bottom: 1px solid #e2e3e0;
  padding: 15px 4px 15px 0;
  background: transparent;
  color: #202420;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

body.type-detail .ndc-parameter-toggle-label {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.3;
}

body.type-detail .ndc-arrow {
  flex: 0 0 auto;
  display: block;
  width: 11px;
  height: 11px;
  margin-right: 4px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

body.type-detail .ndc-parameters.is-open .ndc-arrow {
  transform: rotate(135deg);
}

body.type-detail .ndc-description-toggle:focus-visible,
body.type-detail .ndc-parameter-toggle:focus-visible {
  outline: 2px solid #1c3b2d;
  outline-offset: 4px;
}

@media (max-width: 767px) {
  body.type-detail .ndc-description-toggle {
    min-height: 38px;
    margin-top: 8px;
    margin-bottom: 18px;
    font-size: 15px;
  }

  body.type-detail .ndc-parameters {
    margin-top: 4px;
  }

  body.type-detail .ndc-parameter-summary {
    gap: 15px;
    margin-bottom: 20px;
  }

  body.type-detail .ndc-parameter-summary > li {
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 11px;
  }

  body.type-detail .ndc-check {
    width: 23px;
    height: 23px;
  }

  body.type-detail .ndc-parameter-text {
    font-size: 16px;
    line-height: 1.38;
  }

  body.type-detail .ndc-parameter-toggle {
    min-height: 66px;
    padding: 17px 3px 17px 0;
  }

  body.type-detail .ndc-parameter-toggle-label {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.type-detail .ndc-arrow {
    transition: none;
  }
}
