.productSidebar {
    --verticalSpacing: 27px;
    --tabletMaxWidth: 600px;

    @media @product_breakpoint {
        margin: 1.5em 1.5em 0;
    }

    .doctorButtonInstructions {
        padding: 24px 12px 0 12px;
        font-weight: bold;

        @media @flyout {
            text-align: center;
        }

        p {
            font-size: inherit;
            line-height: inherit;
            font-weight: inherit;
            color: inherit;
            text-align: inherit;
            opacity: 0.8;
        }
    }

    .itemTitle {
        margin-bottom: 0;
        text-align: inherit;

        @media @product_breakpoint {
            text-align: center;
        }

        @media @mobile {
            text-align: start;
        }

        h1,
        h2 {
            .rems(56);
            font-weight: 600;
            line-height: 1.3;
            color: var(--text_color);
            margin: 0.14em 0 0.2em;

            @media @product_breakpoint {
                .rems(32);
            }
        }

        .itemSubtitle {
            .rems(18);
            font-weight: 500;
            color: @text_color_lighter;
            margin: 0.75rem 0;

            @media @product_breakpoint {
                text-align: center;
            }

            @media @mobile {
                text-align: left;
            }
        }

        .productBreadcrumbs {
            padding: 0 0 40px;

            @media @mobile {
                padding: 0 0 24px;
            }

            .breadcrumbs {
                &:before,
                &:after {
                    display: none;
                }

                display: flex;
                width: 100%;

                & > li {
                    display: none;
                    .rems(12);
                    line-height: 19px;
                    text-transform: uppercase;
                    padding: 0 16px 0 0;
                    position: relative;

                    a {
                        font-size: inherit;
                        line-height: inherit;
                        text-transform: inherit;
                        text-decoration: underline;

                        &:hover {
                            text-decoration: none;
                        }
                    }

                    &:before {
                        content: '/';
                        position: absolute;
                        left: ~'calc(100% - 9px)';
                        top: 0;
                        bottom: 0;
                        display: inline-block;
                        color: inherit;
                    }

                    &:nth-last-child(-n + 2) {
                        display: flex;
                    }

                    &:last-child {
                        padding: 0;

                        &:before {
                            display: none;
                        }

                        a {
                            color: var(--text_color);
                            text-decoration: none;

                            &:hover,
                            &:active {
                                color: var(--text_color);
                                text-decoration: none;
                            }
                        }
                    }
                }
            }
        }
    }

    .stockWrap {
        margin: 0;
        padding: 25px 0 0;
        text-align: inherit;
        width: 100%;

        @media @product_breakpoint {
            display: flex;
            justify-content: center;
            padding: 22px 0 0;
        }
    }

    .fromPrice {
        .rems(18);
        font-weight: 600;
        line-height: 1;
        display: flex;
        gap: 0.5em;
        margin-bottom: 1em;

        @media @product_breakpoint {
            justify-content: center;
        }

        @media @mobile {
            justify-content: start;
        }

        .multiPrice {
            font-weight: inherit;
        }
    }

    .itemDescription {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-block: 2rem;

        @media @product_breakpoint {
            max-width: var(--tabletMaxWidth);
            margin-inline: auto;
            align-items: center;
        }

        * {
            @media @product_breakpoint {
                text-align: center;
            }

            @media @mobile {
                text-align: start;
            }
        }

        ul,
        ol {
            .iconList();
            padding: 0 !important;
            margin: 1.5rem 0 0 !important;

            @media @product_breakpoint {
                align-items: center;
            }

            @media @mobile {
                align-items: start;
                margin-bottom: 1.75em;
            }
        }

        &__content {
            overflow: hidden;
            position: relative;
            max-height: 150px;
            transition: max-height 0.3s ease;

            &::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
                height: 36px;
                background: linear-gradient(transparent, var(--background_color) 70%);
                opacity: 0;
                transition: opacity 0.3s ease;
                pointer-events: none;
            }

            &--gradient::after {
                opacity: 1;
            }
        }

        &__toggle {
            background: none;
            border: none;
            padding: 0;
            margin-top: 0;
            cursor: pointer;
            font-weight: 600;
            color: var(--secondary_color);
            .rems(14);

            &:hover {
                text-decoration: underline;
            }
        }
    }

    .basketActions {
        @media @product_breakpoint {
            max-width: var(--tabletMaxWidth);
            margin-inline: auto;
        }

        .row {
            float: none;
            clear: both;
        }

        .priceWrapper {
            display: flex;
            align-items: center;
            color: var(--text_color);

            .multiPrice {
                .rems(28);
                font-weight: 600;
                line-height: 1.3;
            }
        }

        .row {
            border-bottom: none;

            &:before,
            &:after {
                display: none;
            }

            .productSizes {
                width: 100%;
                padding: 0;
                margin-bottom: 3.75em;

                @media @mobile {
                    margin-bottom: 1.75em;
                }

                .productSize {
                    display: flex;
                    flex-direction: column;
                    flex: 1 1 50%;

                    .singleSelect {
                        @media @product_breakpoint {
                            display: flex;
                            justify-content: center;
                        }

                        @media @mobile {
                            justify-content: flex-start;
                        }
                    }
                }

                label {
                    .rems(18);
                    font-weight: 500;
                    line-height: 1.5;
                    color: var(--text_color);
                    width: 100%;
                    padding: 0 0 0.3em;
                    margin: 0;

                    @media @in_product_breakpoint {
                        justify-content: center;
                    }
                }

                .innerSelect {
                    width: 100%;
                    max-width: 240px;

                    @media @in_product_breakpoint {
                        margin-inline: auto;
                    }

                    @media @mobile {
                        max-width: 100%;
                    }
                }

                .currentPrice {
                    display: none;
                }
            }
        }

        .basketButtonRow {
            @media @product_breakpoint {
                justify-content: center;
                width: 100%;
            }

            &:before,
            &:after {
                display: none;
            }

            .rowInput {
                flex: 0 0 80px;

                .mNumberInput input {
                    min-height: 44px !important;
                    height: 44px !important;
                }
            }

            .rowButton {
                flex: none;

                @media @mobile {
                    flex: 1;
                }

                .addToBagButton {
                    @media @product_breakpoint {
                        width: 100%;
                    }
                }
            }
        }

        .buttonGrid {
            margin-top: 2em;
        }

        .coverCard {
            backdrop-filter: none !important;
        }
    }

    .doctorWarnings {
        padding-top: var(--verticalSpacing);
    }
}
