body { margin: 0; }

#bm-ebay-parts {
  --bm-ep-deep: #12333b;
  --bm-ep-soft: #435a63;
  --bm-ep-line: #d7e3e4;
  --bm-ep-cloud: #edf5f4;
  --bm-ep-cream: #f8f4ea;
  --bm-ep-display: "Fraunces", Georgia, serif;
  background: var(--bm-white);
}

#bm-ebay-parts :focus-visible { outline: 2px solid #167166; outline-offset: 4px; }
#bm-ebay-parts .bm-btn.bm-ep-cta { color: var(--bm-ink); }
#bm-ebay-parts .bm-btn.bm-ep-outline { border: 1px solid #8cb3b3; background: transparent; color: white; }
#bm-ebay-parts .bm-btn.bm-ep-outline:hover { background: #234b54; }
.bm-ep-wrap { width: min(var(--bm-max), calc(100% - 40px)); margin: 0 auto; }
.bm-ep-skip { position: absolute; z-index: 100; top: 8px; left: 8px; transform: translateY(-150%); padding: 12px; background: white; }
.bm-ep-skip:focus { transform: none; }
.bm-ep-breadcrumb { display: flex; flex-wrap: wrap; gap: 5px 10px; padding: 18px 0; font-size: .875rem; color: var(--bm-ep-soft); }
.bm-ep-breadcrumb a, .bm-ep-jump a, .bm-ep-note a, .bm-ep-references a { text-underline-offset: 3px; }
.bm-ep-hero { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(22px, 5vw, 62px); align-items: center; padding: clamp(23px, 4.6vw, 58px); border-radius: 28px; background: #133840; color: white; }
#bm-ebay-parts :is(.bm-ep-hero, .bm-ep-end) :focus-visible { outline-color: var(--bm-aqua); }
.bm-ep-hero h1, .bm-ep-heading h2, .bm-ep-end h2 { margin: 0; font: 700 clamp(2.15rem, 4.9vw, 4.45rem)/1.03 var(--bm-ep-display); letter-spacing: -.035em; }
.bm-ep-hero h1 { max-width: 12ch; }
.bm-ep-hero-copy > p:not(.bm-ep-sign) { max-width: 40ch; margin: 17px 0 24px; color: #e2eff0; font-size: clamp(1rem, 1.7vw, 1.16rem); }
.bm-ep-sign { display: inline-block; padding: 6px 12px; margin: 0 0 18px; border-radius: 7px; background: #e1f1ed; color: var(--bm-ep-deep); font-weight: 800; }
.bm-ep-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.bm-ep-hero figure { margin: 0; }
.bm-ep-hero img { display: block; width: 100%; height: auto; border-radius: 16px; }
.bm-ep-jump { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; padding: 8px 0; font-size: .875rem; font-weight: 700; }
.bm-ep-jump a { padding: 8px 12px; border: 1px solid var(--bm-ep-line); border-radius: 999px; background: #fff; }
.bm-ep-section { padding: clamp(42px, 7vw, 88px) 0; scroll-margin-top: 64px; }
.bm-ep-heading { max-width: 68ch; margin-bottom: 27px; }
.bm-ep-heading h2, .bm-ep-end h2 { font-size: clamp(2rem, 4.1vw, 3.25rem); }
.bm-ep-heading > p:not(.bm-ep-kicker) { color: var(--bm-ep-soft); margin: 13px 0 0; }
.bm-ep-kicker { margin: 0 0 8px; color: #306b63; font-size: .85rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.bm-ep-card h3, .bm-ep-rare-card h3, .bm-ep-steps h3, .bm-ep-condition-grid h3 { margin: 0; color: var(--bm-ep-deep); font-size: clamp(1.17rem, 2.4vw, 1.6rem); line-height: 1.22; }
.bm-ep-categories { display: grid; gap: 19px; }
.bm-ep-card { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(14px, 3.5vw, 38px); padding: clamp(12px, 2.8vw, 25px); border: 1px solid var(--bm-ep-line); border-radius: 20px; background: #fff; }
.bm-ep-photo { margin: 0; }
.bm-ep-photo > div { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--bm-ep-cloud); border-radius: 12px; overflow: hidden; }
.bm-ep-photo img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.bm-ep-photo figcaption { margin-top: 8px; color: var(--bm-ep-soft); font-size: .8rem; }
.bm-ep-card-content > p:not(.bm-ep-kicker), .bm-ep-item-copy p { color: var(--bm-ep-soft); margin: 8px 0 10px; }
.bm-ep-card-content .bm-ep-item { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--bm-ep-line); }
.bm-ep-item h4 { margin: 0; color: var(--bm-ep-deep); font-size: 1.05rem; }
.bm-ep-query { display: grid; align-content: start; gap: 3px; min-width: 0; padding: 8px 10px; background: #e9f3f2; border-radius: 8px; color: var(--bm-ep-deep); font-size: .875rem; overflow-wrap: anywhere; }
.bm-ep-query span { font-weight: 800; }
.bm-ep-query a { font-family: ui-monospace, Consolas, monospace; text-underline-offset: 3px; }
.bm-ep-note { margin: 14px 0 0; color: var(--bm-ep-soft); font-size: .94rem; }
.bm-ep-rare { background: var(--bm-ep-cream); }
.bm-ep-rare-grid, .bm-ep-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bm-ep-rare-card, .bm-ep-steps li { min-width: 0; border: 1px solid var(--bm-ep-line); border-radius: 15px; padding: clamp(14px, 2.5vw, 22px); background: white; }
.bm-ep-rare-card, .bm-ep-rare-card .bm-ep-item { display: flex; flex-direction: column; }
.bm-ep-rare-card .bm-ep-item { flex: 1; }
.bm-ep-rare-card .bm-ep-query { margin-top: auto; }
.bm-ep-rare-card:first-child { border-top: 3px solid var(--bm-ep-line); }
.bm-ep-rare-card:nth-child(2) { border-top: 3px solid #df7c57; }
.bm-ep-rare-card:nth-child(3) { border-top: 3px solid #57a9a2; }
.bm-ep-steps, .bm-ep-ship-steps { list-style: none; margin: 0; padding: 0; counter-reset: bm-ep-step; }
.bm-ep-steps li, .bm-ep-ship-steps li { counter-increment: bm-ep-step; }
.bm-ep-steps > li::before, .bm-ep-ship-steps > li::before { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: white; background: var(--bm-ep-deep); content: counter(bm-ep-step); font-size: .875rem; font-weight: 800; }
.bm-ep-steps > li::before { margin-bottom: 10px; }
.bm-ep-steps p, .bm-ep-ship-steps p { margin: 6px 0 0; color: var(--bm-ep-soft); }
.bm-ep-shipping { background: var(--bm-ep-cloud); }
.bm-ep-ship-grid, .bm-ep-condition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 4.5vw, 60px); align-items: start; }
.bm-ep-ship-steps li { position: relative; padding-left: 44px; margin-bottom: 16px; }
.bm-ep-ship-steps li::before { position: absolute; left: 0; top: 0; }
.bm-ep-listing { margin: 0; background: white; border: 1px solid var(--bm-ep-line); border-radius: 16px; box-shadow: var(--bm-shadow); overflow: hidden; }
.bm-ep-listing-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px 12px; align-items: baseline; padding: 10px 14px; border-bottom: 1px solid var(--bm-ep-line); background: #f8fbfb; }
.bm-ep-listing-head strong { font-size: 1.18rem; }
.bm-ep-listing-head span, .bm-ep-listing figcaption { color: var(--bm-ep-soft); font-size: .86rem; }
.bm-ep-listing-body { padding: 12px 14px; }
.bm-ep-listing-body > p { margin: 0 0 10px; font-weight: 800; }
.bm-ep-location { display: grid; gap: 3px; margin-top: 9px; padding: 10px; background: #e3f3e9; color: #184a34; border: 1px solid #9ac9aa; border-radius: 9px; overflow-wrap: anywhere; }
.bm-ep-location--other { background: #faf0e5; color: #714521; border-color: #e5c6a8; }
.bm-ep-location a, .bm-ep-location span { font-size: .875rem; }
.bm-ep-listing figcaption { padding: 10px 14px; border-top: 1px solid var(--bm-ep-line); }
.bm-ep-conditions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.bm-ep-conditions > div { padding: 13px; border: 1px solid var(--bm-ep-line); border-radius: 12px; }
.bm-ep-conditions dt { color: var(--bm-ep-deep); font-weight: 800; }
.bm-ep-conditions dd { margin: 5px 0 0; color: var(--bm-ep-soft); }
.bm-ep-condition-grid ul { margin: 10px 0; padding-left: 19px; }
.bm-ep-condition-grid li + li { margin-top: 7px; }
.bm-ep-message { padding: clamp(16px, 3vw, 26px); border-radius: 14px; background: var(--bm-ep-cloud); }
.bm-ep-message blockquote { padding-left: 12px; margin: 12px 0; border-left: 3px solid #65a69e; }
.bm-ep-message > p:last-child { margin: 0; color: var(--bm-ep-soft); font-size: .94rem; }
.bm-ep-faq, .bm-ep-order { padding-top: 0; }
.bm-ep-faq details { max-width: 870px; border-bottom: 1px solid var(--bm-ep-line); }
.bm-ep-faq details:first-of-type { border-top: 1px solid var(--bm-ep-line); }
.bm-ep-faq summary { padding: 14px 2px; color: var(--bm-ep-deep); cursor: pointer; font-weight: 800; }
.bm-ep-faq details > p { max-width: 72ch; color: var(--bm-ep-soft); margin: 0 0 14px 18px; }
.bm-ep-end { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: 20px; padding: clamp(18px, 4.7vw, 52px); background: var(--bm-ep-deep); color: white; border-radius: 22px; }
.bm-ep-end .bm-ep-kicker { color: #b5dfd8; }
.bm-ep-end p:last-child { margin-bottom: 0; color: #cce1e2; }
.bm-ep-end-links { display: grid; justify-items: start; gap: 8px; }
.bm-ep-end-links span { color: #cce1e2; font-size: .875rem; }
.bm-ep-references { display: grid; gap: 6px; margin-top: -22px; padding-bottom: 34px; color: var(--bm-ep-soft); font-size: .9rem; }
.bm-ep-references summary { cursor: pointer; width: fit-content; padding: 4px 0; }
.bm-ep-references ul { margin: 4px 0 8px; padding-left: 22px; }

@media (min-width: 761px) {
  @supports (grid-template-rows: subgrid) {
    .bm-ep-rare-card { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 8px; }
    .bm-ep-rare-card .bm-ep-kicker { margin: 0; }
    .bm-ep-rare-card .bm-ep-item { display: contents; }
    .bm-ep-rare-card .bm-ep-query { margin: 0; }
  }
}

@media (max-width: 900px) {
  .bm-ep-conditions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .bm-ep-wrap { width: calc(100% - 28px); }
  .bm-ep-hero, .bm-ep-card, .bm-ep-rare-grid, .bm-ep-steps, .bm-ep-ship-grid, .bm-ep-condition-grid, .bm-ep-end { grid-template-columns: 1fr; }
  .bm-ep-hero h1 { max-width: 15ch; }
  .bm-ep-photo > div { max-height: 320px; }
}
@media (max-width: 450px) {
  .bm-ep-actions .bm-btn { width: 100%; }
  .bm-ep-jump { gap: 5px; }
  .bm-ep-jump a { padding: 6px 8px; }
  .bm-ep-conditions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  #bm-ebay-parts .bm-btn { transition: none; }
}
