:root {
    --rpc-desktop-columns: 4;
    --rpc-card-radius: 22px;
    --rpc-card-border: #d8d8d8;
    --rpc-card-background: #f8f8f8;
    --rpc-title: #183253;
    --rpc-button-from: #d24be8;
    --rpc-button-to: #7a1dde;
    --rpc-button-text: #ffffff;
    --rpc-button-hover: #6816c8;
    --rpc-discount-badge: #ef4444;
}

body.rpc-premium-category-enabled.rpc-rehub-adapter-enabled .products,
body.rpc-premium-category-enabled.rpc-rehub-adapter-enabled ul.products {
    display: grid !important;
    grid-template-columns: repeat(var(--rpc-desktop-columns), minmax(0, 1fr)) !important;
    gap: 26px !important;
    margin: 20px 0 30px !important;
    padding: 0 !important;
}

body.rpc-premium-category-enabled.rpc-rehub-adapter-enabled .products > .product,
body.rpc-premium-category-enabled.rpc-rehub-adapter-enabled ul.products > li.product {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible !important;
}

body.rpc-premium-category-enabled .rpc-original-hidden {
    display: none !important;
}

body.rpc-premium-category-enabled .rpc-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: var(--rpc-card-background);
    border: 1px solid var(--rpc-card-border);
    border-radius: var(--rpc-card-radius);
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(17, 31, 51, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

body.rpc-premium-category-enabled .rpc-shell:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(17, 31, 51, .11);
}

body.rpc-premium-category-enabled .rpc-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 22px 26px 8px;
    background: #fff;
}

body.rpc-premium-category-enabled .rpc-image-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 270px;
    margin: 0 !important;
}

body.rpc-premium-category-enabled .rpc-image-link img,
body.rpc-premium-category-enabled .rpc-media > img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 270px !important;
    max-height: 270px !important;
    object-fit: contain !important;
    object-position: 50% 50% !important;
    margin: 0 auto !important;
}

body.rpc-premium-category-enabled .rpc-sale-badge {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    left: auto !important;
    bottom: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 32px;
    padding: 7px 10px !important;
    border-radius: 8px !important;
    background: #68bd15 !important;
    color: #fff !important;
    font: 700 15px/1 Poppins, Arial, sans-serif !important;
    z-index: 4;
}

body.rpc-premium-category-enabled .rpc-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 24px 30px 26px;
}

body.rpc-premium-category-enabled .rpc-title {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 102px;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

body.rpc-premium-category-enabled .rpc-title-link {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    color: var(--rpc-title) !important;
    font: 700 23px/1.28 Poppins, Arial, sans-serif !important;
    text-decoration: none !important;
    text-transform: none !important;
}

body.rpc-premium-category-enabled .rpc-footer {
    display: grid;
    grid-template-columns: minmax(105px, 1fr) auto minmax(100px, auto);
    align-items: center;
    gap: 14px;
    min-height: 96px;
    padding: 18px 22px;
    background: #fff;
    border-top: 1px solid #e3e3e3;
}

body.rpc-premium-category-enabled .rpc-merchant {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

body.rpc-premium-category-enabled .rpc-merchant-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    height: 42px;
    color: #111;
    font: 700 38px/1 Arial, sans-serif;
}

body.rpc-premium-category-enabled .rpc-merchant-icon::after {
    content: '';
    position: absolute;
    left: 5px;
    bottom: 2px;
    width: 29px;
    height: 11px;
    border-bottom: 3px solid #f7a600;
    border-radius: 0 0 50% 50%;
    transform: rotate(-8deg);
}

body.rpc-premium-category-enabled .rpc-merchant-name {
    overflow: hidden;
    color: #151515;
    font: 700 18px/1.2 Poppins, Arial, sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.rpc-premium-category-enabled .rpc-price-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 94px;
}

body.rpc-premium-category-enabled .rpc-price,
body.rpc-premium-category-enabled .rpc-price .amount {
    color: #20242c !important;
    font: 700 21px/1.1 Poppins, Arial, sans-serif !important;
    white-space: nowrap;
}

body.rpc-premium-category-enabled .rpc-price del {
    display: none !important;
}

body.rpc-premium-category-enabled .rpc-price ins {
    background: transparent !important;
    color: inherit !important;
    text-decoration: none !important;
}

body.rpc-premium-category-enabled .rpc-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    min-height: 52px;
    padding: 10px 22px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: linear-gradient(180deg, var(--rpc-button-from), var(--rpc-button-to)) !important;
    box-shadow: none !important;
    color: var(--rpc-button-text) !important;
    font: 700 22px/1 Poppins, Arial, sans-serif !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
}

body.rpc-premium-category-enabled .rpc-cta:hover {
    background: var(--rpc-button-hover) !important;
    filter: none;
    color: var(--rpc-button-text) !important;
}

body.rpc-premium-category-enabled.rpc-empty-sidebar-layout .sidebar {
    display: none !important;
}

