.hpm-group {
  margin: 10px 0px;
}
.hpm-clearfix {
  clear: both;
}
.hpm-title {
  font-weight: bold;
  width: 100%;
}
.hpm-title-category {
  font-size: 70%;
  color: #8f90a6;
  width: 100%;
}
.hpm-type-images {
  margin: 0 -3px;
  width: 100%;
}
.hpm-type-images .hpm-item {
  margin: 3px;
  cursor: pointer;
  border: 2px solid #d3d3d3;
  float: left;
  text-align: center;
  max-width: 100px;
  color: #666;
  border-radius: 3px;
}
.hpm-type-images .hcol-image img {
  width: 100%;
}
.hpm-type-images .hpm-item > div:not(.hcol-image) {
  padding: 3px 5px;
  min-width: 30px;
}
.hcol-ean {
	font-size: small;
    padding: 1px 2px;

}
.hpm-type-images .hpm-item.active {
  color: rgb(255, 255, 255);
  box-shadow: 0 0 5px rgba(0, 155, 221, 0.45);
  border: 2px solid rgb(0, 155, 221);
  background-color: rgb(0, 155, 221);
  border-radius: 3px;
}
.hpm-type-images .hpm-item:hover {
  box-shadow: 0 0 5px rgba(0, 155, 221, 0.5);
}
.hpm-type-images .hpm-item.disabled, .hpm-type-html-select .hpm-item.disabled {
  opacity: .3;
  cursor: not-allowed;
}
/* Недоступний варіант не має підсвічуватись при наведенні - інакше виглядає клікабельним */
.hpm-type-images .hpm-item.disabled:hover {
  box-shadow: none;
}
.hpmodel-type-select .hpm-item.disabled {
  color: #ccc;
}
.hpm-type-html-select .hpm-select-item img  {
    border-radius: 0;
    padding: 0;
    margin: 2px;
}
.hpm-select {
  cursor: pointer;
  position: relative;
  width: 100%;
}
.hpm-select .selected {
  background: url(select.png) right center no-repeat;
  display: block;
  border: 1px solid #cecece;
  background-color: #F6F6F6;
  padding: 3px 25px 3px 3px;
  color: #444;
  overflow: auto;
}
.hpm-select.open .selected {
}
.hpm-select .hpm-select-item {
  overflow: auto; padding: 3px;
}
.hpm-select .hcol-image {
  float: left; margin-right: 10px; padding: 2px; background: #fff; border: 1px solid #ddd;
}
.hpm-select .drop-down {
  margin: -1px 0 0 0;
  padding: 0;
  width: 100%;
  border: 1px solid #cecece;
  position: absolute;
  background: #fff;
  max-height: 300px;
  overflow-y: auto;
  background: #fff;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.hpm-select .drop-down > div {
  padding: 2px 5px;
  border-bottom: 1px solid #cecece;
}
.hpm-select .drop-down > div:last-child {
  border-bottom: none;
}
.hpm-select .drop-down > div.active {
  background: #F6F6F6;
}
.hpm-select .drop-down > div:hover {
  background-color: #e8e8e8;
  color: #222;
}


.hpm-cat-box {
  margin-bottom: 5px;
}
.hpm-cat-box .hpm-type-images .hpm-cat-item {
  display: inline-block;
  text-align: center;
  vertical-align: top;
  cursor: pointer;
  margin: 4px;
  padding: 2px;
  box-shadow: 0 0 5px rgba(33, 153, 198, 0.0);
  border: 2px solid #d3d3d3;
}
.hpm-cat-box .hpm-type-images .hpm-cat-item .hpm-col-image img {
  width: 100%;
}

.hpm-cat-box .hpm-type-images .hpm-cat-item.active {
  box-shadow: 0 0 5px rgba(33, 153, 198, 0.45);
  border: 2px solid rgb(33, 153, 198);
  background-color: #f9f9f9;
}

