@media only screen and (max-width: 1023px) {
    #topAllergyContent .standardContainer > .column {
        overflow: auto;
    }
    #topAllergyContent div.standardContainer .box {
        height: 490px;
    }

    div.allergenBack {
        margin-top: 10px;
    }

    .allergy_allergens h3 {
        display: none;
    }
    .allergy_allergens {
        right: 0;
        position: relative;
        width: calc(100% - 340px);
        float: right;
        top: -62px;
        text-align: left;
    }
    .allergy_allergens ul {
        position: absolute;
        height: auto;
        width: calc(100% - 15px);
        margin: 0;
        border: 1px solid #ffffff;
        background: #B4C7E7;
        z-index: 10;
        padding-top: 6px;
        padding-bottom: 0;
    }
    .allergy_allergens ul::before {
        content: 'Alergen';
        padding: 3px 9px;
        position: absolute;
        top: 0;
        font-size: 10px;
    }

    .allergy_allergens li {
        display: none;
    }
    .allergy_allergens li a {
        background: none;
        width: auto;
        padding-left: 8px;
        color: #34455f;
    }
    .allergy_allergens li.active {
        background: url(/img/allergy/sprite_allergy.png?v3) no-repeat calc(100% + 20px) -12px transparent;
        display: block;
    }
    .allergy_allergens .showed li.active {
        background: none;
    }
    .allergy_allergens li.active a {
        background: none;
    }
    .allergy_allergens .showed li a {
        color: #ffffff;
    }
    .allergy_allergens .showed li.active {
        background: #78A9DB;
    }

    .allergy_allergens .showed li {
        display: block;
    }
    .allergy_allergens .showed {
        padding-top: 40px;
        background: #5987C7;
    }
    .allergy_allergens .showed::before {
        content: 'Wybierz alergen: ';
        line-height: 40px;
        font-size: 12px;
        color: rgba(255,255,255,0.6);
    }
    .collapsed .allergy_container,
    .allergy_container {
        margin-top: 10px;
        text-align: center;
    }
    .allergy_container p {
        margin-left: 10px;
    }
    .allergy_regions {
        margin-left: 5px;
    }
    .allergy_regions,
    .allergy_map {
        display: inline-block;
        float: none;
        vertical-align: top;
        position: relative;
        text-align: left;
    }
    .allergy_bottom_bar {
    }
    .allergy_bottom_bar a {
        background-position: calc(100% + 35px) -62px;
    }
    .allergy_bottom_bar span {
        width: calc(100% - 45px);
    }
    .scale_element {
        width: 13px;
    }
    .scale_element:last-of-type {
        margin-right: 5px;
    }

    /** collapsed **/
    #topAllergyContent.collapsed div.standardContainer .box {
        height: 180px;
    }
    #topAllergyContent.collapsed h2.allergyDriverTitle {
        float: none;
        height: 110px;
        margin-left: 0px;
        background: url(/img/allergy/philips_belka.png);
        background-position: right top;
        background-size: contain;
        background-repeat: no-repeat;
        line-height: 45px;
    }
    .allergyContainer .allergyStyle h2, h2.allergyDriverTitle .allergyDriverTitleTitle{
        margin: 0px 15px;
    }
    .allergyDriverTitle {
        height: 110px;
        background: url(/img/allergy/philips_belka.png);
        background-position: right top;
        background-size: contain;
        background-repeat: no-repeat;
        line-height: 45px;
    }

    .allergyContainer .allergyStyle .standardHeader1 {
        background-position: right top;
        background-size: contain;
        background-repeat: no-repeat;
        line-height: 45px;
        background: none;
    }

    .collapsed .allergy_column {
        margin-top: 0;
    }
    .collapsed .allergy_allergens {
        float: right;
        margin-right: 15px;
        width: calc(100% - 355px);
    }
    .collapsed .allergy_allergens ul {
        width: 100%;
    }
    .collapsed .allergy_allergens li.active {
        background: url(/img/allergy/sprite_allergy.png?v3) no-repeat calc(100% + 20px) -12px transparent;
    }
    .collapsed .allergy_regions {
        display: block;
        width: 100%;
    }
    .collapsed .allergy_regions .inner {
        margin: 0 15px;
        position: relative;
    }
    .collapsed .allergy_regions .showed {
        width: calc(100% - 20px);
    }
    .collapsed .allergy_regions ul {
        width: 100%;
    }
    .collapsed .allergy_regions li a {
        margin: 0 auto 0 0;
    }
    .collapsed .allergy_regions li.active a {
        background: none;
    }
    .collapsed .allergy_regions li.active a:after {
        content: '';
        position: absolute;
        right: 9px;
        height: 30px;
        width: 23px;
        background: url(/img/allergy/sprite_allergy.png?v3) no-repeat -3px -12px transparent;
    }
    .collapsed .allergy_regions .showed li.active a:after {
        display: none;
    }
    .collapsed .allergy_container .allergy_bottom_bar {
        top: 55px;
    }
    .collapsed .allergy_bottom_bar span {
        width: calc(100% - 20px);
    }
    .collapsed .allergy_bottom_bar a {
        top: -4px;
        width: calc(100% - 77px);
        background-position: calc(100% + 35px) -90px;
    }
    .collapsed .allergy_container p {
        display: none;
    }

}
@media only screen and (max-width: 767px) {

    #topAllergyContent h2.allergyDriverTitle {
        float: none;
    }

    #topAllergyContent div.standardContainer .box {
        height: auto;
    }

    #topAllergyContent.collapsed div.standardContainer .box {
        height: 210px;
        padding-bottom: 20px;
    }

    .allergy_column {
        float: none;
    }
    .collapsed .allergy_container,
    .allergy_container {
        margin-top: 10px;
    }

    .allergy_allergens,
    .allergy_map,
    .allergy_regions {
        width: auto;
        margin: 0;
    }
    .allergy_allergens ul {
        margin-left: 15px;
        width: calc(100% - 30px);
    }
    .allergy_map .inner {
        width: auto;
    }
    .allergy_regions .inner {
        height: auto;
        padding-left: 0;
        padding-right: 0;
    }
    .allergy_allergens {
        padding-bottom: 54px;
        top:0;
    }

    .allergy_map {
        padding-bottom: 20px;
        border-bottom: 1px solid #fff;
        margin-bottom: 20px;
    }
    .arrow_map {
        display: none;
    }
    .scale_element {
        width: 12px;
    }

    /** collapsed **/
    .collapsed .allergy_allergens {
        float: none;
        width: auto;
        margin-left: 15px;
    }
    .allergy_allergens li.active,
    .collapsed .allergy_allergens li.active {
    background-position: calc(100% + 31px) -12px;
    }
    .collapsed .allergy_regions li.active a:after {
        right: 0;
    }
}
@media only screen and (max-width: 680px) {

    #topAllergyContent.collapsed h2.allergyDriverTitle {
        float: none;
        height: 100px;
        margin-left: 0px;
        background: url(/img/allergy/philips_belka_mobile.png);
        background-position: right bottom;
        background-size: cover;
        background-repeat: no-repeat;
        font-size: 30px;
    }

    .allergyDriverTitle {
        float: none;
        height: 100px;
        margin-left: 0px;
        background: url(/img/allergy/philips_belka_mobile.png);
        background-position: right bottom;
        background-size: cover;
        background-repeat: no-repeat;
        font-size: 30px;
    }

    .allergyContainer .allergyStyle .standardHeader1 {
        float: none;
        margin-left: 0px;
        background-position: right bottom;
        background-size: cover;
        background-repeat: no-repeat;
        font-size: 30px;
        background: none;
    }

    div.E_TabsCanvas {
        width: 100%;
        float: none;
    }
    div.E_TabsCanvas ul.tabs li a {
        padding: 0 22px;
    }
    ul.E_AllergenBoxList li {
        width: auto;
        height: auto;
    }
    ul.E_AllergenBoxList li img {
        width: 100%;
    }
}
@media only screen and (max-width: 400px) {
    #topAllergyContent.collapsed div.standardContainer .box {
        height: 210px;
    }
    #topAllergyContent h2.allergyDriverTitle {
        position: static;
        margin-left: 0px;
    }
    #topAllergyContent.collapsed h2,
    .allergyContainer .allergyStyle h2, h2.allergyDriverTitle {
        margin-left: 0px;
        font-size: 30px;
        width: auto;
        margin-bottom: 10px;
        background-size: contain;
        background-color: white;
    }
    #allergy_map_display {
        left: 50%;
        margin-left: -183px;
    }
    .allergy_map {
        width: 100%;
    }
    .allergy_allergens ul {
        margin: 0 8px;
        width: calc(100% - 20px);
    }
    .allergy_regions .region_name {
        font-size:12px;
    }
    .scale_element {
        width: 9px;
    }
    .collapsed .allergy_allergens {
        margin: 0 10px;
    }
    .collapsed .allergy_regions .inner {
        margin: 0 10px;
    }

    .collapsed .allergy_regions li a {
        padding: 1px 0 2px 0px;
    }
    .collapsed .allergy_bottom_bar a {
        width: calc(100% - 72px);
    }
}