/* stylelint-disable no-empty-source */

.header-top-bar__lang{ display: flex; gap: 6px; align-items: center; }
.header-top-bar__lang a{ display: flex; width: auto; min-width: 52px; height: 28px; align-items: center; text-align: center; justify-content: center; gap: 4px; padding: 6px 8px; border-radius:6px; color: var(--primary-color); background: #f2f2f2 ; text-decoration: none; font-weight: 600; line-height: 1; }
.header-top-bar__lang a.is-selected{ color: #fff; background: var(--primary-color); }
.header-top-bar__lang a:hover{  }
.header-top-bar__lang .rc-lang-flag{ display: inline-flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1; }

/*product_page_info*/


.product-custom-info__table {}
.product-cart-info {}

.itable{ display: grid; gap: 16px; grid-template-columns: auto 1fr;}
.itable__name {}
.itable__value {}
.itable__value .small { font-size: 0.8em; display: block; }
.itable__value .green { color: #26861d; font-weight: bold; }

.itable__value--image-list { display: flex; flex-wrap:wrap; gap: 4px; }
.itable__value--image-list img{ color: transparent;
    object-fit: contain;    width: auto; max-width: 36px; height: 20px; }


.product-custom-info__table-inline { border-bottom: 1px solid #e4e4e4; }
.table-inline {  display: grid; gap: 16px; grid-template-columns: 1fr 1fr;  }
.table-inline__item { display: flex; align-items:center; gap: 12px; }
.table-inline__name {}

.product-custom-info__certificat{ display: flex; align-items:center; gap: 16px;  color: #26861d;}
.product-custom-info__certificat .svg_icon{ height: 16px; }
.product-custom-info__certificat .green{ color: #26861d; font-weight: bold; }

.product-custom-info__sku { font-size: 17px; font-weight: 500; }


.add-to-cart{ background-color: #001441;  }
.add-to-cart:hover,
.add-to-cart:hover:not(:disabled){ background-color: #3359ae; }
.add-to-cart.button_style_inverse{ color: #001441; border-color: #001441; background-color: #fff ; }
.add-to-cart.button_style_inverse:hover:not(:disabled){ color: #3359ae; border-color: #3359ae; background-color: #fff ;  } 


.product-feature__value .link{ color: red; font-weight: bold; text-decoration: underline;}

.footer-developers__item .link_style_alt{

    display: flex;
    align-items: center;
    gap: 10px;
}
/* Ricambi Centre — Multiform "Fai una domanda" product popup */

/* Button in product price/card block */
.rc-mf-question {
    width: 100%;
    margin-top: 8px !important;
}

.rc-mf-question .multiform-body {
    width: 100%;
}

.rc-mf-question .multiform-popup-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #f3f5fa !important;
    color: #001441 !important;
    font-size: 14px !important;
    font-weight: normal;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-shadow: none !important;
}
div.multiform-body{padding: 0 !important;}
.multiform-gap-value .mf-colm6{background:#001441; color: #fff;padding: 10px;
  border-radius: 16px;
  border: none;}

.rc-mf-question .multiform-popup-link:hover {
    background: #e9edf6 !important;
    color: #001441 !important;
}

.rc-mf-question .multiform-popup-link a,
.rc-mf-question .multiform-popup-link span,
.rc-mf-question .multiform-popup-link button,
.rc-mf-question .multiform-popup-link .mf-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font: inherit !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

/* Popup overlay */
.multiform-overlay {
    background: rgba(0, 0, 0, 0.52) !important;
}
.multiform-gap-fields .mf-colm8{width: 100%;}
/* Popup window */
.multiform-popup-window .multiform-wrap[data-id="1"] {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 550px !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 48px) !important;
    margin: 0 !important;
    padding: 32px 32px 34px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    font-family: inherit !important;
}

/* Hide default plugin title/description because header is injected by JS */
.multiform-popup-window .multiform-wrap[data-id="1"] > .multiform-title {
    display: none !important;
}

/* Custom popup header */
.multiform-popup-window .multiform-wrap[data-id="1"] .rc-mf-form-head {
    margin: 0 48px 28px 0 !important;
    padding: 0 !important;
}

.multiform-popup-window .multiform-wrap[data-id="1"] .rc-mf-form-title {
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: #3b3b3b !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.multiform-popup-window .multiform-wrap[data-id="1"] .rc-mf-product-name {
    max-width: 560px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #666666 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
}

/* Close button */
.multiform-popup-window .multiform-wrap[data-id="1"] .s-close {
    position: absolute !important;
    top: 22px !important;
    right: 24px !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.multiform-popup-window .multiform-wrap[data-id="1"] .s-close::before,
.multiform-popup-window .multiform-wrap[data-id="1"] .s-close::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 3px;
    width: 3px;
    height: 18px;
    border-radius: 1px;
    background: #8f8f8f;
}

.multiform-popup-window .multiform-wrap[data-id="1"] .s-close::before {
    transform: rotate(45deg);
}

.multiform-popup-window .multiform-wrap[data-id="1"] .s-close::after {
    transform: rotate(-45deg);
}

/* Fields layout */
.multiform-popup-window .multiform-wrap[data-id="1"] .multiform-gap-fields {
    margin: 0 !important;
    padding: 0 !important;
}

.multiform-popup-window .multiform-wrap[data-id="1"] .multiform-gap-field {
    margin: 0 0 18px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.multiform-popup-window .multiform-wrap[data-id="1"] .multiform-gap-name {
    float: none !important;
    width: 100% !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: #333333 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

.multiform-popup-window .multiform-wrap[data-id="1"] .multiform-gap-value {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.multiform-popup-window .multiform-wrap[data-id="1"] input[type="text"],
.multiform-popup-window .multiform-wrap[data-id="1"] input[type="email"],
.multiform-popup-window .multiform-wrap[data-id="1"] input[type="tel"],
.multiform-popup-window .multiform-wrap[data-id="1"] textarea {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 1px solid #d8dce2 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
}
.multiform-popup-window .multiform-wrap .multiform-form-description{font-family: sans-serif;
  font-size: 18px;
  padding: 0;
  font-weight: bold;}
.multiform-popup-window .multiform-wrap[data-id="1"] textarea {
    height: 136px !important;
    min-height: 136px !important;
    padding-top: 13px !important;
    padding-bottom: 13px !important;
    line-height: 1.4 !important;
    resize: vertical !important;
}

.multiform-popup-window .multiform-wrap[data-id="1"] input::placeholder,
.multiform-popup-window .multiform-wrap[data-id="1"] textarea::placeholder {
    color: #b5bac2 !important;
}

/* VIN hint */
.multiform-popup-window .multiform-wrap[data-id="1"] .multiform-gap-description {
    position: relative !important;
    margin: 10px 0 0 !important;
    padding: 0 0 0 26px !important;
    color: #7a7a7a !important;
    font-size: 15px !important;
    font-style: normal !important;
    line-height: 1.35 !important;
}

.multiform-popup-window .multiform-wrap[data-id="1"] .multiform-gap-description::before {
    content: "i";
    position: absolute;
    left: 0;
    top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid #8b8b8b;
    border-radius: 50%;
    color: #8b8b8b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

/* Submit button */
.multiform-popup-window .multiform-wrap[data-id="1"] .multiform-submit {
    margin: 22px 0 0 !important;
    padding: 0 !important;
    text-align: right !important;
    background: transparent !important;
}

.multiform-popup-window .multiform-wrap[data-id="1"] .multiform-submit input,
.multiform-popup-window .multiform-wrap[data-id="1"] .multiform-submit button,
.multiform-popup-window .multiform-wrap[data-id="1"] .multiform-submit .mf-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 176px !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 24px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #001441 !important;
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

.multiform-popup-window .multiform-wrap[data-id="1"] .multiform-submit input:hover,
.multiform-popup-window .multiform-wrap[data-id="1"] .multiform-submit button:hover,
.multiform-popup-window .multiform-wrap[data-id="1"] .multiform-submit .mf-button:hover {
    background: #09255f !important;
}

/* Mobile */
@media (max-width: 767px) {
    .rc-mf-question .multiform-popup-link {
        height: 56px !important;
        min-height: 56px !important;
        font-size: 18px !important;
    }

    .multiform-popup-window .multiform-wrap[data-id="1"] {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        max-height: calc(100vh - 24px) !important;
        padding: 28px 18px 28px !important;
        border-radius: 10px !important;
    }

    .multiform-popup-window .multiform-wrap[data-id="1"] .rc-mf-form-title {
        font-size: 22px !important;
    }

    .multiform-popup-window .multiform-wrap[data-id="1"] .rc-mf-product-name {
        font-size: 15px !important;
    }

    .multiform-popup-window .multiform-wrap[data-id="1"] .multiform-submit {
        text-align: left !important;
    }

    .multiform-popup-window .multiform-wrap[data-id="1"] .multiform-submit input,
    .multiform-popup-window .multiform-wrap[data-id="1"] .multiform-submit button,
    .multiform-popup-window .multiform-wrap[data-id="1"] .multiform-submit .mf-button {
        width: 100% !important;
        min-width: 0 !important;
    }
}
/* Ricambi Centre: mobile homepage slider text over image */
@media (max-width: 767px) {
  .slider_mobile .slide_home {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
  }

  .slider_mobile .slide_home .slide__background {
    position: relative !important;
    inset: auto !important;
    overflow: hidden;
    z-index: 0;
    border-radius: 10px;
  }

  .slider_mobile .slide_home .slide__background-image,
  .slider_mobile .slide_home .slide__background img {
    display: block;
    width: 100%;
    height: var(--img-height-mobile) !important;
    object-fit: cover;
  }

  .slider_mobile .slide_home .slide__text {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: auto !important;
    margin: 0 !important;
    padding: 22px 20px 54px !important;
    color: #ffffff !important;
    text-align: left;
    background: linear-gradient(
      90deg,
      rgba(0, 20, 65, 0.78) 0%,
      rgba(0, 20, 65, 0.48) 45%,
      rgba(0, 20, 65, 0.08) 100%
    ) !important;
  }

  .slider_mobile .slide_align_center .slide__text {
    align-items: center;
    text-align: center;
    background: linear-gradient(
      0deg,
      rgba(0, 20, 65, 0.72) 0%,
      rgba(0, 20, 65, 0.28) 55%,
      rgba(0, 20, 65, 0.08) 100%
    ) !important;
  }

  .slider_mobile .slide_align_right .slide__text {
    align-items: flex-end;
    text-align: right;
    background: linear-gradient(
      270deg,
      rgba(0, 20, 65, 0.78) 0%,
      rgba(0, 20, 65, 0.48) 45%,
      rgba(0, 20, 65, 0.08) 100%
    ) !important;
  }

  .slider_mobile .slide_home .slide__title {
    max-width: 78%;
    margin: 0;
    color: #ffffff !important;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.28px;
    text-align: inherit !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  }

  .slider_mobile .slide_align_center .slide__title {
    max-width: 90%;
  }

  .slider_mobile .slide_home .slide__title-text {
    color: inherit !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  .slider_mobile .slide_home .slide__body {
    display: none;
  }

  .slider_mobile .slider__buttons {
    z-index: 4;
  }
}

@media (max-width: 380px) {
  .slider_mobile .slide_home .slide__text {
    padding: 18px 16px 50px !important;
  }

  .slider_mobile .slide_home .slide__title {
    max-width: 88%;
    font-size: 24px;
  }
}

/* Ricambi Centre: mobile language switcher inside burger menu */
.r-header-menu__dropdown-main > .r-header-menu__lang {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    padding: 0 32px 18px;
    margin: 0;
}

.r-header-menu__dropdown-main > .r-header-menu__lang a {
    display: inline-flex;
    width: auto;
    min-width: 52px;
    height: 30px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 7px;
    color: var(--primary-color);
    background: #f2f2f2;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.r-header-menu__dropdown-main > .r-header-menu__lang a.is-selected {
    color: #fff;
    background: var(--primary-color);
}

.r-header-menu__dropdown-main > .r-header-menu__lang .rc-lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

@media (max-width: 380px) {
    .r-header-menu__dropdown-main > .r-header-menu__lang {
        padding-left: 24px;
        padding-right: 24px;
    }
}


/* Ricambi Centre: extended footer payment icons */
.footer-payments_rc {
    align-items: center;
    gap: 8px 10px;
}

.footer-payments_rc .footer-payments__item_rc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.footer-payments_rc .footer-payments__image-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 24px;
}

.footer-payments_rc .footer-payments__image {
    display: block;
    width: auto;
    max-width: 64px;
    height: auto;
    max-height: 24px;
    object-fit: contain;
}

.footer-payments_rc img[alt="Visa"] {
    max-height: 18px;
}

.footer-payments_rc img[alt="PayPal"] {
    max-width: 72px;
}

.footer-payments_rc img[alt="Klarna"],
.footer-payments_rc img[alt="Link"] {
    max-height: 22px;
}

@media (max-width: 767px) {
    .footer-payments_rc {
        justify-content: center;
        gap: 8px;
    }

    .footer-payments_rc .footer-payments__image {
        max-width: 58px;
        max-height: 22px;
    }
}
/* Ricambi Centre: responsive price/range filter layout in sidebar */
.filters .filter_type_price .range-slider__bounds,
.content-columns__sidebar .filters .range-slider__bounds,
.sidebar-filters .filters .range-slider__bounds {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.filters .filter_type_price .range-slider__bound,
.content-columns__sidebar .filters .range-slider__bound,
.sidebar-filters .filters .range-slider__bound {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    width: auto;
    min-width: 0;
}

.filters .filter_type_price .range-slider__label,
.content-columns__sidebar .filters .range-slider__label,
.sidebar-filters .filters .range-slider__label {
    width: auto;
    min-width: 22px;
    max-width: none;
    flex: 0 0 auto;
    white-space: nowrap;
    overflow: visible;
    font-size: 13px;
    line-height: 1.2;
}

.filters .filter_type_price .range-slider__input-wrapper,
.content-columns__sidebar .filters .range-slider__input-wrapper,
.sidebar-filters .filters .range-slider__input-wrapper {
    min-width: 0;
    width: 100%;
}

.filters .filter_type_price .range-slider__input,
.content-columns__sidebar .filters .range-slider__input,
.sidebar-filters .filters .range-slider__input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-left: 6px;
    padding-right: 6px;
    text-align: center;
}

/* Native Smartfilters plugin fallback, if its own template is rendered on any category */
#smartfilter .slider {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr) max-content;
    align-items: center;
    gap: 6px;
    width: 100%;
}

#smartfilter .slider input.min,
#smartfilter .slider input.max {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

#smartfilter .ui-slider {
    grid-column: 1 / -1;
    width: auto;
}

@media (max-width: 1023px) {
    .filters .filter_type_price .range-slider__input,
    .content-columns__sidebar .filters .range-slider__input,
    .sidebar-filters .filters .range-slider__input {
        text-align: center;
    }
}

@media (max-width: 360px) {
    .filters .filter_type_price .range-slider__bounds,
    .content-columns__sidebar .filters .range-slider__bounds,
    .sidebar-filters .filters .range-slider__bounds {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}


/* Ricambi: keep canonical images inside the recently viewed mini-card slot. */
.blocks__item-recently_viewed .product-mini__image-box {
    overflow: hidden;
}

.blocks__item-recently_viewed .product-mini__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
}
