.sell-page-heading,
.usd-sell-store {
  --sell-accent: #b35c00;
  --sell-pale: #fcf1e3;
  --sell-accent-on-pale: #a55300;
}

.l-container > .c-sub-image-container.store-page-title.sell-page-heading:has(h1) .store-page-title__heading {
  color: #8c4c10;
}
.sell-page-heading .store-page-title__badge {
  background: var(--sell-pale);
  color: var(--sell-accent-on-pale);
}

.sell-page-heading__short { display: none; }
@media (max-width: 767px) {
  .sell-page-heading__formal { display: none; }
  .sell-page-heading__short { display: inline; }
}

.usd-sell-store :is(.store-hero, .store-section, .exchange-calculator, .home-section) > .home-heading,
.usd-sell-store .home-reviews__head > .home-heading,
.usd-sell-store > .usd-preview[data-usd-layout=hybrid] > .usd-preview__section > h2 {
  border-inline-start-color: var(--sell-accent);
}

.usd-sell-store .store-purchase-details { margin-block-start: var(--store-section-gap); }
.usd-sell-store .store-purchase-details > :first-child { margin-block-start: 0; }
.usd-sell-store .store-purchase-details:last-child { padding-block-end: 48px; }

.usd-sell-store .sell-store-rate { color: var(--sell-accent); }
.usd-sell-store :is(.store-hero, .store-closing) .a226-end-cta__link:is(:link, :visited) {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding: 6px 32px;
  border: 0;
  border-radius: 8px;
  background: var(--sell-accent);
  color: #fff;
  text-align: center;
  text-decoration: none;
}
.usd-sell-store :is(.store-hero, .store-closing) .a226-end-cta__link::after { content: none; }
.usd-sell-store :is(.store-hero, .store-closing) .a226-end-cta__link strong {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.usd-sell-store .sell-store-cta__short { display: none; }
@media (max-width: 767px) {
  .usd-sell-store .sell-store-cta__formal {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
  }
  .usd-sell-store .sell-store-cta__short { display: inline-block; }
}

.usd-sell-store :is(.store-hero, .store-closing) .a226-end-cta__link:hover { background: #995000; }
.usd-sell-store .store-closing .a226-end-cta__link {
  inline-size: 100%;
  min-block-size: 54px;
}
@media (min-width: 768px) {
  .usd-sell-store .store-closing .a226-end-cta__link {
    max-inline-size: 360px;
    min-block-size: 52px;
  }
}
.usd-sell-store .store-hero .store-comparison__own-heading { color: var(--sell-accent); }
.usd-sell-store .store-hero .a226-end-cta__link {
  inline-size: 100%;
  max-inline-size: none;
  min-block-size: 52px;
}
@media (768px <= width <= 1024px) {
  .usd-sell-store .store-hero .a226-end-cta__link:is(:link, :visited) { padding-inline: 16px; }
}

.usd-sell-store .exchange-calculator[data-side="sell"] { --calc-tint: var(--sell-pale); }
@media (max-width: 767px) {
  .usd-sell-store .sell-store-calculator__heading--natural-wrap { word-break: auto-phrase; }
}
.usd-sell-store .exchange-calculator__fields[data-fixed-currency] {
  grid-template-columns: minmax(0, 1fr);
}
.usd-sell-store .exchange-calculator__cta--arrow:any-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35em;
}
.usd-sell-store .exchange-calculator__cta--arrow::after { content: "▶" / ""; }
.usd-sell-store .exchange-calculator[data-side="sell"] [data-calc-rate-num],
.usd-sell-store .sell-store-shipping__lead {
  color: var(--sell-accent-on-pale);
}
.usd-sell-store .exchange-calculator[data-side="sell"] [data-calc-cta]:is(:link, :visited) {
  background: var(--sell-accent);
  color: #fff;
}
.usd-sell-store .exchange-calculator[data-side="sell"] [data-calc-cta]:hover { background: #995000; }
.usd-sell-store .exchange-calculator__compare[hidden] + .exchange-calculator__total {
  display: flex;
  align-items: center;
}
.usd-sell-store .exchange-calculator__compare[hidden] + .exchange-calculator__total .a226-calc__sub[hidden] {
  display: none;
}
.usd-sell-store .store-purchase-details :is(dt, .usd-faq__question > span:last-child) {
  word-break: auto-phrase;
  text-wrap: balance;
}
.usd-sell-store :is(.usd-faq__answer-copy p, .usd-preview__notes-grid figcaption span) {
  word-break: auto-phrase;
  text-wrap: balance;
}
@media (max-width: 767px) {
  .usd-sell-store .sell-store-banknotes > h2 { text-wrap: balance; word-break: auto-phrase; }
}
.usd-sell-store .usd-faq__answer-copy .color-orange { color: inherit; }
.usd-sell-store :is(.sell-store-terms, .sell-store-banknotes) > .a226-end-cta__link:is(:link, :visited) { color: #fff; }

.usd-sell-store .sell-store-terms .usd-preview__rules :is(dt, dd) { padding-block: 9px; }
.usd-sell-store .sell-store-terms > .a226-end-cta__link { margin-block-start: var(--store-heading-gap); }
.usd-sell-store nav.store-faq-help {
  margin-block-start: 24px;
  padding-block: 0;
}
.usd-sell-store :is(.sell-store-terms, .sell-store-banknotes) > .a226-end-cta__link {
  min-block-size: 52px;
  max-inline-size: 360px;
}

@media (max-width: 767px) {
  .usd-sell-store :is(.store-hero, .store-section) > .home-heading,
  .usd-sell-store > .usd-preview[data-usd-layout=hybrid] > .usd-preview__section > h2 {
    font-size: 16px;
  }
  .usd-sell-store .store-rate-summary > h2 { font-size: 14px; }
  .usd-sell-store .store-hero .a226-end-cta__link:is(:link, :visited),
  .usd-sell-store :is(.sell-store-terms, .sell-store-banknotes) > .a226-end-cta__link {
    min-block-size: 48px;
  }
  .usd-sell-store .sell-store-terms .usd-preview__rules :is(dt, dd) { padding-block: 8px; }
  .usd-sell-store .sell-store-terms .usd-preview__rules dt {
    padding-inline-end: 10px;
    text-wrap: nowrap;
  }
  .usd-sell-store .store-purchase-details:last-child { padding-block-end: 30px; }
}

.usd-sell-store .store-flow__steps,
.usd-sell-store .sell-store-terms .usd-preview__rules dt { background: var(--sell-pale); }
.usd-sell-store .store-flow__number {
  color: var(--sell-accent);
  box-shadow: inset 0 0 0 1.5px var(--sell-accent);
}

.usd-sell-store .sell-store-shipping__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(35%, 290px);
  align-items: center;
  gap: 28px;
  padding: 22px 24px;
  border: 1px solid var(--store-surface-line);
  border-radius: var(--store-surface-radius);
  background: var(--store-white-surface);
}
.sell-store-shipping__items { margin-block: 0; }
.sell-store-shipping__items > div {
  min-inline-size: 0;
  word-break: auto-phrase;
  text-wrap: balance;
}
.sell-store-shipping__items > div + div {
  margin-block-start: 14px;
  padding-block-start: 14px;
  border-block-start: 1px solid var(--store-surface-line);
}
.sell-store-shipping__summary dt { font-size: 14px; font-weight: 700; }
.sell-store-shipping__summary dd {
  margin-inline-start: 0;
  line-height: 1.6;
}
.sell-store-shipping__lead { font-size: 22px; font-weight: 700; }
.sell-store-shipping__deadline { background: linear-gradient(transparent 55%, #ffe27a 55%); }
.sell-store-shipping__summary small {
  margin-inline-start: 6px;
  font-size: 12px;
  white-space: nowrap;
}
.sell-store-shipping__summary :is(p, a) { font-size: 14px; }
.sell-store-shipping__summary a { display: block; }
.sell-store-shipping__warning {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-block-start: 8px;
}
.sell-store-shipping__warning img { flex: none; inline-size: 18px; block-size: 18px; margin-block-start: 2px; }
.sell-store-shipping__visuals {
  display: grid;
  min-inline-size: 0;
  justify-items: center;
  gap: 10px;
}
.sell-store-shipping__example {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-inline-size: 0;
  justify-items: center;
  gap: 6px;
}
.sell-store-shipping__example figcaption { color: var(--store-support); font-size: 12px; }
.sell-store-shipping__example { inline-size: 100%; }
:is(.sell-store-shipping__envelope, .sell-store-shipping__post-office) {
  display: block;
  inline-size: min(100%, 258px);
  block-size: auto;
  object-fit: contain;
  object-position: center top;
  border-radius: 6px;
}

.usd-sell-store .sell-store-unaccepted :is(p, strong, small, a) {
  word-break: auto-phrase;
  text-wrap: balance;
}
.usd-sell-store .sell-store-unaccepted > .mb-guide-journey { padding: 12px 16px 0; }
.sell-store-unaccepted .mb-journey-ng-photos a { display: block; }
@media (min-width: 768px) {
  .usd-sell-store .sell-store-unaccepted .mb-journey-ng {
    grid-template: "copy" "photos" / minmax(0, 1fr);
    align-items: start;
    row-gap: var(--store-heading-gap);
  }
  .usd-sell-store .sell-store-unaccepted .mb-journey-ng:has(.mb-journey-ng-links) {
    grid-template-areas: "copy" "photos" "links";
  }
  .usd-sell-store .sell-store-unaccepted .mb-journey-ng-description {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
  }
  .usd-sell-store .sell-store-unaccepted .mb-journey-ng-description p { margin: 0; }
  .usd-sell-store .sell-store-unaccepted .mb-journey-ng-photos .c-step-guide__no-sell-example-container {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.usd-sell-store .sell-store-banknotes details > .usd-preview__notes-grid { margin-inline: 16px; }
/* The smallest Swiss note is 70 × 123 mm. Both limits are below 75% at 96 CSS px/in. */
.usd-sell-store .sell-store-banknotes--vertical .usd-preview__notes-grid img {
  inline-size: auto;
  block-size: auto;
  max-inline-size: min(100%, 190px);
  max-block-size: 340px;
  margin-inline: auto;
}
.usd-sell-store .sell-store-unaccepted .mb-journey-inline-link { display: none; }
.usd-sell-store .sell-store-banknotes > .a226-end-cta__link { margin: 16px auto 0; }

/* At 96 CSS px/in these limits fit below 75% of the smallest notes in the gallery. */
.sell-banknote-preview {
  --preview-inline-limit: 330px;
  --preview-block-limit: 160px;
  --preview-image-padding: 80px;
}
.sell-banknote-preview--vertical {
  --preview-inline-limit: 197px;
  --preview-block-limit: 347px;
}
.sell-banknote-preview img.mfp-img {
  box-sizing: content-box;
  object-fit: contain;
  max-inline-size: min(var(--preview-inline-limit), calc(100vw - 88px));
  max-block-size: min(var(--preview-block-limit), calc(100dvh - var(--preview-image-padding))) !important;
}
/* Keep gallery controls clear of the image and the surrounding click-to-close area. */
.sell-banknote-preview .mfp-image-holder .mfp-close { top: -34px; }
.sell-banknote-preview .mfp-arrow {
  width: 44px;
  height: 72px;
  top: calc(50% - 36px);
  margin: 0;
}
.sell-banknote-preview .mfp-arrow-left {
  left: max(0px, calc(50% - var(--preview-inline-limit) / 2 - 44px));
}
.sell-banknote-preview .mfp-arrow-right {
  left: auto;
  right: max(0px, calc(50% - var(--preview-inline-limit) / 2 - 44px));
}
.sell-banknote-preview .mfp-arrow::after {
  justify-content: center;
  padding: 0;
}
@media (max-width: 800px) and (orientation: landscape), (max-height: 300px) {
  .sell-banknote-preview { --preview-image-padding: 0px; }
  .sell-banknote-preview .mfp-image-holder .mfp-close {
    position: fixed;
    top: 0;
    right: 0;
  }
}

/* Damaged-note photos use their original size on desktop and fill a portrait phone. */
.sell-damaged-banknote-preview {
  --preview-inline-limit: min(70vw, var(--preview-source-inline-size, 210px));
  --preview-block-limit: 100dvh;
}
.sell-damaged-banknote-preview img.mfp-img {
  max-inline-size: var(--preview-inline-limit);
}

@media (max-width: 767px) {
  .sell-damaged-banknote-preview { --preview-inline-limit: 100vw; }
  .sell-damaged-banknote-preview .mfp-image-holder { padding-inline: 0; }
  .sell-damaged-banknote-preview .mfp-figure { margin-inline: 0; }
  .sell-damaged-banknote-preview img.mfp-img { inline-size: var(--preview-inline-limit); }
}

@media (max-width: 767px) {
  .usd-sell-store .sell-store-banknotes > .a226-end-cta__link { inline-size: 100%; max-inline-size: none; }
  .usd-sell-store .sell-store-shipping__summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 12px 16px;
  }
  .sell-store-shipping__items > div { padding-block: 12px; }
  .sell-store-shipping__items > div:first-child { padding-block-start: 0; }
  .sell-store-shipping__items > div + div { margin-block-start: 0; }
  .sell-store-shipping__items > div:last-child { padding-block-end: 0; }
  .sell-store-shipping__visuals { justify-items: start; }
  .sell-store-shipping__post-office-example { display: none; }
  .sell-store-shipping__example {
    justify-items: start;
    margin-block: 8px 0;
  }
  .sell-store-shipping__example figcaption { display: none; }
  .sell-store-shipping__lead { font-size: 19px; }
}

/* Reserve the sales title widths so the badge and title start at the same x positions. */
@media (min-width: 768px) {
  .usd-sell-store .store-flow__step:nth-child(2) h3 {
    inline-size: min(9em, calc(100% - 34px));
    text-align: start;
  }
  .usd-sell-store .store-flow__step:nth-child(3) h3 {
    inline-size: min(6em, calc(100% - 34px));
    text-align: start;
  }
}

/* The sales template centres its one-line final description beside the artwork. */
@media (min-width: 380px) and (max-width: 767px) {
  .usd-sell-store .store-flow__step:last-child .store-flow__art { align-self: start; }
  .usd-sell-store .store-flow__step:last-child .store-flow__copy {
    align-self: start;
    margin-block-start: 8px;
  }
}

.usd-sell-store .sell-store-mailing {
  margin-block-start: 12px;
  padding-block: 0;
}
.usd-sell-store .sell-store-mailing .mb-journey-large-copy { padding-inline: 16px; }
.usd-sell-store .sell-store-mailing .mb-journey-large-copy strong { white-space: nowrap; }
