/*
 * New CSS for buyer pages that must load BEFORE the old shop stylesheets.
 * A plain file, served as it is: no build step. Name pictures by their path from the site root.
 *
 * On the old site these rules were <style> blocks placed ahead of slick.css, marketplace-v2.css and
 * the main stylesheet. Where two rules are equally strong the later one wins, so the place in the
 * order matters: here the old stylesheets must still win. Rules that must win over them go in buyer.css.
 */
/* ---- Product card ---- */

.product-name {
    color: #333333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* ---- A row of products on the home page ---- */

.product-row-section {
    padding-bottom: 30px;
}

.product-row-title {
    font-weight: 700;
    font-size: 16px;
    color: #524583;
}

.product-row-subtitle {
    font-weight: 400;
    font-size: 14px;
    color: #0F172A;
}

.product-row-header-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.product-row-header {
    display: flex;
    flex-direction: column;
}

.product-sub-row {
    display: flex;
    justify-content: space-between;
    padding-top: 5px;
}

.view-all-link {
    font-weight: 400;
    font-size: 14px;
    color: #524583;
    width: 20%;
    text-align: right;
}

.product-row-content {
    padding-top: 15px;
}

@media (max-width: 991px) {
    .product-row-header-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .product-link-wrapper {
        width: 100%;
        padding-top: 10px;
    }
}

/* ---- The "can't find the product" bar on the home page ---- */

.rfq-announcement-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    border-radius: 10px;
    background-color: #EEEDF3;
}

.rfq-announcement-bar__content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rfq-announcement-bar__icon {
    width: 48px;
    height: auto;
    flex-shrink: 0;
}

.rfq-announcement-bar__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333333;
}

.rfq-announcement-bar__description {
    margin: 2px 0 0;
    font-size: 14px;
    color: #333333;
}

.rfq-announcement-bar__cta {
    flex-shrink: 0;
    text-transform: capitalize;
}

@media (max-width: 767px) {
    .rfq-announcement-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .rfq-announcement-bar__content {
        flex-direction: column;
        gap: 8px;
    }
}
