/* B2C Help Center — hub, topic FAQ, and support requests */

body:has(.b2c-help-account-wrap) .b2c-top-inner,
body:has(.b2c-help-account-wrap) .b2c-main,
body:has(.b2c-help-account-wrap) .b2c-shop-footer-inner {
  max-width: none;
}

.b2c-help-account-wrap {
  padding: 1.5rem 0 3.25rem;
  background: var(--b2c-bg);
}

.b2c-help-account-wrap .b2c-account-pane.b2c-help-pane {
  overflow: visible;
}

.b2c-help-pane {
  padding: 0;
  min-height: 28rem;
}

.b2c-help-pane .b2c-help-page {
  max-width: none;
  margin: 0;
  padding-bottom: 1.5rem;
}

@media (min-width: 901px) {
  .b2c-help-pane {
    padding-bottom: 1.25rem;
  }

  .b2c-help-pane .b2c-help-shell {
    padding-top: 1.25rem;
  }

  .b2c-help-topbar {
    position: static;
    border-radius: 0;
  }
}

@media (max-width: 900px) {
  .b2c-help-pane {
    padding: 0;
  }

  .b2c-help-account-wrap .b2c-account-pane {
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .b2c-help-account-wrap .b2c-account-sidebar {
    overflow: visible;
  }

  .b2c-help-account-wrap {
    padding-bottom: calc(3.25rem + 0.5rem);
  }
}

.b2c-help-page {
    max-width: 960px;
    margin: 0 auto;
    padding-bottom: 2.5rem;
}

.b2c-help-topbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--b2c-line, #e8e8e8);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
}

.b2c-help-back,
.b2c-help-requests {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--b2c-ink, #282c3f);
    text-decoration: none;
    border-radius: 8px;
}

.b2c-help-back {
    display: none;
}

.b2c-help-topbar::before {
    content: '';
    width: 40px;
    flex-shrink: 0;
}

