
  /* the image wrapper must become the positioning context */
  .oddit-alya-concentration__media { position: relative; }

  .oddit-lab-fab-wrap {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
  }

  .oddit-lab-fab {
    position: absolute;
    top: var(--lab-btn-top-mobile, 16px);
    left: var(--lab-btn-left-mobile, 20px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-radius: var(--lab-btn-radius, 999px);
    background-color: var(--lab-btn-bg, var(--hx-warm-01));
    color: var(--lab-btn-color, var(--hx-brand-01));
    font-family: var(--hx-font-03);
    font-size: var(--lab-btn-size-mobile, 12px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
  }

  .oddit-lab-fab:hover { opacity: 0.88; }
  .oddit-lab-fab:active { transform: translateY(1px); }

  .oddit-lab-fab:focus-visible {
    outline: 2px solid var(--lab-btn-color, var(--hx-brand-01));
    outline-offset: 2px;
  }

  @media (min-width: 750px) {
    .oddit-lab-fab {
      top: var(--lab-btn-top, 20px);
      left: var(--lab-btn-left, 20px);
      padding: 12px 20px;
      font-size: var(--lab-btn-size, 14px);
    }
  }

  /* ---- lightbox (same as the product page) ---- */

  .oddit-lab-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }

  .oddit-lab-modal[hidden] { display: none; }

  .oddit-lab-modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: var(--hx-brand-a-01);
    border: 0;
    cursor: pointer;
  }

  .oddit-lab-modal__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(960px, 100%);
    max-height: 92vh;
    background-color: var(--hx-paper-01);
    border: 1px solid var(--hx-brand-01);
    border-radius: 4px;
    overflow: hidden;
  }

  .oddit-lab-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--hx-brand-01);
  }

  .oddit-lab-modal__heading {
    font-family: var(--hx-font-03);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.32px;
    text-transform: uppercase;
    color: var(--hx-brand-01);
  }

  .oddit-lab-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    padding: 0;
    background: transparent;
    border: 1px solid var(--hx-brand-01);
    border-radius: 50%;
    color: var(--hx-brand-01);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
  }

  .oddit-lab-modal__close svg { width: 18px; height: 18px; }
  .oddit-lab-modal__close:hover { background-color: var(--hx-brand-01); color: var(--hx-paper-01); }

  .oddit-lab-modal__viewport {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
  }

  .oddit-lab-modal__track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .oddit-lab-modal__track::-webkit-scrollbar { display: none; }

  .oddit-lab-modal__slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
  }

  .oddit-lab-modal__slide img {
    display: block;
    max-width: 100%;
    max-height: 68vh;
    width: auto;
    height: 100%;
    object-fit: contain;
  }

  /* Square 48px arrows, matching the PDP gallery and carousel navs. */
  .oddit-lab-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background-color: var(--hx-paper-01);
    border: 1px solid var(--hx-brand-01);
    border-radius: 0;
    color: var(--hx-brand-01);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, opacity 0.2s;
  }

  .oddit-lab-modal__nav svg { width: 24px; height: 24px; }
  .oddit-lab-modal__nav:hover { background-color: var(--hx-brand-01); color: var(--hx-paper-01); }
  .oddit-lab-modal__nav[disabled] { opacity: 0.3; cursor: default; }
  .oddit-lab-modal__nav[disabled]:hover { background-color: var(--hx-paper-01); color: var(--hx-brand-01); }
  .oddit-lab-modal__nav--prev { left: 12px; }
  .oddit-lab-modal__nav--next { right: 12px; }

  .oddit-lab-modal__counter {
    flex-shrink: 0;
    padding: 12px 20px;
    border-top: 1px solid var(--hx-brand-01);
    text-align: center;
    font-family: var(--hx-font-03);
    font-size: 14px;
    font-weight: 500;
    color: var(--hx-brand-01);
    /* Proportional numerals make the centred "1 / 3" shift sideways when the
       digit changes. Tabular figures keep every digit the same width. */
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
  }

  body.oddit-lab-lock { overflow: hidden; }

  @media (min-width: 750px) {
    .oddit-lab-modal__head { padding: 16px 24px; }
    .oddit-lab-modal__heading { font-size: 16px; }
  }

  @media (max-width: 989px) {
    /* Move the arrows off the certificate and onto the counter row.
       position: static here re-anchors them to .oddit-lab-modal__panel. */
    .oddit-lab-modal__viewport { position: static; }

    .oddit-lab-modal__nav {
      top: auto;
      bottom: 8px;
      transform: none;
       width: 38px;
    height: 38px;
    }

    .oddit-lab-modal__nav--prev { left: 16px; right: auto; }
    .oddit-lab-modal__nav--next { right: 16px; left: auto; }

    .oddit-lab-modal__counter {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 64px;
    }
  }
