/* ONYX HARD polish layer - loaded after compiled theme CSS.
   Keeps the original Figma styling but narrows the desktop canvas,
   adds animated category expansion, and turns the gift products into
   a real horizontal carousel viewport. */

:root {
  --onyx-content-max: 1320px;
  --onyx-content-gutter: 28px;
}

@media (min-width: 1200px) {
  /* A calmer, more premium desktop measure. This deliberately overrides
     Hummingbird's 1520px Bootstrap/container defaults. */
  :root { --onyx-shell: var(--onyx-content-max) !important; }

  .container,
  .container-xs,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl,
  .container--limited-xxl {
    max-width: var(--onyx-content-max) !important;
  }

  .onyx-shell {
    width: min(var(--onyx-content-max), calc(100% - (var(--onyx-content-gutter) * 2))) !important;
    max-width: none !important;
    margin-inline: auto !important;
  }

  .onyx-header__top-inner,
  .onyx-header__nav-inner {
    width: min(var(--onyx-content-max), calc(100% - (var(--onyx-content-gutter) * 2))) !important;
    max-width: none !important;
    margin-inline: auto !important;
  }

  .onyx-bestsellers,
  #category .breadcrumb__wrapper .container,
  #best-sales .breadcrumb__wrapper .container,
  #new-products .breadcrumb__wrapper .container,
  #prices-drop .breadcrumb__wrapper .container,
  #manufacturer .breadcrumb__wrapper .container,
  #supplier .breadcrumb__wrapper .container,
  #category .columns-container,
  #best-sales .columns-container,
  #new-products .columns-container,
  #prices-drop .columns-container,
  #manufacturer .columns-container,
  #supplier .columns-container,
  #product .columns-container {
    width: min(var(--onyx-content-max), calc(100% - (var(--onyx-content-gutter) * 2))) !important;
    max-width: none !important;
    margin-inline: auto !important;
  }

  .onyx-bestsellers {
    margin-top: 86px !important;
    padding: 0 !important;
  }

  /* Instagram used absolute 1491px tiles in the first version. Reflow it
     inside the same 1320px content measure instead. */
  .onyx-instagram {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 76px auto 0 !important;
  }
  .onyx-instagram__grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    height: auto !important;
  }
  .onyx-instagram__tile,
  .onyx-instagram__tile:nth-child(1),
  .onyx-instagram__tile:nth-child(2),
  .onyx-instagram__tile:nth-child(3) {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
  }
}

/* --------------------------------------------------------------------------
   POZNAJ NASZE PRODUKTY - animated 5-panel accordion
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  .onyx-categories {
    height: 960px !important;
    padding-top: 72px !important;
  }

  .onyx-categories > h2 {
    font-size: 40px !important;
    line-height: 48px !important;
    letter-spacing: .01em;
  }

  .onyx-categories__grid {
    width: min(var(--onyx-content-max), calc(100% - (var(--onyx-content-gutter) * 2))) !important;
    max-width: none !important;
    height: 750px !important;
    margin: 70px auto 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr 2.28fr 1fr 1fr !important;
    gap: 18px !important;
    align-items: start;
    transition: grid-template-columns .58s cubic-bezier(.22,.61,.36,1);
  }

  .onyx-categories__grid[data-onyx-active="1"] { grid-template-columns: 2.28fr 1fr 1fr 1fr 1fr !important; }
  .onyx-categories__grid[data-onyx-active="2"] { grid-template-columns: 1fr 2.28fr 1fr 1fr 1fr !important; }
  .onyx-categories__grid[data-onyx-active="3"] { grid-template-columns: 1fr 1fr 2.28fr 1fr 1fr !important; }
  .onyx-categories__grid[data-onyx-active="4"] { grid-template-columns: 1fr 1fr 1fr 2.28fr 1fr !important; }
  .onyx-categories__grid[data-onyx-active="5"] { grid-template-columns: 1fr 1fr 1fr 1fr 2.28fr !important; }

  .onyx-category-card {
    height: 690px !important;
    min-width: 0;
    overflow: hidden;
    transition: box-shadow .45s ease, transform .45s ease;
    will-change: width;
  }
  .onyx-category-card--down { transform: translateY(42px) !important; }

  .onyx-category-card img,
  .onyx-category-card:nth-child(1) img,
  .onyx-category-card:nth-child(2) img,
  .onyx-category-card:nth-child(3) img,
  .onyx-category-card:nth-child(4) img,
  .onyx-category-card:nth-child(5) img {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: scale(1.01) !important;
    filter: brightness(.93) saturate(.98);
    transition: transform .65s cubic-bezier(.22,.61,.36,1), filter .45s ease !important;
  }
  .onyx-category-card:nth-child(1) img { object-position: 45% center !important; }
  .onyx-category-card:nth-child(2) img { object-position: 50% 40% !important; }
  .onyx-category-card:nth-child(3) img { object-position: 50% 50% !important; }
  .onyx-category-card:nth-child(4) img { object-position: 50% 44% !important; }
  .onyx-category-card:nth-child(5) img { object-position: 55% 48% !important; }

  .onyx-category-card__shade {
    background: rgba(34,34,34,.35) !important;
    transition: background-color .45s ease;
  }

  .onyx-category-card.is-onyx-expanded img {
    transform: scale(1.055) !important;
    filter: brightness(1.08) saturate(1.02);
  }
  .onyx-category-card.is-onyx-expanded .onyx-category-card__shade {
    background: rgba(34,34,34,.10) !important;
  }
  .onyx-category-card.is-onyx-expanded {
    box-shadow: 0 18px 45px rgba(24,20,16,.08);
  }

  .onyx-category-card > strong,
  .onyx-category-card__dynamic-title {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    margin: 0;
    color: #fff;
    font: 400 34px/1.08 'Montserrat', Arial, sans-serif !important;
    letter-spacing: .015em;
    white-space: nowrap;
    transform: translate(-50%, -50%) rotate(-90deg);
    transform-origin: center;
    transition: left .48s ease, top .48s ease, bottom .48s ease, transform .48s ease, opacity .3s ease, font-size .48s ease;
  }

  /* Long new category names must fit the expanding desktop cards. */
  .onyx-category-card--gemstones > strong,
  .onyx-category-card--diamonds > strong {
    font-size: 29px !important;
  }
  .onyx-category-card--gemstones.is-onyx-expanded > strong,
  .onyx-category-card--diamonds.is-onyx-expanded > strong {
    font-size: 26px !important;
    left: 24px !important;
    bottom: 32px !important;
  }

  /* Expanded side panels get a calmer horizontal label. */
  .onyx-category-card.is-onyx-expanded > strong {
    left: 34px !important;
    top: auto !important;
    bottom: 34px;
    transform: none !important;
    font-size: 31px !important;
  }

  /* The centre panel has its richer Figma copy. It is visible only when
     Pierścionki is the expanded panel; JS injects a vertical fallback title
     for the shrunken state. */
  .onyx-category-card__active-copy {
    z-index: 3;
    left: 44px !important;
    right: 34px !important;
    bottom: 44px !important;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .32s ease .08s, transform .42s ease .08s;
  }
  .onyx-category-card.is-onyx-expanded .onyx-category-card__active-copy {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .onyx-category-card__active-copy strong {
    font-size: 38px !important;
    line-height: 44px !important;
  }
  .onyx-category-card__active-copy span {
    margin-top: 5px !important;
    font-size: 16px !important;
    line-height: 24px !important;
  }
  .onyx-category-card__active-copy em {
    min-width: 210px !important;
    height: 50px !important;
    margin-top: 20px !important;
    font-size: 15px !important;
    line-height: 22px !important;
  }
  .onyx-category-card.is-onyx-expanded .onyx-category-card__dynamic-title {
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Product typography - slightly smaller / more editorial
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  .onyx-product-card__title {
    font-size: 19px !important;
    line-height: 25px !important;
  }
  .onyx-product-card__price {
    font-size: 16px !important;
    line-height: 23px !important;
  }
  .onyx-product-card__regular-price {
    font-size: 14px !important;
    line-height: 21px !important;
  }

  .onyx-trending__copy h2 {
    font-size: 39px !important;
    line-height: 44px !important;
  }
  .onyx-trending__copy p {
    font-size: 16px !important;
    line-height: 25px !important;
  }
}

/* --------------------------------------------------------------------------
   PREZENTY NA KAŻDĄ OKAZJĘ - real horizontal product slider
   -------------------------------------------------------------------------- */
.onyx-trending__arrow { display: none !important; }

.onyx-trending__products {
  overflow: hidden !important;
}
.onyx-trending__products .onyx-module-products--featured {
  width: 100%;
  min-width: 0;
}
.onyx-trending__products .products {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: none !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}
.onyx-trending__products .products::-webkit-scrollbar { display: none; }
.onyx-trending__products .products > * {
  flex: 0 0 calc((100% - 18px) / 2) !important;
  width: calc((100% - 18px) / 2) !important;
  min-width: 0 !important;
  scroll-snap-align: start;
}

.onyx-trending__controls {
  position: absolute;
  z-index: 12;
  right: 12px;
  top: 50%;
  display: flex;
  gap: 10px;
  transform: translateY(-50%);
}
.onyx-trending__control {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(34,34,34,.22);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.94);
  color: #222;
  box-shadow: 0 5px 16px rgba(0,0,0,.05);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, opacity .2s ease;
}
.onyx-trending__control:hover:not(:disabled),
.onyx-trending__control:focus-visible:not(:disabled) {
  background: #222;
  border-color: #222;
  color: #fff;
  transform: translateY(-1px);
}
.onyx-trending__control:focus-visible {
  outline: 2px solid #222;
  outline-offset: 3px;
}
.onyx-trending__control:disabled {
  opacity: .24;
  cursor: default;
}
.onyx-trending__control .material-icons { font-size: 20px; }

