/* A single delivery link: open typography on desktop, a compact card on mobile. */
.osn-v4 .osn-hero-delivery {
  position: relative;
  z-index: 4;
  display: block;
  width: max-content;
  max-width: min(100%, 440px);
  margin-top: 26px;
  padding: 0;
  color: var(--osn-ink, #171b20);
  text-align: left;
  text-decoration: none;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.osn-v4 .osn-hero-delivery-title { display: block; font-size: 24px; line-height: 1.25; font-weight: 500; letter-spacing: -.2px; }
.osn-v4 .osn-hero-delivery-title strong { font-weight: 600; }
.osn-v4 .osn-hero-delivery-condition { display: block; margin-top: 5px; color: #424b56; font-size: 18px; line-height: 1.4; font-weight: 400; letter-spacing: 0; }
.osn-v4 .osn-hero-delivery-amount { color: inherit; font: inherit; white-space: nowrap; }
.osn-v4 .osn-hero-delivery-details { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: #424b56; font-size: 14px; line-height: 1.4; font-weight: 400; }
.osn-v4 .osn-hero-delivery-details > span { text-decoration: underline; text-underline-offset: 3px; }
.osn-v4 .osn-hero-delivery-details > svg { flex: none; width: 18px; height: 18px; color: var(--osn-orange-hover, #d94f10); }
.osn-v4 .osn-hero-delivery:hover .osn-hero-delivery-title { color: var(--osn-orange-hover, #d94f10); }
.osn-v4 .osn-hero-delivery:focus-visible { outline: 3px solid #246cb1; outline-offset: 5px; border-radius: 4px; }

/* In the narrow tablet hero the offer stays in flow below the catalogue CTA. */
@media (min-width: 701px) and (max-width: 1000px) {
  .osn-v4 .osn-hero-delivery { max-width: 300px; margin-top: 20px; }
  .osn-v4 .osn-hero-delivery-title { font-size: 20px; }
  .osn-v4 .osn-hero-delivery-condition { font-size: 14px; }
}

/* The existing compact mobile hero is retained; only its free top-right area is used. */
@media (min-width: 381px) and (max-width: 700px) {
  .osn-v4 .v4-hero-copy h1 { max-width: calc(100% - 128px); }
  .osn-v4 .osn-hero-delivery {
    position: absolute;
    top: 20px;
    right: 14px;
    width: 126px;
    max-width: none;
    min-height: 102px;
    margin: 0;
    padding: 9px;
    border: 1px solid #dedfdb;
    border-radius: 9px;
    background: rgba(255, 255, 255, .97);
  }
  .osn-v4 .osn-hero-delivery-title { font-size: 14px; line-height: 16px; letter-spacing: 0; }
  .osn-v4 .osn-hero-delivery-neighbors { display: block; font-weight: 500; }
  .osn-v4 .osn-hero-delivery-title strong { display: block; font-weight: 600; }
  .osn-v4 .osn-hero-delivery-condition { max-width: 106px; margin-top: 4px; color: #5b626b; font-size: 12px; line-height: 15px; }
  .osn-v4 .osn-hero-delivery-details { position: absolute; right: 9px; bottom: 9px; margin: 0; line-height: 0; }
  .osn-v4 .osn-hero-delivery-details > span { display: none; }
  .osn-v4 .osn-hero-delivery-details > svg { width: 16px; height: 16px; }
  .osn-v4 .osn-hero-delivery:focus-visible { border-radius: 9px; }
}

/* At 320–380px there is no safe second column. Keep every word readable below the CTA. */
@media (max-width: 380px) {
  .osn-v4 .osn-hero-delivery {
    width: min(100%, 290px);
    max-width: none;
    min-height: 72px;
    margin-top: 18px;
    padding: 11px 34px 11px 12px;
    border: 1px solid #dedfdb;
    border-radius: 8px;
    background: rgba(255, 255, 255, .97);
  }
  .osn-v4 .osn-hero-delivery-title { font-size: 16px; line-height: 1.3; letter-spacing: 0; }
  .osn-v4 .osn-hero-delivery-condition { margin-top: 4px; color: #5b626b; font-size: 13px; line-height: 1.4; }
  .osn-v4 .osn-hero-delivery-details { position: absolute; right: 11px; bottom: 12px; margin: 0; line-height: 0; }
  .osn-v4 .osn-hero-delivery-details > span { display: none; }
  .osn-v4 .osn-hero-delivery-details > svg { width: 16px; height: 16px; }
  .osn-v4 .osn-hero-delivery:focus-visible { border-radius: 8px; }
}

/* Keep store locations legible over the mobile product photograph. */
@media (max-width: 700px) {
  .osn-v4 .v4-hero-copy > .osn-hero-stores {
    display: block;
    box-sizing: border-box;
    width: max-content;
    max-width: min(100%, 280px);
    margin: 10px 0 16px;
    padding: 5px 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .94);
    color: #17212b;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
  }
  .osn-v4 .osn-hero-stores-brand { display: none; }
  .osn-v4 .osn-hero-stores-location { display: block; }
  .osn-v4 .osn-hero-stores-location::first-letter { text-transform: uppercase; }
}
