/* =================================================================
   BM HELP CENTER — 1:1 Back Market editorial reference
   Scoped under .bm-help so styles never leak to other pages.
   .hc-page class (added by inline script in the view) suppresses
   global UI that bleeds onto this page from the homepage layout.
   ================================================================= */

/* ---------- SUPPRESS leaky global UI on the Help Center page ---------- */
.hc-page header div.h-50px.border-bottom,
.hc-page header .bottom-background-color-visibility,
.hc-page header #category-menu-bar,
.hc-page header .all-category,
.hc-page .hover-category-menu,
.hc-page .scroll-top,
.hc-page .scroll-to-top,
.hc-page .aiz-quick-actions,
.hc-page .aiz-sticky-actions,
.hc-page .aiz-floating-actions,
.hc-page .floating-sidebar,
.hc-page [class*="left-floating"],
.hc-page [class*="sticky-floating"] {
    display: none !important;
}

/* ---------- Root tokens ---------- */
.bm-help {
    --hc-ink:        #111111;
    --hc-ink-soft:   #1f1f24;
    --hc-muted:      #6e6e76;
    --hc-line:       #e5e5e5;
    --hc-line-soft:  #efefef;
    --hc-bg:         #ffffff;
    --hc-bg-soft:    #f5f5f7;
    --hc-bg-lav:     #f2eef7;
    --hc-shadow-soft: 0 12px 28px -22px rgba(15, 18, 22, 0.18);
    --hc-shadow-card: 0 24px 48px -28px rgba(15, 18, 22, 0.22);

    background: #fff;
    color: var(--hc-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ---------- Container (tight, premium) ---------- */
.bm-help .bmh-container {
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ---------- HERO — lavender, curved bottom, centered editorial ---------- */
.bmh-hero {
    background: var(--hc-bg-lav);
    padding: 72px 0 96px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    margin-bottom: 64px;
    overflow: hidden;
    position: relative;
}
/* Subtle inner glow that gives the lavender hero some dimension */
.bmh-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -40% -10%;
    height: 60%;
    background: radial-gradient(ellipse at top, rgba(255,255,255,0.55) 0%, transparent 60%);
    pointer-events: none;
}
.bmh-hero-inner {
    text-align: center;
}
.bmh-breadcrumb {
    font-size: 13px;
    color: var(--hc-muted);
    margin-bottom: 16px;
}
.bmh-breadcrumb a {
    color: var(--hc-muted);
    text-decoration: none;
    transition: color 180ms ease;
}
.bmh-breadcrumb a:hover { color: var(--hc-ink); }
.bmh-breadcrumb .bmh-sep { margin: 0 8px; opacity: 0.5; }
.bmh-breadcrumb .bmh-current { color: var(--hc-ink); font-weight: 500; }

.bmh-brand-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hc-ink);
    margin-bottom: 6px;
}
.bmh-hero-subtitle {
    font-size: 15px;
    font-weight: 500;
    color: var(--hc-muted);
    margin-bottom: 28px;
}
.bmh-hero-title {
    font-size: clamp(40px, 6.4vw, 72px);
    font-weight: 800;
    letter-spacing: -0.032em;
    line-height: 1.05;
    margin: 0 auto;
    color: var(--hc-ink);
    max-width: 900px;
}

/* ---------- Generic section ---------- */
.bmh-section {
    padding: 56px 0;
    background: #fff;
}
.bmh-section-title {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 36px;
    text-align: center;
    color: var(--hc-ink);
}

/* ---------- FAQ — thin dividers, no cards ---------- */
.bmh-faq-section { padding-top: 16px; padding-bottom: 40px; }
.bmh-faq-section-title {
    max-width: 920px;
    margin: 0 auto 20px;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    letter-spacing: -0.018em;
    color: var(--hc-ink);
}
.bmh-faq-list {
    max-width: 920px;
    margin: 0 auto;
}
.bmh-faq-row {
    border-bottom: 1px solid var(--hc-line);
    transition: background 200ms ease;
}
.bmh-faq-row:first-child { border-top: 1px solid var(--hc-line); }
.bmh-faq-row:hover { background: #fafafb; }
.bmh-faq-row.is-open { background: #fafafb; }

.bmh-faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 24px;
    padding: 26px 12px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    color: var(--hc-ink);
}
.bmh-faq-q {
    font-size: clamp(16.5px, 1.4vw, 20px);
    font-weight: 500;
    letter-spacing: -0.005em;
    line-height: 1.4;
    color: var(--hc-ink);
}
.bmh-faq-chev {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--hc-ink);
    opacity: 0.6;
    transition: transform 280ms ease, opacity 200ms ease;
}
.bmh-faq-row:hover .bmh-faq-chev,
.bmh-faq-row.is-open .bmh-faq-chev { opacity: 1; }
.bmh-faq-row.is-open .bmh-faq-chev { transform: rotate(180deg); }
.bmh-faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
.bmh-faq-row.is-open .bmh-faq-panel { max-height: 800px; }
.bmh-faq-answer {
    padding: 0 12px 26px;
    color: var(--hc-ink-soft);
    font-size: 15px;
    line-height: 1.65;
    max-width: 780px;
}

