.help-center { padding-block: 2.5rem 4rem; }
.help-center > h1 { margin: 0 0 1.5rem; font-size: clamp(1.375rem, 3vw, 1.625rem); }
.help-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.help-sidebar, .help-mobile-menu, .help-article { border: 1px solid var(--line); border-radius: 1rem; background: #fff; overflow: hidden; }
.help-mobile-menu { display: none; }
.help-navigation section + section { border-top: 1px solid var(--line); }
.help-navigation section { padding: .875rem; }
.help-navigation h2 { margin: 0 0 .5rem; padding-inline: .5rem; font-size: .875rem; color: var(--accent); }
.help-navigation ul { list-style: none; margin: 0; padding: 0; }
.help-navigation a { display: block; padding: .4rem .5rem; border-radius: .4rem; font-size: .875rem; }
.help-navigation a:hover, .help-navigation a[aria-current] { background: var(--accent-soft); color: var(--on-soft); }
.help-navigation a[aria-current] { font-weight: 750; }
.help-heading { background: var(--wash); border-bottom: 1px solid var(--line); padding: clamp(1.25rem, 4vw, 2.5rem); }
.help-heading p { margin: 0; line-height: 1.6; }
.help-heading p:first-child { color: var(--accent); font-size: .8125rem; font-weight: 700; }
.help-heading h2 { margin: .375rem 0 .625rem; font-size: clamp(1.125rem, 2.75vw, 1.5rem); }
.help-body { display: grid; gap: 1rem; padding: clamp(1rem, 3.5vw, 2rem); }
.help-section { min-width: 0; border: 1px solid var(--line); border-radius: .75rem; padding: 1rem 1.25rem; }
.help-section h3 { margin: 0 0 .5rem; font-size: .875rem; }
.help-section p { margin: 0; line-height: 1.75; overflow-wrap: break-word; }
.help-source { display: flex; justify-content: flex-end; gap: .5rem 1rem; flex-wrap: wrap; padding-block-start: .5rem; }
.help-source a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; font-size: .875rem; }
.help-filter { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-block: .875rem; }
.help-filter select, .help-filter button { min-height: 2.5rem; border-radius: .4rem; padding: .375rem .65rem; font: inherit; border: 1px solid var(--line); }
.help-filter select { background: #fff; }
.help-filter button { background: var(--accent); color: #fff; cursor: pointer; }
.help-section .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .375rem; margin-top: 1rem; }
.help-section .pagination-button { padding: .45rem .625rem; border: 1px solid var(--line); border-radius: .375rem; }
.help-section .pagination-button.is-current { background: var(--accent); color: #fff; }
.help-section .pagination-button.is-disabled { opacity: .5; }
@container storefront (width <= 40rem) {
  .help-center { padding-block: 1.5rem 2.5rem; }
  .help-center > h1 { margin-bottom: 1rem; }
  .help-layout { grid-template-columns: minmax(0,1fr); gap: .75rem; }
  .help-sidebar { display: none; }
  .help-mobile-menu { display: block; }
  .help-mobile-menu summary { padding: .875rem 1rem; color: var(--accent); font-weight: 700; cursor: pointer; }
  .help-mobile-menu[open] summary { border-bottom: 1px solid var(--line); }
  .help-section { padding: .875rem; }
}
.help-original {
  min-width: 0;
  overflow-x: auto;
  padding: clamp(.875rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: .75rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.help-original h3, .help-original h4, .help-original h5 { color: var(--accent); }
.help-original p { margin-block: .5rem; }
.help-original img { max-width: 100%; height: auto; vertical-align: middle; }
.help-original a { color: var(--accent); text-decoration: underline; }
.help-original hr, .help-original-panel + .help-original-panel { border: 0; border-top: 1px solid var(--line); margin-block: 1rem; }
.help-original div:empty { display: none; }
.help-center > h1 { letter-spacing: -.035em; }
.help-layout { column-gap: clamp(1rem, 3vw, 2rem); }
.help-sidebar, .help-article { box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 6%, transparent); }
.help-navigation section { padding: 1rem; }
.help-navigation h2 { margin-bottom: .375rem; font-size: .8rem; }
.help-navigation a { padding: .5rem .625rem; border-radius: .55rem; }
.help-navigation a[aria-current="page"] { background: var(--accent); color: #fff; }
.help-navigation a:focus-visible, .help-original a:focus-visible, .help-original-table:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.help-heading {
  padding: clamp(1.35rem, 4vw, 2.75rem);
  background: linear-gradient(115deg, var(--accent-soft), var(--wash) 85%);
}
.help-heading h2 { margin: .5rem 0 0; letter-spacing: -.035em; text-wrap: balance; }
.help-body { font-size: .8125rem; gap: 1.25rem; padding: clamp(1rem, 4vw, 2.75rem); }
.help-original { padding: 0; border: 0; border-radius: 0; overflow: visible; line-height: 1.65; }
.help-original-note {
  padding: .75rem 1rem;
  border-radius: .625rem;
  background: var(--wash);
  color: var(--muted);
  font-size: .875rem;
}
.help-original :is(h3, h4, h5) {
  margin: 1.75rem 0 .625rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
  font-size: .875rem;
  line-height: 1.45;
}
.help-original :is(p, li) { line-height: 1.65; }
.help-original strong, .help-original b { font-weight: 750; }
.help-original-figure {
  margin: 1rem 0;
  padding: clamp(.5rem, 2vw, 1rem);
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--wash);
  text-align: center;
}
.help-original img[src$="/helpdesk_guide_num1.gif"],
.help-original img[src$="/helpdesk_guide_num2.gif"],
.help-original img[src$="/helpdesk_guide_num3.gif"],
.help-original img[src$="/helpdesk_guide_num4.gif"] { max-height: 1.875rem; }
.help-original-figure:has(img[src*="/helpdesk_guide_num"]) {
  margin: .625rem 0 .25rem;
  padding: 0;
  border: 0;
  background: none;
  text-align: start;
}
:is(.help-table, .help-original-table) {
  max-width: 100%;
  overflow-x: auto;
  margin-block: 1rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
}
:is(.help-table, .help-original-table) > table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
:is(.help-table, .help-original-table) :is(th, td) {
  padding: .625rem .75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
:is(.help-table, .help-original-table) tbody > tr:last-child > :is(th, td) { border-bottom: 0; }
@container storefront (width <= 40rem) {
  .help-body { gap: 1rem; }
  :is(.help-table, .help-original-table) :is(th, td) { padding: .5rem; }
  .help-original-table table { min-width: 0; }
  .help-original-table table:has(tr > td:nth-child(5)) { min-width: 28rem; }
}

/* Active rate tables and legacy guides use the same header and body colors. */
:is(.help-table, .help-original-table) > table {
  background: #fff;
}
.help-table > table > thead > tr > :is(th, td),
.help-original-table > table > :is(thead, tbody) > tr:first-child:not(:has(.help-shipping-method)):not(:has(img):not(:has(th, .help_tb_tit, .particular_th_tit1))) > :is(th, td),
.help-original-table > table > :is(thead, tbody) > tr > :is(th, td).particular_th_tit1,
.help-original-table > table > :is(thead, tbody) > tr:has(> .help_tb_tit):not(:has(> td:not(.help_tb_tit, .help_tb_tit2))) > :is(th, td) {
  background: var(--accent-soft);
  color: var(--on-soft);
  font-weight: 700;
}

.help-table :is(th, td) { text-align: center; }
.help-table > table,
.help-article-grade-fees table,
.help-article-grade-fees h3 { white-space: nowrap; }
.help-article-grade-fees table :is(th, td) br { display: none; }
.help-article-grade-fees .help-original-table :is(th, td) { text-align: center; }

.help-original-table .help-shipping-method { white-space: nowrap; color: var(--on-soft); }
