.product-custom-upsell {
    margin: 48px 0 0;
    position: relative;
}

.product-custom-upsell .product-custom-upsell-container a:focus-visible {
    border: 2px solid #4c12a1;
    outline: none;
}

@media only screen and (min-width: 1601px) {
    .product-custom-upsell .product-custom-upsell-container {
        margin: 0 auto;
    }
}

.product-custom-upsell .product-custom-upsell-container .upsell-title-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

@media only screen and (min-width: 992px) {
    .product-custom-upsell .product-custom-upsell-container .upsell-title-row {
        justify-content: flex-start;
    }
}

.product-custom-upsell .product-custom-upsell-container .title-column {
    width: 50%;
    padding-left: 15px;
    padding-right: 0;
}

@media only screen and (min-width: 992px) {
    .product-custom-upsell .product-custom-upsell-container .title-column {
        width: 41.66667%;
    }
}

.product-custom-upsell .product-custom-upsell-container .upsell-content-row {
    display: flex;
    align-items: stretch;
    margin-left: -15px;
    margin-right: -15px;
    gap: 0;
    flex-wrap: nowrap;
}

@media only screen and (max-width: 1199.98px) {
    .product-custom-upsell .product-custom-upsell-container .upsell-content-row {
        flex-wrap: wrap;
    }
}

.product-custom-upsell .product-custom-upsell-container .main-product:first-child {
    padding-right: 8px;
    z-index: 1;
    background: #FFF;
}

@media only screen and (max-width: 1199.98px) {
    .product-custom-upsell .product-custom-upsell-container .main-product:first-child {
        padding-right: 15px;
        margin-bottom: 11px;
    }
}

@media only screen and (min-width: 1200px) {
    .product-custom-upsell .product-custom-upsell-container .main-product:first-child {
        max-width: fit-content;
    }
}

.product-custom-upsell .product-custom-upsell-container .main-product-column {
    flex: 0 0 27%;
    max-width: 27%;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
}

