/* VelaKiss v1.1.17 — compact sticky bar with synchronized attributes */
.vk-sticky-cart {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: clamp(14px, 2.2vw, 34px);
  min-height: 64px;
  padding-block: 6px;
}

.vk-has-sticky-cart {
  padding-bottom: 64px;
}

.vk-sticky-image {
  width: 38px;
  height: 46px;
}

.vk-sticky-product {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
}

.vk-sticky-product > div {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: clamp(16px, 3vw, 54px);
}

.vk-sticky-product strong {
  max-width: min(35vw, 560px);
  font-size: 10px;
}

.vk-sticky-price,
.vk-sticky-price .price,
.vk-sticky-price ins,
.vk-sticky-price del {
  font-size: 16px !important;
}

.vk-sticky-attributes {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.vk-sticky-attributes[hidden] { display: none !important; }

.vk-sticky-attributes label {
  position: relative;
  display: block;
  min-width: 112px;
}

.vk-sticky-attributes label > span {
  position: absolute;
  z-index: 1;
  top: 5px;
  left: 11px;
  max-width: calc(100% - 22px);
  overflow: hidden;
  color: rgba(255,255,255,.52);
  font-size: 7px;
  letter-spacing: .1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.vk-sticky-select {
  width: 100%;
  height: 42px;
  padding: 12px 28px 0 10px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 0;
  background-color: transparent;
  color: #fff;
  font: 400 10px/1 Arial, sans-serif;
}

.vk-sticky-select option {
  background: var(--vk-ink);
  color: #fff;
}

.vk-sticky-actions {
  grid-template-columns: 66px minmax(140px, 190px);
  gap: 8px;
}

.vk-sticky-qty,
.vk-sticky-button {
  height: 42px;
}

.vk-sticky-button {
  padding-inline: 18px;
  font-size: 9px;
}

@media (max-width: 1100px) {
  .vk-sticky-cart {
    grid-template-columns: minmax(170px, 1fr) auto auto;
    padding-inline: 18px;
  }
  .vk-sticky-product > div {
    display: block;
  }
  .vk-sticky-product strong {
    max-width: 25vw;
  }
  .vk-sticky-price {
    margin-top: 4px;
  }
  .vk-sticky-attributes label {
    min-width: 96px;
    max-width: 120px;
  }
  .vk-sticky-actions {
    grid-template-columns: 58px minmax(118px, 150px);
  }
}

@media (max-width: 800px) {
  .vk-sticky-cart {
    display: grid;
    grid-template-columns: auto minmax(78px, 112px) 52px minmax(100px, 1fr);
    gap: 6px;
    min-height: 62px;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
  }
  .vk-has-sticky-cart {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }
  .vk-sticky-product {
    display: block;
  }
  .vk-sticky-image,
  .vk-sticky-product strong {
    display: none;
  }
  .vk-sticky-product > div {
    display: block;
  }
  .vk-sticky-price {
    margin: 0;
    white-space: nowrap;
  }
  .vk-sticky-price,
  .vk-sticky-price .price,
  .vk-sticky-price ins,
  .vk-sticky-price del {
    font-size: 12px !important;
  }
  .vk-sticky-attributes {
    min-width: 0;
    overflow-x: auto;
  }
  .vk-sticky-attributes label {
    min-width: 100%;
    max-width: 100%;
  }
  .vk-sticky-select {
    height: 44px;
  }
  .vk-sticky-actions {
    display: contents;
  }
  .vk-sticky-actions label {
    min-width: 0;
  }
  .vk-sticky-actions label span {
    left: 7px;
  }
  .vk-sticky-qty,
  .vk-sticky-button {
    height: 44px;
  }
  .vk-sticky-button {
    min-width: 0;
    padding: 0 8px;
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 430px) {
  .vk-sticky-cart {
    grid-template-columns: minmax(62px, auto) minmax(74px, 96px) 44px minmax(82px, 1fr);
    min-height: 60px;
    padding-inline: 7px;
  }
  .vk-has-sticky-cart {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }
  .vk-sticky-price,
  .vk-sticky-price .price,
  .vk-sticky-price ins,
  .vk-sticky-price del {
    font-size: 10px !important;
  }
  .vk-sticky-select {
    padding-inline: 7px 18px;
    font-size: 9px;
  }
  .vk-sticky-attributes label > span {
    left: 7px;
    font-size: 6px;
  }
  .vk-sticky-qty {
    padding-inline: 3px;
  }
  .vk-sticky-button {
    font-size: 7px;
    letter-spacing: .05em;
  }
}
