/*----------------------------- 
    CORE CSS FOR TEMPLATES 
-----------------------------*/
body { 
    position: relative; 
    margin: 0; 
    line-height: 1.5;
}

html,
body {
    height: 100%; 
    margin: 0;
}

section {
    z-index: 1;
}

a {
    outline: none; 
    cursor: pointer; 
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

button {
    padding: 0;
    margin: 0;
    background: none;
    width: 100%;
    height: 100%;
    border: none;
}

[hidden] {
    display: none;
}

[data-section] {
    position: relative;
    width: 100%;
}

[data-editable] {
    position: absolute;
    -webkit-transform: rotate(0deg);
       -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
            transform: rotate(0deg);

    -webkit-transform-origin: 0 0 0;
       -moz-transform-origin: 0 0 0;
        -ms-transform-origin: 0 0 0;
            transform-origin: 0 0 0;

    -webkit-transform-origin-x: 0px;
       -moz-transform-origin-x: 0px;
        -ms-transform-origin-x: 0px;
            transform-origin-x: 0px;

    -webkit-transform-origin-y: 0px;
       -moz-transform-origin-y: 0px;
        -ms-transform-origin-y: 0px;
            transform-origin-y: 0px;
}

[data-editable] {
    z-index: 2
}

[data-section="section"] {
    pointer-events: none;
    /*overflow: hidden;*/
}

[data-section="wrap"] {
    margin: 0 auto; 
    width: 980px;
    padding: 0 5px;
    position: relative;
}

[data-section="section"] > * {
    pointer-events: all;
}

/* TODO: przeniesc do mobili
[data-editable="box"] {
    background-size: 100%;
}*/

[data-editable="button"] a,
[data-editable="buttonCookieNotification"] a,
[data-editable="button"] button,
[data-editable="buttonCookieNotification"] button{
    position: absolute;
    top: 0;
    outline: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

[data-editable="button"] a,
[data-editable="buttonCookieNotification"] a{
    z-index: 10 !important;
}

[data-editable="button"],
[data-editable="button"] button,
[data-editable="buttonCookieNotification"],
[data-editable="buttonCookieNotification"] button
input[type="submit"] {
    cursor: pointer;
}

[data-editable="button"]:hover,
[data-editable="buttonCookieNotification"]:hover,
input[type="submit"]:hover {
    opacity: .9;
    cursor: pointer;
}

[data-editable="bg:image"], 
[data-editable="bg:color"] {
    z-index: 0 !important;
}

[data-editable="multimedia:image"] {
    overflow: hidden;
}

[data-editable="bg:image"] img, 
[data-editable="multimedia:image"] img {
    position: absolute;
    top: 0;
    left: 0;
}

[data-editable="button"],
[data-editable="buttonCookieNotification"], 
input[type="submit"], 
[data-editable="menu"] a {
    -webkit-transition: opacity 0.5s ease; 
       -moz-transition: opacity 0.5s ease; 
         -o-transition: opacity 0.5s ease; 
            transition: opacity 0.5s ease;
}

[data-editable="button"] a.button,
[data-editable="buttonCookieNotification"] a.button {
    display: block;
}

ul, ol {
    margin: 0;
    padding: 0;
    padding-left: 28px;
}

[data-editable="text"] {
    overflow: hidden;
}

[data-editable="text"] div.text-content {
    line-height: 1;
}

[data-editable="text"] > div * {
    vertical-align: baseline;
}

[data-editable="text"] div.text-content * {
    vertical-align: baseline;
    line-height: inherit;
}

[data-editable="shapes:line"] {
    border: 5px solid transparent;
}
[data-editable="shapes:line"].vline,
div[data-type="vline"] {
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}

[data-editable="social"] {
    min-width: 90px;
    min-height: 25px;
    width: auto !important;
    height: 25px;
}

[data-editable="social"] div[id^="___plus"] {
    vertical-align: top !important;
    top: 0px !important;
    left: 0px !important;
}

[data-editable="social"] div[id^="___plus"] iframe {
    top: 0px !important;
    left: 0px !important;
}
[data-editable="social"].pinterest {
    width: 44px !important;
}
[data-editable="social"].googleplus {
    width: 95px;
}

[data-editable="boxCookieNotification"] {
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background-color: rgba(0,0,0,0.5);
    width: auto !important;
    height: 100px;
    z-index: 9999999;
    display: none;
}

[data-editable="boxCookieNotification"][data-position="bottom"] {
    top: auto !important;
    bottom: 0 !important;
}
[data-editable="boxCookieNotification"] [data-editable="box"] {
    top: 0 !important; 
    left: 0 !important; 
    width: 500px; 
    height: 100% !important;
}

[data-editable="textCookieNotification"] a {
    color: rgb(0, 175, 236);
    border-color: rgb(0, 175, 236);
}

[data-editable="textCookieNotification"] div.text-content a:hover {
    color: rgb(255, 132, 0);
    border-color: rgb(255, 132, 0);
}
[data-editable="buttonCookieNotification"] {
    background-color: rgba(255, 255, 255, 1);
    background-image: linear-gradient(rgb(255, 255, 255), rgb(210, 210, 210));
    border-radius: 20px;
    left: auto !important;
}
[data-editable="buttonCookieNotification"] button {
    text-shadow: none;
    font-size: 14px;
    color: rgb(0, 0, 0);
    font-weight: bold;
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
}
[data-editable="buttonCookieNotification"]:hover {
    background-color: rgb(203, 203, 203);
    background-image: linear-gradient(rgb(230, 230, 230), rgb(203, 203, 203));
}

[data-editable="buttonCookieNotification"] button:hover {
    text-decoration: none;
    text-shadow: rgb(255, 255, 255) 1px 1px 0px;
}
[data-type="pinterest"] {
    width: 44px !important;
}
[data-type="googleplus"] {
    width: 95px;
}
[data-type="linkedin"] .IN-widget span {
    float: left;
}

/*----------------------------- 
    FROM SCRATCH TMPL 
-----------------------------*/
div[data-editable="button"] {
    border-radius: 40px;
    background-color: rgba(130, 210, 79, 1);
}

div[data-editable="button"] button {
    vertical-align: baseline;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 36px;
    color: #fff;
}

/*----------------------------- 
    MENU
-----------------------------*/
[data-editable="menu"] a {
    outline: none; 
    cursor: pointer; 
    text-decoration: none;
    float: left;
}

[data-editable="menu"] ul {
    margin: 0;
    padding: 0;
}

[data-editable="menu"] li {
    list-style: none;
    float: left;
}

[data-editable="menu"] a {
    font-family: Helvetica, Arial, sans-serif;
    display: inline-block;
    margin: 0 4px;
    padding: 4px 0;
}

[data-editable="menu"] li.selected a {
    color: #E1B07E;
}

/* [ Type 01 ] */
[data-editable="menu"].type-menu01 li {
    margin: 0;
    padding: 2px 10px;
    border-right: 1px solid #B0B0B0;
}

[data-editable="menu"].type-menu01 li:first-child {
    padding-left: 0;
}

[data-editable="menu"].type-menu01 li:last-child {
    border-right: 1px solid transparent;
    padding-right: 0;
}

[data-editable="menu"].type-menu01 li.selected a {
    color: #E1B07E;
}

/* [ Type 02 ] */
[data-editable="menu"].type-menu02 li a {
    padding: 4px 6px;
    background-color: #AFAFAF;
    border-radius: 4px;
}

[data-editable="menu"].type-menu02 li.selected a {
    background-color: #7B7B7B;
}

/* [ Type 03 ] */
[data-editable="menu"].type-menu03 li.selected {
    border-bottom: 2px solid #7B7B7B;
    padding-bottom: 2px;
}

/* [ Type 04 ] */
[data-editable="menu"].type-menu04 li {
    padding: 4px 6px;
    margin: 0;
    background-color: #AFAFAF;
}

[data-editable="menu"].type-menu04 li.selected {
    background-color: #7B7B7B;
}

[data-editable="menu"].type-menu04 li:first-child {
    padding-left: 10px;
    -webkit-border-bottom-left-radius: 10px;
       -webkit-border-top-left-radius: 10px;
        -moz-border-radius-bottomleft: 10px;
           -moz-border-radius-topleft: 10px;
            border-bottom-left-radius: 10px;
               border-top-left-radius: 10px;
}

[data-editable="menu"].type-menu04 li:last-child {
    padding-right: 10px;
    -webkit-border-bottom-right-radius: 10px;
       -webkit-border-top-right-radius: 10px;
        -moz-border-radius-bottomright: 10px;
           -moz-border-radius-topright: 10px;
            border-bottom-right-radius: 10px;
               border-top-right-radius: 10px;
}

[data-editable="webform"] .error:before {
    content: '';
    position: absolute;
    left: 16px;
    bottom: -2px;
    display: block;
    width: 0; 
    height: 0; 
    border-style: solid;
    border-color: transparent transparent #161616 transparent;
    border-width: 8px;
}

[data-editable="webform"] .error:after {
    content: attr(data-error-msg);
    position: absolute;
    top: 100%;
    top: calc(100% + 2px);
    left: 0;
    color: #ff4343;
    background: #161616;
    text-align: center;
    font-size: 12px;
    border-radius: 2px;
    padding: 2px 7px;
    z-index: 2;
}

[data-editable="video"] > iframe {
    width: 100% !important;
    height: 100% !important;
}

/*----------------------------- 
    @MEDIA
-----------------------------*/
@media all and (max-width: 768px) {
    body,
    section,
    section > div,
    [data-editable="text"] > div,
    [data-section="wrap"], 
    [data-editable] {
        -webkit-box-sizing: border-box;
           -moz-box-sizing: border-box;
                box-sizing: border-box;
    }

    section {
        height: auto !important;
        /*background-size: 100% !important;*/
        background-repeat: no-repeat;
        overflow: visible !important;
    }

    [data-reverse="true"] {
        display: -webkit-box;
        display: box;
        -webkit-box-direction: reverse;
                box-direction: reverse;
        -webkit-box-orient: vertical;
                box-orient: vertical;

        display: -webkit-flex;
        display:    -moz-flex;
        display:     -ms-flex;
        display:      -o-flex;
        display:         flex;
        -webkit-flex-direction: column-reverse;
           -moz-flex-direction: column-reverse;
            -ms-flex-direction: column-reverse;
             -o-flex-direction: column-reverse;
                flex-direction: column-reverse;

        -webkit-justify-content: flex-end;
           -moz-justify-content: flex-end;
            -ms-justify-content: flex-end;
                justify-content: flex-end;
    }

    [data-editable="box"],
    [data-editable="boxCookieNotification"] {
        position: relative !important;
        top: auto;
        left: auto;
        margin: auto;
        /*display: -webkit-flex;
        display:    -moz-flex;
        display:     -ms-flex;
        display:      -o-flex;
        display:         flex;
        -webkit-flex-direction: column-reverse;
           -moz-flex-direction: column-reverse;
            -ms-flex-direction: column-reverse;
             -o-flex-direction: column-reverse;
                flex-direction: column-reverse;*/
    }

    [data-section="wrap"],
    [data-editable="webform"],
    [data-editable] {
        font-size: 100% !important;
        position: relative !important;
        top: 0 !important;
        left: auto !important;
        right: auto !important;
        margin: 0 auto !important;
        max-width: 480px !important;
        width: 100% !important;
        height: auto !important;
        /*display: table !important;*/
    }

    [data-editable="boxCookieNotification"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.4em;
    }

    [data-editable="text"] > div,
    [data-editable="button"] {
        padding: 4%;
    }

    [data-editable="button"] {
        padding-right: 0;
        padding-left: 0;
    }

    [data-editable="webform"],
    [data-editable="box"] {
        margin: 4% auto !important;
    }

    [data-section="wrap"] {
        padding: 4% 0;
    }

    [data-editable="multimedia:image"] {
        background-image: none !important;
        text-align: center;
    }

    [data-editable="multimedia:image"] img {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        margin: auto !important;
        top: auto;
        left: auto;
    }

    div[data-editable="webform"] form {
        width: auto !important;
        height: auto !important;
    }
    
    div[data-editable="webform"] .wf-item {
        text-align: center;
        position: relative !important;
        top: auto !important;
        margin: 0 auto !important;
    }    

    div[data-editable="webform"] .wf-item,
    div[data-editable="webform"] .wf-item .wf-item-pos {
        position: relative !important;
    }

    div[data-editable="webform"] .wf-item .wf-item-pos {
        left: auto !important;
        margin: 10px auto 0;
        display: inline-block;
        width: 100%;
    }

    div[data-editable="webform"] .wf-item.type-placeholder .wf-item-pos > div label {
        padding-top: 4px !important;
    }

    .image-mask {
        width: auto !important
    }

    div[data-editable="button"] button,
    [data-editable="buttonCookieNotification"] button {
        position: initial !important;
        height: auto !important;
    }

    [data-editable="buttonCookieNotification"] {
        max-width: 300px !important;
        height: auto !important;
        margin-top: 25px !important;
    }

    [data-editable="video"] {
        width: 480px !important;
        height: 360px !important;
    }

    /*[data-editable="box"] [data-editable] {
        display: inline-block !important;
        max-width: 100%;
        width: auto !important;
    }*/

    [data-editable="boxCookieNotification"] {
        position: fixed !important;
    }
}

@media all and (max-width: 600px) {
    [data-editable="video"] {
        width: 480px !important;
        height: 360px !important;
    }
}

@media all and (max-width: 480px) {
    div[data-editable="webform"] .wf-item .wf-item-pos > div {
        width: 100% !important;
        height: auto !important;
    }

    [data-editable="video"] {
        width: 360px !important;
        height: 270px !important;
    }
}

@media all and (max-width: 360px) {
    [data-editable="video"] {
        width: 330px !important;
        height: 233px !important;
    }
}

@media all and (max-width: 320px) {
    [data-section] {
        background-size: 100% !important;
    }

    [data-section="wrap"],
    [data-editable="webform"],
    [data-editable] {
        max-width: 290px !important;
    }

    [data-editable="video"] {
        width: 290px !important;
        height: 214px !important;
    }

    div[data-editable="webform"] {
        display: table;
    }
    
    /*[data-editable="text"] {
        text-align: center;
    }*/
}
