/*
 * WRYEDGE DIRECT 2.0
 * Frequently Bought Together
 * v0.1.1-alpha3
 */


.wd-fbt {
    padding:
        48px
        0
        54px;

    border-top:
        1px solid
        var(--wd-border);

    background:
        #fff;
}


.wd-fbt[hidden] {
    display:
        none !important;
}


.wd-fbt__header {
    margin-bottom:
        22px;
}


.wd-fbt__header h2 {
    margin:
        0;

    font-size:
        26px;

    font-weight:
        700;

    line-height:
        1.2;

    letter-spacing:
        -0.02em;
}


.wd-fbt__products {
    display:
        grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap:
        18px;
}


.wd-fbt-card {
    position:
        relative;

    display:
        grid;

    grid-template-columns:
        120px
        minmax(0, 1fr);

    min-width:
        0;

    min-height:
        154px;

    overflow:
        hidden;

    border:
        1px solid
        #dfe3e7;

    border-radius:
        10px;

    background:
        #fff;
}


.wd-fbt-card__select {
    position:
        absolute;

    top:
        10px;

    left:
        10px;

    z-index:
        3;

    display:
        flex;

    cursor:
        pointer;
}


.wd-fbt-card__select input {
    position:
        absolute;

    opacity:
        0;

    pointer-events:
        none;
}


.wd-fbt-card__checkmark {
    width:
        20px;

    height:
        20px;

    border:
        1px solid
        #c7cdd3;

    border-radius:
        5px;

    background:
        #fff;

    box-shadow:
        0 1px 3px
        rgba(0, 0, 0, .06);
}


.wd-fbt-card__select
input:checked
+
.wd-fbt-card__checkmark {
    border-color:
        #1f2933;

    background:
        #1f2933;
}


.wd-fbt-card__select
input:checked
+
.wd-fbt-card__checkmark::after {
    content:
        "";

    position:
        absolute;

    width:
        5px;

    height:
        9px;

    margin:
        3px
        0
        0
        7px;

    border:
        solid
        #fff;

    border-width:
        0
        2px
        2px
        0;

    transform:
        rotate(45deg);
}


.wd-fbt-card__media {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    min-width:
        0;

    padding:
        20px;

    border-right:
        1px solid
        #f0f1f2;

    text-decoration:
        none;
}


.wd-fbt-card__media img {
    display:
        block;

    width:
        100%;

    height:
        112px;

    object-fit:
        contain;
}


.wd-fbt-card__image-placeholder {
    color:
        #d5d9dd;

    font-size:
        32px;

    font-weight:
        800;
}


.wd-fbt-card__body {
    display:
        flex;

    flex-direction:
        column;

    justify-content:
        center;

    min-width:
        0;

    padding:
        18px
        18px
        17px;
}


.wd-fbt-card__title {
    display:
        -webkit-box;

    overflow:
        hidden;

    margin-bottom:
        12px;

    color:
        #252a2f;

    font-size:
        15px;

    font-weight:
        600;

    line-height:
        1.42;

    text-decoration:
        none;

    -webkit-box-orient:
        vertical;

    -webkit-line-clamp:
        3;

    line-clamp:
        3;
}


.wd-fbt-card__title:hover {
    text-decoration:
        underline;
}


.wd-fbt-card__price {
    margin-top:
        auto;

    color:
        #20252a;

    font-size:
        16px;

    font-weight:
        700;
}


.wd-fbt__summary {
    display:
        flex;

    align-items:
        center;

    justify-content:
        flex-end;

    gap:
        20px;

    margin-top:
        22px;

    padding-top:
        20px;

    border-top:
        1px solid
        #eceff1;
}


.wd-fbt__total {
    display:
        flex;

    align-items:
        baseline;

    gap:
        8px;
}


.wd-fbt__total-label {
    color:
        #70777f;

    font-size:
        13px;
}


.wd-fbt__total strong {
    color:
        #20252a;

    font-size:
        19px;

    font-weight:
        750;
}


.wd-fbt__selected-count {
    display:
        none;
}


.wd-fbt__add {
    min-height:
        44px;

    padding:
        0
        20px;

    border:
        1px solid
        #20252a;

    border-radius:
        7px;

    background:
        #20252a;

    color:
        #fff;

    cursor:
        pointer;

    font-size:
        13px;

    font-weight:
        700;

    transition:
        background
        150ms ease,
        border-color
        150ms ease,
        opacity
        150ms ease;
}


.wd-fbt__add:hover:not(:disabled) {
    background:
        #090b0d;

    border-color:
        #090b0d;
}


.wd-fbt__add:disabled {
    cursor:
        default;

    opacity:
        .42;
}


@media (
    max-width:
        1100px
) {

    .wd-fbt__products {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
}


@media (
    max-width:
        640px
) {

    .wd-fbt {
        padding:
            34px
            0
            40px;
    }


    .wd-fbt__header h2 {
        font-size:
            22px;
    }


    .wd-fbt__products {
        grid-template-columns:
            1fr;
    }


    .wd-fbt__summary {
        align-items:
            stretch;

        flex-direction:
            column;
    }


    .wd-fbt__total {
        justify-content:
            space-between;
    }


    .wd-fbt__add {
        width:
            100%;
    }
}

.wd-fbt__summary[hidden] { display: none; }
.wd-fbt-card__quote {
    align-self: flex-start;
    margin-top: auto;
    padding: 0;
    background: transparent;
    border: 0;
    color: #9a2336;
    font: inherit;
    font-weight: 600;
    text-align: start;
    text-decoration: underline;
    cursor: pointer;
}