@media (min-width: 1200px) {
  .onyx-trending__inner {
    min-height: 680px;
  }
  .onyx-trending__copy {
    left: 0 !important;
    width: 320px !important;
  }
  .onyx-trending__products {
    left: 360px !important;
    width: calc(100% - 430px) !important;
  }
  .onyx-trending__controls {
    right: 0;
  }
}

@media (max-width: 991.98px) {
  .onyx-trending__products .products > * {
    flex-basis: min(82vw, 390px) !important;
    width: min(82vw, 390px) !important;
  }
  .onyx-trending__controls {
    position: static;
    justify-content: flex-end;
    margin-top: 18px;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .onyx-categories__grid,
  .onyx-category-card,
  .onyx-category-card img,
  .onyx-category-card__shade,
  .onyx-category-card > strong,
  .onyx-category-card__dynamic-title,
  .onyx-category-card__active-copy,
  .onyx-trending__products .products {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   MOBILE - Poznaj nasze produkty
   Na telefonie nie pokazujemy pionowego fallbacku tytulu aktywnej karty.
   Copy aktywnej kategorii dostaje wlasna, bezpieczna strefe przy dole kafla.
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .onyx-category-card__dynamic-title {
    display: none !important;
  }

  .onyx-category-card--active .onyx-category-card__active-copy {
    left: 28px !important;
    right: 28px !important;
    bottom: 30px !important;
    width: auto !important;
    max-width: calc(100% - 56px) !important;
  }

  .onyx-category-card--active .onyx-category-card__active-copy strong,
  .onyx-category-card--active .onyx-category-card__active-copy span,
  .onyx-category-card--active .onyx-category-card__active-copy em {
    position: static !important;
    transform: none !important;
    white-space: normal !important;
  }

  .onyx-category-card--active .onyx-category-card__active-copy strong {
    font-size: 34px !important;
    line-height: 1.08 !important;
  }

  .onyx-category-card--active .onyx-category-card__active-copy span {
    margin-top: 7px !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
  }

  .onyx-category-card--active .onyx-category-card__active-copy em {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 250px !important;
    height: auto !important;
    min-height: 52px !important;
    margin-top: 18px !important;
    padding: 13px 18px !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }
}

@media (max-width: 575.98px) {
  .onyx-categories {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .onyx-category-card {
    height: min(128vw, 520px) !important;
    min-height: 430px !important;
  }

  .onyx-category-card > strong:not(.onyx-category-card__dynamic-title) {
    left: 24px !important;
    right: 24px !important;
    top: auto !important;
    bottom: 24px !important;
    transform: none !important;
    white-space: normal !important;
    font-size: 27px !important;
    line-height: 1.12 !important;
  }

  .onyx-category-card--gemstones > strong,
  .onyx-category-card--diamonds > strong {
    font-size: clamp(22px, 6vw, 26px) !important;
  }

  .onyx-category-card--active .onyx-category-card__active-copy {
    left: 24px !important;
    right: 24px !important;
    bottom: 24px !important;
    max-width: calc(100% - 48px) !important;
  }

  .onyx-category-card--active .onyx-category-card__active-copy strong {
    font-size: clamp(28px, 8vw, 34px) !important;
    line-height: 1.05 !important;
  }

  .onyx-category-card--active .onyx-category-card__active-copy span {
    font-size: 16px !important;
    line-height: 1.3 !important;
  }

  .onyx-category-card--active .onyx-category-card__active-copy em {
    max-width: 230px !important;
    min-height: 50px !important;
    margin-top: 16px !important;
    font-size: 14px !important;
  }

  .onyx-category-card--active img {
    object-position: 56% center !important;
  }
}

/* --------------------------------------------------------------------------
   HIGH CONTRAST - newsletter placeholder/readability
   Generic accessibility input styles use a white field in contrast mode.
   Keep the newsletter placeholder black as well, otherwise the original
   white placeholder becomes invisible on the white field.
   -------------------------------------------------------------------------- */
body.onyx-high-contrast .onyx-footer .onyx-newsletter__line input {
  background: #fff !important;
  color: #000 !important;
  border-color: #fff !important;
}

body.onyx-high-contrast .onyx-footer .onyx-newsletter__line input::placeholder {
  color: #000 !important;
  opacity: 1 !important;
}

body.onyx-high-contrast .onyx-footer .onyx-newsletter__line button,
body.onyx-high-contrast .onyx-footer .onyx-newsletter__line button .material-icons {
  color: #fff !important;
}

/* --------------------------------------------------------------------------
   Product Comments modal - OnyxHard editorial styling
   -------------------------------------------------------------------------- */
#post-product-comment-modal.onyx-review-modal {
  --onyx-review-ink: #202225;
  --onyx-review-muted: #7b7771;
  --onyx-review-line: #e6e1da;
  --onyx-review-soft: #f7f4ef;
  --onyx-review-gold: #b58a4c;
}

#post-product-comment-modal.onyx-review-modal .modal-dialog {
  width: min(760px, calc(100vw - 32px));
  max-width: 760px;
  margin-inline: auto;
}

#post-product-comment-modal.onyx-review-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(20, 18, 15, .20);
}

#post-product-comment-modal.onyx-review-modal .onyx-review-modal__header {
  align-items: flex-start;
  padding: 34px 38px 24px;
  border-bottom: 0;
}

#post-product-comment-modal.onyx-review-modal .onyx-review-modal__eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--onyx-review-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
}

#post-product-comment-modal.onyx-review-modal .modal-title {
  margin: 0;
  color: var(--onyx-review-ink);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.08;
}

#post-product-comment-modal.onyx-review-modal .onyx-review-modal__lead {
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--onyx-review-muted);
  font-size: 14px;
  line-height: 1.55;
}

#post-product-comment-modal.onyx-review-modal .btn-close {
  margin: 0;
  opacity: .72;
  transform: scale(.86);
}

#post-product-comment-modal.onyx-review-modal .onyx-review-modal__body {
  padding: 0 38px 12px;
}

#post-product-comment-modal.onyx-review-modal .onyx-review-product {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 26px;
  padding: 15px;
  background: var(--onyx-review-soft);
  border: 1px solid #eee8df;
}

#post-product-comment-modal.onyx-review-modal .onyx-review-product__image {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}

#post-product-comment-modal.onyx-review-modal .onyx-review-product__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#post-product-comment-modal.onyx-review-modal .onyx-review-product__content {
  min-width: 0;
}

#post-product-comment-modal.onyx-review-modal .onyx-review-product__content > span {
  display: block;
  margin-bottom: 5px;
  color: var(--onyx-review-gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
}

#post-product-comment-modal.onyx-review-modal .onyx-review-product__content strong {
  display: block;
  color: var(--onyx-review-ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}

#post-product-comment-modal.onyx-review-modal .onyx-review-product__content small {
  display: block;
  margin-top: 5px;
  color: var(--onyx-review-muted);
  font-size: 12px;
}

#post-product-comment-modal.onyx-review-modal .onyx-review-rating {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--onyx-review-line);
}

#post-product-comment-modal.onyx-review-modal .onyx-review-rating__label {
  padding-top: 4px;
  color: var(--onyx-review-ink);
  font-size: 13px;
  font-weight: 500;
}

#post-product-comment-modal.onyx-review-modal .onyx-review-rating__label sup,
#post-product-comment-modal.onyx-review-modal .onyx-review-required sup {
  color: #a63d32;
}

#post-product-comment-modal.onyx-review-modal #criterions_list {
  margin: 0;
  padding: 0;
  list-style: none;
}

#post-product-comment-modal.onyx-review-modal #criterions_list .form-label {
  margin-bottom: 7px;
  color: var(--onyx-review-muted);
  font-size: 12px;
  font-weight: 400;
}

