#hs-public-product-offer,
#hs-public-product-offer * {
  box-sizing: border-box;
}

.hs-offer {
  --hs-navy: #102f54;
  --hs-navy-dark: #082541;
  --hs-orange: #ff8a1f;
  --hs-orange-dark: #e87409;
  --hs-text: #5e6f82;
  --hs-light: #f4f7fb;
  --hs-border: #dce5ee;
  width: 100%;
  background: #fff;
  color: var(--hs-navy-dark);
}

.hs-offer a,
.hs-offer a:hover,
.hs-offer a:focus {
  text-decoration: none !important;
}

.hs-offer-shell {
  width: calc(100% - 40px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 0 72px;
}

.hs-offer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hs-offer-hero-copy,
.hs-offer-price-note {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 36px 32px;
  border: 1px solid #ffc786;
  background:
    radial-gradient(circle at 88% 10%, rgba(255,138,31,.11), transparent 30%),
    linear-gradient(145deg, #fff8f0 0%, #fffdfb 62%, #ffffff 100%);
  box-shadow: 0 18px 42px rgba(8,37,65,.08);
}

.hs-offer-price-note-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.hs-offer-price-note-icon {
  display: flex;
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: #fff0df;
  box-shadow: inset 0 0 0 1px rgba(255,138,31,.08);
  font-size: 28px;
}

.hs-offer-price-note-badge {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 8px 12px;
  border: 1px solid rgba(255,138,31,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--hs-orange-dark);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hs-offer-price-note-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.hs-offer-price-note h2 {
  max-width: 420px;
  margin: 0 0 16px !important;
  color: var(--hs-navy-dark) !important;
  font-size: clamp(32px, 3.3vw, 46px) !important;
  font-weight: 850 !important;
  line-height: 1.04 !important;
  letter-spacing: -.03em !important;
}

.hs-offer-price-note-lead {
  margin-bottom: 12px !important;
  color: var(--hs-navy) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
}

.hs-offer-price-note p {
  max-width: 470px;
  margin: 0 0 21px !important;
  color: var(--hs-text) !important;
  font-size: 14px !important;
  line-height: 1.72 !important;
}

.hs-offer-price-note a,
.hs-offer-price-note-status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 43px;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 850;
}

.hs-offer-price-note a {
  background: var(--hs-orange);
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(255,138,31,.22);
}

.hs-offer-price-note a::after {
  content: "→";
  margin-left: 8px;
  transition: transform .2s ease;
}

.hs-offer-price-note a:hover {
  background: var(--hs-orange-dark);
}

.hs-offer-price-note a:hover::after {
  transform: translateX(3px);
}

.hs-offer-price-note-status {
  border: 1px solid #dce5ee;
  background: rgba(255,255,255,.75);
  color: var(--hs-navy) !important;
}

.hs-offer-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.hs-offer-search {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--hs-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(8,37,65,.05);
}

.hs-offer-search > span {
  color: var(--hs-orange-dark);
  font-size: 24px;
}

.hs-offer-search input {
  width: 100%;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--hs-navy-dark);
  font-size: 15px;
}

.hs-offer-category-toggle {
  display: none;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--hs-border);
  border-radius: 16px;
  background: #fff;
  color: var(--hs-navy-dark);
  font-weight: 850;
}

.hs-offer-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.hs-offer-sidebar {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--hs-border);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(8,37,65,.06);
}

.hs-offer-sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 3px 4px 13px;
  border-bottom: 1px solid var(--hs-border);
}

.hs-offer-sidebar-head strong {
  color: var(--hs-navy-dark);
  font-size: 15px;
}

.hs-offer-sidebar-head button {
  display: none;
  border: 0;
  background: transparent;
  font-size: 27px;
}

.hs-offer-category-group {
  border-bottom: 1px solid #edf2f6;
}

.hs-offer-category-group:last-child {
  border-bottom: 0;
}

.hs-offer-category {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--hs-text);
  font-size: 13px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.hs-offer-category:hover,
.hs-offer-category.is-active {
  background: #fff0df;
  color: var(--hs-orange-dark);
}

.hs-offer-subcategories {
  display: grid;
  gap: 2px;
  padding: 0 0 8px 9px;
}