.bmh-empty {
    text-align: center;
    color: var(--hc-muted);
    padding: 36px 0;
}

/* ---------- Floating Search Card ---------- */
.bmh-search-section {
    padding: 8px 0 80px;
    background: #fff;
}
.bmh-search-card {
    max-width: 920px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--hc-shadow-card);
    padding: 40px;
    border: 1px solid var(--hc-line-soft);
    text-align: center;
}
.bmh-search-card h2 {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    letter-spacing: -0.018em;
    margin: 0 0 8px;
    color: var(--hc-ink);
}
.bmh-search-card-sub {
    color: var(--hc-muted);
    margin: 0 0 24px;
    font-size: 14.5px;
}
.bmh-search-wrap {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}
.bmh-search-input {
    width: 100%;
    height: 58px;
    border: 1px solid var(--hc-line);
    border-radius: 16px;
    background: #fff;
    padding: 0 60px 0 24px;
    font-size: 16px;
    font-weight: 500;
    color: var(--hc-ink);
    outline: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}
.bmh-search-input::placeholder { color: var(--hc-muted); }
.bmh-search-input:hover  { border-color: #c5c5cd; }
.bmh-search-input:focus  { border-color: var(--hc-ink); box-shadow: 0 0 0 3px rgba(15, 18, 22, 0.08); }
.bmh-search-ico {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.75;
    pointer-events: none;
    display: inline-flex;
}

/* ---------- Browse by topic — horizontal cards ---------- */
.bmh-topics-section { padding: 72px 0 64px; }
.bmh-topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.bmh-topic-card {
    display: flex;
    align-items: center;
    column-gap: 22px;
    background: #fff;
    border: 1px solid var(--hc-line);
    border-radius: 20px;
    padding: 26px 28px;
    min-height: 150px;
    text-decoration: none !important;
    color: var(--hc-ink);
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.bmh-topic-card:hover {
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 18px 36px -22px rgba(15, 18, 22, 0.20);
    color: var(--hc-ink);
}
.bmh-topic-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--hc-bg-lav);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.bmh-topic-icon i { font-size: 26px; color: var(--hc-ink); }
.bmh-topic-icon img { width: 30px; height: 30px; object-fit: contain; }
.bmh-topic-text { display: flex; flex-direction: column; min-width: 0; }
.bmh-topic-title {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.012em;
    color: var(--hc-ink);
    line-height: 1.3;
}
.bmh-topic-desc {
    font-size: 13px;
    color: var(--hc-muted);
    margin-top: 4px;
    line-height: 1.4;
}

/* ---------- Reassurance banner ---------- */
.bmh-banner-section { padding: 24px 0 72px; }
.bmh-banner {
    background: #e9e9ee;
    border-radius: 24px;
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    column-gap: 48px;
}
.bmh-banner-item {
    display: flex;
    align-items: center;
    column-gap: 16px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--hc-ink);
    line-height: 1.4;
}
.bmh-banner-item i {
    font-size: 24px;
    color: var(--hc-ink);
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Still need help CTA ---------- */
.bmh-cta-section { padding: 24px 0 72px; }
.bmh-cta {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}
.bmh-cta-title {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    color: var(--hc-ink);
}
.bmh-cta-sub {
    color: var(--hc-muted);
    font-size: 16px;
    margin: 0 0 24px;
}
.bmh-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 32px;
    background: var(--hc-ink);
    color: #fff !important;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 200ms ease, transform 180ms ease;
}
.bmh-cta-btn:hover { background: #292a30; transform: translateY(-1px); }
.bmh-cta-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--hc-ink) !important;
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}
.bmh-cta-link:hover { opacity: 0.7; }

/* ---------- Feedback form ---------- */
.bmh-feedback-section { background: var(--hc-bg-soft); padding: 72px 0; }
.bmh-feedback {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 56px;
    max-width: 1040px;
    margin: 0 auto;
    align-items: start;
}
.bmh-feedback-text h3 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    color: var(--hc-ink);
}
.bmh-feedback-text p { color: var(--hc-muted); margin: 0; }
.bmh-feedback-form input,
.bmh-feedback-form textarea {
    width: 100%;
    border: 1px solid var(--hc-line);
    border-radius: 12px;
    background: #fff;
    padding: 14px 16px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--hc-ink);
    margin-bottom: 10px;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}
