/* ==========================================================================
   RAMSTAT - WB Analytics Page Styles (wbwork/filter)
   Стили страницы внешней аналитики и истории цен Wildberries
   ========================================================================== */

/* Блокировки настроек анализа */
.analysis-setting-row.analysis-setting-locked {
    cursor: pointer;
    opacity: 0.88;
}

.analysis-setting-row.analysis-setting-locked:hover {
    background: #f0f0f4;
}

.analysis-setting-row.analysis-setting-locked .switch {
    pointer-events: none;
    opacity: 0.65;
}

.analysis-lock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: #18181b;
    border: 1px solid rgba(255, 107, 0, 0.45);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.analysis-lock-badge svg {
    display: block;
    width: 10px;
    height: 10px;
}

/* WB-специфика: дропдаун пикеров бренда/продавца, prev/next пагинация, настройки аналитики */
.wb-picker {
    position: relative;
}

.wb-picker-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 60;
    background: #fff;
    border: 1px solid #e6e6ea;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    max-height: 260px;
    overflow-y: auto;
    padding: 4px;
}

.wb-picker-menu.hidden {
    display: none;
}

.wb-picker-option {
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #2b2b30;
}

.wb-picker-option:hover,
.wb-picker-option.is-active {
    background: #f4f4f6;
}

.wb-picker-option small {
    color: #9a9aa2;
    margin-left: 6px;
}

.wb-picker-empty {
    padding: 8px 10px;
    color: #9a9aa2;
    font-size: 13px;
}

.wb-analyze-hint {
    font-size: 12px;
    color: #9a9aa2;
    padding: 4px 4px 10px;
    line-height: 1.4;
}

.analysis-setting-row-sub--stack {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
}

.analysis-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #4b4b52;
    cursor: pointer;
}

.analysis-cfg-title {
    font-size: 13px;
    font-weight: 800;
    color: #242428;
    padding: 2px 8px 0;
}

.analysis-cfg-note {
    font-size: 11.5px;
    line-height: 1.35;
    color: #7c7c84;
    padding: 0 8px 4px;
}

.analyze-cfg-sub--shared {
    border-color: #ffd9c2;
    background: #fff8f3;
    margin-top: 0;
}

.analyze-cfg-sub--history {
    border-color: #dce7ff;
    background: #f7faff;
}

.analyze-cfg-sub--shared .compact-input,
.analyze-cfg-sub--history .compact-input[type="datetime-local"] {
    width: 145px;
}

.analysis-raw-json {
    margin: 10px 0 2px;
    padding: 12px;
    border-radius: 10px;
    background: #f7f7f8;
    color: #242428;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 12px;
    line-height: 1.45;
}

.cat-tree-item {
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #2b2b30;
    user-select: none;
}

.cat-tree-item:hover {
    background: #f4f4f6;
}

.cat-tree-item.is-leaf {
    color: #1f6feb;
}

.cat-tree-children.hidden {
    display: none;
}

.wb-error-banner {
    margin: 12px 0;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fdecea;
    border: 1px solid #f5c2bd;
    color: #b3261e;
    font-size: 14px;
    line-height: 1.4;
}

/* Заглушки/сообщения секций Визуализация и Отчёты (нет запуска / нет доступа / лимит) */
.wb-section-note {
    margin: 4px 0 8px;
    padding: 22px 24px;
    border-radius: 14px;
    background: #f7f7f8;
    border: 1px solid #ececef;
    color: #6a6a72;
    font-size: 15px;
    line-height: 1.5;
}

.wb-section-note--upgrade {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    background: #fff8f3;
    border-color: #ffd9c2;
    color: #7a4a2a;
}

.wb-section-note__text {
    margin: 0;
}

.wb-upgrade-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-orange, #ff6d00), #ff9446);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(255, 109, 0, .22);
}

.wb-upgrade-link:hover {
    filter: brightness(1.04);
}

/* Share buttons */
.wb-share-btn-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: linear-gradient(135deg, #ff6d00 0%, #ff8c00 100%);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 109, 0, 0.28);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wb-share-btn-top:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 109, 0, 0.38);
    filter: brightness(1.06);
}

.wb-share-btn-top:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.wb-share-btn-bottom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    background: linear-gradient(135deg, #ff6d00 0%, #ff8c00 100%);
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    font-family: inherit;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 109, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 380px;
    justify-content: center;
}

.wb-share-btn-bottom:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 109, 0, 0.45);
    filter: brightness(1.06);
}

.wb-share-btn-bottom:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Sticky Share Container */
#wbStickyShareContainer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: none;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 109, 0, 0.18);
    padding: 14px 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.wb-sticky-share-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

#wbStickyShareBtn {
    max-width: 350px;
}

/* SEO FAQ Card */
.seo-faq-card {
    margin-top: 32px;
    margin-bottom: 32px;
    padding: 26px 30px;
    background: #ffffff;
    border: 1px solid #e6e6ea;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    font-family: inherit;
}

.seo-faq-card__header {
    margin-bottom: 20px;
}

.seo-faq-card__title {
    margin: 0 0 6px 0;
    font-size: 19px;
    font-weight: 700;
    color: #2b2b30;
    line-height: 1.35;
}

.seo-faq-card__subtitle {
    margin: 0;
    font-size: 14px;
    color: #6b6b73;
    line-height: 1.5;
}

.seo-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.seo-faq-item {
    border: 1px solid #eeeff2;
    border-radius: 12px;
    background: #fafafc;
    overflow: hidden;
    transition: all 0.2s ease;
}

.seo-faq-item[open] {
    background: #ffffff;
    border-color: #ffd9c2;
    box-shadow: 0 2px 10px rgba(255, 109, 0, 0.06);
}

.seo-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #2b2b30;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.seo-faq-question::-webkit-details-marker {
    display: none;
}

.seo-faq-icon {
    font-size: 18px;
    font-weight: 400;
    color: #9a9aa2;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.seo-faq-item[open] .seo-faq-icon {
    transform: rotate(45deg);
    color: #ff6d00;
}

.seo-faq-answer {
    padding: 0 18px 16px;
    font-size: 14px;
    line-height: 1.55;
    color: #4b4b52;
}

.seo-faq-answer p {
    margin: 0;
}