.hs-offer-subcategory {
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 650;
}

.hs-offer-main {
  min-width: 0;
}

.hs-offer-results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.hs-offer-results-head h2 {
  margin: 7px 0 0 !important;
  color: var(--hs-navy-dark) !important;
  font-size: clamp(28px, 3.2vw, 40px) !important;
  line-height: 1.1 !important;
}

.hs-offer-count {
  color: var(--hs-text);
  font-size: 13px;
  font-weight: 750;
}

.hs-offer-status {
  display: none;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--hs-light);
  color: var(--hs-text);
  font-size: 14px;
}

.hs-offer-status.is-visible {
  display: block;
}

.hs-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hs-offer-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--hs-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(8,37,65,.055);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.hs-offer-card:hover {
  transform: translateY(-3px);
  border-color: #ffc786;
  box-shadow: 0 18px 38px rgba(8,37,65,.09);
}

.hs-offer-card-image {
  display: flex;
  aspect-ratio: 1 / .78;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px;
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.hs-offer-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .25s ease;
}

.hs-offer-card:hover .hs-offer-card-image img {
  transform: scale(1.035);
}

.hs-offer-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.hs-offer-card-category {
  margin-bottom: 9px;
  color: var(--hs-orange-dark);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.hs-offer-card h3 {
  margin: 0 0 15px !important;
  color: var(--hs-navy-dark) !important;
  font-size: 16px !important;
  font-weight: 820 !important;
  line-height: 1.42 !important;
}

.hs-offer-card h3 a {
  color: inherit !important;
}

.hs-offer-meta {
  display: grid;
  gap: 7px;
  margin: auto 0 16px;
}

.hs-offer-meta > div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.hs-offer-meta dt,
.hs-offer-meta dd {
  margin: 0;
}

.hs-offer-meta dt {
  color: #91a0b0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hs-offer-meta dd {
  color: var(--hs-text);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hs-offer-card-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  color: var(--hs-orange-dark) !important;
  font-size: 13px;
  font-weight: 850;
}

.hs-offer-card-link::after {
  content: "→";
  margin-left: 7px;
  transition: transform .2s ease;
}

.hs-offer-card-link:hover::after {
  transform: translateX(3px);
}

.hs-offer-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 28px;
}

.hs-offer-page {
  display: flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hs-border);
  border-radius: 11px;
  background: #fff;
  color: var(--hs-navy-dark);
  font-weight: 800;
  cursor: pointer;
}

.hs-offer-page:hover,
.hs-offer-page.is-active {
  border-color: var(--hs-orange);
  background: var(--hs-orange);
  color: #fff;
}

.hs-offer-overlay {
  display: none;
}

@media (max-width: 1100px) {
  .hs-offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hs-offer-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .hs-offer-shell {
    width: calc(100% - 28px);
    padding-top: 22px;
  }

  .hs-offer-hero-copy {
    padding: 34px 25px;
  }

  .hs-offer-price-note {
    padding: 24px;
  }

  .hs-offer-layout {
    grid-template-columns: 1fr;
  }

  .hs-offer-category-toggle {
    display: inline-flex;
    align-items: center;
  }

  .hs-offer-sidebar {
    position: fixed;
    z-index: 10001;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(88vw, 340px);
    max-height: none;
    border-radius: 0 20px 20px 0;
    transform: translateX(-105%);
    transition: transform .25s ease;
  }

  .hs-offer-sidebar.is-open {
    transform: translateX(0);
  }

  .hs-offer-sidebar-head button {
    display: block;
  }

  .hs-offer-overlay {
    position: fixed;
    z-index: 10000;
    inset: 0;
    background: rgba(8,37,65,.48);
  }

  .hs-offer-overlay.is-open {
    display: block;
  }
}


@media (max-width: 800px) {
  .hs-offer-price-note {
    min-height: 0;
    padding: 28px 26px;
  }

  .hs-offer-price-note h2 {
    font-size: 36px !important;
  }
}

@media (max-width: 560px) {
  .hs-offer-grid {
    grid-template-columns: 1fr;
  }

  .hs-offer-toolbar {
    align-items: stretch;
  }

  .hs-offer-results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hs-offer-price-note {
    padding: 24px 22px;
  }

  .hs-offer-price-note-top {
    margin-bottom: 22px;
  }

  .hs-offer-price-note h2 {
    font-size: 32px !important;
  }
}


