/* Veloklasik: cena, počet kusů a nákupní tlačítko hned pod volbou variant. */
body.type-product .p-info-wrapper > .detail-parameters {
  order: 0 !important;
}
body.type-product .p-info-wrapper > .p-final-price-wrapper {
  order: 1 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 14px;
  row-gap: 8px;
  width: 100%;
  margin: 14px 0 0 !important;
  min-width: 0;
}
body.type-product .p-info-wrapper > #vk-size-help-global {
  order: 2 !important;
  margin-top: 20px !important;
}
body.type-product .p-info-wrapper > .social-buttons-wrapper {
  order: 3 !important;
}
body.type-product .p-final-price-wrapper > .price-line,
body.type-product .p-final-price-wrapper > .add-to-cart {
  display: contents !important;
}
body.type-product .p-final-price-wrapper .price-side {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
}
body.type-product .p-final-price-wrapper .add-to-cart > .quantity {
  grid-column: 2;
  grid-row: 1;
  margin: 0 !important;
}
body.type-product .p-final-price-wrapper .add-to-cart > .add-to-cart-button {
  grid-column: 3;
  grid-row: 1;
  margin: 0 !important;
  min-height: 52px;
}
body.type-product .p-final-price-wrapper .availability-value {
  grid-column: 1 / -1;
  grid-row: 2;
  width: auto !important;
  margin: 0 !important;
  text-align: left !important;
}
body.type-product .p-final-price-wrapper > .price-measure {
  grid-column: 1 / -1;
  grid-row: 3;
}
@media (max-width: 767px) {
  body.type-product .p-info-wrapper > .p-final-price-wrapper {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;
  }
  body.type-product .p-final-price-wrapper .add-to-cart > .add-to-cart-button {
    grid-column: 2;
    grid-row: 1;
    min-height: 48px;
  }
  body.type-product .p-final-price-wrapper .add-to-cart > .quantity {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }
  body.type-product .p-final-price-wrapper .availability-value {
    grid-column: 1;
    grid-row: 2;
  }
}
@media (max-width: 400px) {
  body.type-product .p-final-price-wrapper .price-final {
    font-size: 24px !important;
    white-space: nowrap;
  }
  body.type-product .p-final-price-wrapper .add-to-cart > .add-to-cart-button {
    width: 140px;
    padding: 8px 10px !important;
    font-size: 14px !important;
  }
}
