/* Bellora sticky cart 1.0.0 — variant 1: price beside the native button.
 * Requires bellora-sticky-cart.js; no change unless its validation succeeds.
 * Pobo's actual bottom-bar breakpoint is 468px (NOT the PDP's 991px).
 * Pobo continues to own visibility, scroll activation, stacking and position.
 */
@media (max-width: 468px) {
  body.template-14.type-detail {
    --bellora-sticky-cart-css-ready: 1;
  }
  body.template-14.type-detail.bellora-sticky-cart-ready #js-plugin-header {
    background: #fff;
    border-top: 1px solid #dfe4e0;
    border-bottom: 0;
    box-shadow: 0 -3px 16px rgb(24 58 78 / 12%);
  }

  body.template-14.type-detail.bellora-sticky-cart-ready #js-plugin-header .plugin-fixed-header__container {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
    padding: 12px max(16px, env(safe-area-inset-right, 0px))
      calc(12px + env(safe-area-inset-bottom, 0px))
      max(16px, env(safe-area-inset-left, 0px));
  }

  body.template-14.type-detail.bellora-sticky-cart-ready #js-plugin-header .plugin-fixed-header__image,
  body.template-14.type-detail.bellora-sticky-cart-ready #js-plugin-header .plugin-fixed-header__name {
    display: none;
  }

  body.template-14.type-detail.bellora-sticky-cart-ready #js-plugin-header .plugin-fixed-header__price {
    display: block;
    width: auto;
    min-width: 0;
    max-width: 40vw;
    margin: 0;
    color: #183a4e;
    font: 700 23px/1.2 'Source Sans 3', sans-serif;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.template-14.type-detail.bellora-sticky-cart-ready #js-plugin-header .pr-list-unit {
    display: block;
    margin-top: 3px;
    color: #586662;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 400;
    white-space: normal;
  }

  body.template-14.type-detail.bellora-sticky-cart-ready #js-plugin-header .plugin-fixed-header__basket {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  body.template-14.type-detail.bellora-sticky-cart-ready #js-plugin-fixed-header-add-to-cart {
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    height: auto;
    margin: 0;
    padding: 12px 10px !important; /* Pobo's own mobile padding is !important. */
    border: 1px solid #183a4e;
    border-radius: 8px;
    background: #183a4e;
    color: #fff;
    font: 600 17px/1.35 'Source Sans 3', sans-serif;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.template-14.type-detail.bellora-sticky-cart-ready #js-plugin-fixed-header-add-to-cart::before {
    font-size: 20px;
    margin-right: 8px;
  }

  body.template-14.type-detail.bellora-sticky-cart-ready #js-plugin-fixed-header-add-to-cart:focus-visible {
    outline: 2px solid #183a4e;
    outline-offset: 3px;
  }

  body.template-14.type-detail.bellora-sticky-cart-ready #js-plugin-fixed-header-add-to-cart:is(:disabled, [aria-disabled="true"]) {
    opacity: .55;
    cursor: not-allowed;
  }
}

@media (max-width: 359px) {
  body.template-14.type-detail.bellora-sticky-cart-ready #js-plugin-header .plugin-fixed-header__container {
    column-gap: 10px;
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }
  body.template-14.type-detail.bellora-sticky-cart-ready #js-plugin-header .plugin-fixed-header__price {
    font-size: 20px;
  }
  body.template-14.type-detail.bellora-sticky-cart-ready #js-plugin-fixed-header-add-to-cart {
    font-size: 16px;
  }
  body.template-14.type-detail.bellora-sticky-cart-ready #js-plugin-fixed-header-add-to-cart::before {
    display: none;
  }
}

@media (max-width: 468px) and (hover: hover) {
  body.template-14.type-detail.bellora-sticky-cart-ready #js-plugin-fixed-header-add-to-cart:not(:disabled):not([aria-disabled="true"]):hover {
    background: #244e62;
    border-color: #244e62;
  }
}