/* HS Publiczna Oferta Produktów v1.0.2 — przywrócenie wyglądu lewego hero */
.hs-offer .hs-offer-hero-copy {
  position: relative !important;
  overflow: hidden !important;
  min-height: 100% !important;
  padding: 48px !important;
  border: 0 !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(255,255,255,.09), transparent 30%),
    linear-gradient(135deg, #082541 0%, #17375e 58%, #244d73 100%) !important;
  box-shadow: 0 20px 48px rgba(8,37,65,.13) !important;
}

.hs-offer .hs-offer-hero-copy::after {
  content: "" !important;
  position: absolute !important;
  top: -90px !important;
  right: -90px !important;
  width: 250px !important;
  height: 250px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 50% !important;
  pointer-events: none !important;
}

.hs-offer .hs-offer-hero-copy .hs-offer-eyebrow {
  position: relative !important;
  z-index: 1 !important;
  align-self: flex-start !important;
  padding: 8px 13px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.11) !important;
  color: #ffd3a1 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .09em !important;
  text-transform: uppercase !important;
}

.hs-offer .hs-offer-hero-copy h1 {
  position: relative !important;
  z-index: 1 !important;
  max-width: 700px !important;
  margin: 20px 0 16px !important;
  color: #ffffff !important;
  font-size: clamp(42px, 4.4vw, 60px) !important;
  font-weight: 850 !important;
  line-height: 1.04 !important;
  letter-spacing: -.035em !important;
}

.hs-offer .hs-offer-hero-copy p {
  position: relative !important;
  z-index: 1 !important;
  max-width: 720px !important;
  margin: 0 !important;
  color: rgba(255,255,255,.84) !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
}

@media (max-width: 800px) {
  .hs-offer .hs-offer-hero-copy {
    padding: 36px 26px !important;
  }

  .hs-offer .hs-offer-hero-copy h1 {
    font-size: 40px !important;
  }
}

@media (max-width: 560px) {
  .hs-offer .hs-offer-hero-copy {
    padding: 30px 22px !important;
  }

  .hs-offer .hs-offer-hero-copy h1 {
    font-size: 34px !important;
  }
}


/* HS Publiczna Oferta Produktów v1.1.0 — lista asortymentu */
.hs-offer-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

.hs-offer-list-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-width: 0;
  padding: 16px 20px;
  border: 1px solid var(--hs-border);
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(8,37,65,.045);
}

.hs-offer-list-image {
  display: flex;
  width: 92px;
  height: 92px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 13px;
  background: #f7f9fc;
}

.hs-offer-list-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hs-offer-list-content {
  min-width: 0;
}

.hs-offer-list-content h3 {
  margin: 0 0 9px !important;
  color: var(--hs-navy-dark) !important;
  font-size: 17px !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
}

.hs-offer-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  color: var(--hs-text);
  font-size: 13px;
  line-height: 1.45;
}

.hs-offer-list-meta strong {
  color: var(--hs-navy-dark);
}

.hs-offer-list-note {
  display: inline-flex;
  margin-top: 10px;
  padding: 7px 11px;
  border-left: 3px solid var(--hs-orange);
  border-radius: 0 9px 9px 0;
  background: #fff7ee;
  color: #6a4b2e;
  font-size: 12px;
  font-weight: 700;
}

.hs-offer-scan-button {
  display: none;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid #ffb66d;
  border-radius: 16px;
  background: #fff7ee;
  color: var(--hs-orange-dark);
  font-weight: 850;
  cursor: pointer;
}

.hs-offer-scanner-modal[hidden] {
  display: none !important;
}

.hs-offer-scanner-modal {
  position: fixed;
  z-index: 11000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(8,37,65,.72);
}

.hs-offer-scanner-dialog {
  width: min(100%, 460px);
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}

.hs-offer-scanner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 19px;
  border-bottom: 1px solid var(--hs-border);
}

.hs-offer-scanner-head strong {
  color: var(--hs-navy-dark);
  font-size: 17px;
}