#post-product-comment-modal.onyx-review-modal .stars-selector {
  gap: 5px;
}

#post-product-comment-modal.onyx-review-modal .stars-selector__input-label {
  width: 24px;
  height: 24px;
  background-size: auto 24px;
}

#post-product-comment-modal.onyx-review-modal .onyx-review-fields .form-label {
  margin-bottom: 7px;
  color: var(--onyx-review-ink);
  font-size: 13px;
  font-weight: 500;
}

#post-product-comment-modal.onyx-review-modal .onyx-review-fields .form-control {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #dcd7d0;
  border-radius: 0;
  background: #fff;
  color: var(--onyx-review-ink);
  font-size: 14px;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

#post-product-comment-modal.onyx-review-modal .onyx-review-fields textarea.form-control {
  min-height: 126px;
  resize: vertical;
}

#post-product-comment-modal.onyx-review-modal .onyx-review-fields .form-control::placeholder {
  color: #aaa49c;
}

#post-product-comment-modal.onyx-review-modal .onyx-review-fields .form-control:focus {
  border-color: var(--onyx-review-gold);
  box-shadow: 0 0 0 2px rgba(181, 138, 76, .10);
}

#post-product-comment-modal.onyx-review-modal .onyx-review-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 38px 32px;
  border-top: 0;
}

#post-product-comment-modal.onyx-review-modal .onyx-review-required {
  margin: 0;
  color: var(--onyx-review-muted);
  font-size: 12px;
}

#post-product-comment-modal.onyx-review-modal .onyx-review-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

#post-product-comment-modal.onyx-review-modal .onyx-review-cancel,
#post-product-comment-modal.onyx-review-modal .onyx-review-submit {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .055em;
}

#post-product-comment-modal.onyx-review-modal .onyx-review-cancel {
  border: 1px solid #d7d1ca;
  background: #fff;
  color: var(--onyx-review-ink);
}

#post-product-comment-modal.onyx-review-modal .onyx-review-submit {
  min-width: 176px;
  border: 1px solid var(--onyx-review-ink);
  background: var(--onyx-review-ink);
  color: #fff;
}

#post-product-comment-modal.onyx-review-modal .onyx-review-cancel:hover,
#post-product-comment-modal.onyx-review-modal .onyx-review-cancel:focus-visible {
  border-color: var(--onyx-review-ink);
}

#post-product-comment-modal.onyx-review-modal .onyx-review-submit:hover,
#post-product-comment-modal.onyx-review-modal .onyx-review-submit:focus-visible {
  background: #000;
  border-color: #000;
  color: #fff;
}

@media (max-width: 575.98px) {
  #post-product-comment-modal.onyx-review-modal .modal-dialog {
    width: calc(100vw - 18px);
    margin: 9px auto;
  }

  #post-product-comment-modal.onyx-review-modal .onyx-review-modal__header {
    padding: 25px 22px 18px;
  }

  #post-product-comment-modal.onyx-review-modal .onyx-review-modal__body {
    padding: 0 22px 8px;
  }

  #post-product-comment-modal.onyx-review-modal .onyx-review-product {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 13px;
    padding: 12px;
  }

  #post-product-comment-modal.onyx-review-modal .onyx-review-product__image {
    width: 70px;
    height: 70px;
  }

  #post-product-comment-modal.onyx-review-modal .onyx-review-rating {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #post-product-comment-modal.onyx-review-modal .onyx-review-modal__footer {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 22px 24px;
  }

  #post-product-comment-modal.onyx-review-modal .onyx-review-actions {
    width: 100%;
    margin-left: 0;
  }

  #post-product-comment-modal.onyx-review-modal .onyx-review-cancel,
  #post-product-comment-modal.onyx-review-modal .onyx-review-submit {
    flex: 1 1 0;
  }
}

/* Accessibility widget high-contrast compatibility */
html[data-contrast="high"] #post-product-comment-modal.onyx-review-modal .modal-content,
body.contrast #post-product-comment-modal.onyx-review-modal .modal-content,
body.high-contrast #post-product-comment-modal.onyx-review-modal .modal-content {
  background: #000 !important;
  color: #fff !important;
}

html[data-contrast="high"] #post-product-comment-modal.onyx-review-modal .onyx-review-product,
body.contrast #post-product-comment-modal.onyx-review-modal .onyx-review-product,
body.high-contrast #post-product-comment-modal.onyx-review-modal .onyx-review-product {
  background: #111 !important;
  border-color: #fff !important;
}

/* ========================================================================== */
/* ONYX HARD — POMOC I KONTAKT / off-canvas support panel                     */
/* ========================================================================== */
.onyx-help-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  color: #222;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
}

.onyx-help-trigger--desktop {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  min-height: 28px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .085em;
}

.onyx-help-trigger--desktop .material-icons {
  color: #b58a4c;
  font-size: 18px;
}

.onyx-help-trigger--desktop:hover,
.onyx-help-trigger--desktop:focus-visible {
  color: #8f682e;
}

.onyx-help-trigger--mobile {
  display: none;
}

.onyx-help-overlay {
  position: fixed;
  z-index: 4998;
  inset: 0;
  background: rgba(15, 14, 13, .52);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

.onyx-help-panel {
  position: fixed;
  z-index: 4999;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(480px, calc(100vw - 34px));
  padding: 38px 42px 42px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fbfaf8;
  color: #222;
  box-shadow: 28px 0 70px rgba(0, 0, 0, .16);
  transform: translateX(-104%);
  transition: transform .34s cubic-bezier(.22, .61, .36, 1);
}

body.onyx-help-open {
  overflow: hidden;
}

body.onyx-help-open .onyx-help-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.onyx-help-open .onyx-help-panel {
  transform: translateX(0);
}

.onyx-help-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 26px;
  border-bottom: 1px solid #e4dfd7;
}

.onyx-help-panel__eyebrow {
  display: block;
  margin-bottom: 9px;
  color: #b58a4c;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.onyx-help-panel h2,
.onyx-help-panel h3,
.onyx-help-panel p {
  margin-top: 0;
}

.onyx-help-panel h2 {
  margin-bottom: 0;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.onyx-help-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #ded8cf;
  border-radius: 50%;
  background: transparent;
  color: #222;
}

.onyx-help-panel__close .material-icons {
  font-size: 19px;
}

.onyx-help-panel__close:hover {
  border-color: #222;
}

.onyx-help-panel__lead {
  margin: 24px 0 32px;
  color: #77716a;
  font-size: 14px;
  line-height: 1.72;
}

.onyx-help-panel__section {
  padding: 28px 0;
  border-top: 1px solid #e4dfd7;
}

.onyx-help-panel__section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.onyx-help-panel__section h3 {
  margin-bottom: 17px;
  color: #222;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.25;
}

.onyx-help-panel__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.onyx-help-panel__links li {
  margin: 0;
  border-top: 1px solid #ebe6df;
}

.onyx-help-panel__links li:first-child {
  border-top: 0;
}

.onyx-help-panel__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 47px;
  padding: 10px 0;
  color: #282522;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.onyx-help-panel__links a .material-icons {
  flex: 0 0 auto;
  color: #b58a4c;
  font-size: 17px;
  transition: transform .18s ease;
}

.onyx-help-panel__links a:hover .material-icons,
.onyx-help-panel__links a:focus-visible .material-icons {
  transform: translateX(3px);
}

.onyx-help-panel__meeting {
  margin-inline: -14px;
  padding: 26px 14px 30px;
  background: #f3efe8;
  border-top: 0;
}

.onyx-help-panel__meeting p {
  margin-bottom: 19px;
  color: #726c64;
  font-size: 13px;
  line-height: 1.65;
}

.onyx-help-panel__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: #222;
  color: #fff !important;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .07em;
  text-decoration: none !important;
}

.onyx-help-panel__cta .material-icons {
  font-size: 18px;
}

.onyx-help-panel__cta:hover,
.onyx-help-panel__cta:focus-visible {
  background: #000;
}

.onyx-help-panel__contact {
  padding-bottom: 0;
}

.onyx-help-panel__contact-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 12px 0;
  color: #222 !important;
  text-decoration: none !important;
}

.onyx-help-panel__contact-row > .material-icons {
  color: #b58a4c;
  font-size: 21px;
}

.onyx-help-panel__contact-row small,
.onyx-help-panel__contact-row strong {
  display: block;
}

.onyx-help-panel__contact-row small {
  margin-bottom: 2px;
  color: #8a847d;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.onyx-help-panel__contact-row strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.onyx-help-panel__text-link {
  display: inline-block;
  margin-top: 16px;
  color: #222 !important;
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 991.98px) {
  .onyx-help-trigger--mobile {
    position: absolute;
    z-index: 8;
    top: 24px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
  }

  .onyx-help-trigger--mobile .material-icons {
    font-size: 22px;
  }

  .onyx-help-panel {
    width: min(440px, 100vw);
    padding: 28px 24px 34px;
  }

  .onyx-help-panel h2 {
    font-size: 29px;
  }
}