.b2c-help-back:hover,
.b2c-help-requests:hover {
    background: var(--b2c-soft, #f5f5f6);
}

.b2c-help-topbar-title {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin: 0;
    color: var(--b2c-ink, #282c3f);
}

.b2c-help-topbar-spacer {
    width: 40px;
}

.b2c-help-shell {
    padding: 1.25rem 1rem 1.35rem;
}

.b2c-help-shell > .b2c-help-section-title:first-child {
    margin-top: 0.15rem;
}

.b2c-help-hero {
    padding: 1.25rem 1.1rem;
    background: #fff;
    border: 1px solid var(--b2c-line, #e8e8e8);
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.b2c-help-hero-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-align: center;
}

.b2c-help-hero-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--b2c-ink, #282c3f);
}

.b2c-help-hero h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--b2c-ink, #282c3f);
}

.b2c-help-hero p,
.b2c-help-hero-lead {
    margin: 0;
    font-size: 0.85rem;
    color: var(--b2c-muted, #696b79);
    line-height: 1.45;
}

.b2c-help-hero-art {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fce7f3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.b2c-help-hero-art i {
    font-size: 2rem;
    color: var(--b2c-brand, #ff3f6c);
}

.b2c-help-section-title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    color: var(--b2c-ink, #282c3f);
    text-decoration: none;
    border-bottom: none;
}

.b2c-help-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.b2c-help-topic-card-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 0.75rem;
    background: #fff;
    border: 1px solid var(--b2c-line, #e8e8e8);
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.b2c-help-topic-card-btn:hover {
    border-color: #d4d5d9;
    box-shadow: 0 2px 8px rgba(40, 44, 63, 0.06);
}

.b2c-help-topic-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.b2c-help-topic-icon i {
    font-size: 1.1rem;
    color: var(--b2c-ink, #282c3f);
}

.b2c-help-topic-card-btn strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--b2c-ink, #282c3f);
    line-height: 1.3;
    text-decoration: none;
}

.b2c-help-hub-faqs {
    background: #fff;
    border: 1px solid var(--b2c-line, #e8e8e8);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.b2c-help-hub-faq-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--b2c-line, #e8e8e8);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.b2c-help-hub-faq-row:last-child {
    border-bottom: none;
}

.b2c-help-hub-faq-row span {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--b2c-ink, #282c3f);
    line-height: 1.35;
}

.b2c-help-hub-faq-row i {
    color: #c4c4c4;
    font-size: 0.85rem;
}

.b2c-help-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--b2c-line, #e8e8e8);
    border-radius: 12px;
    background: #fff5f7;
    cursor: pointer;
    text-align: left;
    margin-bottom: 0.35rem;
}

.b2c-help-contact i.bi-telephone {
    font-size: 1.25rem;
    color: var(--b2c-brand, #ff3f6c);
}

.b2c-help-contact span {
    flex: 1;
}

.b2c-help-contact strong {
    display: block;
    font-size: 0.9rem;
    color: var(--b2c-ink, #282c3f);
}

.b2c-help-contact small {
    display: block;
    font-size: 0.78rem;
    color: var(--b2c-muted, #696b79);
    margin-top: 0.15rem;
}

/* Topic chips */
.b2c-help-chips-wrap {
    border-bottom: 1px solid var(--b2c-line, #e8e8e8);
    background: #fff;
}

.b2c-help-chips {
    display: flex;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.b2c-help-chips::-webkit-scrollbar {
    display: none;
}

.b2c-help-chip {
    flex: 0 0 auto;
    width: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.b2c-help-chip-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.b2c-help-chip-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--b2c-muted, #696b79);
    text-align: center;
    line-height: 1.25;
}

.b2c-help-chip.is-active .b2c-help-chip-label {
    color: var(--b2c-brand, #ff3f6c);
    font-weight: 800;
}

.b2c-help-chip-bar {
    height: 3px;
    width: 100%;
    border-radius: 2px;
    background: transparent;
    margin-top: 0.25rem;
}

.b2c-help-chip.is-active .b2c-help-chip-bar {
    background: var(--b2c-brand, #ff3f6c);
}

/* Topic detail card */
.b2c-help-topic-card {
    background: #fff;
    border: 1px solid var(--b2c-line, #e8e8e8);
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.b2c-help-topic-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.b2c-help-topic-head-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.b2c-help-topic-head h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.b2c-help-topic-desc {
    font-size: 0.82rem;
    color: var(--b2c-muted, #696b79);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.b2c-help-order-hint {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--b2c-brand, #ff3f6c);
    margin-bottom: 0.75rem;
}

.b2c-help-faq-list {
    border: 1px solid var(--b2c-line, #e8e8e8);
    border-radius: 10px;
    overflow: hidden;
}

.b2c-help-faq-item {
    border-bottom: 1px solid var(--b2c-line, #e8e8e8);
}

.b2c-help-faq-item:last-child {
    border-bottom: none;
}

.b2c-help-faq-q {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    background: #fff;
    text-align: left;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--b2c-ink, #282c3f);
    line-height: 1.35;
}

.b2c-help-faq-q span {
    flex: 1;
}

.b2c-help-faq-a {
    padding: 0 1rem 0.85rem;
    font-size: 0.82rem;
    color: var(--b2c-muted, #696b79);
    line-height: 1.55;
}

.b2c-help-faq-a[hidden] {
    display: none;
}

.b2c-help-helpful {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--b2c-line, #e8e8e8);
    font-size: 0.82rem;
    font-weight: 600;
}

.b2c-help-helpful-actions {
    display: flex;
    gap: 0.5rem;
}

.b2c-help-thumb {
    width: 40px;
    height: 36px;
    border: 1px solid var(--b2c-line, #e8e8e8);
    border-radius: 8px;
    background: var(--b2c-soft, #f5f5f6);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

/* Callback modal — centered pop dialog */
.b2c-help-callback-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.b2c-help-callback-modal[hidden] {
    display: none;
}

.b2c-help-callback-scrim {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(3px);
}

.b2c-help-callback-sheet {
    position: relative;
    width: min(420px, 100%);
    max-height: min(90vh, 560px);
    background: #fff;
    border-radius: 16px;
    padding: 1.35rem 1.35rem 1.5rem;
    z-index: 1;
    box-shadow: 0 24px 48px rgba(2, 6, 23, 0.22);
    animation: b2c-help-callback-in 0.22s ease;
    overflow-y: auto;
}

@keyframes b2c-help-callback-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.b2c-help-callback-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.15rem;
}

.b2c-help-callback-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin: -0.15rem -0.15rem 0 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--b2c-muted, #696b79);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.b2c-help-callback-close:hover {
    background: var(--b2c-soft, #f5f5f6);
    color: var(--b2c-ink, #282c3f);
}

.b2c-help-callback-sheet h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    flex: 1;
    line-height: 1.35;
}

.b2c-help-callback-lead {
    margin: 0.5rem 0 1rem;
    font-size: 0.85rem;
    color: var(--b2c-muted, #696b79);
    line-height: 1.45;
}

.b2c-help-field {
    display: block;
    margin-bottom: 0.75rem;
}

.b2c-help-field span {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--b2c-ink, #282c3f);
}

.b2c-help-field input,
.b2c-help-field textarea {
    width: 100%;
    border: 1px solid var(--b2c-line, #e8e8e8);
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    font-size: 0.95rem;
}

.b2c-help-field input::-ms-clear {
    display: none;
}

.b2c-help-callback-error {
    color: #d32f2f;
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.b2c-help-callback-submit {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Requests list */
.b2c-help-request-row {
    display: block;
    padding: 0.9rem 1rem;
    background: #fff;
    border: 1px solid var(--b2c-line, #e8e8e8);
    border-radius: 10px;
    margin-bottom: 0.65rem;
    text-decoration: none;
    color: inherit;
}

.b2c-help-request-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.b2c-help-request-no {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--b2c-brand, #ff3f6c);
}

.b2c-help-status {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.b2c-help-status.is-open { background: #ffedd5; color: #c2410c; }
.b2c-help-status.is-progress { background: #dbeafe; color: #1d4ed8; }
.b2c-help-status.is-resolved { background: #dcfce7; color: #15803d; }
.b2c-help-status.is-closed { background: #f1f5f9; color: #64748b; }

.b2c-help-request-subject {
    margin: 0.5rem 0 0.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
}

.b2c-help-request-meta {
    font-size: 0.75rem;
    color: var(--b2c-muted, #696b79);
}

.b2c-help-loading {
    padding: 1rem 0;
}

@media (max-width: 720px) {
    .b2c-help-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .b2c-help-topic-grid {
        grid-template-columns: 1fr;
    }
}