.hs-offer-scanner-head button {
  border: 0;
  background: transparent;
  color: var(--hs-navy-dark);
  font-size: 28px;
  cursor: pointer;
}

.hs-offer-scanner-video-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #081c2f;
}

.hs-offer-scanner-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hs-offer-scanner-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78%;
  height: 34%;
  border: 3px solid var(--hs-orange);
  border-radius: 16px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 999px rgba(0,0,0,.18);
}

.hs-offer-scanner-status {
  margin: 0 !important;
  padding: 16px 19px !important;
  color: var(--hs-text) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

@media (max-width: 800px) {
  .hs-offer-scan-button {
    display: inline-flex;
  }

  .hs-offer-toolbar {
    flex-wrap: wrap;
  }

  .hs-offer-search {
    flex-basis: 100%;
  }
}

@media (max-width: 560px) {
  .hs-offer-list-item {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 13px;
    padding: 13px;
  }

  .hs-offer-list-image {
    width: 70px;
    height: 70px;
  }

  .hs-offer-list-content h3 {
    font-size: 15px !important;
  }

  .hs-offer-list-meta {
    display: grid;
    gap: 4px;
    font-size: 12px;
  }

  .hs-offer-scan-button,
  .hs-offer-category-toggle {
    flex: 1;
  }
}


/* HS Publiczna Oferta Produktów v1.1.1 — zaokrąglenie kafelka cen */
.hs-offer .hs-offer-price-note {
  overflow: hidden !important;
  border-radius: 26px !important;
}

@media (max-width: 800px) {
  .hs-offer .hs-offer-price-note {
    border-radius: 22px !important;
  }
}


/* HS Publiczna Oferta Produktów v1.1.2 — mobilny skaner EAN */
.hs-offer-scanner-reader {
  width: 100%;
  min-height: 320px;
  background: #081c2f;
}

.hs-offer-scanner-reader > div {
  border: 0 !important;
}

.hs-offer-scanner-reader video {
  width: 100% !important;
  min-height: 320px !important;
  object-fit: cover !important;
}

.hs-offer-scanner-reader img {
  max-width: 100% !important;
}

.hs-offer-scanner-reader button,
.hs-offer-scanner-reader select {
  min-height: 42px !important;
  margin: 8px !important;
  padding: 8px 12px !important;
  border: 1px solid #dce5ee !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #0b2948 !important;
  font-weight: 700 !important;
}

@media (max-width: 560px) {
  .hs-offer-scanner-reader,
  .hs-offer-scanner-reader video {
    min-height: 280px !important;
  }
}


/* HS Publiczna Oferta Produktów v1.1.3 — poprawki uruchamiania kamery */
.hs-offer-scanner-reader video {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 280px !important;
  background: #081c2f !important;
  object-fit: cover !important;
}

.hs-offer-scanner-reader #qr-shaded-region {
  border-color: rgba(255, 138, 31, .95) !important;
}

.hs-offer-scanner-status {
  min-height: 54px;
  font-weight: 650;
}


/* HS Publiczna Oferta Produktów v1.1.4 — animowana linia skanera */
.hs-offer-scanner-video-wrap {
  position: relative !important;
}

.hs-offer-scanner-guide {
  position: absolute;
  z-index: 20;
  top: 50%;
  left: 50%;
  width: 78%;
  height: 34%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, .92);
  border-radius: 16px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow:
    0 0 0 999px rgba(5, 24, 41, .22),
    0 0 20px rgba(255,255,255,.12);
}

.hs-offer-scanner-line {
  position: absolute;
  left: 4%;
  right: 4%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255,138,31,0),
    rgba(255,138,31,.95) 16%,
    #ff8a1f 50%,
    rgba(255,138,31,.95) 84%,
    rgba(255,138,31,0)
  );
  box-shadow:
    0 0 8px rgba(255,138,31,.75),
    0 0 18px rgba(255,138,31,.42);
  animation: hsOfferScannerSweep 2.15s ease-in-out infinite;
}

@keyframes hsOfferScannerSweep {
  0% {
    top: 8%;
    opacity: .55;
  }

  50% {
    top: calc(92% - 3px);
    opacity: 1;
  }

  100% {
    top: 8%;
    opacity: .55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs-offer-scanner-line {
    animation-duration: 4.5s;
  }
}