@media (max-width: 575.98px) {
  .onyx-help-panel {
    width: 100vw;
  }

  .onyx-help-panel__meeting {
    margin-inline: -8px;
    padding-inline: 8px;
  }
}

body.onyx-high-contrast .onyx-help-trigger,
body.onyx-high-contrast .onyx-help-trigger .material-icons {
  color: #000 !important;
}

body.onyx-high-contrast .onyx-help-panel {
  background: #000 !important;
  color: #fff !important;
  border-right: 2px solid #fff;
}

body.onyx-high-contrast .onyx-help-panel__head,
body.onyx-high-contrast .onyx-help-panel__section,
body.onyx-high-contrast .onyx-help-panel__links li {
  border-color: #fff !important;
}

body.onyx-high-contrast .onyx-help-panel h2,
body.onyx-high-contrast .onyx-help-panel h3,
body.onyx-high-contrast .onyx-help-panel__lead,
body.onyx-high-contrast .onyx-help-panel__links a,
body.onyx-high-contrast .onyx-help-panel__contact-row,
body.onyx-high-contrast .onyx-help-panel__contact-row small,
body.onyx-high-contrast .onyx-help-panel__contact-row strong,
body.onyx-high-contrast .onyx-help-panel__text-link,
body.onyx-high-contrast .onyx-help-panel__close {
  color: #fff !important;
}

body.onyx-high-contrast .onyx-help-panel__eyebrow,
body.onyx-high-contrast .onyx-help-panel__links a .material-icons,
body.onyx-high-contrast .onyx-help-panel__contact-row > .material-icons {
  color: #ffdf5d !important;
}

body.onyx-high-contrast .onyx-help-panel__meeting {
  background: #111 !important;
}

body.onyx-high-contrast .onyx-help-panel__cta {
  background: #fff !important;
  color: #000 !important;
}

/* --------------------------------------------------------------------------
   GOOGLE REVIEWS - social proof block, separate from product reviews
   -------------------------------------------------------------------------- */
.onyx-google-reviews {
  margin: 88px auto 0;
  padding: 52px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(210px, .55fr) minmax(210px, .55fr);
  gap: 42px;
  align-items: center;
  background: #f7f4ef;
  color: #222;
}

.onyx-google-reviews__eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #b58a4c;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
}

.onyx-google-reviews__content h2,
.onyx-google-reviews__content p {
  margin: 0;
}