.hpm-cat-box select {
  width: 100%;
}
.hpm-cat-box .hprice, #hpmodel .hprice {
  font-weight: bold;
}
.hpm-cat-box .hprice-new, #hpmodel .hprice-new {
  font-weight: bold;
}
.hpm-cat-box .hprice-old, #hpmodel .hprice-old {
  color: #E12C31;
  text-decoration: line-through;
}
.hpm-cat-content.hpm-type-html-select .hpm-select .selected {
    padding: 0;
}
.hpm-cat-content.hpm-type-html-select .hpm-select .selected .hpm-col-none {
    padding: 2px 5px;
}
.hpm-type-html-select .hpm-select .hpm-select-item img  {
    border-radius: 0;
    padding: 0;
    margin: 2px;
}
.hpm-cat-content.hpm-type-html-select .hpm-cat-item{
    border-radius: 0;
    padding: 2px 5px !important;
}
.product-sizes {
  font-size: 10px;
  color: #8f90a6;
  margin-top: 5px;
}
.sizes-list {
  font-size: 10px;
  color: #8f90a6;
  margin-top: 5px;
}

/* Швидкий перехід - варіанти-посилання у списку категорій */
.hpm-cat-links { margin-top: 6px; }
.hpm-cat-links .hpm-main-title { font-size: 10px; color: #8f90a6; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 3px; }
.hpm-cat-links .hpm-group { margin-bottom: 4px; }
.hpm-cat-links .hpm-title { font-size: 10px; color: #8f90a6; margin-bottom: 2px; }
.hpm-cat-links .hpm-links-list-wrap { position: relative; }
.hpm-cat-links .hpm-links-list {
    display: flex; flex-wrap: nowrap; gap: 3px; white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    cursor: grab;
    -webkit-user-select: none; -ms-user-select: none; user-select: none;
}
.hpm-cat-links .hpm-links-list::-webkit-scrollbar { display: none; }
.hpm-cat-links .hpm-links-list.dragging { cursor: grabbing; scroll-behavior: auto; }
.hpm-cat-links .hpm-links-list.dragging .hpm-link-item { pointer-events: none; }
.hpm-cat-links .hpm-link-item {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 1px 2px;
    font-size: 11px; line-height: 1.3; color: #4a4d5a;
    background: #f5f6f8; border: 1px solid #e6e8ec; border-radius: 3px;
    text-decoration: none; cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
    white-space: nowrap; flex-shrink: 0;
}
.hpm-cat-links .hpm-link-item:hover { background: #fff; border-color: #2196f3; color: #2196f3; text-decoration: none; }
.hpm-cat-links .hpm-link-item .hcol-image img { display: block; width: auto; height: 14px; border-radius: 2px; }
.hpm-cat-links .hpm-link-item .hcol-price { font-weight: 600; }
.hpm-cat-links .hpm-overflow-arrow {
    position: absolute; top: 0; bottom: 0;
    display: none; align-items: center; justify-content: center;
    min-width: 22px;
    font-size: 18px; line-height: 1; font-weight: bold; color: #2196f3;
    cursor: pointer;
    transition: color .15s;
    z-index: 1;
}
.hpm-cat-links .hpm-arrow-left {
    left: 0; padding-right: 16px;
    background: linear-gradient(to left, rgba(255,255,255,0), #fff 55%);
}
.hpm-cat-links .hpm-arrow-right {
    right: 0; padding-left: 16px;
    background: linear-gradient(to right, rgba(255,255,255,0), #fff 55%);
}
.hpm-cat-links .hpm-overflow-arrow:hover { color: #0d6efd; }
.hpm-cat-links .hpm-links-list-wrap.has-more-left .hpm-arrow-left { display: flex; }
.hpm-cat-links .hpm-links-list-wrap.has-more-right .hpm-arrow-right { display: flex; }
.hpm-cat-links .hpm-clearfix { clear: both; }
