/* Выбор цвета и размера на карточке товара (hvProduct). Цвета — из темы сайта. */
.hv-variables { width: 100%; margin-bottom: 20px; }
.hv-group { margin-bottom: 14px; }
.hv-group-title { font-size: 13px; line-height: 16px; margin-bottom: 8px; color: #888; }
.hv-group-title b { color: #222; font-weight: 600; }
.hv-options { display: flex; flex-wrap: wrap; gap: 8px; }

.hv-product .hv-opt,
.hv-product .hv-opt:focus,
.hv-product .hv-opt:active {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    width: auto; min-width: 72px; margin: 0; padding: 7px 10px; /* перебиваем .product-description-price button */
    background: #fff; color: #222; border: 1px solid #d9d9d9; border-radius: 8px;
    font-size: 13px; line-height: 16px; font-weight: 400; text-align: center; cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.hv-product .hv-opt:hover { background: #fff; color: #222; border-color: #2451B3; }
.hv-product .hv-opt.active { border-color: #2451B3; box-shadow: 0 0 0 1px #2451B3; }
.hv-opt b { font-weight: 600; white-space: nowrap; }
.hv-opt small { margin-top: 2px; font-size: 11px; color: #666; white-space: nowrap; }

.hv-color { flex-direction: row !important; gap: 8px; padding: 5px 12px 5px 5px !important; }
.hv-color img { width: 36px; height: 36px; object-fit: contain; border-radius: 4px; background: #f5f5f5; }

.hv-opt.hv-oos { color: #aaa !important; background: #fafafa !important; }
.hv-opt.hv-oos b { text-decoration: line-through; }
.hv-opt.hv-oos small { color: #e00101; }
.hv-color.hv-oos span { text-decoration: line-through; }

.hv-product .shk-but[disabled],
.hv-product .shk-but[disabled]:hover { background: #ccc; border-color: #ccc; color: #fff; cursor: not-allowed; }
.hv-product .hv-stock { margin-bottom: 0; }

@media (max-width: 575px) {
    /* те же :focus/:active, что в базовом правиле, — иначе нажатая кнопка шире остальных и ряд перестраивается */
    .hv-product .hv-opt,
    .hv-product .hv-opt:focus,
    .hv-product .hv-opt:active { min-width: 64px; padding: 6px 8px; }
}

/* Условия под кнопками покупки: доставка, гарантия, возврат */
.hv-terms { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #e6ebf4; font-size: 14px; line-height: 1.3; }
.hv-terms a { display: inline-flex; align-items: center; gap: 8px; color: #555; text-decoration: none; }
.hv-terms a:hover { color: #2451B3; }
.hv-terms i { color: #2451B3; font-size: 15px; width: 18px; text-align: center; }
.hv-terms b { color: #1a1a1a; font-weight: 600; }
