/* Стили для Elementor шорткода и превью редактора */
.bmm-public-view {
    --bmm-price-col: 58px;
    --bmm-price-mid: 9px;
    --bmm-like-col: 24px;
    width: 100%;
    font-family: inherit;
    box-sizing: border-box;
}
.bmm-cat-section { position: relative; padding: 0; overflow: visible; }
.bmm-public-view .bh {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    position: -webkit-sticky;
    position: sticky;
    top: 15px;
    z-index: 20;
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 23px;
    box-shadow: none !important;
    width: calc(100% + 10px);
    margin: 0 0 18px -5px;
    padding: 12px 0;
    color: #fff;
    line-height: 1.2;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
}
.bmm-public-view .bmm-volume-line,
.bmm-public-view .bmm-sub-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}
.bmm-public-view .bmm-volume-line {
    margin: 0 0 22px;
    color: #fff;
}
.bmm-public-view .bmm-volume-lead,
.bmm-public-view .bmm-sub-rule {
    flex: 1 1 auto;
    min-width: 12px;
}
.bmm-public-view .bmm-sub-rule {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
}
.bmm-public-view .bmm-pair {
    flex: 0 0 auto;
    display: grid;
    align-items: end;
}
.bmm-public-view .bmm-pair.is-dual {
    grid-template-columns: var(--bmm-price-col) var(--bmm-price-mid) var(--bmm-price-col);
}
.bmm-public-view .bmm-pair.is-single {
    grid-template-columns: var(--bmm-price-col);
}
.bmm-public-view .bmm-volume-cell {
    color: var(--bmm-brand);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .03em;
    text-align: right;
    white-space: nowrap;
}
.bmm-public-view .bmm-pair-sep { text-align: center; }
.bmm-public-view .bmm-like-slot,
.bmm-public-view .bmm-like-btn {
    box-sizing: border-box;
    flex: 0 0 var(--bmm-like-col);
    width: var(--bmm-like-col);
}
.bmm-public-view .bmm-sub-row { margin: 30px 0 15px; }
.bmm-public-view .bs {
    flex: 0 1 auto;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    margin: 0;
    color: var(--bmm-brand);
    letter-spacing: 1px;
}
.bmm-public-view .bi { margin-bottom: 20px; position: relative; padding: 0 5px; }
.bmm-public-view .bt { display: flex; align-items: baseline; gap: 8px; width: 100%; }
.bmm-public-view .bn {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.35;
    white-space: normal;
}
.bmm-public-view .bd {
    flex: 1 1 auto;
    border-bottom: 2px dotted #555;
    position: relative;
    top: -5px;
    opacity: 0.4;
    min-width: 12px;
}
.bmm-public-view .bp {
    font-size: 16px;
    font-weight: 800;
    color: var(--bmm-brand);
    white-space: nowrap;
}
.bmm-public-view .bmm-price-cell { text-align: right; white-space: nowrap; }
.bmm-public-view .bds {
    font-size: 13px;
    color: #999;
    margin-top: 5px;
    font-style: italic;
    line-height: 1.4;
    padding-right: 10px;
    font-weight: 400;
}
.bmm-like-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 0;
}
.bmm-like-btn svg { transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.bmm-like-btn:active svg { transform: scale(0.7); }
.bmm-like-count { font-size: 10px; color: #888; font-weight: 700; margin-top: 1px; font-family: sans-serif; line-height: 1; }

@media screen and (max-width: 768px) {
    .bmm-public-view { --bmm-price-col: 54px; --bmm-price-mid: 8px; --bmm-like-col: 22px; }
    .bmm-public-view .bh { font-size: 20px; top: 10px; width: 100%; margin-left: 0; padding: 15px 0; }
    .bmm-public-view .bs { font-size: 17px; }
    .bmm-public-view .bn { font-size: 16px; }
    .bmm-public-view .bp { font-size: 16px; }
    .bmm-like-btn svg { width: 16px; height: 16px; }
}