.onyx-google-reviews__content h2 {
  max-width: 680px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: clamp(30px, 2.6vw, 46px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.onyx-google-reviews__content p {
  max-width: 690px;
  margin-top: 18px;
  color: #79736c;
  font-size: 15px;
  line-height: 1.7;
}

.onyx-google-reviews__rating {
  padding-left: 34px;
  border-left: 1px solid #ddd5ca;
}

.onyx-google-reviews__score {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.onyx-google-reviews__score strong {
  font-size: 46px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.04em;
}

.onyx-google-reviews__score span {
  color: #817a72;
  font-size: 14px;
}

.onyx-google-reviews__stars {
  display: flex;
  gap: 3px;
  margin-top: 12px;
  color: #b58a4c;
  font-size: 17px;
  letter-spacing: .03em;
}

.onyx-google-reviews__source {
  display: block;
  margin-top: 8px;
  color: #77716b;
  font-size: 12px;
}

.onyx-google-reviews__actions {
  display: grid;
  gap: 10px;
}

.onyx-google-reviews__button {
  min-height: 48px;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #202225;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.onyx-google-reviews__button .material-icons {
  font-size: 18px;
}

.onyx-google-reviews__button--primary {
  background: #202225;
  color: #fff !important;
}

.onyx-google-reviews__button--secondary {
  background: transparent;
  color: #202225 !important;
}

.onyx-google-reviews__button--primary:hover,
.onyx-google-reviews__button--primary:focus-visible {
  background: #b58a4c;
  border-color: #b58a4c;
  color: #fff !important;
}

.onyx-google-reviews__button--secondary:hover,
.onyx-google-reviews__button--secondary:focus-visible {
  background: #202225;
  color: #fff !important;
}

@media (max-width: 991.98px) {
  .onyx-google-reviews {
    margin-top: 58px;
    padding: 38px 30px;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .onyx-google-reviews__content {
    grid-column: 1 / -1;
  }

  .onyx-google-reviews__rating {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 575.98px) {
  .onyx-google-reviews {
    margin-top: 42px;
    padding: 32px 22px;
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .onyx-google-reviews__content {
    grid-column: auto;
  }

  .onyx-google-reviews__content h2 {
    font-size: 31px;
  }

  .onyx-google-reviews__score strong {
    font-size: 40px;
  }
}

body.onyx-high-contrast .onyx-google-reviews {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

body.onyx-high-contrast .onyx-google-reviews__eyebrow,
body.onyx-high-contrast .onyx-google-reviews__stars {
  color: #ffdf5d !important;
}

body.onyx-high-contrast .onyx-google-reviews__content p,
body.onyx-high-contrast .onyx-google-reviews__score span,
body.onyx-high-contrast .onyx-google-reviews__source {
  color: #fff !important;
}

body.onyx-high-contrast .onyx-google-reviews__rating {
  border-color: #fff !important;
}

body.onyx-high-contrast .onyx-google-reviews__button--primary {
  background: #fff !important;
  border-color: #fff !important;
  color: #000 !important;
}

body.onyx-high-contrast .onyx-google-reviews__button--secondary {
  border-color: #fff !important;
  color: #fff !important;
}
#cms.cms-id-33 .page-content--cms {
    max-width: 100%!important;
}   ONYX HARD - CONFIGURATOR 3D / EXTENDED PRESENTATION
   ========================================================================== */
.onyx-configurator-guide {
  width: min(1480px, calc(100% - 64px));
  margin: 86px auto 24px;
  color: #232323;
}

.onyx-configurator-guide__intro {
  max-width: 820px;
  margin-bottom: 42px;
}

.onyx-configurator-guide__eyebrow,
.onyx-configurator-category-cta__eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #b08a56;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.onyx-configurator-guide__intro h2,
.onyx-configurator-guide__comfort h2,
.onyx-configurator-guide__cta h2,
.onyx-configurator-category-cta h2 {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  letter-spacing: -.035em;
}

.onyx-configurator-guide__intro h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.06;
}

.onyx-configurator-guide__intro p,
.onyx-configurator-guide__card p,
.onyx-configurator-guide__comfort p,
.onyx-configurator-guide__cta p,
.onyx-configurator-category-cta p {
  color: #77716b;
  line-height: 1.75;
}

.onyx-configurator-guide__intro p {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 15px;
}

.onyx-configurator-guide__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.onyx-configurator-guide__card {
  position: relative;
  min-height: 410px;
  padding: 26px 26px 30px;
  overflow: hidden;
  border: 1px solid #e5e1dc;
  background: #fff;
}

.onyx-configurator-guide__number {
  display: block;
  margin: 30px 0 12px;
  color: #b08a56;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
}

.onyx-configurator-guide__card h3 {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.onyx-configurator-guide__card p {
  margin: 14px 0 0;
  font-size: 14px;
}

.onyx-configurator-guide__visual {
  height: 145px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #f7f4ef;
}

.onyx-profile {
  width: 54px;
  height: 25px;
  display: block;
  border: 2px solid #292929;
  background: transparent;
}

.onyx-profile--flat { border-radius: 2px; }
.onyx-profile--soft { border-radius: 10px; }
.onyx-profile--round { border-radius: 50% 50% 40% 40%; }

.onyx-gold-swatch {
  width: 50px;
  height: 50px;
  display: block;
  border: 7px solid rgba(255,255,255,.65);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}

.onyx-gold-swatch--yellow { background: #c7a46b; }
.onyx-gold-swatch--white { background: #dedbd4; }
.onyx-gold-swatch--rose { background: #d7aaa0; }

.onyx-configurator-guide__visual--stones span {
  width: 18px;
  height: 18px;
  display: block;
  border: 2px solid #b08a56;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(176,138,86,.08);
}

.onyx-configurator-guide__visual--stones span:nth-child(3) {
  width: 28px;
  height: 28px;
}

.onyx-configurator-guide__visual--width {
  flex-direction: column;
  gap: 12px;
}

.onyx-configurator-guide__visual--width span {
  width: var(--onyx-width);
  height: 15px;
  display: block;
  border: 1px solid #6e6a64;
  border-radius: 999px;
  background: linear-gradient(90deg, #e7e2da 0%, #fff 48%, #d7d0c6 100%);
}

.onyx-configurator-guide__comfort {
  margin-top: 18px;
  padding: 48px 54px;
  display: grid;
  grid-template-columns: minmax(270px, .8fr) minmax(0, 1.2fr);
  gap: 54px;
  align-items: center;
  background: #f7f4ef;
}

.onyx-configurator-guide__comfort-visual {
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.onyx-comfort-ring {
  position: relative;
  width: 106px;
  height: 106px;
  display: block;
  border: 18px solid #d3cec5;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 14px 30px rgba(0,0,0,.07);
}

.onyx-comfort-ring--flat::after,
.onyx-comfort-ring--lens::after {
  position: absolute;
  left: 50%;
  bottom: -44px;
  transform: translateX(-50%);
  white-space: nowrap;
  color: #77716b;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.onyx-comfort-ring--flat::after { content: 'profil płaski'; }
.onyx-comfort-ring--lens::after { content: 'soczewka'; }
.onyx-comfort-ring--lens { border-width: 14px 20px; }

.onyx-configurator-guide__comfort h2,
.onyx-configurator-guide__cta h2 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.08;
}

.onyx-configurator-guide__comfort p,
.onyx-configurator-guide__cta p {
  max-width: 710px;
  margin: 16px 0 0;
  font-size: 15px;
}

.onyx-configurator-guide__cta {
  margin-top: 18px;
  padding: 46px 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  background: #222;
  color: #fff;
}

.onyx-configurator-guide__cta p { color: #c9c5bf; }

.onyx-configurator-guide__button,
.onyx-configurator-category-cta__button {
  min-height: 50px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid currentColor;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.onyx-configurator-guide__button {
  min-width: 230px;
  color: #fff !important;
}

.onyx-configurator-guide__button:hover,
.onyx-configurator-guide__button:focus-visible {
  border-color: #b08a56;
  background: #b08a56;
  color: #fff !important;
}

/* Category CTA: Obrączki klasyczne */
.onyx-configurator-category-cta {
  margin: 30px 0 42px;
  padding: 42px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 48px;
  align-items: center;
  overflow: hidden;
  background: #f7f4ef;
}

.onyx-configurator-category-cta h2 {
  max-width: 740px;
  font-size: clamp(32px, 3.3vw, 50px);
  line-height: 1.05;
}

.onyx-configurator-category-cta p {
  max-width: 680px;
  margin: 18px 0 24px;
  font-size: 15px;
}

.onyx-configurator-category-cta__button {
  color: #222 !important;
}

.onyx-configurator-category-cta__button:hover,
.onyx-configurator-category-cta__button:focus-visible {
  border-color: #222;
  background: #222;
  color: #fff !important;
}

.onyx-configurator-category-cta__visual {
  position: relative;
  min-height: 220px;
}

.onyx-configurator-category-cta__ring {
  position: absolute;
  top: 50%;
  width: 150px;
  height: 150px;
  border: 22px solid #d1cbc2;
  border-radius: 50%;
  box-shadow: 0 20px 35px rgba(0,0,0,.08);
}

.onyx-configurator-category-cta__ring--one {
  left: 18%;
  transform: translateY(-50%) rotate(-10deg);
}

.onyx-configurator-category-cta__ring--two {
  right: 10%;
  transform: translateY(-50%) rotate(12deg);
  border-color: #c4a168;
}

.onyx-configurator-category-cta__stone {
  position: absolute;
  top: 28%;
  right: 24%;
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(176,138,86,.26), 0 5px 12px rgba(0,0,0,.12);
}

@media (max-width: 1199.98px) {
  .onyx-configurator-guide__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .onyx-configurator-category-cta {
    grid-template-columns: minmax(0, 1.15fr) minmax(230px, .85fr);
  }
}

@media (max-width: 767.98px) {
  .onyx-configurator-guide {
    width: calc(100% - 32px);
    margin-top: 56px;
  }

  .onyx-configurator-guide__grid {
    grid-template-columns: 1fr;
  }

  .onyx-configurator-guide__card {
    min-height: 0;
  }

  .onyx-configurator-guide__comfort {
    padding: 34px 24px 42px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .onyx-configurator-guide__comfort-visual {
    min-height: 180px;
  }

  .onyx-configurator-guide__cta {
    padding: 34px 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .onyx-configurator-guide__button {
    width: 100%;
  }

  .onyx-configurator-category-cta {
    margin: 20px 0 30px;
    padding: 32px 24px;
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .onyx-configurator-category-cta__visual {
    min-height: 180px;
  }

  .onyx-configurator-category-cta__ring {
    width: 120px;
    height: 120px;
    border-width: 18px;
  }
}

body.onyx-high-contrast .onyx-configurator-guide__card,
body.onyx-high-contrast .onyx-configurator-guide__comfort,
body.onyx-high-contrast .onyx-configurator-category-cta {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

body.onyx-high-contrast .onyx-configurator-guide__intro p,
body.onyx-high-contrast .onyx-configurator-guide__card p,
body.onyx-high-contrast .onyx-configurator-guide__comfort p,
body.onyx-high-contrast .onyx-configurator-category-cta p {
  color: #fff !important;
}

body.onyx-high-contrast .onyx-configurator-guide__eyebrow,
body.onyx-high-contrast .onyx-configurator-guide__number,
body.onyx-high-contrast .onyx-configurator-category-cta__eyebrow {
  color: #ffdf5d !important;
}

/* --------------------------------------------------------------------------

/* ========================================================================== 
   ONYX HARD - CLEAN HEADER / LISTING / FACETS FIX 2026-10-06
   This block intentionally replaces the previous experimental overrides.
   ========================================================================== */

/* One explicit mobile/tablet menu trigger in header.tpl.
   The native ps_mainmenu trigger stays hidden to prevent duplicates. */
.onyx-header__nav .ps-mainmenu__mobile-toggle,
.onyx-header__nav .menu-toggle {
  display: none !important;
}

.onyx-mobile-menu-trigger {
  display: none !important;
}

@media (max-width: 1199.98px) {
  .onyx-mobile-menu-trigger {
    position: absolute !important;
    z-index: 60 !important;
    top: 34px !important;
    left: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #222 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
  }

  .onyx-mobile-menu-trigger:hover,
  .onyx-mobile-menu-trigger:focus,
  .onyx-mobile-menu-trigger:focus-visible,
  .onyx-mobile-menu-trigger:active {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .onyx-mobile-menu-trigger .material-icons {
    display: block !important;
    font-size: 34px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
  }

  .onyx-header__nav .ps-mainmenu__desktop {
    display: none !important;
  }

  .onyx-header__phone {
    left: 58px !important;
  }
}

@media (max-width: 991.98px) {
  .onyx-mobile-menu-trigger {
    top: 19px !important;
    left: 0 !important;
  }
}

@media (min-width: 1200px) {
  .onyx-mobile-menu-trigger {
    display: none !important;
  }
}

/* Phone/tablet header: menu left, logo centered, search + help on the right. */
@media (max-width: 991.98px) {
  .onyx-header__top-inner {
    position: relative !important;
  }

  .onyx-header__nav {
    z-index: 40 !important;
  }

  .onyx-header__actions {
    position: absolute !important;
    z-index: 45 !important;
    top: 23px !important;
    right: 58px !important;
    display: flex !important;
    align-items: center !important;
    width: 38px !important;
    height: 38px !important;
    gap: 0 !important;
  }

  /* Desktop account/cart/search wrappers stay hidden on the compact header. */
  .onyx-header__actions #_desktop_ps_searchbar,
  .onyx-header__actions #_desktop_ps_customersignin,
  .onyx-header__actions #_desktop_ps_shoppingcart {
    display: none !important;
  }

  /* But the dedicated search offcanvas button from ps_searchbar stays visible. */
  .onyx-header__actions .ps-searchbar--mobile {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .onyx-header__actions .ps-searchbar--mobile .header-block,
  .onyx-header__actions .ps-searchbar--mobile .header-block__action-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #222 !important;
  }

  .onyx-header__actions .ps-searchbar--mobile .material-icons {
    font-size: 24px !important;
    line-height: 1 !important;
  }

  .onyx-help-trigger--mobile {
    z-index: 46 !important;
    top: 24px !important;
    right: 14px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    margin: 0 !important;
  }

  /* Accessibility controls are useful on desktop but obstruct product controls
     on a narrow viewport. */
  .onyx-accessibility {
    display: none !important;
  }

  #searchCanvas {
    z-index: 30030 !important;
  }
}

/* --------------------------------------------------------------------------
   LISTING LAYOUT
   Filters are rendered in the center column as their own offcanvas. Therefore
   the old left hook column can be hidden completely; no category tree can leak
   into the product grid on desktop or mobile.
   -------------------------------------------------------------------------- */
#category #left-column,
#best-sales #left-column,
#new-products #left-column,
#prices-drop #left-column,
#manufacturer #left-column,
#supplier #left-column {
  display: none !important;
}

#category #center-column,
#best-sales #center-column,
#new-products #center-column,
#prices-drop #center-column,
#manufacturer #center-column,
#supplier #center-column {
  width: 100% !important;
  max-width: none !important;
  flex: 0 0 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Dedicated filter drawer, outside the hidden left column. */
#offcanvas-faceted.onyx-filters-offcanvas {
  z-index: 30020 !important;
  width: min(430px, 100vw) !important;
  max-width: 100vw !important;
  background: #fff !important;
  box-shadow: 22px 0 50px rgba(0,0,0,.14) !important;
}

#offcanvas-faceted.onyx-filters-offcanvas .offcanvas-header {
  padding: 24px 26px 18px !important;
  border-bottom: 1px solid rgba(34,34,34,.12) !important;
}

#offcanvas-faceted.onyx-filters-offcanvas .offcanvas-title {
  margin: 0 !important;
  font-size: 24px !important;
  font-weight: 400 !important;
}

#offcanvas-faceted.onyx-filters-offcanvas .offcanvas-body {
  padding: 22px 26px 36px !important;
  overflow-y: auto !important;
}

.offcanvas-backdrop {
  z-index: 30010 !important;
}

/* Visible filter trigger on every listing when facets exist. */
.onyx-filter-trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-width: 88px !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 13px !important;
  border: 1px solid rgba(34,34,34,.35) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #222 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.onyx-filter-trigger .material-icons {
  font-size: 18px !important;
  line-height: 1 !important;
}

.onyx-filter-trigger:hover,
.onyx-filter-trigger:focus-visible {
  border-color: #222 !important;
  background: #222 !important;
  color: #fff !important;
}

/* Compact listing toolbar without collisions. */
@media (max-width: 991.98px) {
  #category .breadcrumb__wrapper,
  #best-sales .breadcrumb__wrapper,
  #new-products .breadcrumb__wrapper,
  #prices-drop .breadcrumb__wrapper,
  #manufacturer .breadcrumb__wrapper,
  #supplier .breadcrumb__wrapper {
    padding-top: 18px !important;
  }

  .onyx-category-header {
    margin-top: 30px !important;
    margin-bottom: 0 !important;
  }

  .onyx-category-header h1,
  #best-sales #js-product-list-header h1,
  #new-products #js-product-list-header h1,
  #prices-drop #js-product-list-header h1 {
    font-size: clamp(34px, 8vw, 46px) !important;
    line-height: 1.12 !important;
  }

  .onyx-products-top {
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 28px 0 30px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
    overflow: visible !important;
  }

  .onyx-products-top::after {
    bottom: 0 !important;
  }

  .onyx-products-top__count {
    width: 100% !important;
    font-size: 15px !important;
    line-height: 22px !important;
  }

  .onyx-products-top__controls {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 36px 36px !important;
    align-items: center !important;
    gap: 10px !important;
    overflow: visible !important;
  }

  .onyx-products-top__controls .products__sort-label {
    display: none !important;
  }

  .onyx-products-top__controls .products__sort-dropdown {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .onyx-products-top__controls .products__sort-dropdown-button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 44px !important;
    padding: 0 30px 0 10px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 16px !important;
  }

  .onyx-filter-trigger {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-color: #222 !important;
    background: #222 !important;
    color: #fff !important;
  }

  .onyx-filter-trigger > span:last-child {
    display: none !important;
  }

  .onyx-view-switch {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
  }

  .onyx-view-switch .material-icons {
    font-size: 24px !important;
  }
}

@media (max-width: 575.98px) {
  #offcanvas-faceted.onyx-filters-offcanvas {
    width: 100vw !important;
  }
}

/* ========================================================================== 
   ONYX HARD - MOBILE MENU LAYER FIX 2026-10-06
   Keep the mobile navigation above Bootstrap's backdrop and make it an opaque
   full-screen white drawer. This intentionally touches only #mobileMenu.
   ========================================================================== */
@media (max-width: 1199.98px) {
  #mobileMenu.ps-mainmenu--mobile {
    z-index: 30050 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    inset: 0 auto 0 0 !important;
    border: 0 !important;
    background: #fff !important;
    color: #222 !important;
    opacity: 1 !important;
    box-shadow: none !important;
  }

  #mobileMenu.ps-mainmenu--mobile.show,
  #mobileMenu.ps-mainmenu--mobile.showing {
    visibility: visible !important;
    background: #fff !important;
    opacity: 1 !important;
  }

  #mobileMenu .offcanvas-header,
  #mobileMenu .ps-mainmenu__mobile,
  #mobileMenu .menu--mobile,
  #mobileMenu .ps-mainmenu__additionnals,
  #mobileMenu .offcanvas-body {
    background: #fff !important;
    opacity: 1 !important;
  }

  #mobileMenu .offcanvas-header {
    position: relative !important;
    z-index: 2 !important;
    min-height: 88px !important;
    padding: 22px 28px 12px !important;
    border: 0 !important;
  }

  #mobileMenu .offcanvas-header .btn-close {
    position: absolute !important;
    top: 24px !important;
    right: 24px !important;
    z-index: 3 !important;
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    opacity: .72 !important;
  }

  #mobileMenu .ps-mainmenu__mobile {
    position: relative !important;
    z-index: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
  }

  #mobileMenu .menu--mobile {
    color: #222 !important;
  }

  /* The backdrop belongs underneath the drawer, never on top of it. */
  body > .offcanvas-backdrop {
    z-index: 30040 !important;
  }
}

