.hb-color-variants {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin: 16px 0;
  padding-bottom: 12px;
  font-family: 'Rubik', Arial, sans-serif;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: #cccccc transparent;
}

.hb-color-variants.hb-dragging {
  cursor: grabbing;
  user-select: none;
}

.hb-color-variants::-webkit-scrollbar {
  height: 6px;
}

.hb-color-variants::-webkit-scrollbar-track {
  background: transparent;
}

.hb-color-variants::-webkit-scrollbar-thumb {
  background-color: #cccccc;
  border-radius: 3px;
}

.hb-color-variants::-webkit-scrollbar-thumb:hover {
  background-color: #999999;
}

.hb-color-variant {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
  font-family: 'Rubik', Arial, sans-serif;
}

.hb-color-variant__frame {
  box-sizing: border-box;
  width: 84px;
  height: 84px;
  padding: 4px;
  border: 1px solid #cccccc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}

.hb-color-variant:not(.hb-color-variant_active):hover .hb-color-variant__frame {
  border-color: #999999;
}

.hb-color-variant_active .hb-color-variant__frame {
  border-color: #E85B07;
}

.hb-color-variant__frame img {
  height: 80px;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  display: block;
}

.hb-color-variant__placeholder {
  height: 80px;
  width: 80px;
  background-color: #e0e0e0;
}

.hb-color-variant__label {
  margin-top: 4px;
  font-size: 12px;
  color: #333333;
  text-align: center;
  font-family: 'Rubik', Arial, sans-serif;
}

.hb-size-table-block {
  margin: 24px 0;
  font-family: 'Rubik', Arial, sans-serif;
  max-width: 100%;
  box-sizing: border-box;
}

.hb-size-table-toggle {
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #222222;
  padding: 8px 0;
}

.hb-size-table-content_hidden {
  display: none;
}

.hb-size-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
}

.hb-size-table th,
.hb-size-table td {
  box-sizing: border-box;
  padding: 8px 6px;
  border: 1px solid #e0e0e0;
  text-align: center;
  word-break: break-word;
}

.hb-size-table th {
  background-color: #f7f7f7;
  font-weight: 600;
  color: #333333;
}

.hb-size-table th:nth-child(1),
.hb-size-table td:nth-child(1) {
  width: 14%;
}

.hb-size-table th:nth-child(2),
.hb-size-table td:nth-child(2) {
  width: 14%;
}

.hb-size-table th:nth-child(3),
.hb-size-table td:nth-child(3) {
  width: 19%;
}

.hb-size-table th:nth-child(4),
.hb-size-table td:nth-child(4) {
  width: 19%;
}

.hb-size-table th:nth-child(5),
.hb-size-table td:nth-child(5) {
  width: 34%;
}

.hb-qty-cell {
  padding-left: 2px;
  padding-right: 2px;
}

.hb-qty-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.hb-qty-btn {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 1px solid #cccccc;
  background-color: #ffffff;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  vertical-align: middle;
  font-family: 'Rubik', Arial, sans-serif;
  touch-action: manipulation;
}

.hb-qty-btn:hover {
  border-color: #999999;
}

.hb-qty-input {
  box-sizing: border-box;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 40px;
  height: 26px;
  margin: 0;
  text-align: center;
  border: 1px solid #cccccc;
  font-family: 'Rubik', Arial, sans-serif;
  font-size: 13px;
  padding: 0;
  vertical-align: middle;
  -moz-appearance: textfield;
}

.hb-size-table-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.hb-size-table-footer__hint-group {
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hb-size-table-footer__hint {
  font-size: 13px;
  color: #777777;
}

.hb-size-table-footer__available {
  font-size: 13px;
  color: #777777;
}

.hb-size-table-footer__available-value {
  color: #2e8b3d;
  font-weight: 600;
}

.hb-size-table-footer__total {
  font-size: 16px;
  font-weight: 600;
  color: #222222;
}

.hb-size-table-total-value {
  color: #E85B07;
}

.hb-size-table-add-btn {
  background-color: #E85B07;
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Rubik', Arial, sans-serif;
}

.hb-size-table-add-btn:hover {
  background-color: #c94e05;
}

.hb-radio-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .hb-size-table-footer {
    justify-content: space-between;
  }

  .hb-size-table-toggle {
    font-size: 14px;
    padding: 6px 0;
  }

  .hb-size-table {
    font-size: 11px;
  }

  .hb-size-table th,
  .hb-size-table td {
    padding: 4px 2px;
  }

  .hb-size-table th:nth-child(1),
  .hb-size-table td:nth-child(1) {
    width: 15%;
  }

  .hb-size-table th:nth-child(2),
  .hb-size-table td:nth-child(2) {
    width: 15%;
  }

  .hb-size-table th:nth-child(3),
  .hb-size-table td:nth-child(3) {
    width: 18%;
  }

  .hb-size-table th:nth-child(4),
  .hb-size-table td:nth-child(4) {
    width: 18%;
  }

  .hb-size-table th:nth-child(5),
  .hb-size-table td:nth-child(5) {
    width: 34%;
  }

  .hb-qty-controls {
    gap: 2px;
  }

  .hb-qty-btn {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }

  .hb-qty-input {
    max-width: 32px;
    height: 26px;
    font-size: 12px;
  }

  .hb-size-table-footer__hint,
  .hb-size-table-footer__total {
    font-size: 12px;
  }

  .hb-size-table-add-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}
