.cw-product-table-wrapper {
  width: 100%;
  max-width: 100%;
  padding-top: 25px;
}

.cw-coddes-table-wrapper {
  width: 100%;
  max-width: 100%;
  padding-bottom: 1rem;
}

.cw-codes-table-title {
  font-family: "Open Sans", Sans-serif !important;
  font-size: 18px !important;
  border-top: 1px solid #ccc;
  padding-top: 10px;
}

.cw-product-table-scroller {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  max-height: 100% !important;
  /* margin-bottom: 20px; */
}

.cw-product-table-scroller::-webkit-scrollbar {
  width: 8px;
  height: 10px;
}

.cw-product-table-scroller::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.cw-product-table-scroller::-webkit-scrollbar-thumb {
  background-color: #999999;
  border-radius: 4px;
  border: 2px solid #f1f1f1;
}

.cw-product-table-scroller::-webkit-scrollbar-thumb:hover {
  background-color: #868686;
}

.cw-product-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: auto;
  min-width: 0;
  font-family: "Roboto", "Open Sans", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  table-layout: auto;
  color: #3f4044;
}

.cw-product-table thead tr {
  position: sticky;
  top: 0;
  z-index: 2;
}

.cw-product-table thead th {
  border-top: none !important;
}

.cw-product-table th,
.cw-product-table td {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-bottom: 1px solid #ccc !important;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}

.cw-product-table th {
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-weight: 600;
  background-color: #808080;
  color: #fff;
  border-color: #ccc;
  white-space: normal;
}

.cw-product-table thead tr:first-child th {
  font-size: 14px;
  text-align: center;
}

.cw-product-table thead tr:not(:first-child) th {
  font-size: 14px;
  font-weight: 600;
}

.cw-product-table td {
  font-weight: 400;
  font-size: 12px;
  padding: 10px;
  height: 37px !important;
  line-height: 15px !important;
  font-family: "Open Sans", sans-serif;
  /* background-color: #ffffff; */
}

.cw-product-table th:first-child,
.cw-product-table td:first-child {
  text-align: center;
  font-weight: 400;
}

.cw-product-table tbody tr:hover td {
  background-color: #f5f5f5;
}

.cw-product-table-empty {
  width: 100%;
  border: 1px solid #dbdbdb;
  padding: 16px;
  text-align: center;
  font-size: 14px;
  color: #666666;
  border-radius: 4px;
  background-color: #fafafa;
}

.cw-firstcell-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cw-firstcell-wrap input[type="checkbox"] {
  inline-size: 16px;
  block-size: 16px;
  margin: 0;
}
.cw-firstcell-text {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  color: #3f4044;
}

.cw-product-table th.cw-col-item-number,
.cw-product-table td.cw-col-item-number {
  min-width: 230px;
  width: 230px;
  text-align: left;
}

.cw-product-table td label {
  font-size: 12px;
  margin-bottom: 0 !important;
}

.cw-product-table th.cw-col-code-word,
.cw-product-table td.cw-col-code-word {
  min-width: 230px;
  width: 230px;
  text-align: left;
}

.cw-table-actions {
  order: 2;
  flex: 0 0 auto;
  margin-left: auto;
  justify-content: flex-end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cw-compare-btn {
  padding: 20px;
  /* min-width: 185px; */
  min-height: 60px;
  height: 100%;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  background: #be2a3a;
  cursor: pointer;
}

.cw-compare-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  border: none;
}

.cw-compare-btn:hover:not(:disabled) {
  background: #6f222b;
  border: none;
  color: #fff;
}

.cw-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 1rem;
}

.cw-page-status {
  font-size: 14px;
  color: #3f4044;
  line-height: 1.4;
}

.cw-pager {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cw-entries-label {
  font-size: 17px;
  color: #3f4044;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
}

.cw-entries-select {
  min-width: 64px;
  padding: 4px 8px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 17px;
  margin-bottom: 0;
}

.cw-pager label {
  font-weight: normal;
}

.cw-page-btn {
  padding: 4px 8px;
  min-height: 30px;
  min-width: 80px;
  background: #be2a3a;
  font-weight: 400;
  font-size: 17px;
  cursor: pointer;
}

.cw-page-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  border: none;
}

.cw-page-btn:not(:disabled):hover {
  background: #6f222b;
  border: none;
}

.cw-selected-tags {
  order: 1;
  flex: 1 1 auto;
  margin: 0;
  align-items: center;
  display: flex;
  height: 100%;
  flex-wrap: wrap;
  gap: 6px;
}
.cw-selected-tags .selected-value {
  /* background:#808080;  */
  padding: 5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #000;
  color: #3f4044;
  font-size: 12px;
  height: 40px;
  /* width: 100px; */
}
.cw-selected-tags .remove-value {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #222;
}

/* ===== Compare Matrix ===== */
.cw-compare-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}
.cw-back-btn,
.cw-quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 120px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  background: #be2a3a;
  color: #fff;
  cursor: pointer;
}
.cw-back-btn:hover,
.cw-quote-btn:hover {
  background: #6f222b;
  color: #fff;
}

.cw-compare-scroller {
  width: 100%;
  overflow-x: auto;
}
.cw-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  color: #3f4044;
}
.cw-compare-table th,
.cw-compare-table td {
  padding: 8px 12px;
  border: 1px solid #ccc;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
  background-color: #f2f2f2;
}
.cw-compare-table thead th {
  font-weight: 600;
  background: #808080;
  color: #fff;
}
.cw-compare-table tbody td:first-child {
  text-align: left;
  background: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.matrix-head-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
}
/* .matrix-head-cell input[type="checkbox"] {
  inline-size: 16px;
  block-size: 16px;
} */
.matrix-item-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}
.matrix-col-measure {
  display: inline-block;
  font-size: 12px;
  color: #666;
  vertical-align: middle;
  font-weight: 400;
}

.matrix-col-label {
  display: inline-block;
}

.cw-box-action {
  display: flex;
  align-items: stretch;
  height: 60px;
  justify-content: space-between;
}

.cw-product-table thead th .cw-th-measure {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  margin-top: 2px;
  font-weight: 400;
}
/* ====================== */

.cw-product-notes {
  font-size: 12px;
}
.cw-product-notes em {
  font-weight: bold;
}

.cw-note-list {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 0;
}
.cw-note-list li {
  margin: 0 0 2.4px 0;
  line-height: 16px !important;
}

.e-con-inner .elementor-widget-container .cw-product-notes .cw-note-lines .cw-note-line {
  line-height: 16px !important;
}

.cw-other-anyhtml p {
  font-size: 14px;
  font-family: Arial !important;
  margin: 0 0 4px 0 !important;
}

.cw-other-anyhtml .cw-product-table thead span {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #fff !important;
}

@media (max-width: 1400px) {
  .cw-product-table {
    font-size: 12px;
    min-width: 1400px;
  }

  .cw-product-table th,
  .cw-product-table td {
    padding: 6px 8px;
  }

  .cw-product-table thead tr:first-child th {
    font-size: 14px;
  }

  .cw-product-table thead tr:not(:first-child) th {
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .cw-product-table {
    font-size: 11px;
    min-width: 1300px;
  }

  .cw-product-table th,
  .cw-product-table td {
    padding: 8px 12px;
  }

  .cw-table-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