@media only screen and (max-width: 1199.98px) {
    .product-custom-upsell .product-custom-upsell-container .main-product-column {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.product-custom-upsell .product-custom-upsell-container .pluse-icon-column {
    flex: 0 0 auto;
    width: auto;
    text-align: center;
    padding-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media only screen and (max-width: 1199.98px) {
    .product-custom-upsell .product-custom-upsell-container .pluse-icon-column {
        flex: 0 0 100%;
        margin: 20px 0;
    }
}

.product-custom-upsell .product-custom-upsell-container .upsell-product-column {
    flex: 0 0 68%;
    max-width: 68%;
    display: flex;
    flex-direction: column;
}

@media only screen and (max-width: 1199.98px) {
    .product-custom-upsell .product-custom-upsell-container .upsell-product-column {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.product-custom-upsell .product-custom-upsell-container .upsell-product-column--full {
    flex: 0 0 100%;
    max-width: 100%;
}

.product-custom-upsell .product-custom-upsell-container .product-container,
.product-custom-upsell .product-custom-upsell-container .product-custom-upsell-set {
    background: #f7f7f7;
    border-radius: 10px;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    min-height: 138px;
    height: 100%;
    padding: 0 24px;
}

@media (max-width: 1023.98px) {
    .product-custom-upsell .product-custom-upsell-container .product-container,
    .product-custom-upsell .product-custom-upsell-container .product-custom-upsell-set {
        padding: 16px;
    }
}

.product-custom-upsell .product-custom-upsell-container .product-container--upsell {
    display: flex;
    flex-direction: row;
    width: 100%;
    background: #f7f7f7;
    border-radius: 10px;
    height: 100%;
}

@media only screen and (max-width: 767.98px) {
    .product-custom-upsell .product-custom-upsell-container .product-container--upsell {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 1023.98px) {
    .product-custom-upsell .product-custom-upsell-container .product-container--upsell {
        padding: 16px;
    }
}

.product-custom-upsell .product-custom-upsell-container .full-height {
    height: 100%;
}

.product-custom-upsell .product-custom-upsell-container .product-container .customUpsellProductPrice,
.product-custom-upsell .product-custom-upsell-container .product-custom-upsell-set .customUpsellProductPrice {
    color: #213038;
}

.product-custom-upsell .product-custom-upsell-container .product-container .mulitiproduct,
.product-custom-upsell .product-custom-upsell-container .product-custom-upsell-set {
    margin: 0;
    flex-grow: 1;
    flex-basis: 0;
    position: relative;
}

.product-custom-upsell .product-custom-upsell-container .product-custom-upsell-set::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 48, 56, 0.5); 
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5; 
    border-radius: 10px;
}

.product-custom-upsell .product-custom-upsell-container .product-custom-upsell-set:hover::before {
    opacity: 1;
}

.product-custom-upsell .product-custom-upsell-container .product-container .primary-image,
.product-custom-upsell .product-custom-upsell-container .product-custom-upsell-set .primary-image {
    height: 90px;
    margin-right: 24px;
    flex: 0 0 100px;
    max-width: 100px;
    position: relative;
    z-index: 4;
}

.product-custom-upsell .product-custom-upsell-container .product-container .primary-image img,
.product-custom-upsell .product-custom-upsell-container .product-custom-upsell-set .primary-image img {
    display: block;
    height: 90px;
    width: 100px;
    object-fit: contain;
}

.product-custom-upsell .product-custom-upsell-container .product-container .product-details,
.product-custom-upsell .product-custom-upsell-container .product-custom-upsell-set .product-details {
    width: calc(100% - 124px);
    z-index: 6; /* Above semi-transparent background */
}

.product-custom-upsell .product-custom-upsell-container .product-container .product-details a.product-link,
.product-custom-upsell .product-custom-upsell-container .product-custom-upsell-set .product-details a.product-link {
    color: #213038 !important;
}

.product-custom-upsell .product-custom-upsell-container .product-container .product-details .main-product-text,
.product-custom-upsell .product-custom-upsell-container .product-custom-upsell-set .product-details .main-product-text {
    color: #56707a;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 4px;
}

.product-custom-upsell .product-custom-upsell-container .product-container .product-details .main-product-name,
.product-custom-upsell .product-custom-upsell-container .product-container .product-details .custom-upsell-product-name,
.product-custom-upsell .product-custom-upsell-container .main-product-column .main-product-name,
.product-custom-upsell .product-custom-upsell-container .product-custom-upsell-set .product-details .custom-upsell-product-name {
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
    color: #333;
}

.product-custom-upsell .product-custom-upsell-container .product-container:hover,
.product-custom-upsell .product-custom-upsell-container .product-custom-upsell-set:hover {
    text-decoration: none;
}

.product-custom-upsell .product-custom-upsell-container .product-container .main-product-name:hover,
.product-custom-upsell .product-custom-upsell-container .product-container .custom-upsell-product-name:hover,
.product-custom-upsell .product-custom-upsell-container .product-custom-upsell-set .main-product-name:hover,
.product-custom-upsell .product-custom-upsell-container .product-custom-upsell-set .custom-upsell-product-name:hover {
    text-decoration: underline;
    color: #333;
}

.product-custom-upsell .product-custom-upsell-container .main-product.custom-upsell-product {
    padding-left: 8px;
    transition: opacity 1s ease;
}

@media only screen and (max-width: 1199.98px) {
    .product-custom-upsell .product-custom-upsell-container .main-product.custom-upsell-product {
        padding-left: 15px;
    }
}

.product-custom-upsell .product-custom-upsell-container .no-margin-x {
    margin-left: 0;
    margin-right: 0;
}

.product-custom-upsell .product-custom-upsell-container .margin-bottom-md {
    margin-bottom: 1rem;
}

.product-custom-upsell .product-custom-upsell-container .price-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.product-custom-upsell .product-custom-upsell-container .margin-right-sm {
    margin-right: 0.25rem;
}

.product-custom-upsell .product-custom-upsell-container .rating-count-container {
    display: inline-flex;
    margin-top: 0.25rem;
    display: block;
}

.pluse-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.pluse-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E5006D;
    position: relative;
    z-index: 1;
}

.pluse-icon:before {
    content: "";
    mask-image: url('../../images/big-plus.svg');
    mask-size: cover;
    mask-position: center;
    background-color: #FFF;
    width: 32px;
    height: 32px;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
}

.product-custom-upsell .product-custom-upsell-container .oec-button-group {
    position: absolute;
    top: 37px;
    right: 80px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    align-items: center;
    justify-content: center;
}

.product-custom-upsell .product-custom-upsell-container .product-container:hover .oec-button-group,
.product-custom-upsell .product-custom-upsell-container .product-custom-upsell-set:hover .oec-button-group {
    opacity: 1;
}

.product-custom-upsell .product-custom-upsell-container .oec-view-button,
.product-custom-upsell .product-custom-upsell-container .oec-add-to-cart-button {
    background: #213038;
    border: none;
    border-radius: 4px;
    min-width: 120px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.product-custom-upsell .product-custom-upsell-container .oec-view-button:hover,
.product-custom-upsell .product-custom-upsell-container .oec-add-to-cart-button:hover {
    opacity: 0.8;
}

.product-custom-upsell .product-custom-upsell-container .oec-add-all-to-cart-container {
    position: relative;
    text-align: right;
    margin-top: 15px; 
}

.product-custom-upsell .product-custom-upsell-container .oec-add-all-to-cart-button {
    background: #213038;
    border: none;
    border-radius: 4px;
    min-width: 120px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    margin-left: auto; 
}

.product-custom-upsell .product-custom-upsell-container .oec-add-all-to-cart-button:hover {
    opacity: 0.8;
}