/* Метки товара
   Компьютер: строка кнопок под миниатюрами фото.
   Телефон (до 767px): строка над фото, листается пальцем вбок.
   !important нужен, чтобы стили кнопок темы не перебивали метки. */

.pb-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    clear: both;
    margin: 16px 0 0;
}

.pb-badges .pb-badge {
    display: inline-flex !important;
    align-items: center;
    max-width: 100%;
    margin: 0 !important;
    padding: 8px 14px !important;
    border: 1px solid rgba(0, 0, 0, .12) !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    font-family: inherit;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .10);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.pb-badges .pb-badge:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0, 0, 0, .16); }
.pb-badges .pb-badge:focus { outline: 2px solid #78cc7a; outline-offset: 2px; }
.pb-badges .pb-badge--static { cursor: default; }
.pb-badges .pb-badge--static:hover { transform: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .10); }

.pb-badges .pb-badge__i {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    font-style: normal;
    font-family: Arial, sans-serif;
    text-transform: none;
    line-height: 1;
    opacity: .7;
}

/* Окно: основа — стили .ax-modal из product.tpl, здесь только текст */
.pb-modal .ax-modal-title { margin-bottom: 0; }
.pb-modal .modal-body { padding-top: 12px; }
.pb-modal-text { font-size: 14px; line-height: 1.6; color: #333; }
.pb-modal-text p { margin: 0 0 10px; }
.pb-modal-text p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
    .pb-badges .pb-badge { transition: none; }
}

/* Телефоны: строка над фото, без переноса, листается пальцем */
@media (max-width: 767px) {
    .pb-badges {
        flex-wrap: nowrap;
        gap: 6px;
        margin: 0 0 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .pb-badges::-webkit-scrollbar { display: none; }
    .pb-badges .pb-badge {
        flex: 0 0 auto;
        min-height: 36px;
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
    .pb-badges .pb-badge:hover { transform: none; }
    .pb-modal .modal-body { padding: 12px 24px 24px; }
}