.bm-fabric-comparison {
  --bm-blue: #124e78;
  --bm-blue-dark: #0b3553;
  --bm-pale: #eef6fb;
  --bm-border: #cbd9e2;
  --bm-text: #17212b;
  box-sizing: border-box;
  margin: 18px 0 22px;
  border: 1px solid var(--bm-border);
  border-radius: 10px;
  color: var(--bm-text);
  background: #fff;
  overflow: hidden;
}

.bm-fabric-comparison *,
.bm-fabric-comparison *::before,
.bm-fabric-comparison *::after {
  box-sizing: border-box;
}

.bm-fabric-comparison [hidden] {
  display: none !important;
}

.bm-fabric-comparison__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 18px;
  border: 0;
  color: var(--bm-text);
  background: var(--bm-pale);
  text-align: left;
  cursor: pointer;
}

.bm-fabric-comparison__toggle strong,
.bm-fabric-comparison__toggle small {
  display: block;
}

.bm-fabric-comparison__toggle strong {
  margin-bottom: 3px;
  font-size: 16px;
  line-height: 1.35;
}

.bm-fabric-comparison__toggle small {
  font-size: 13px;
  line-height: 1.45;
}

.bm-fabric-comparison__action {
  flex: 0 0 auto;
  border-radius: 5px;
  padding: 9px 13px;
  color: #fff;
  background: var(--bm-blue);
  font-size: 13px;
  font-weight: 700;
}

.bm-fabric-comparison__toggle:focus-visible {
  outline: 3px solid #f5a623;
  outline-offset: -3px;
}

.bm-fabric-comparison__panel {
  padding: 18px;
}

.bm-fabric-comparison__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bm-fabric-comparison table {
  width: 100%;
  min-width: 720px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.45;
}

.bm-fabric-comparison th,
.bm-fabric-comparison td {
  padding: 11px 12px;
  border: 1px solid var(--bm-border);
  vertical-align: top;
}

.bm-fabric-comparison thead th {
  color: #fff;
  background: var(--bm-blue-dark);
  font-weight: 700;
}

.bm-fabric-comparison thead th:first-child {
  width: 150px;
}

.bm-fabric-comparison tbody th {
  width: 150px;
  background: var(--bm-pale);
  font-weight: 700;
}

.bm-fabric-comparison tbody tr:nth-child(even) td {
  background: #f8fafb;
}

.bm-fabric-comparison__note {
  margin: 13px 0 0;
  color: #4d5c68;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .bm-fabric-comparison__toggle {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .bm-fabric-comparison__action {
    width: 100%;
    text-align: center;
  }

  .bm-fabric-comparison__panel {
    padding: 14px;
  }

  .bm-fabric-comparison table,
  .bm-fabric-comparison thead,
  .bm-fabric-comparison tbody,
  .bm-fabric-comparison tr,
  .bm-fabric-comparison th,
  .bm-fabric-comparison td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .bm-fabric-comparison thead {
    position: static;
    width: 100%;
    height: auto;
    margin-bottom: 8px;
    overflow: visible;
    clip: auto;
  }

  .bm-fabric-comparison thead th:first-child {
    position: static;
    display: block;
    width: 100% !important;
    height: auto;
    padding: 0 2px 8px;
    border: 0;
    color: var(--bm-blue-dark);
    background: transparent;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
  }

  .bm-fabric-comparison thead th:not(:first-child) {
    position: absolute;
    width: 1px !important;
    height: 1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .bm-fabric-comparison tbody tr {
    margin-bottom: 14px;
    border: 1px solid var(--bm-border);
    border-radius: 7px;
    overflow: hidden;
  }

  .bm-fabric-comparison tbody th,
  .bm-fabric-comparison tbody td {
    border: 0;
    border-bottom: 1px solid var(--bm-border);
  }

  .bm-fabric-comparison tbody th {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    padding: 10px 12px;
    color: #fff;
    background: var(--bm-blue-dark);
    text-align: left;
  }

  .bm-fabric-comparison tbody td {
    padding: 9px 12px;
    background: #fff;
  }

  .bm-fabric-comparison tbody tr:nth-child(even) td {
    background: #fff;
  }

  .bm-fabric-comparison tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--bm-blue-dark);
    font-weight: 700;
  }

  .bm-fabric-comparison tbody tr > :last-child {
    border-bottom: 0;
  }
}

