.cb-guide {
  --guide-brand: var(--shopee-orange, #ee4d2d);
  --guide-brand-2: var(--shopee-coral, #ff6533);
  --guide-brand-gradient: var(--shopee-gradient, linear-gradient(135deg, var(--guide-brand-2), var(--guide-brand)));
  --guide-ink: var(--title, var(--text, #172033));
  --guide-text: var(--content, var(--text, #2f3847));
  --guide-muted: var(--muted, #697386);
  --guide-line: var(--border, #e6e9ef);
  --guide-card: var(--card, #fff);
  --guide-page: var(--bg, #fff);
  --guide-hover: var(--hover, #f6f8fb);
  --guide-shadow: var(--shadow, 0 8px 24px rgba(15, 23, 42, .08));
  --guide-primary: var(--primary, #2563eb);
  --guide-success: var(--success, #16a34a);
  --guide-warning: var(--warning, #f59e0b);
  --guide-danger: var(--danger, #dc2626);
  color: var(--guide-text);
}

.cb-guide a {
  color: var(--guide-brand);
}

.cb-guide .breadcrumb {
  background: transparent;
  padding: 0;
}

.cb-guide .breadcrumb-item.active {
  color: var(--guide-muted);
}

.cb-guide h1,
.cb-guide h2,
.cb-guide h3,
.cb-guide h4 {
  color: var(--guide-ink);
  letter-spacing: 0;
}

.cb-guide h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 850;
  line-height: 1.14;
}

.cb-guide .lead {
  max-width: 850px;
  margin: 12px 0 0;
  color: var(--guide-muted);
  font-size: 16px;
  line-height: 1.65;
}

.cb-guide-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 30px;
  border: 0;
  border-radius: 20px;
  background: var(--guide-brand-gradient);
  box-shadow: var(--guide-shadow);
}

.cb-guide-hero.small {
  padding: 26px;
}

.cb-guide-hero h1,
.cb-guide-hero .lead,
.cb-guide-hero .cb-guide-kicker {
  position: relative;
  z-index: 1;
  color: #fff;
}

.cb-guide-hero .lead {
  color: rgba(255, 255, 255, .92);
}

.cb-guide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--guide-brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cb-guide-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.cb-guide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none !important;
  transition: transform .16s, box-shadow .16s, border-color .16s, background .16s;
}

.cb-guide-btn:hover {
  transform: translateY(-1px);
}

.cb-guide-btn.primary {
  background: var(--guide-brand-gradient);
  color: #fff;
  box-shadow: 0 10px 22px rgba(238, 77, 45, .2);
}

.cb-guide-btn.secondary {
  border-color: var(--guide-line);
  background: var(--guide-card);
  color: var(--guide-brand);
}

.cb-guide-hero .cb-guide-btn.primary {
  background: var(--guide-card);
  color: var(--guide-brand);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
}

.cb-guide-hero .cb-guide-btn.secondary {
  border-color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .14);
  color: #fff;
}

.cb-guide-section {
  margin: 26px 0;
}

.cb-guide-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.cb-guide-section-title {
  margin: 0;
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 850;
  line-height: 1.2;
}

.cb-guide-section-note {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--guide-muted);
  line-height: 1.65;
}

.cb-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cb-guide-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cb-guide-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cb-guide-card,
.cb-guide-step,
.cb-guide-panel,
.cb-guide-alert,
.cb-guide-status-card {
  border: 1px solid var(--guide-line);
  border-radius: 14px;
  background: var(--guide-card);
  box-shadow: var(--guide-shadow);
}

.cb-guide-card {
  padding: 18px;
}

.cb-guide-card-icon,
.cb-guide-step-number,
.cb-guide-alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.cb-guide-card-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  background: var(--guide-hover);
  color: var(--guide-brand);
}

.cb-guide-card h3,
.cb-guide-step h3,
.cb-guide-panel h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 850;
}

.cb-guide-card p,
.cb-guide-step p,
.cb-guide-panel p {
  margin: 0;
  color: var(--guide-muted);
  font-size: 14px;
  line-height: 1.6;
}

.cb-guide-step-list {
  display: grid;
  gap: 12px;
}

.cb-guide-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
}

.cb-guide-step-number {
  width: 36px;
  height: 36px;
  margin: 0;
  background: var(--guide-brand-gradient);
  color: #fff;
  font-weight: 850;
}

.cb-guide-alert {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  padding: 16px;
  border-left: 4px solid var(--guide-warning);
}

.cb-guide-alert.danger {
  border-left-color: var(--guide-danger);
}

.cb-guide-alert.success {
  border-left-color: var(--guide-success);
}

.cb-guide-alert-icon {
  width: 42px;
  height: 42px;
  background: var(--guide-hover);
  color: var(--guide-warning);
  font-size: 18px;
}

.cb-guide-alert.danger .cb-guide-alert-icon {
  color: var(--guide-danger);
}

.cb-guide-alert.success .cb-guide-alert-icon {
  color: var(--guide-success);
}

.cb-guide-alert strong {
  display: block;
  margin-bottom: 4px;
  color: var(--guide-ink);
}

.cb-guide-alert p {
  margin: 0;
  color: var(--guide-muted);
  line-height: 1.65;
}

.cb-guide-status-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cb-guide-status-card {
  padding: 16px;
}

.cb-guide-status-card p {
  margin: 0;
  color: var(--guide-muted);
  font-size: 14px;
  line-height: 1.6;
}

.cb-guide-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 6px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: var(--guide-hover);
  font-size: 12px;
  font-weight: 850;
}

.cb-guide-status-pill.pending {
  color: var(--guide-primary);
}

.cb-guide-status-pill.completed {
  color: var(--guide-success);
}

.cb-guide-status-pill.cancelled {
  color: var(--guide-danger);
}

.cb-guide-status-pill.unpaid {
  color: var(--guide-warning);
}

.cb-guide-list {
  margin: 0;
  padding-left: 18px;
}

.cb-guide-list li {
  margin: 7px 0;
  color: var(--guide-muted);
  line-height: 1.58;
}

.cb-guide-check-list,
.cb-guide-warning-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cb-guide-check-list li,
.cb-guide-warning-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  color: var(--guide-muted);
  line-height: 1.55;
}

.cb-guide-check-list i,
.cb-guide-warning-list i {
  margin-top: 4px;
}

.cb-guide-check-list i {
  color: var(--guide-success);
}

.cb-guide-warning-list i {
  color: var(--guide-danger);
}

.cb-guide-platform-tabs {
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
  flex-wrap: nowrap;
}

.cb-guide-platform-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--guide-line);
  border-radius: 12px;
  background: var(--guide-card);
  color: var(--guide-text) !important;
  font-weight: 850;
  white-space: nowrap;
}

.cb-guide-platform-tabs .nav-link.active {
  border-color: var(--guide-brand);
  background: var(--guide-hover);
  color: var(--guide-brand) !important;
}

.cb-guide-platform-tabs img,
.cb-guide-market img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
}

.cb-guide-panel {
  padding: 18px;
}

.cb-guide-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 18px;
}

.cb-guide-market {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--guide-brand);
  font-weight: 850;
}