.bmh-feedback-form input:focus,
.bmh-feedback-form textarea:focus {
    border-color: var(--hc-ink);
    box-shadow: 0 0 0 3px rgba(15, 18, 22, 0.06);
}
.bmh-feedback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.bmh-feedback-grid input { margin-bottom: 0; }
.bmh-feedback-submit {
    background: var(--hc-ink);
    color: #fff;
    border: none;
    border-radius: 999px;
    height: 48px;
    padding: 0 28px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 200ms ease, transform 180ms ease;
}
.bmh-feedback-submit:hover { background: #292a30; transform: translateY(-1px); }

/* ---------- Newsletter ---------- */
.bmh-news-section { background: #fff; padding: 72px 0; border-top: 1px solid var(--hc-line); }
.bmh-news {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1040px;
    margin: 0 auto;
}
.bmh-news-text h3 {
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 8px;
    color: var(--hc-ink);
}
.bmh-news-text p { color: var(--hc-muted); margin: 0; }
.bmh-news-form { display: flex; align-items: center; column-gap: 10px; }
.bmh-news-input-wrap { position: relative; flex: 1 1 auto; }
.bmh-news-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hc-muted);
    font-size: 18px;
    pointer-events: none;
}
.bmh-news-form input {
    width: 100%;
    height: 50px;
    border: 1px solid var(--hc-line);
    border-radius: 999px;
    padding: 0 18px 0 46px;
    background: #fff;
    font-size: 14.5px;
    color: var(--hc-ink);
    outline: none;
    transition: border-color 180ms ease;
}
.bmh-news-form input:focus { border-color: var(--hc-ink); }
.bmh-news-submit {
    height: 50px;
    padding: 0 24px;
    background: var(--hc-ink);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 200ms ease, transform 180ms ease;
}
.bmh-news-submit:hover { background: #292a30; transform: translateY(-1px); }

/* ---------- Footer (5 columns) ---------- */
.bmh-footer {
    background: #fff;
    border-top: 1px solid var(--hc-line);
    padding: 56px 0 28px;
    color: var(--hc-muted);
}
.bmh-footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
}
.bmh-footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 16px;
    color: var(--hc-ink);
}
.bmh-footer-col ul { list-style: none; padding: 0; margin: 0; }
.bmh-footer-col li { margin-bottom: 8px; }
.bmh-footer-col a {
    color: var(--hc-muted);
    font-size: 14px;
    text-decoration: none;
    transition: color 180ms ease;
}
.bmh-footer-col a:hover { color: var(--hc-ink); }
.bmh-footer-tail {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--hc-line-soft);
    font-size: 13px;
    color: var(--hc-muted);
    text-align: center;
}

/* ---------- Floating chat (bottom-right ONLY) ---------- */
.bmh-chat-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--hc-ink);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 36px -10px rgba(15, 18, 22, 0.35);
    z-index: 1080;
    transition: transform 220ms ease, box-shadow 220ms ease;
}
.bmh-chat-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 22px 44px -10px rgba(15, 18, 22, 0.45);
}

/* ---------- Article single page (matches new tokens) ---------- */
.bmh-article { padding: 56px 0 96px; }
.bmh-article .bmh-container { max-width: 760px; }
.bmh-article-head { margin-bottom: 28px; }
.bmh-article-cat {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--hc-muted);
    margin-bottom: 10px;
}
.bmh-article-head h1 {
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.1;
    margin: 0 0 12px;
}
.bmh-article-excerpt {
    font-size: 17px;
    color: var(--hc-muted);
    margin: 0;
}
.bmh-article-image, .bmh-article-video {
    width: 100%;
    border-radius: 22px;
    margin: 24px 0;
}
.bmh-article-body { font-size: 16.5px; line-height: 1.7; color: var(--hc-ink-soft); }
.bmh-article-body h2 { font-size: 24px; font-weight: 700; margin: 32px 0 12px; }
.bmh-article-body h3 { font-size: 19px; font-weight: 700; margin: 24px 0 10px; }
.bmh-article-body p  { margin: 0 0 14px; }
.bmh-article-body ul, .bmh-article-body ol { margin: 0 0 14px; padding-left: 22px; }
.bmh-article-body a  { color: var(--hc-ink); text-decoration: underline; }
.bmh-article-foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hc-line); }
.bmh-article-back { color: var(--hc-ink); font-weight: 600; text-decoration: none; }
.bmh-article-back:hover { opacity: 0.7; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .bmh-hero { padding: 56px 0 72px; margin-bottom: 48px; border-bottom-left-radius: 28px; border-bottom-right-radius: 28px; }
    .bmh-section { padding: 40px 0; }
    .bmh-search-card { padding: 36px 28px; }
    .bmh-topics-grid { grid-template-columns: repeat(2, 1fr); }
    .bmh-feedback { grid-template-columns: 1fr; gap: 28px; }
    .bmh-news { grid-template-columns: 1fr; gap: 24px; }
    .bmh-footer-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
@media (max-width: 575.98px) {
    .bmh-hero { padding: 44px 0 56px; }
    .bmh-hero-title { font-size: 36px; }
    .bmh-section { padding: 32px 0; }
    .bmh-topics-grid { grid-template-columns: 1fr; }
    .bmh-banner { grid-template-columns: 1fr; row-gap: 18px; padding: 24px; }
    .bmh-feedback-grid { grid-template-columns: 1fr; }
    .bmh-news-form { flex-direction: column; align-items: stretch; row-gap: 10px; }
    .bmh-news-submit { width: 100%; }
    .bmh-footer-grid { grid-template-columns: repeat(2, 1fr); }
    .bmh-chat-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
    .bmh-faq-trigger { padding: 22px 4px; }
    .bmh-faq-q { font-size: 16.5px; }
    .bmh-search-card { padding: 28px 22px; }
}