/* ========================================================================== 
   ONYX HARD - MOBILE MENU HEADER ISOLATION 2026-10-06
   When the mobile offcanvas is open, the drawer must be the only interactive
   header layer. Search/help/menu triggers underneath are hidden and disabled.
   ========================================================================== */
@media (max-width: 1199.98px) {
  body.onyx-mobile-menu-open .onyx-header__actions,
  body.onyx-mobile-menu-open .onyx-help-trigger--mobile,
  body.onyx-mobile-menu-open .onyx-mobile-menu-trigger,
  body.onyx-mobile-menu-open .onyx-header__nav .ps-mainmenu__mobile-toggle,
  body.onyx-mobile-menu-open .onyx-header__nav .menu-toggle {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  #mobileMenu.ps-mainmenu--mobile {
    isolation: isolate !important;
    pointer-events: auto !important;
  }

  #mobileMenu .offcanvas-header {
    position: relative !important;
    z-index: 30100 !important;
  }

  #mobileMenu .offcanvas-header .btn-close {
    z-index: 30110 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
  }
}

/* ========================================================================== 
   ONYX HARD - MOBILE MENU ABSOLUTE TOP LAYER FIX 2026-10-06
   Wama configurator and third-party chat widgets may use extremely high fixed
   z-index values. While the navigation drawer is open, keep the drawer on the
   highest browser stacking layer and temporarily hide embedded iframes/Wama.
   ========================================================================== */
@media (max-width: 1199.98px) {
  #mobileMenu.ps-mainmenu--mobile,
  #mobileMenu.ps-mainmenu--mobile.show,
  #mobileMenu.ps-mainmenu--mobile.showing {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    background: #fff !important;
    opacity: 1 !important;
    transform: none !important;
  }

  body > .offcanvas-backdrop {
    z-index: 2147483646 !important;
  }

  #mobileMenu .offcanvas-header,
  #mobileMenu .offcanvas-header .btn-close,
  #mobileMenu .ps-mainmenu__mobile,
  #mobileMenu .menu--mobile,
  #mobileMenu .ps-mainmenu__additionnals,
  #mobileMenu .offcanvas-body {
    position: relative !important;
    z-index: 2147483647 !important;
    background: #fff !important;
  }

  /* Nothing embedded in the page should be able to float above the open menu. */
  body.onyx-mobile-menu-open #metrix-configurator,
  body.onyx-mobile-menu-open #metrix-configurator iframe,
  body.onyx-mobile-menu-open iframe {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Preserve the menu itself if any future menu integration ever contains an iframe. */
  body.onyx-mobile-menu-open #mobileMenu iframe {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* ========================================================================== 
   ONYX HARD - MOBILE MENU CLOSE BUTTON 2026-10-06
   Use our own close control above every embedded/configurator layer.
   ========================================================================== */
@media (max-width: 1199.98px) {
  #mobileMenu .offcanvas-header > .btn-close {
    display: none !important;
  }

  #mobileMenu .onyx-mobile-menu-close {
    position: fixed !important;
    top: 24px !important;
    right: 24px !important;
    z-index: 2147483647 !important;
    display: none !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    cursor: pointer !important;
  }



  body.onyx-mobile-menu-open #mobileMenu .onyx-mobile-menu-close,
  #mobileMenu.show .onyx-mobile-menu-close,
  #mobileMenu.showing .onyx-mobile-menu-close {
    display: block !important;
  }

  #mobileMenu .onyx-mobile-menu-close::before,
  #mobileMenu .onyx-mobile-menu-close::after {
    content: '' !important;
    position: absolute !important;
    left: 8px !important;
    top: 21px !important;
    width: 28px !important;
    height: 2px !important;
    background: #222 !important;
    transform-origin: center !important;
  }

  #mobileMenu .onyx-mobile-menu-close::before {
    transform: rotate(45deg) !important;
  }

  #mobileMenu .onyx-mobile-menu-close::after {
    transform: rotate(-45deg) !important;
  }
}