.cb-guide-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--guide-line);
  border-radius: 14px;
  background: var(--guide-card);
  box-shadow: var(--guide-shadow);
}

.cb-guide-table {
  width: 100%;
  min-width: 720px;
  margin: 0;
  background: var(--guide-card);
}

.cb-guide-table th {
  border-top: 0;
  background: var(--guide-hover);
  color: var(--guide-ink);
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.cb-guide-table td {
  color: var(--guide-muted);
  vertical-align: middle;
}

.cb-guide-table th,
.cb-guide-table td {
  border-color: var(--guide-line);
}

.cb-guide-table .platform-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--guide-ink);
  font-weight: 850;
}

.cb-guide-table img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: contain;
}

.cb-guide-timeline {
  display: grid;
  gap: 10px;
  counter-reset: timeline;
}

.cb-guide-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--guide-line);
  border-radius: 14px;
  background: var(--guide-card);
  box-shadow: var(--guide-shadow);
}

.cb-guide-timeline-item::before {
  counter-increment: timeline;
  content: counter(timeline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--guide-hover);
  color: var(--guide-primary);
  font-weight: 850;
}

.cb-guide-timeline-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--guide-ink);
}

.cb-guide-timeline-item span {
  color: var(--guide-muted);
  line-height: 1.58;
}

.cb-guide-accordion .card {
  border: 1px solid var(--guide-line);
  border-radius: 14px !important;
  overflow: hidden;
  background: var(--guide-card);
  box-shadow: var(--guide-shadow);
}

.cb-guide-accordion .card + .card {
  margin-top: 9px;
}

.cb-guide-accordion .card-header {
  padding: 0;
  border: 0;
  background: var(--guide-card);
}

.cb-guide-accordion .btn-link {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  color: var(--guide-ink) !important;
  font-weight: 850;
  text-align: left;
  text-decoration: none;
  white-space: normal;
}

.cb-guide-accordion .card-body {
  border-top: 1px solid var(--guide-line);
  background: var(--guide-card);
  color: var(--guide-muted);
  line-height: 1.65;
}

.cb-guide-summary-band {
  padding: 18px;
  border: 1px solid var(--guide-line);
  border-left: 4px solid var(--guide-primary);
  border-radius: 14px;
  background: var(--guide-card);
  box-shadow: var(--guide-shadow);
}

.cb-guide-summary-band p {
  margin: 0;
  color: var(--guide-muted);
  line-height: 1.65;
}

html[data-theme="dark"] .cb-guide-hero .cb-guide-btn.primary {
  background: rgba(255, 255, 255, .92);
}

html[data-theme="dark"] .cb-guide-hero .cb-guide-btn.secondary {
  background: rgba(255, 255, 255, .1);
}

@media (max-width: 991px) {
  .cb-guide-grid,
  .cb-guide-grid.three,
  .cb-guide-status-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cb-guide-panel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .cb-guide {
    max-width: 100%;
    overflow-x: hidden;
  }

  .cb-guide-hero,
  .cb-guide-hero.small {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .cb-guide .lead {
    font-size: 14px;
  }

  .cb-guide-actions {
    display: grid;
  }

  .cb-guide-btn {
    width: 100%;
  }

  .cb-guide-section-head {
    display: block;
  }

  .cb-guide-grid,
  .cb-guide-grid.two,
  .cb-guide-grid.three,
  .cb-guide-status-list,
  .cb-guide-check-list,
  .cb-guide-warning-list {
    grid-template-columns: 1fr;
  }

  .cb-guide-card,
  .cb-guide-panel,
  .cb-guide-alert {
    padding: 15px;
  }

  .cb-guide-step {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 14px;
  }

  .cb-guide-alert {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .cb-guide-alert-icon {
    width: 36px;
    height: 36px;
  }

  .cb-guide-platform-tabs {
    margin-right: -15px;
    padding-right: 15px;
  }

  .cb-guide-platform-tabs .nav-link {
    min-height: 39px;
    padding: 8px 11px;
    font-size: 13px;
  }

  .cb-guide-timeline-item {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 12px;
  }

  .cb-guide-timeline-item::before {
    width: 30px;
    height: 30px;
  }
}
