/*
 * CT_SEARCH_PRODUCT_CARD_01C_RUNTIME_STYLE_SCOPE_SAFE
 * Aligns front-office search cards with the catalog price and Privilege row.
 * Presentation only: product, price and campaign logic remain unchanged.
 */

/*
 * Il normalizzatore varianti è condiviso con il catalogo, ma il foglio
 * sorgente storico nascondeva il blocco nativo soltanto su body#category.
 * Nella ricerca quel doppione alterava altezza e allineamento delle card.
 */
html body:is(#search,#prices-drop) #js-product-list
.ct-apb-native-variant-source-01a.ct-apb-native-variant-source-hidden-01a {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

html body:is(#search,#prices-drop) #js-product-list
.product-price-and-shipping.ct-catalog-price-native-02d-r3[data-ct-price-branch-02d-r3="native"] {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 0 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 22px !important;
    max-height: 26px !important;
    margin: 2px 0 4px !important;
    padding: 0 !important;
    line-height: 22px !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

html body:is(#search,#prices-drop) #js-product-list
.product-price-and-shipping.ct-catalog-price-native-02d-r3[data-ct-price-branch-02d-r3="native"] > .regular-price,
html body:is(#search,#prices-drop) #js-product-list
.product-price-and-shipping.ct-catalog-price-native-02d-r3[data-ct-price-branch-02d-r3="native"] > .discount-percentage,
html body:is(#search,#prices-drop) #js-product-list
.product-price-and-shipping.ct-catalog-price-native-02d-r3[data-ct-price-branch-02d-r3="native"] > .discount-amount,
html body:is(#search,#prices-drop) #js-product-list
.product-price-and-shipping.ct-catalog-price-native-02d-r3[data-ct-price-branch-02d-r3="native"] > .current-price {
    position: static !important;
    float: none !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: baseline !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px !important;
    line-height: 22px !important;
    white-space: nowrap !important;
    transform: none !important;
}

html body:is(#search,#prices-drop) #js-product-list
.product-price-and-shipping.ct-catalog-price-native-02d-r3[data-ct-price-branch-02d-r3="native"] > .regular-price {
    color: #6f6f6f !important;
    font-weight: 400 !important;
    text-decoration: line-through 1px solid !important;
}

html body:is(#search,#prices-drop) #js-product-list
.product-price-and-shipping.ct-catalog-price-native-02d-r3[data-ct-price-branch-02d-r3="native"] > .discount-percentage,
html body:is(#search,#prices-drop) #js-product-list
.product-price-and-shipping.ct-catalog-price-native-02d-r3[data-ct-price-branch-02d-r3="native"] > .discount-amount {
    color: #111 !important;
    font-weight: 500 !important;
    text-align: left !important;
    border-radius: 0 !important;
}

html body:is(#search,#prices-drop) #js-product-list
.product-price-and-shipping.ct-catalog-price-native-02d-r3[data-ct-price-branch-02d-r3="native"] > .current-price {
    color: #d20a2e !important;
    font-weight: 700 !important;
}

html body:is(#search,#prices-drop) #js-product-list
.product-price-and-shipping.ct-catalog-price-native-02d-r3[data-ct-price-branch-02d-r3="native"]::before,
html body:is(#search,#prices-drop) #js-product-list
.product-price-and-shipping.ct-catalog-price-native-02d-r3[data-ct-price-branch-02d-r3="native"]::after {
    content: none !important;
    display: none !important;
}

html body:is(#search,#prices-drop) #js-product-list .ct-catalog-eloy-points-03b {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 5px;
    width: auto;
    max-width: 100%;
    min-height: 22px;
    margin: 0 0 9px;
    padding: 0;
    border: 0;
    color: #222;
    background: transparent;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    white-space: nowrap;
}

html body:is(#search,#prices-drop) #js-product-list .ct-catalog-eloy-points-03b[hidden] {
    display: none !important;
}

html body:is(#search,#prices-drop) #js-product-list .ct-catalog-eloy-points-03b__separator {
    color: #111;
    font-size: 10px;
}

html body:is(#search,#prices-drop) #js-product-list .ct-catalog-eloy-points-03b__info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    min-width: 17px;
    margin: 0;
    padding: 0;
    border: 1px solid #555;
    border-radius: 50%;
    color: #333;
    background: transparent;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    cursor: pointer;
}

html body:is(#search,#prices-drop) #js-product-list .ct-catalog-eloy-points-03b__info:hover,
html body:is(#search,#prices-drop) #js-product-list .ct-catalog-eloy-points-03b__info:focus {
    color: #fff;
    background: #111;
    border-color: #111;
    outline: none;
}

html body:is(#search,#prices-drop) #js-product-list .ct-catalog-eloy-points-03b--no-reward .ct-catalog-eloy-points-03b__reward {
    color: #666;
    font-weight: 500;
}

@media (max-width: 575px) {
    html body:is(#search,#prices-drop) #js-product-list
    .product-price-and-shipping.ct-catalog-price-native-02d-r3[data-ct-price-branch-02d-r3="native"] {
        gap: 0 4px !important;
    }

    html body:is(#search,#prices-drop) #js-product-list
    .product-price-and-shipping.ct-catalog-price-native-02d-r3[data-ct-price-branch-02d-r3="native"] > span {
        font-size: 12px !important;
    }

    html body:is(#search,#prices-drop) #js-product-list .ct-catalog-eloy-points-03b {
        gap: 4px;
        font-size: 10px;
        line-height: 15px;
    }
}