/* ========================================================================== 
   ONYX HARD - HELP PANEL ABOVE WAMA CONFIGURATOR 2026-10-06
   The Wama configurator renders fixed layers with a very high z-index.
   While the Help & Contact panel is open, hide embedded page layers and keep
   the support panel on the topmost stacking layer.
   ========================================================================== */
body.onyx-help-open .onyx-help-overlay {
  z-index: 2147483646 !important;
}

body.onyx-help-open .onyx-help-panel {
  z-index: 2147483647 !important;
  isolation: isolate !important;
  background: #fbfaf8 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.onyx-help-open #metrix-configurator,
body.onyx-help-open #metrix-configurator iframe,
body.onyx-help-open iframe {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Keep any future iframe intentionally placed inside the help panel usable. */
body.onyx-help-open .onyx-help-panel iframe {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* ========================================================================== 
   ONYX HARD - MOBILE SEARCH OVERLAY 2026-10-06
   Full-screen, clean search above Wama configurator and all floating widgets.
   ========================================================================== */
@media (max-width: 991.98px) {
  #searchCanvas.ps-searchbar__offcanvas,
  #searchCanvas.js-search-offcanvas {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 2147483647 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  #searchCanvas.ps-searchbar__offcanvas.show,
  #searchCanvas.ps-searchbar__offcanvas.showing,
  #searchCanvas.js-search-offcanvas.show,
  #searchCanvas.js-search-offcanvas.showing {
    transform: none !important;
  }

  #searchCanvas .offcanvas-header {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 820px !important;
    margin: 0 auto !important;
    padding: 88px 28px 28px !important;
    overflow-y: auto !important;
    background: #fff !important;
    border: 0 !important;
  }

  #searchCanvas .offcanvas-header::before {
    content: 'WYSZUKIWARKA' !important;
    position: absolute !important;
    top: 34px !important;
    left: 28px !important;
    color: #b08a56 !important;
    font: 500 11px/1.2 'Montserrat', Arial, sans-serif !important;
    letter-spacing: .18em !important;
  }

  #searchCanvas .offcanvas-header > .btn[data-bs-dismiss="offcanvas"] {
    position: absolute !important;
    top: 20px !important;
    right: 24px !important;
    z-index: 2 !important;
    display: block !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #ded6cd !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: none !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-decoration: none !important;
  }

  #searchCanvas .offcanvas-header > .btn[data-bs-dismiss="offcanvas"]::before,
  #searchCanvas .offcanvas-header > .btn[data-bs-dismiss="offcanvas"]::after {
    content: '' !important;
    position: absolute !important;
    top: 23px !important;
    left: 12px !important;
    width: 24px !important;
    height: 2px !important;
    background: #222 !important;
    transform-origin: center !important;
  }

  #searchCanvas .offcanvas-header > .btn[data-bs-dismiss="offcanvas"]::before {
    transform: rotate(45deg) !important;
  }

  #searchCanvas .offcanvas-header > .btn[data-bs-dismiss="offcanvas"]::after {
    transform: rotate(-45deg) !important;
  }

  #searchCanvas .ps-searchbar__container,
  #searchCanvas #_mobile_ps_searchbar {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #searchCanvas .ps-searchbar,
  #searchCanvas .js-search-widget {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  #searchCanvas .ps-searchbar__form {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 74px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #222 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  #searchCanvas .ps-searchbar__magnifier,
  #searchCanvas .js-search-icon {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    z-index: 2 !important;
    margin: 0 !important;
    color: #222 !important;
    font-size: 30px !important;
    line-height: 1 !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
  }

  #searchCanvas .ps-searchbar__input,
  #searchCanvas .js-search-input {
    width: 100% !important;
    height: 74px !important;
    margin: 0 !important;
    padding: 0 54px 0 46px !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #222 !important;
    font: 400 26px/1.2 'Montserrat', Arial, sans-serif !important;
  }

  #searchCanvas .ps-searchbar__input::placeholder,
  #searchCanvas .js-search-input::placeholder {
    color: #8c8985 !important;
    opacity: 1 !important;
  }

  #searchCanvas .ps-searchbar__clear,
  #searchCanvas .js-search-clear {
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    z-index: 2 !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #777 !important;
    box-shadow: none !important;
    transform: translateY(-50%) !important;
  }

  #searchCanvas .ps-searchbar__clear .material-icons,
  #searchCanvas .js-search-clear .material-icons {
    font-size: 22px !important;
  }

  #searchCanvas .ps-searchbar__dropdown,
  #searchCanvas .js-search-dropdown {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    max-height: calc(100dvh - 205px) !important;
    margin: 18px 0 0 !important;
    padding: 0 !important;
    overflow-y: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  #searchCanvas .ps-searchbar__results,
  #searchCanvas .js-search-results {
    display: grid !important;
    gap: 0 !important;
    width: 100% !important;
  }

  #searchCanvas .ps-searchbar__result-link {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: center !important;
    min-height: 88px !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #ece8e3 !important;
    color: #222 !important;
    text-decoration: none !important;
  }

  #searchCanvas .ps-searchbar__result-image {
    width: 64px !important;
    height: 64px !important;
    object-fit: cover !important;
    background: #f7f5f2 !important;
  }

  #searchCanvas .ps-searchbar__result-name {
    margin: 0 !important;
    color: #222 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
  }

  body.onyx-search-open {
    overflow: hidden !important;
  }

  body.onyx-search-open > .offcanvas-backdrop {
    display: none !important;
  }

  body.onyx-search-open #metrix-configurator,
  body.onyx-search-open #metrix-configurator iframe,
  body.onyx-search-open iframe {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.onyx-search-open #searchCanvas,
  body.onyx-search-open #searchCanvas iframe {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.onyx-search-open .onyx-mobile-menu-trigger,
  body.onyx-search-open .onyx-help-trigger--mobile,
  body.onyx-search-open .onyx-header__logo {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (max-width: 575.98px) {
  #searchCanvas .offcanvas-header {
    padding: 82px 20px 24px !important;
  }

  #searchCanvas .offcanvas-header::before {
    top: 30px !important;
    left: 20px !important;
  }

  #searchCanvas .offcanvas-header > .btn[data-bs-dismiss="offcanvas"] {
    top: 16px !important;
    right: 18px !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
  }

  #searchCanvas .offcanvas-header > .btn[data-bs-dismiss="offcanvas"]::before,
  #searchCanvas .offcanvas-header > .btn[data-bs-dismiss="offcanvas"]::after {
    top: 22px !important;
    left: 11px !important;
  }

  #searchCanvas .ps-searchbar__input,
  #searchCanvas .js-search-input {
    height: 68px !important;
    font-size: 22px !important;
  }

  #searchCanvas .ps-searchbar__form {
    min-height: 68px !important;
  }
}