body.rpc-premium-category-enabled.rpc-empty-sidebar-layout .main-side,
body.rpc-premium-category-enabled.rpc-empty-sidebar-layout .content,
body.rpc-premium-category-enabled.rpc-empty-sidebar-layout .content-area,
body.rpc-premium-category-enabled.rpc-empty-sidebar-layout .rh-content-wrap,
body.rpc-premium-category-enabled.rpc-empty-sidebar-layout .main-side.clearfix {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

body.rpc-premium-category-enabled .heart_thumb_wrap,
body.rpc-premium-category-enabled .compare_for_grid,
body.rpc-premium-category-enabled .comparecompact,
body.rpc-premium-category-enabled .cell_wishlist {
    display: none !important;
}

@media (max-width: 1280px) {
    body.rpc-premium-category-enabled.rpc-rehub-adapter-enabled .products,
    body.rpc-premium-category-enabled.rpc-rehub-adapter-enabled ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 980px) {
    body.rpc-premium-category-enabled.rpc-rehub-adapter-enabled .products,
    body.rpc-premium-category-enabled.rpc-rehub-adapter-enabled ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer {
        grid-template-columns: 1fr auto;
    }

    body.rpc-premium-category-enabled .rpc-merchant {
        grid-column: 1 / 2;
    }

    body.rpc-premium-category-enabled .rpc-price-wrap {
        grid-column: 1 / 2;
        justify-content: flex-start;
    }

    body.rpc-premium-category-enabled .rpc-cta {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
    }
}

@media (max-width: 620px) {
    body.rpc-premium-category-enabled.rpc-rehub-adapter-enabled .products,
    body.rpc-premium-category-enabled.rpc-rehub-adapter-enabled ul.products {
        grid-template-columns: 1fr !important;
    }

    body.rpc-premium-category-enabled .rpc-media {
        min-height: 270px;
    }

    body.rpc-premium-category-enabled .rpc-image-link,
    body.rpc-premium-category-enabled .rpc-image-link img,
    body.rpc-premium-category-enabled .rpc-media > img {
        height: 240px !important;
        max-height: 240px !important;
    }

    body.rpc-premium-category-enabled .rpc-title-link {
        font-size: 21px !important;
    }
}

/* v0.1.2: prevent compressed four-column cards and inherited Rehub CTA widths. */
body.rpc-premium-category-enabled .rpc-shell {
    container-type: inline-size;
}

body.rpc-premium-category-enabled .rpc-footer {
    grid-template-columns: minmax(46px, auto) minmax(82px, 1fr) minmax(92px, 112px);
    gap: 10px;
    padding: 16px 16px;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

body.rpc-premium-category-enabled .rpc-footer > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

body.rpc-premium-category-enabled .rpc-price-wrap {
    min-width: 0;
    overflow: hidden;
}

body.rpc-premium-category-enabled .rpc-price,
body.rpc-premium-category-enabled .rpc-price .amount {
    display: inline-block !important;
    max-width: 100%;
    overflow: hidden;
    font-size: 20px !important;
    text-overflow: ellipsis;
}

body.rpc-premium-category-enabled .rpc-cta,
body.rpc-premium-category-enabled a.rpc-cta {
    position: static !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    float: none !important;
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 112px !important;
    min-height: 48px;
    margin: 0 !important;
    padding: 9px 12px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis;
    transform: none !important;
    box-sizing: border-box !important;
    font-size: 20px !important;
}

@container (max-width: 390px) {
    body.rpc-premium-category-enabled .rpc-merchant-name {
        display: none;
    }

    body.rpc-premium-category-enabled .rpc-merchant {
        justify-content: flex-start;
    }

    body.rpc-premium-category-enabled .rpc-footer {
        grid-template-columns: 46px minmax(82px, 1fr) minmax(88px, 104px);
        gap: 8px;
        padding-inline: 14px;
    }

    body.rpc-premium-category-enabled .rpc-title-link {
        font-size: 20px !important;
    }
}

@container (max-width: 335px) {
    body.rpc-premium-category-enabled .rpc-footer {
        grid-template-columns: 46px 1fr;
        row-gap: 12px;
    }

    body.rpc-premium-category-enabled .rpc-cta,
    body.rpc-premium-category-enabled a.rpc-cta {
        grid-column: 1 / -1;
        width: 100% !important;
        max-width: none !important;
    }
}


/* v0.1.3: cards without a usable price and configurable CTA colors. */
body.rpc-premium-category-enabled.rpc-button-style-solid .rpc-cta,
body.rpc-premium-category-enabled.rpc-button-style-solid a.rpc-cta {
    background: var(--rpc-button-from) !important;
}

body.rpc-premium-category-enabled.rpc-button-style-gradient .rpc-cta,
body.rpc-premium-category-enabled.rpc-button-style-gradient a.rpc-cta {
    background: linear-gradient(180deg, var(--rpc-button-from), var(--rpc-button-to)) !important;
}

body.rpc-premium-category-enabled .rpc-cta,
body.rpc-premium-category-enabled a.rpc-cta {
    color: var(--rpc-button-text) !important;
}

body.rpc-premium-category-enabled .rpc-cta:hover,
body.rpc-premium-category-enabled a.rpc-cta:hover {
    background: var(--rpc-button-hover) !important;
    color: var(--rpc-button-text) !important;
}

body.rpc-premium-category-enabled .rpc-price:not(.rpc-price-missing),
body.rpc-premium-category-enabled .rpc-price:not(.rpc-price-missing) .amount {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

body.rpc-premium-category-enabled .rpc-price-missing {
    display: block !important;
    max-width: 145px;
    overflow: visible !important;
    color: #303744 !important;
    font: 700 13px/1.22 Poppins, Arial, sans-serif !important;
    text-align: center;
    text-overflow: clip !important;
    white-space: normal !important;
}

body.rpc-premium-category-enabled .rpc-footer-no-price {
    grid-template-columns: minmax(46px, auto) minmax(105px, 1fr) minmax(92px, 112px);
}

@container (max-width: 390px) {
    body.rpc-premium-category-enabled .rpc-footer-no-price {
        grid-template-columns: 46px minmax(100px, 1fr) minmax(88px, 104px);
    }

    body.rpc-premium-category-enabled .rpc-price-missing {
        max-width: none;
        font-size: 12px !important;
    }
}

@container (max-width: 335px) {
    body.rpc-premium-category-enabled .rpc-footer-no-price {
        grid-template-columns: 46px 1fr;
    }

    body.rpc-premium-category-enabled .rpc-footer-no-price .rpc-cta {
        grid-column: 1 / -1;
        max-width: none !important;
    }
}

/* v0.1.4: configurable merchant logo image with graceful fallback. */
body.rpc-premium-category-enabled .rpc-merchant-logo {
    display: block;
    width: 58px;
    min-width: 58px;
    height: 38px;
    max-width: 58px;
    max-height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
    object-position: center;
}

body.rpc-premium-category-enabled .rpc-merchant-logo[hidden],
body.rpc-premium-category-enabled .rpc-merchant-icon-fallback[hidden] {
    display: none !important;
}

body.rpc-premium-category-enabled .rpc-merchant-logo-failed .rpc-merchant-icon-fallback {
    display: inline-flex;
}

@container (max-width: 390px) {
    body.rpc-premium-category-enabled .rpc-merchant-logo {
        width: 46px;
        min-width: 46px;
        max-width: 46px;
        height: 34px;
        max-height: 34px;
    }
}


/* v0.1.5: Affimax-inspired price details, discount badge and chevron. */
body.rpc-premium-category-enabled .rpc-price-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
}

body.rpc-premium-category-enabled .rpc-discount-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 25px;
    padding: 5px 8px;
    border-radius: 6px;
    background: var(--rpc-discount-badge);
    color: #fff;
    font: 700 12px/1 Poppins, Arial, sans-serif;
    white-space: nowrap;
}

body.rpc-premium-category-enabled .rpc-price-chevron {
    display: block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    color: #6e7480;
}

body.rpc-premium-category-enabled .rpc-price-wrap {
    overflow: visible;
}

body.rpc-premium-category-enabled .rpc-footer-no-price .rpc-price-line {
    white-space: normal;
}

@container (max-width: 390px) {
    body.rpc-premium-category-enabled .rpc-price-line {
        gap: 5px;
    }

    body.rpc-premium-category-enabled .rpc-discount-badge {
        padding: 4px 6px;
        font-size: 11px;
    }

    body.rpc-premium-category-enabled .rpc-price-chevron {
        display: none;
    }
}

@container (max-width: 350px) {
    body.rpc-premium-category-enabled .rpc-discount-badge {
        display: none;
    }
}


body.rpc-premium-category-enabled .rpc-footer-no-merchant {
    grid-template-columns: minmax(120px, 1fr) minmax(92px, 112px);
}

@container (max-width: 335px) {
    body.rpc-premium-category-enabled .rpc-footer-no-merchant {
        grid-template-columns: 1fr;
    }

    body.rpc-premium-category-enabled .rpc-footer-no-merchant .rpc-cta {
        max-width: none !important;
    }
}


/* v0.1.6: true Affimax-inspired compact horizontal footer. */
body.rpc-premium-category-enabled .rpc-footer,
body.rpc-premium-category-enabled .rpc-footer-no-price,
body.rpc-premium-category-enabled .rpc-footer-no-merchant {
    display: grid !important;
    grid-template-columns: minmax(82px, 96px) minmax(0, 1fr) 70px !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 74px !important;
    padding: 12px 14px !important;
    overflow: visible !important;
}

body.rpc-premium-category-enabled .rpc-footer-no-merchant {
    grid-template-columns: minmax(0, 1fr) 70px !important;
}

body.rpc-premium-category-enabled .rpc-merchant {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
    width: 100% !important;
}

body.rpc-premium-category-enabled .rpc-merchant-logo {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 28px !important;
    max-height: 28px !important;
}

body.rpc-premium-category-enabled .rpc-merchant-icon {
    width: 36px !important;
    min-width: 36px !important;
    height: 30px !important;
    font-size: 30px !important;
}

body.rpc-premium-category-enabled .rpc-merchant-icon::after {
    left: 4px !important;
    bottom: 0 !important;
    width: 27px !important;
    height: 9px !important;
}

body.rpc-premium-category-enabled .rpc-merchant-name {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: #17191d !important;
    font: 700 13px/1.1 Poppins, Arial, sans-serif !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.rpc-premium-category-enabled .rpc-price-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
    width: 100% !important;
    overflow: visible !important;
}

body.rpc-premium-category-enabled .rpc-price-line {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}

body.rpc-premium-category-enabled .rpc-price,
body.rpc-premium-category-enabled .rpc-price .amount {
    display: inline-block !important;
    flex: 0 0 auto !important;
    max-width: none !important;
    overflow: visible !important;
    color: #20242c !important;
    font: 700 17px/1.05 Poppins, Arial, sans-serif !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

body.rpc-premium-category-enabled .rpc-discount-badge {
    min-height: 22px !important;
    padding: 4px 6px !important;
    border-radius: 5px !important;
    font-size: 10px !important;
}

body.rpc-premium-category-enabled .rpc-price-chevron {
    display: block !important;
    flex: 0 0 13px !important;
    width: 13px !important;
    height: 13px !important;
}

body.rpc-premium-category-enabled .rpc-cta,
body.rpc-premium-category-enabled a.rpc-cta,
body.rpc-premium-category-enabled .rpc-footer .rpc-cta {
    position: static !important;
    grid-column: auto !important;
    grid-row: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 8px 9px !important;
    overflow: visible !important;
    border-radius: 8px !important;
    font: 700 16px/1 Poppins, Arial, sans-serif !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

body.rpc-premium-category-enabled .rpc-price-missing {
    max-width: none !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
    text-align: right !important;
}

@container (max-width: 390px) {
    body.rpc-premium-category-enabled .rpc-footer,
    body.rpc-premium-category-enabled .rpc-footer-no-price {
        grid-template-columns: minmax(78px, 92px) minmax(0, 1fr) 66px !important;
        gap: 6px !important;
        padding-inline: 11px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer-no-merchant {
        grid-template-columns: minmax(0, 1fr) 66px !important;
    }

    body.rpc-premium-category-enabled .rpc-cta,
    body.rpc-premium-category-enabled a.rpc-cta,
    body.rpc-premium-category-enabled .rpc-footer .rpc-cta {
        width: 66px !important;
        min-width: 66px !important;
        max-width: 66px !important;
        min-height: 44px !important;
        font-size: 15px !important;
    }

    body.rpc-premium-category-enabled .rpc-price,
    body.rpc-premium-category-enabled .rpc-price .amount {
        font-size: 16px !important;
    }

    body.rpc-premium-category-enabled .rpc-price-chevron {
        display: block !important;
    }
}

@container (max-width: 350px) {
    body.rpc-premium-category-enabled .rpc-footer-has-discount .rpc-merchant-name {
        display: none !important;
    }

    body.rpc-premium-category-enabled .rpc-footer-has-discount .rpc-merchant {
        grid-template-columns: 36px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer-has-discount {
        grid-template-columns: 40px minmax(0, 1fr) 64px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer-has-discount .rpc-cta {
        width: 64px !important;
        min-width: 64px !important;
        max-width: 64px !important;
    }
}

@container (max-width: 285px) {
    body.rpc-premium-category-enabled .rpc-footer,
    body.rpc-premium-category-enabled .rpc-footer-no-price,
    body.rpc-premium-category-enabled .rpc-footer-no-merchant {
        grid-template-columns: 40px minmax(0, 1fr) 60px !important;
        gap: 5px !important;
        padding-inline: 9px !important;
    }

    body.rpc-premium-category-enabled .rpc-merchant {
        grid-template-columns: 36px !important;
    }

    body.rpc-premium-category-enabled .rpc-merchant-name,
    body.rpc-premium-category-enabled .rpc-price-chevron {
        display: none !important;
    }

    body.rpc-premium-category-enabled .rpc-cta,
    body.rpc-premium-category-enabled a.rpc-cta,
    body.rpc-premium-category-enabled .rpc-footer .rpc-cta {
        width: 60px !important;
        min-width: 60px !important;
        max-width: 60px !important;
        font-size: 14px !important;
    }
}


/* v0.1.7: preserve discount and chevron on 280px four-column cards. */
body.rpc-premium-category-enabled .rpc-footer,
body.rpc-premium-category-enabled .rpc-footer-no-price {
    grid-template-columns: 38px minmax(0, 1fr) 62px !important;
    gap: 5px !important;
    padding: 10px 9px !important;
    min-height: 70px !important;
}

body.rpc-premium-category-enabled .rpc-footer-no-merchant {
    grid-template-columns: minmax(0, 1fr) 62px !important;
}

body.rpc-premium-category-enabled .rpc-merchant {
    grid-template-columns: 34px !important;
    gap: 0 !important;
}

body.rpc-premium-category-enabled .rpc-merchant-logo {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 27px !important;
    max-height: 27px !important;
}

body.rpc-premium-category-enabled .rpc-merchant-icon {
    width: 34px !important;
    min-width: 34px !important;
    height: 29px !important;
    font-size: 29px !important;
}

body.rpc-premium-category-enabled .rpc-merchant-name {
    display: none !important;
}

body.rpc-premium-category-enabled .rpc-price-line {
    justify-content: flex-end !important;
    gap: 4px !important;
}

body.rpc-premium-category-enabled .rpc-price,
body.rpc-premium-category-enabled .rpc-price .amount {
    font-size: 15.5px !important;
    letter-spacing: -.15px !important;
}

body.rpc-premium-category-enabled .rpc-discount-badge,
body.rpc-premium-category-enabled .rpc-footer-has-discount .rpc-discount-badge {
    display: inline-flex !important;
    min-height: 20px !important;
    padding: 3px 5px !important;
    border-radius: 5px !important;
    font-size: 9px !important;
    line-height: 1 !important;
}

body.rpc-premium-category-enabled .rpc-price-chevron,
body.rpc-premium-category-enabled .rpc-footer-has-chevron .rpc-price-chevron {
    display: block !important;
    flex: 0 0 11px !important;
    width: 11px !important;
    height: 11px !important;
}

body.rpc-premium-category-enabled .rpc-cta,
body.rpc-premium-category-enabled a.rpc-cta,
body.rpc-premium-category-enabled .rpc-footer .rpc-cta {
    width: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;
    min-height: 44px !important;
    padding: 7px 7px !important;
    font-size: 15px !important;
}

/* The textual merchant name returns only when the card is genuinely wide enough. */
@container (min-width: 340px) {
    body.rpc-premium-category-enabled .rpc-footer,
    body.rpc-premium-category-enabled .rpc-footer-no-price {
        grid-template-columns: minmax(78px, 92px) minmax(0, 1fr) 68px !important;
        gap: 7px !important;
        padding-inline: 12px !important;
    }

    body.rpc-premium-category-enabled .rpc-merchant {
        grid-template-columns: 34px minmax(0, 1fr) !important;
        gap: 5px !important;
    }

    body.rpc-premium-category-enabled .rpc-merchant-name {
        display: block !important;
        font-size: 12px !important;
    }

    body.rpc-premium-category-enabled .rpc-cta,
    body.rpc-premium-category-enabled a.rpc-cta,
    body.rpc-premium-category-enabled .rpc-footer .rpc-cta {
        width: 68px !important;
        min-width: 68px !important;
        max-width: 68px !important;
    }
}

/* Last-resort protection for exceptionally long prices with a discount. */
@container (max-width: 270px) {
    body.rpc-premium-category-enabled .rpc-footer,
    body.rpc-premium-category-enabled .rpc-footer-no-price {
        grid-template-columns: 34px minmax(0, 1fr) 58px !important;
        gap: 4px !important;
        padding-inline: 7px !important;
    }

    body.rpc-premium-category-enabled .rpc-price,
    body.rpc-premium-category-enabled .rpc-price .amount {
        font-size: 14px !important;
    }

    body.rpc-premium-category-enabled .rpc-discount-badge {
        font-size: 8px !important;
        padding-inline: 4px !important;
    }

    body.rpc-premium-category-enabled .rpc-cta,
    body.rpc-premium-category-enabled a.rpc-cta,
    body.rpc-premium-category-enabled .rpc-footer .rpc-cta {
        width: 58px !important;
        min-width: 58px !important;
        max-width: 58px !important;
        font-size: 14px !important;
    }
}


/* v0.1.8: one CTA for missing prices, normalized percentage badges, no decorative chevron. */
body.rpc-premium-category-enabled .rpc-price-chevron {
    display: none !important;
}

body.rpc-premium-category-enabled .rpc-discount-badge:empty {
    display: none !important;
}

body.rpc-premium-category-enabled .rpc-footer-no-price {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    gap: 8px !important;
}

body.rpc-premium-category-enabled .rpc-footer-no-price.rpc-footer-no-merchant {
    grid-template-columns: minmax(0, 1fr) !important;
}

body.rpc-premium-category-enabled .rpc-footer-no-price .rpc-merchant {
    grid-template-columns: 34px !important;
}

body.rpc-premium-category-enabled .rpc-footer-no-price .rpc-merchant-name,
body.rpc-premium-category-enabled .rpc-footer-no-price .rpc-price-wrap,
body.rpc-premium-category-enabled .rpc-footer-no-price .rpc-price-missing {
    display: none !important;
}

body.rpc-premium-category-enabled .rpc-footer-no-price .rpc-cta-missing-price,
body.rpc-premium-category-enabled .rpc-footer-no-price a.rpc-cta-missing-price {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 48px !important;
    padding: 8px 12px !important;
    overflow: visible !important;
    font-size: 13px !important;
    line-height: 1.18 !important;
    text-align: center !important;
    text-overflow: clip !important;
    white-space: normal !important;
}

@container (max-width: 270px) {
    body.rpc-premium-category-enabled .rpc-footer-no-price {
        grid-template-columns: 34px minmax(0, 1fr) !important;
        padding-inline: 8px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer-no-price .rpc-cta-missing-price,
    body.rpc-premium-category-enabled .rpc-footer-no-price a.rpc-cta-missing-price {
        font-size: 12px !important;
        padding-inline: 8px !important;
    }
}


/* v0.1.9: mobile footer matching the approved reference template. */
@media (max-width: 620px) {
    body.rpc-premium-category-enabled .rpc-footer,
    body.rpc-premium-category-enabled .rpc-footer.rpc-footer-has-discount {
        display: grid !important;
        grid-template-columns: minmax(128px, 1fr) auto 92px !important;
        grid-template-rows: minmax(62px, auto) !important;
        align-items: center !important;
        column-gap: 12px !important;
        row-gap: 0 !important;
        min-height: 84px !important;
        padding: 12px 18px !important;
        overflow: visible !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-merchant {
        grid-column: 1 !important;
        grid-row: 1 !important;
        display: grid !important;
        grid-template-columns: 46px minmax(0, auto) !important;
        align-items: center !important;
        justify-content: start !important;
        gap: 9px !important;
        width: auto !important;
        min-width: 0 !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-merchant-logo {
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        height: 34px !important;
        max-height: 34px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-merchant-icon {
        width: 46px !important;
        min-width: 46px !important;
        height: 36px !important;
        font-size: 34px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-merchant-name {
        display: block !important;
        overflow: visible !important;
        color: #17191d !important;
        font: 700 15px/1.15 Poppins, Arial, sans-serif !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-price-wrap {
        grid-column: 2 !important;
        grid-row: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: auto !important;
        min-width: 74px !important;
        overflow: visible !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-price-line {
        display: grid !important;
        grid-template-columns: auto !important;
        grid-template-rows: auto auto !important;
        justify-items: end !important;
        align-items: center !important;
        gap: 4px !important;
        width: auto !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-price {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-discount-badge {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: end !important;
        display: inline-flex !important;
        min-height: 22px !important;
        padding: 4px 7px !important;
        border-radius: 4px !important;
        font-size: 11px !important;
        line-height: 1 !important;
        transform: rotate(-2deg);
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-price,
    body.rpc-premium-category-enabled .rpc-footer .rpc-price .amount {
        font-size: 17px !important;
        line-height: 1.05 !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-cta,
    body.rpc-premium-category-enabled .rpc-footer a.rpc-cta {
        grid-column: 3 !important;
        grid-row: 1 !important;
        width: 92px !important;
        min-width: 92px !important;
        max-width: 92px !important;
        min-height: 50px !important;
        padding: 9px 12px !important;
        border-radius: 7px !important;
        font-size: 18px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer-no-price {
        grid-template-columns: minmax(128px, 1fr) minmax(156px, auto) !important;
    }

    body.rpc-premium-category-enabled .rpc-footer-no-price .rpc-merchant {
        grid-column: 1 !important;
        grid-row: 1 !important;
        grid-template-columns: 46px minmax(0, auto) !important;
    }

    body.rpc-premium-category-enabled .rpc-footer-no-price .rpc-merchant-name {
        display: block !important;
    }

    body.rpc-premium-category-enabled .rpc-footer-no-price .rpc-cta-missing-price,
    body.rpc-premium-category-enabled .rpc-footer-no-price a.rpc-cta-missing-price {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: auto !important;
        min-width: 156px !important;
        max-width: 230px !important;
        min-height: 50px !important;
        padding: 9px 14px !important;
        font-size: 14px !important;
        line-height: 1.15 !important;
        white-space: normal !important;
    }

    body.rpc-premium-category-enabled .rpc-footer-no-merchant {
        grid-template-columns: minmax(0, 1fr) 92px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer-no-merchant .rpc-price-wrap {
        grid-column: 1 !important;
    }

    body.rpc-premium-category-enabled .rpc-footer-no-merchant .rpc-cta {
        grid-column: 2 !important;
    }
}

@media (max-width: 410px) {
    body.rpc-premium-category-enabled .rpc-footer,
    body.rpc-premium-category-enabled .rpc-footer.rpc-footer-has-discount {
        grid-template-columns: minmax(106px, 1fr) auto 78px !important;
        column-gap: 8px !important;
        padding-inline: 12px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-merchant {
        grid-template-columns: 40px minmax(0, auto) !important;
        gap: 6px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-merchant-logo {
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        height: 31px !important;
        max-height: 31px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-merchant-name {
        font-size: 13px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-price,
    body.rpc-premium-category-enabled .rpc-footer .rpc-price .amount {
        font-size: 15px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-discount-badge {
        padding: 3px 5px !important;
        font-size: 9px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-cta,
    body.rpc-premium-category-enabled .rpc-footer a.rpc-cta {
        width: 78px !important;
        min-width: 78px !important;
        max-width: 78px !important;
        font-size: 16px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer-no-price {
        grid-template-columns: minmax(100px, 1fr) minmax(142px, auto) !important;
    }

    body.rpc-premium-category-enabled .rpc-footer-no-price .rpc-cta-missing-price,
    body.rpc-premium-category-enabled .rpc-footer-no-price a.rpc-cta-missing-price {
        min-width: 142px !important;
        max-width: 190px !important;
        font-size: 12px !important;
        padding-inline: 10px !important;
    }
}

@media (max-width: 350px) {
    body.rpc-premium-category-enabled .rpc-footer,
    body.rpc-premium-category-enabled .rpc-footer.rpc-footer-has-discount {
        grid-template-columns: 42px minmax(0, 1fr) 72px !important;
        gap: 6px !important;
        padding-inline: 9px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-merchant {
        grid-template-columns: 40px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-merchant-name {
        display: none !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-cta,
    body.rpc-premium-category-enabled .rpc-footer a.rpc-cta {
        width: 72px !important;
        min-width: 72px !important;
        max-width: 72px !important;
        font-size: 15px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer-no-price {
        grid-template-columns: 42px minmax(0, 1fr) !important;
    }

    body.rpc-premium-category-enabled .rpc-footer-no-price .rpc-cta-missing-price,
    body.rpc-premium-category-enabled .rpc-footer-no-price a.rpc-cta-missing-price {
        grid-column: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}


/* v0.1.10: one approved footer structure on desktop, tablet and mobile. */
body.rpc-premium-category-enabled.rpc-rehub-adapter-enabled .products,
body.rpc-premium-category-enabled.rpc-rehub-adapter-enabled ul.products {
    grid-template-columns: repeat(var(--rpc-effective-columns, var(--rpc-desktop-columns)), minmax(0, 1fr)) !important;
}

body.rpc-premium-category-enabled .rpc-footer,
body.rpc-premium-category-enabled .rpc-footer.rpc-footer-has-discount {
    display: grid !important;
    grid-template-columns: minmax(116px, 1fr) minmax(72px, auto) 88px !important;
    grid-template-rows: minmax(60px, auto) !important;
    align-items: center !important;
    column-gap: 10px !important;
    row-gap: 0 !important;
    min-height: 84px !important;
    padding: 12px 15px !important;
    overflow: visible !important;
}

body.rpc-premium-category-enabled .rpc-footer .rpc-merchant {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: grid !important;
    grid-template-columns: 44px minmax(0, auto) !important;
    align-items: center !important;
    justify-content: start !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 0 !important;
}

body.rpc-premium-category-enabled .rpc-footer .rpc-merchant-logo {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 33px !important;
    max-height: 33px !important;
}

body.rpc-premium-category-enabled .rpc-footer .rpc-merchant-icon {
    width: 44px !important;
    min-width: 44px !important;
    height: 35px !important;
    font-size: 33px !important;
}

body.rpc-premium-category-enabled .rpc-footer .rpc-merchant-name,
body.rpc-premium-category-enabled .rpc-footer-no-price .rpc-merchant-name {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: #17191d !important;
    font: 700 14px/1.15 Poppins, Arial, sans-serif !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.rpc-premium-category-enabled .rpc-footer .rpc-price-wrap {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    min-width: 72px !important;
    overflow: visible !important;
}

body.rpc-premium-category-enabled .rpc-footer .rpc-price-line {
    display: grid !important;
    grid-template-columns: auto !important;
    grid-template-rows: auto auto !important;
    justify-items: end !important;
    align-items: center !important;
    gap: 4px !important;
    width: auto !important;
    min-width: 0 !important;
    overflow: visible !important;
}

body.rpc-premium-category-enabled .rpc-footer .rpc-price {
    grid-column: 1 !important;
    grid-row: 2 !important;
}

body.rpc-premium-category-enabled .rpc-footer .rpc-discount-badge {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    display: inline-flex !important;
    min-height: 21px !important;
    padding: 4px 6px !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    transform: rotate(-2deg);
}

body.rpc-premium-category-enabled .rpc-footer .rpc-price,
body.rpc-premium-category-enabled .rpc-footer .rpc-price .amount {
    font-size: 16px !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
}

body.rpc-premium-category-enabled .rpc-footer .rpc-cta,
body.rpc-premium-category-enabled .rpc-footer a.rpc-cta {
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
    min-height: 50px !important;
    padding: 9px 11px !important;
    border-radius: 7px !important;
    font-size: 17px !important;
}

body.rpc-premium-category-enabled .rpc-footer-no-price,
body.rpc-premium-category-enabled .rpc-footer-no-price.rpc-footer-has-discount {
    grid-template-columns: minmax(116px, 1fr) minmax(164px, auto) !important;
}

body.rpc-premium-category-enabled .rpc-footer-no-price .rpc-merchant {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

body.rpc-premium-category-enabled .rpc-footer-no-price .rpc-cta-missing-price,
body.rpc-premium-category-enabled .rpc-footer-no-price a.rpc-cta-missing-price {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 164px !important;
    max-width: 230px !important;
    min-height: 50px !important;
    padding: 9px 14px !important;
    overflow: visible !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
    text-align: center !important;
    text-overflow: clip !important;
    white-space: normal !important;
}

body.rpc-premium-category-enabled .rpc-footer-no-merchant {
    grid-template-columns: minmax(0, 1fr) 88px !important;
}

body.rpc-premium-category-enabled .rpc-footer-no-merchant .rpc-price-wrap {
    grid-column: 1 !important;
}

body.rpc-premium-category-enabled .rpc-footer-no-merchant .rpc-cta {
    grid-column: 2 !important;
}

body.rpc-premium-category-enabled .rpc-footer-no-price.rpc-footer-no-merchant {
    grid-template-columns: minmax(0, 1fr) !important;
}

body.rpc-premium-category-enabled .rpc-footer-no-price.rpc-footer-no-merchant .rpc-cta-missing-price {
    grid-column: 1 !important;
    justify-self: end !important;
}

@container (max-width: 335px) {
    body.rpc-premium-category-enabled .rpc-footer,
    body.rpc-premium-category-enabled .rpc-footer.rpc-footer-has-discount {
        grid-template-columns: minmax(100px, 1fr) minmax(66px, auto) 76px !important;
        column-gap: 7px !important;
        padding-inline: 10px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-merchant {
        grid-template-columns: 38px minmax(0, auto) !important;
        gap: 5px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-merchant-logo {
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        height: 30px !important;
        max-height: 30px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-merchant-name {
        font-size: 12px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-price,
    body.rpc-premium-category-enabled .rpc-footer .rpc-price .amount {
        font-size: 14px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-discount-badge {
        padding: 3px 5px !important;
        font-size: 9px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-cta,
    body.rpc-premium-category-enabled .rpc-footer a.rpc-cta {
        width: 76px !important;
        min-width: 76px !important;
        max-width: 76px !important;
        font-size: 15px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer-no-price {
        grid-template-columns: minmax(100px, 1fr) minmax(140px, auto) !important;
    }

    body.rpc-premium-category-enabled .rpc-footer-no-price .rpc-cta-missing-price,
    body.rpc-premium-category-enabled .rpc-footer-no-price a.rpc-cta-missing-price {
        min-width: 140px !important;
        max-width: 190px !important;
        font-size: 12px !important;
        padding-inline: 10px !important;
    }
}

@container (max-width: 285px) {
    body.rpc-premium-category-enabled .rpc-footer,
    body.rpc-premium-category-enabled .rpc-footer.rpc-footer-has-discount {
        grid-template-columns: minmax(84px, 1fr) minmax(60px, auto) 68px !important;
        column-gap: 5px !important;
        padding-inline: 8px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-merchant {
        grid-template-columns: 34px minmax(0, auto) !important;
        gap: 4px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-merchant-logo {
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        height: 27px !important;
        max-height: 27px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-merchant-name {
        font-size: 11px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-price,
    body.rpc-premium-category-enabled .rpc-footer .rpc-price .amount {
        font-size: 13px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer .rpc-cta,
    body.rpc-premium-category-enabled .rpc-footer a.rpc-cta {
        width: 68px !important;
        min-width: 68px !important;
        max-width: 68px !important;
        font-size: 14px !important;
    }

    body.rpc-premium-category-enabled .rpc-footer-no-price {
        grid-template-columns: minmax(84px, 1fr) minmax(126px, auto) !important;
    }

    body.rpc-premium-category-enabled .rpc-footer-no-price .rpc-cta-missing-price,
    body.rpc-premium-category-enabled .rpc-footer-no-price a.rpc-cta-missing-price {
        min-width: 126px !important;
        max-width: 150px !important;
        font-size: 11px !important;
        padding-inline: 8px !important;
    }
}

/* v0.3.0 — Adaptateur Auto Amazon Links */
body.rpc-auto-amazon-links-enabled .amazon-product-columns-container.rpc-aal-grid {
    display: grid !important;
    grid-template-columns: repeat(var(--rpc-aal-effective-columns, 2), minmax(0, 1fr)) !important;
    gap: 26px !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 20px 0 30px !important;
    padding: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    table-layout: auto !important;
}

body.rpc-auto-amazon-links-enabled .amazon-product-columns-container.rpc-aal-grid > .amazon_auto_links_multiple_columns_row {
    display: contents !important;
}

body.rpc-auto-amazon-links-enabled .amazon-product-columns-container.rpc-aal-grid .amazon_auto_links_multiple_columns_col {
    display: block !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: top !important;
}

body.rpc-auto-amazon-links-enabled .amazon-product-columns-container.rpc-aal-grid .amazon-product-column-container,
body.rpc-auto-amazon-links-enabled .amazon-product-columns-container.rpc-aal-grid center {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: inherit !important;
}

body.rpc-auto-amazon-links-enabled .amazon-auto-links-product.rpc-card-ready {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left !important;
    overflow: visible !important;
}

body.rpc-auto-amazon-links-enabled .rpc-source-aal {
    height: 100%;
}

body.rpc-auto-amazon-links-enabled .rpc-source-aal .rpc-media {
    min-height: 270px;
    padding: 20px 22px 8px;
}

body.rpc-auto-amazon-links-enabled .rpc-source-aal .rpc-image-link {
    height: 240px;
}

body.rpc-auto-amazon-links-enabled .rpc-source-aal .rpc-image-link img,
body.rpc-auto-amazon-links-enabled .rpc-source-aal .rpc-media > img {
    width: 100% !important;
    height: 240px !important;
    max-height: 240px !important;
    object-fit: contain !important;
}

body.rpc-auto-amazon-links-enabled .rpc-source-aal .rpc-content {
    padding-top: 20px;
}

body.rpc-auto-amazon-links-enabled .rpc-source-aal .rpc-title {
    min-height: 92px;
}

body.rpc-auto-amazon-links-enabled .rpc-source-aal .rpc-title-link {
    -webkit-line-clamp: 3;
    font-size: 20px !important;
}

body.rpc-auto-amazon-links-enabled .rpc-meta {
    display: grid;
    justify-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #626b78;
    font: 500 12px/1.35 Poppins, Arial, sans-serif;
    text-align: center;
}

body.rpc-auto-amazon-links-enabled .rpc-rating,
body.rpc-auto-amazon-links-enabled .rpc-rating * {
    max-width: 100%;
}

body.rpc-auto-amazon-links-enabled .rpc-rating a {
    color: inherit !important;
    text-decoration: none !important;
}

body.rpc-auto-amazon-links-enabled .rpc-updated-time {
    display: block;
    opacity: .8;
}

body.rpc-auto-amazon-links-enabled .rpc-source-aal .rpc-price,
body.rpc-auto-amazon-links-enabled .rpc-source-aal .rpc-price.offered-price {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #20242c !important;
}

body.rpc-auto-amazon-links-enabled .rpc-source-aal .rpc-footer {
    margin-top: auto;
}

@media (max-width: 620px) {
    body.rpc-auto-amazon-links-enabled .amazon-product-columns-container.rpc-aal-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    body.rpc-auto-amazon-links-enabled .rpc-source-aal .rpc-media {
        min-height: 250px;
    }

    body.rpc-auto-amazon-links-enabled .rpc-source-aal .rpc-image-link,
    body.rpc-auto-amazon-links-enabled .rpc-source-aal .rpc-image-link img,
    body.rpc-auto-amazon-links-enabled .rpc-source-aal .rpc-media > img {
        height: 220px !important;
        max-height: 220px !important;
    }
}
