/* Styling on the wrapper directly for full-bleed backgrounds */
.specifications-table-wrapper {
  padding: var(--space-48) 0;
}

.specifications-table {
  --border-color: var(--border-light, #EAEAEA);
  --cell-padding: var(--space-16);
  --table-text-size: var(--text-medium-size);
}

.specifications-table .visma-module-header {
  margin-bottom: calc(var(--block-padding-vertical) * 0.5);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.specifications-table .visma-module-header h1,
.specifications-table .visma-module-header h2,
.specifications-table .visma-module-header h3,
.specifications-table .visma-module-header h4 {
    margin-bottom: 0 !important;
}
.specifications-table .specifications-table__description {
  margin-top: var(--space-16);
}

/* Accordion Component UI */
.specifications-table .specifications-table__category {
  margin-bottom: var(--space-16);
  background-color: #FFFFFF;
  overflow: hidden;
}

.specifications-table .specifications-table__category-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-24);
  background-color: #F8F8F8;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease;
  border-radius: var(--radius-small, 4px);

}

.specifications-table .specifications-table__category-toggle:hover,
.specifications-table .specifications-table__category-toggle:focus-visible {
  background-color: #F9F5FF;
}
.specifications-table .specifications-table__category-toggle[aria-expanded="true"] {
  background-color: #F9F5FF;
}

.specifications-table .specifications-table__category-toggle h3 {
  margin: 0;
  font-size: var(--title-small-size);
}

.specifications-table .specifications-table__accordion-icon {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-dark, #000000);
}

.specifications-table .specifications-table__category-toggle[aria-expanded="true"] .specifications-table__accordion-icon {
  transform: rotate(180deg);
}

/* Linear Height Animation Architecture via CSS Grid Track Sizing */
.specifications-table .specifications-table__category-content {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s step-end;
}

.specifications-table .specifications-table__category-toggle[aria-expanded="true"] + .specifications-table__category-content {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s step-start;
}
.specifications-table .specifications-table__category-toggle[aria-expanded="false"] + .specifications-table__category-content {
  height: 0px !important;
}

.specifications-table .specifications-table__category-inner {
  overflow: hidden;
  padding: 0 var(--space-24);
  padding-bottom: var(--space-24);
  min-width: 850px;
}

/* Table / Matrix Layout Configuration */
.specifications-table .specifications-table__grid {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-24);
}

.specifications-table .specifications-table__row {
  display: grid;
  grid-template-columns: 2fr repeat(calc(var(--grid-columns) - 1), 1fr);
  gap: var(--space-16);
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.specifications-table .specifications-table__row:last-child {
  border-bottom: none;
}

.specifications-table .specifications-table__cell {
  padding: var(--cell-padding) 0;
  font-size: var(--table-text-size);
  text-align: center;
  color: var(--text-dark, #000000);
  display: flex;
  justify-content: center;
  align-items: center;
}

.specifications-table .specifications-table__cell--first {
  text-align: left;
  justify-content: flex-start;
  font-weight: 400;
}

.specifications-table .specifications-table__row--header .specifications-table__cell {
  font-weight: 700;
  padding-bottom: var(--space-12);
}
.specifications-table .specifications-table__row--header .specifications-table__cell--first {
  font-size: var(--text-large-size);
}

/* Dynamic Value Icons & States */
.specifications-table .specifications-table__cell svg {
  display: block;
}

.specifications-table .specifications-table__cell {
  color: var(--site-text-color);
}
.specifications-table .specifications-table__cell.-true svg path {
  stroke: var(--site-text-color);
}
.specifications-table .specifications-table__cell.-false svg path {
  stroke: #00000010; !important;
}
.specifications-table .specifications-table__cell.-addon svg path {
  stroke: #FC7E8D !important;
  fill: #FC7E8D !important;
}
.specifications-table .specifications-table__text-val {
  font-size: var(--text-medium-size);
  font-weight: 500;
}

/* Screen Reader Utility */
.specifications-table .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive Viewports */
@media screen and (max-width: 768px) {
  .specifications-table .specifications-table__row {
    grid-template-columns: 1.5fr repeat(calc(var(--grid-columns) - 1), 1fr);
    gap: var(--space-8);
  }
  .specifications-table .specifications-table__category-inner {
    padding: 0 var(--space-12) var(--space-12);
  }
  .specifications-table .specifications-table__category-content {
    overflow-x: auto;
  }
  .specifications-table {
    --table-text-size: var(--text-small-size);
  }
}