/* ONYX 2026-10-14: restore gift-card block below bestsellers. */
.onyx-gift-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 84px);
  margin-top: clamp(48px, 6vw, 92px) !important;
  margin-bottom: clamp(52px, 7vw, 108px) !important;
  padding: clamp(22px, 4vw, 56px) !important;
  background: #f7f4f0;
}
.onyx-gift-card__media { display: block; overflow: hidden; background: #eee9e3; }
.onyx-gift-card__media img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s ease; }
.onyx-gift-card__media:hover img { transform: scale(1.025); }
.onyx-gift-card__copy { min-width: 0; max-width: 530px; }
.onyx-gift-card__eyebrow { display: block; margin-bottom: 20px; font-size: 11px; font-weight: 600; letter-spacing: .19em; color: #aa8659; }
.onyx-gift-card__copy h2 { margin: 0 0 22px; font-weight: 400; font-size: clamp(28px, 3vw, 46px); line-height: 1.15; letter-spacing: -.035em; color: #262626; }
.onyx-gift-card__copy p { margin: 0 0 30px; font-size: clamp(14px, 1.1vw, 16px); line-height: 1.85; color: #68625c; }
.onyx-gift-card__button { display: inline-flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 50px; padding: 12px 22px; border: 1px solid #272727; text-decoration: none !important; color: #272727 !important; background: transparent; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; transition: background .2s, color .2s; }
.onyx-gift-card__button:hover, .onyx-gift-card__button:focus-visible { background: #272727; color: white !important; }
.onyx-gift-card__button .material-icons { font-size: 19px; }
@media (max-width: 767.98px) {
  .onyx-gift-card { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 18px !important; margin-top: 40px !important; margin-bottom: 55px !important; }
  .onyx-gift-card__copy { padding: 0 5px 12px; }
  .onyx-gift-card__copy h2 { font-size: clamp(27px, 7vw, 36px); }
  .onyx-gift-card__eyebrow { margin-bottom: 12px; }
  .onyx-gift-card__copy p { margin-bottom: 22px; }
}
/* Keep the account dropdown above cart/order-summary contents. */
@media (min-width: 992px) {
  #header.header { position: relative; z-index: 1010; }
  #header .onyx-header__top, #header .onyx-header__top-inner { position: relative; z-index: 2; overflow: visible; }
  #header .onyx-header__actions { z-index: 3; overflow: visible; }
  #header .onyx-header__actions .dropdown-menu { z-index: 1020; }
}

/* ONYX 2026-10-14: cart sticky sidebar must stay below account dropdown.
   Preserve sticky positioning; change only the stacking level on cart page. */
@media (min-width: 992px) {
  body#cart .cart-grid__aside-wrapper {
    z-index: 1 !important;
  }
}

/* ONYX 2026-10-14: keep checkout summary below the account dropdown.
   Same stacking fix as cart page; sticky position stays unchanged. */
@media (min-width: 992px) {
  body#checkout .checkout-grid__aside-wrapper {
    z-index: 1 !important;
  }
}

/* Product images and longer category titles supplied in November 2026. */
.onyx-category-card__dynamic-title { text-transform: uppercase; }
.onyx-categories__grid > .onyx-category-card--gemstones img { object-position: 48% 40% !important; }
.onyx-categories__grid > .onyx-category-card--diamonds img { object-position: 49% 40% !important; }
@media (min-width: 992px) {
  .onyx-categories__grid .onyx-category-card--gemstones.is-onyx-expanded > strong,
  .onyx-categories__grid .onyx-category-card--diamonds.is-onyx-expanded > strong {
    font-size: 25px !important;
    left: 24px !important;
    right: 15px !important;
  }
}
@media (max-width: 991.98px) {
  .onyx-categories__grid > .onyx-category-card img {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: none !important;
  }
  .onyx-categories__grid .onyx-category-card--gemstones > strong,
  .onyx-categories__grid .onyx-category-card--diamonds > strong {
    font-size: 25px !important;
  }
}
@media (max-width: 575.98px) {
  .onyx-categories__grid .onyx-category-card--gemstones > strong,
  .onyx-categories__grid .onyx-category-card--diamonds > strong {
    font-size: clamp(21px, 6vw, 25px) !important;
  }
}

/* ONYX HARD / Accessibility: keyboard focus visible (2026-11-20)
   Applied only to keyboard/programmatic focus, not mouse hover/click. */
@media (max-width: 1199.98px) {
  .onyx-mobile-menu-trigger:focus-visible {
    outline: 3px solid #222 !important;
    outline-offset: 4px !important;
    border-radius: 4px !important;
  }
}

/* Search field previously removed all focus indication. */
#searchCanvas .ps-searchbar__input:focus-visible,
#searchCanvas .js-search-input:focus-visible {
  outline: 3px solid #222 !important;
  outline-offset: -3px !important;
  border-radius: 3px !important;
  box-shadow: 0 0 0 3px #fff !important;
}

/* Search overlay close button: visible focus even where framework resets outline. */
#searchCanvas .offcanvas-header > .btn[data-bs-dismiss="offcanvas"]:focus-visible,
#searchCanvas .ps-searchbar__clear:focus-visible,
#searchCanvas .js-search-clear:focus-visible {
  outline: 3px solid #222 !important;
  outline-offset: 3px !important;
}

/* Main category tiles: visible keyboard focus on both light and dark imagery. */
.onyx-category-card:focus-visible {
  outline: 3px solid #111 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px #fff, 0 0 0 6px #111 !important;
}


/* WCAG 2.2 AA – Lighthouse accessibility contrast fixes (2026-11-20).
   Replace only typography colors; retain layout, images, and brand accents. */
.onyx-product-card__info .onyx-product-card__price { color: #666666; }
.onyx-gift-card__eyebrow { color: #745c3f; }
.onyx-trending__copy .onyx-eyebrow { color: #6f573b; }
.onyx-google-reviews__eyebrow { color: #715a3d; }
.onyx-google-reviews__content p { color: #655c53; }
.onyx-google-reviews__score span,
.onyx-google-reviews__source { color: #676057; }


/* WCAG 2.2 AA – product page, Lighthouse 2026-11-20.
   Text-only contrast adjustments; preserve the ONYX HARD layout. */
body#product .onyx-inline-breadcrumb { color: #666666; }
body#product .onyx-product-collection { color: #70583b; }


/* WCAG 2.2 AA - listing pages, Lighthouse category audit 2026-11-20.
   Only text colors are adjusted. Product images, grid and interaction remain unchanged. */
body:is(#category, #search, #best-sales, #new-products, #prices-drop, #manufacturer, #supplier)
  .breadcrumb__wrapper .breadcrumb-item .breadcrumb-link span {
  color: #626262 !important;
}
body:is(#category, #search, #best-sales, #new-products, #prices-drop, #manufacturer, #supplier)
  .onyx-products-top__count {
  color: #626262 !important;
}


/* WCAG 2.2 AA - cart availability text (Lighthouse 2026-11-20).
   #8a5700 on white: contrast 6.10:1; preserves a warm warning tone. */
body#cart .product-line__item-availability-message.text-warning {
  color: #8a5700 !important;
}


/* ONYX HARD WCAG checkout, 2026-11-20: address delete action contrast.
   Scoped only to address cards; preserved existing checkout layout and actions. */
body#checkout .address-card__actions .address-card__delete.link-danger,
body#checkout .address-card__actions .address-card__delete.link-danger:hover,
body#checkout .address-card__actions .address-card__delete.link-danger:focus-visible {
  color: #a22035 !important;
}

/* ONYX HARD lower-page cards, 20261123-tiles1.
   Keep the complete square images; captions are real text in normal flow.
   No image filter, overlay, fixed text height or additional font multiplier. */
body .onyx-discover {
  width: 100%;
  min-width: 0;
  margin: 76px 0 0;
  padding: 0;
  font-family: Montserrat, Arial, sans-serif;
}
body .onyx-discover__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}
body .onyx-discover__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid #e4ded6;
  background: #faf8f5;
  color: #222;
  text-decoration: none;
  overflow: visible;
  transition: background-color .18s ease, border-color .18s ease;
}
body .onyx-discover__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
body .onyx-discover__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 18px;
  padding: 24px;
}
body .onyx-discover__title {
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .01em;
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}
body .onyx-discover__cta {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 12px;
  margin-top: auto;
  padding-bottom: 5px;
  border-bottom: 1px solid #8b7352;
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
}
body .onyx-discover__cta > span:first-child { min-width: 0; }
body .onyx-discover__cta > span[aria-hidden] { flex: 0 0 auto; }
body .onyx-discover__card:hover,
body .onyx-discover__card:focus-visible {
  border-color: #74664f;
  background: #f4efe8;
  color: #222;
  text-decoration: none;
}
body .onyx-discover__card:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}
body .onyx-discover__card:hover .onyx-discover__title {
  text-decoration: underline;
  text-underline-offset: .16em;
  text-decoration-thickness: 1px;
}
body.onyx-text-resized .onyx-discover__grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
body.onyx-high-contrast .onyx-discover__card {
  border-color: #000;
  background: #fff;
  color: #000;
}
body.onyx-high-contrast .onyx-discover__cta { border-color: #000; }
body.onyx-high-contrast .onyx-discover__title {
  text-decoration: underline;
  text-underline-offset: .16em;
}
@media (max-width: 767.98px) {
  body .onyx-discover { margin-top: 48px; }
  body .onyx-discover__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  body .onyx-discover__copy { padding: 20px; gap: 16px; }
  body .onyx-discover__title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  body .onyx-discover__card { transition: none; }
}
@media (forced-colors: active) {
  body .onyx-discover__card,
  body .onyx-discover__card:hover,
  body .onyx-discover__card:focus-visible {
    border-color: LinkText;
    background: Canvas;
    color: LinkText;
  }
  body .onyx-discover__cta { border-color: LinkText; }
}
