/* BP_PRICES_FLOATING_FR_V2
   Floating glass prices, FR homepage pilot.
   Existing service panel and hero JS untouched.
*/

.services-panels .service-panel .bp-price-pilot-v1 {
  box-sizing: border-box;
  position: absolute;
  z-index: 4;
  bottom: calc(100% + clamp(155px, 21vh, 240px));
  left: 0;

  width: max-content;
  max-width: min(210px, 100%);
  min-width: 145px;
  min-height: 0;

  margin: 0;
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;

  color: #171918;
  background: rgba(248,248,244,.88);
  border: 1px solid rgba(23,25,24,.08);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,.14);

  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  backdrop-filter: blur(18px) saturate(1.08);

  transform: none;
  transition: none;
}

.services-panels .service-panel--chauffage .bp-price-pilot-v1,
.services-panels .service-panel--debouchage .bp-price-pilot-v1 {
  left: auto;
  right: 0;
}

.services-panels .service-panel--chauffage .bp-price-pilot-v1 {
  bottom: calc(100% + clamp(120px, 17vh, 195px));
}

.services-panels .service-panel--debouchage .bp-price-pilot-v1 {
  bottom: calc(100% + clamp(165px, 23vh, 255px));
}

.services-panels .service-panel .bp-price-pilot__label {
  color: rgba(23,25,24,.62);
  opacity: 1;
  font-size: 10px;
  font-weight: 550;
  line-height: 1.35;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.services-panels .service-panel .bp-price-pilot__amount,
.services-panels .service-panel .bp-price-pilot__amount--text {
  color: #171918;
  font-family: "Instrument Sans Variable", sans-serif;
  font-size: 22px !important;
  font-weight: 550 !important;
  line-height: 1.15 !important;
  letter-spacing: -.04em !important;
}

.services-panels .service-panel .bp-price-pilot__amount small {
  color: rgba(23,25,24,.62);
  font-size: 11px !important;
  font-weight: 450;
  letter-spacing: 0;
}

@media (max-width: 760px) {
  .services-panels .service-panel .bp-price-pilot-v1,
  .services-panels .service-panel--chauffage .bp-price-pilot-v1,
  .services-panels .service-panel--debouchage .bp-price-pilot-v1 {
    position: static;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 14px 0 18px;
    padding: 12px 15px;
    transform: none;
  }

  .services-panels .service-panel .bp-price-pilot__amount,
  .services-panels .service-panel .bp-price-pilot__amount--text {
    font-size: 20px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-panels .service-panel .bp-price-pilot-v1 {
    transition: none !important;
  }
}


/* BP_PRICES_MAGNETIC_FR_V1 */
@media (min-width: 761px) and (pointer: fine) {
  .services-panels .service-panel .bp-price-pilot-v1 {
    --mag-x: 0px;
    --mag-y: 0px;
    --mag-scale: 1;
    transform: translate3d(var(--mag-x),var(--mag-y),0)
               scale(var(--mag-scale));
    transform-origin: center;
    transition: transform .62s cubic-bezier(.16,1,.3,1);
    will-change: transform;
    pointer-events: none;
  }

  .services-panels .service-panel .bp-price-pilot-v1.is-magnetic {
    transition: transform .105s linear;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-panels .service-panel .bp-price-pilot-v1 {
    transform: none !important;
    transition: none !important;
  }
}


/* BP_PRICES_PANEL_ANCHOR_V1
   Price cards anchored to service panels.
   Independent from translated content height.
*/
.services-panels .service-panel .bp-price-pilot-v1 {
  position: absolute;
  bottom: auto;
  top: 15%;
  left: 8%;
  right: auto;
  margin: 0;
}

.services-panels .service-panel--chauffage .bp-price-pilot-v1 {
  top: 24%;
  left: auto;
  right: 8%;
}

.services-panels .service-panel--debouchage .bp-price-pilot-v1 {
  top: 12%;
  left: auto;
  right: 8%;
}

@media (max-width: 760px) {
  .services-panels .service-panel .bp-price-pilot-v1 {
    position: absolute;
    top: 12%;
    left: 7%;
    right: auto;
    bottom: auto;
    max-width: 78%;
    margin: 0;
  }

  .services-panels .service-panel--chauffage .bp-price-pilot-v1 {
    top: 17%;
    left: auto;
    right: 7%;
  }

  .services-panels .service-panel--debouchage .bp-price-pilot-v1 {
    top: 12%;
    left: auto;
    right: 7%;
  }
}
