#hpmodel {
  display: none;
}
.hpm-group {
  margin: 10px 0px;
}
.hpm-clearfix {
  clear: both;
}
.hpm-title {
  font-weight: bold;
  width: 100%;
}
.hpm-type-images {
  margin: 0 -3px;
  width: 100%;
}
#hpmodel .hpm-type-images .hpm-item {
  position: relative;
  margin: 2px;
  cursor: pointer;
  border-radius: 5px;
 
  float: left;
  text-align: center;
  max-width: 90px;
  color: #666;
  padding: 1px;
}
.hpm-type-images .hcol-image img {
  width: 100%;
}
.hpm-type-images .hpm-item > div:not(.hcol-image) {
  padding: 0px 2px;
  min-width: 30px;
}
.hpm-type-images .hpm-item.active {
  box-shadow: 0 0 5px rgba(33, 153, 198, 0.45);
  border: 1px solid #5d9ed1;
  background-color: #fff;
}
.hpm-type-images .hpm-item:hover {
  box-shadow: 0 0 5px rgba(33, 153, 198, 0.5);
}
.hpm-type-images .hpm-item.disabled, .hpm-type-html-select .hpm-item.disabled {
  opacity: .3;
}
.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) !important;
  background-color: #f9f9f9;
}
.hpm-cat-box select {
  width: 100%;
}
.hpm-cat-box .hprice, #hpmodel .hprice {
  font-weight: bold;
  font-size: 13px;
}
.hpm-cat-box .hprice-new, #hpmodel .hprice-new {
  font-weight: bold;
  font-size: 13px; 
}
.hpm-cat-box .hprice-old, #hpmodel .hprice-old {
  color: #E12C31;
  text-decoration: line-through;
}
.product-thumb {
  overflow: unset !important;
}
.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;
}
.hpm-type-images .not_available {
    opacity: 0.8;
}
.not_available .hcol-price, .not_available {
    opacity: 0;
}

.hcol-mpn {
    opacity: 1;
}

.hcol-mpn {
   top: -1px;
    position: absolute;
    left: -1px;
    background-color: #5d9ed1;
    color: #fff;
    padding: 0 3px 0 3px !important;
    border-radius: 5px 0 7px 0 !important;
    line-height: 16px;
    
    font-size: 10px;
}


#hpmodel .hcol-image {
  padding: 0px;
  padding-top: 5px;
}

.hpm-cat-box .hpm-type-images {
      margin: 0px;
}

.hpm-cat-box .hcol-image {
      padding: 0 2px;
}

.hpm-type-images .hpm-item {
 
  margin: 1px;
  cursor: pointer;
  border-radius: 5px;
  border: 1px solid #d3d3d3;
  float: left;
  text-align: center;
  max-width: 59px;
  color: #666;
  padding: 1px;
  
 
}

@media (min-width:10px) and (max-width:1023px) {
   
   .hpm-cat-box .hcol-image {
      padding: 0 1px;
}

.hpm-cat-box .hpm-type-images {
      margin: 0px;
}

.hpm-type-images .hpm-item {
 
  
  margin: 1px;
  cursor: pointer;
  border-radius: 5px;
  border: 1px solid #d3d3d3;
  float: left;
  text-align: center;
  max-width: 34px;
  color: #666;
  padding: 1px;
  
 
}
   
}
@media (max-width: 430px) {
  /* стили для экранов до 415px */
  
 #hpmodel .hpm-type-images .hpm-item {
  
  max-width: 96px;
 
}
}


@media (max-width: 415px) {
  /* стили для экранов до 415px */
  
 #hpmodel .hpm-type-images .hpm-item {
  
  max-width: 91px;
 
}
}

@media (max-width: 402px) {
  /* стили для экранов до 415px */
  
 #hpmodel .hpm-type-images .hpm-item {
  
  max-width: 88px;
 
}
}

@media (max-width: 400px) {
  /* стили для экранов до 400px */
  
 #hpmodel .hpm-type-images .hpm-item {
  
  max-width: 86px;
 
}


}

@media (max-width: 380px) {
  /* стили для экранов до 400px */
  
 #hpmodel .hpm-type-images .hpm-item {
  
  max-width: 82px;
 
}


}

@media (max-width: 360px) {
  /* стили для экранов до 400px */
  
 #hpmodel .hpm-type-images .hpm-item {
  
  max-width: 77px;
    
 
}
.hpm-type-images .hpm-item > div:not(.hcol-image) {
  padding: 0px 1px;
 
}

}

.hprice-new {
  color: #e66761; /* нова ціна червона */
  font-weight: 500;
}

.hcol-price .hprice-old:has(+ .hprice-new) {
  display: none; /* ховаємо стару ціну, якщо після неї є нова */
}

#hpmodel.hide-unavailable a.not_available{
    display:none;
}