/* Japean — CTA produit mobile fixe, sans remplacement du CTA natif. */
.jp-product-sticky,
.jp-product-sticky[hidden] {
  display: none !important;
}

@media (max-width: 767.98px) {
  body#product.jp-product-sticky-visible .japean-product-page {
    padding-bottom: calc(var(--jp-product-sticky-offset, 110px) + 12px);
  }

  body#product .jp-product-sticky:not([hidden]) {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    display: block !important;
    box-sizing: border-box;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, .1);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .12);
  }

  .jp-product-sticky__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 540px;
    margin: 0 auto;
  }

  .jp-product-sticky__meta {
    display: flex;
    flex: 0 1 auto;
    min-width: 62px;
    flex-direction: column;
    line-height: 1.2;
  }

  .jp-product-sticky__price {
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .jp-product-sticky__size {
    margin-top: 3px;
    color: #555;
    font-size: .75rem;
    white-space: nowrap;
  }

  .jp-product-sticky__button {
    flex: 1 1 auto;
    min-height: 52px;
    padding: 10px 16px;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  .jp-product-sticky__button:focus-visible {
    outline: 3px solid #c9a24b;
    outline-offset: 2px;
  }

  .jp-product-sticky__status {
    max-width: 540px;
    min-height: 0;
    margin: 5px auto 0;
    color: #8a1c1c;
    font-size: 12px;
    text-align: center;
  }

  body#product.jp-product-sticky-visible #jpn-support {
    bottom: calc(var(--jp-product-sticky-offset, 110px) + 12px) !important;
  }

  body#product.jp-product-sticky-visible .agJsWidget {
    bottom: calc(var(--jp-product-sticky-offset, 110px) + 4px) !important;
  }
}
