//
//  Common
//  _____________________________________________

& when (@media-common = true) {
    .catalog-product-view {
        .product-info-main {
            .price-review-container {
                .product-info-price {
                    border: 0;
                    padding: 0;
                    .price-box {
                        padding: 0;
                        width: auto;
                        white-space: nowrap;
                        .price-container {
                            > span {
                                margin-bottom: 0;
                            }
                        }
                        .regular-price {
                            .price-label {
                                &:extend(.abs-visually-hidden all);
                            }
                        }
                        .price-container {
                            .price-wrapper {
                                .price {
                                    color: @djo-gray;
                                    font-weight: @pdp-price__font-weight;
                                    line-height: 1;
                                }
                            }
                        }
                    }
                }
            }
        }
        &.page-product-configurable {
            .minimal-price-link,
            .price-excluding-tax,
            .price-including-tax {
                margin-top: -5px;
            }
        }
    }
}


//
//  Mobile
//  _____________________________________________

.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
    .catalog-product-view {
        .product-info-main {
            .price-review-container {
                .product-info-price {
                    margin-bottom: 0;
                    .price-box {
                        display: block;
                        .regular-price {
                            .price-wrapper {
                                .price {
                                    .lib-font-size(@pdp-price__font-size);
                                }
                            }
                        }
                        .price-container {
                            .price-wrapper {
                                .price {
                                    .lib-font-size(@pdp-price__font-size);
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
    .catalog-product-view {
        .product-info-main {
            .price-box {
                display: block;
                margin-bottom: 2px;
                margin-top: 10px;
            }
            .product-info-price {
                margin-bottom: 0;
                .price-box {
                    padding-bottom: 0;
                }
            }
        }
    }
}


//
//  Desktop
//  _____________________________________________

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__s) {
    .catalog-product-view {
        .product-info-main {
            .price-review-container {
                .product-info-price {
                    .price-box {
                        &:only-child {
                            margin-bottom: 15px;
                        }
                        .regular-price {
                            .price-label {
                                .lib-visually-hidden();
                            }
                            .price-wrapper {
                                .price {
                                    .lib-font-size(@pdp-price__font-size + 4);
                                    color: @djo-gray;
                                }
                            }
                        }
                        .price-container {
                            .price-wrapper {
                                .price {
                                    .lib-font-size(@pdp-price__font-size + 4);
                                }
                            }
                        }
                    }
                }
            }
        }
        .product-info-main {
            .price-review-container {
                // display: none;
            }
        }
    }
}

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
    .catalog-product-view {
        .product-info-main {
            .price-review-container {
                .product-info-price {
                    display: inline-block;
                    margin-bottom: 0;
                    .price-box {
                        display: inline-block;
                        height: 40px;
                        line-height: 1;
                    }
                }
            }
        }
        &.sc-drcomfort-b2b-en,
        &.page-product-configurable {
            .product-info-main {
                .price-review-container {
                    border-top: 1px solid @pdp-separator__color;
                    margin-top: 14px;
                    padding-top: 18px;
                }
            }
        }
    }
}
