#wrapperMatressConfig {
    max-width: 1280px;
    margin: auto;
    margin-bottom: 25px;
    border-radius: 6px;
    background-color: white;
    background-image: url('../img/config/mat-bg.jpg');
    background-repeat: no-repeat;
    background-position-x: 480px;
    padding: 25px 0 2px 0;
    box-shadow: 0px 3px 5px #00000014;
    position: relative;
    z-index: 900;
}

@media all and (max-width: 800px) {
    #wrapperMatressConfig {
        display: none;
    }
}

#wrapperMatressConfig ul {
    list-style-type: none;
}

#wrapperMatressConfig .matressHeights {
    position: relative;
    display: flex;
}

#wrapperMatressConfig>div>ul {
    position: relative;
    display: flex;
}

#wrapperMatressConfig .matressWrapperHeader {
    padding: 0 25px;
}

#wrapperMatressConfig h2 {
    font-size: 1.375rem;
    font-weight: 900;
    color: #000;
    display: inline-block;
    margin-bottom: 5px;
}

#wrapperMatressConfig .matressSectionHeader {
    color: #27a8c9;
    font-size: 1.05rem;
    text-align: left;
    padding-bottom: 8px;
}

#wrapperMatressConfig .matressHeights {
    position: absolute;
    background-color: #ffffff;
    width: 100%;
    box-shadow: 0px 20px 20px 0px rgba(0, 0, 0, 0.2);
    z-index: 900;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    top: 72px;
    background-position-x: 0%;
    min-height: 500px;
    left: 0;
    visibility: hidden;
    opacity: 0;
}

#wrapperMatressConfig .matressItemHeights, .matressProducts {
    display: none;
}

#wrapperMatressConfig .matressProducts .active {
    display: flex;
}

#wrapperMatressConfig .matressProducts>div {
    display: none;
}

#wrapperMatressConfig .matressProducts {
    position: absolute;
    top: 0;
    display: none;
    left: 25%;
    line-height: 16px;
    padding: 0;
    position: absolute;
    margin: 0;
    background: white;
    padding: 25px 10px 10px 25px;
    height: 500px;
    width: 75%;
    border-bottom-right-radius: 10px;
}

#wrapperMatressConfig .matressProducts a {
    color: #000;
    text-decoration: none;
    margin: auto;
    font-size: 15px;
    letter-spacing: -0.2px;
    font-weight: normal;
}

#wrapperMatressConfig .matressProducts a:hover {
    color: #27a8c9;
    transition: all 0.1s;
}

#wrapperMatressConfig .matressProducts li {
    border-bottom: 1px solid #e2e2e2;
}

#wrapperMatressConfig .matressHeightsActive {
    visibility: visible;
    opacity: 1;
}

#wrapperMatressConfig .widthRange {
    color: #000;
    font-size: 18px;
    font-weight: bold;
}

#wrapperMatressConfig .matressItem {
    width: 100%;
    font-size: 15px;
    text-align: center;
    background-image: linear-gradient(to bottom, #ffffff00 50%, #f5f5f5 100%);
    border-right: 1px solid #e8e8e8;
    padding: 10px 0;
    flex: 1;
}

#wrapperMatressConfig .matressItem:hover {
    cursor: pointer;
}

#wrapperMatressConfig .matressItem .divFlex img {
    vertical-align: middle;
}

#wrapperMatressConfig .divFlex li:last-child {
    border-right: none;
}

#wrapperMatressConfig .matressItem>.divFlex>div, #wrapperMatressConfig .matressItemHeights>ul>li>.divFlex>div,
 #wrapperMatressConfig .matressItem>.divFlex>div, #wrapperMatressConfig .matressItemHeights>ul>li>a>.divFlex>div,
 #wrapperMatressConfig div ul.divFlex li.matressItem> a> div.divFlex > div
  {
    width: 50%;
}

#wrapperMatressConfig .matressItem p {
    text-align: left;
}

#wrapperMatressConfig .cechy>div {
    width: 48%;
    margin: 5px 0;
    text-align: left;
    color: #000;
    font-size: 0.85rem;
}

#wrapperMatressConfig .matressProducts .cechy>div>span {
    font-weight: bold;
}

#wrapperMatressConfig .matressItem:hover {
    box-shadow: 0px -4px 7px #00000014;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    z-index: 2000;
    background-image: linear-gradient(to bottom, white 0%, white 100%);
    -webkit-animation: shadow-drop-center 0.4s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: shadow-drop-center 0.4s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

#wrapperMatressConfig .matressItem img {
    filter: grayscale(100%);
}

#wrapperMatressConfig .matressItem:hover>div>div>img {
    filter: none;
}

#wrapperMatressConfig .matressProducts img {
    max-width: 60px;
    margin-right: 20px;
    filter: none;
}

#wrapperMatressConfig .activeFlex {
    width: 25%;
    display: block;
    margin-top: 5px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgb(247, 247, 247) 86%, rgb(228, 228, 228) 100%);
    padding: 20px 0 20px 20px;
    border-bottom-left-radius: 10px;
}

#wrapperMatressConfig .activeFlex li:hover {
    background: rgb(255, 255, 255);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%);
}

#wrapperMatressConfig .matressProducts li:hover {
    background: rgb(255, 255, 255);
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 6%, rgba(236, 236, 236, 0.4) 50%, rgba(255, 255, 255, 1) 90%);
}

#wrapperMatressConfig .active {
    display: block;
}

#wrapperMatressConfig .divFlex {
    display: flex;
}

#wrapperMatressConfig .matressItemHeights li {
    font-size: 100%;
    box-sizing: content-box;
    padding: 15px 0;
}

#wrapperMatressConfig .matressProducts li {
    width: 98%;
    padding: 10px 0;
}

#wrapperMatressConfig .matressItemHeights li img {
    filter: grayscale(100%);
}

#wrapperMatressConfig .matressItemHeights li:hover img {
    filter: none;
}

#wrapperMatressConfig .matressProducts ul {
    margin-left: 0;
    padding-left: 0;
    overflow-y: auto;
    max-height: 430px;
}

#wrapperMatressConfig .matressProducts .productName {
    width: 90%;
    text-align: left;
    font-size: 0.95rem;
    line-height: 20px;
    padding-right: 20px
}

#wrapperMatressConfig .matressProducts .matressPrice {
    width: 15%;
    color: #000;
    font-weight: bold;
}

#wrapperMatressConfig .matressProducts .matressPrice p {
    text-align: right;
}

#wrapperMatressConfig .oldPrice {
    font-size: 14px;
    font-weight: normal;
    color: grey;
    text-decoration: line-through;
    margin-bottom: 5px;
}

#wrapperMatressConfig ::-webkit-scrollbar {
    width: 12px;
    margin: 3px;
}

#wrapperMatressConfig ::-webkit-scrollbar-track {
    border-radius: 10px;
    background: #EBEBEB;
}

#wrapperMatressConfig ::-webkit-scrollbar-thumb {
    background: #bbbbbb;
    border-radius: 10px;
}

#wrapperMatressConfig ::-webkit-scrollbar-thumb:hover {
    background: #27a8c9;
}

#bgBlack {
    visibility: hidden;
    opacity: 0;
    background-color: #000;
    width: 100%;
    min-height: 1500px;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: -10;
}

#bgBlack.active {
    visibility: visible;
    opacity: 0.3;
    z-index: 700;
    transition: all 0.1s;
    position: fixed;
}