/*------------------------------------*\
    TEMPLATES GLOBAL
\*------------------------------------*/

a {
    color:#7f7f7f;
    text-decoration: none;
}

a:hover {
    color:#00ffe4;
}

div[data-editable="text"] ul,
div[data-editable="text"] ol {
    padding-left: 34px;
}

div[data-editable="text"] ol li,
div[data-editable="text"] ul li {
    margin: 6px 0;
}

/* [ Button container ] */
div[data-editable="button"],
div[data-editable="webinarButton"],
div[data-editable="webform"] button,
div[data-editable="webformNewButton"] button {
    border-radius: 5px;
    background-color:#e30c0c;
    color:white;
}

/* [ Button text ] */
div[data-editable="button"] button,
div[data-editable="webinarButton"] button,
div[data-editable="webform"] button,
div[data-editable="webformNewButton"] button {
    font-family: 'Roboto', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: white;
}

/* [ Button :hover ] */
div[data-editable="button"].hover,
div[data-editable="webinarButton"].hover,
div[data-editable="webform"] div[data-type="submit"].hover button,
[data-editable="webformNewButton"].hover button {
    background-color: #e30c0c;

}

div[data-editable="button"].hover button,
div[data-editable="webinarButton"].hover button,
div[data-editable="webform"] div[data-type="submit"].hover button,
[data-editable="webformNewButton"].hover button {
    color: #ffffff;
}

/* [ Base text ] */
div.text-content,
div[data-editable="webform"] label,
div[data-editable="webform"] input[type="text"],
div[data-editable="webform"] textarea,
div[data-editable="webform"] select,
div[data-editable="webformNew"] label,
div[data-editable="webformNew"] input[type="text"],
div[data-editable="webformNew"] textarea,
div[data-editable="webformNew"] select,
div[data-editable="webformNew"] .directional,
div[data-editable="webinarNew"] label,
div[data-editable="webinarNew"] input[type="text"],
div[data-editable="webinarNew"] textarea,
div[data-editable="webinarNew"] select,
div[data-editable="webinarNew"] .directional {
    font-size: 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: #373737;
    line-height: 1.3;
}

/* [ Webform text ] */
div[data-editable="webform"] label,
div[data-editable="webform"] input[type="text"],
div[data-editable="webform"] textarea,
div[data-editable="webform"] select,
div[data-editable="webformNew"] label,
div[data-editable="webformNew"] input[type="text"],
div[data-editable="webformNew"] textarea,
div[data-editable="webformNew"] select,
div[data-editable="webformNew"] .directional,
div[data-editable="webinarNew"] label,
div[data-editable="webinarNew"] input[type="text"],
div[data-editable="webinarNew"] textarea,
div[data-editable="webinarNew"] select,
div[data-editable="webinarNew"] .directional{
    font-family:'Roboto Medium', 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color:#1e2a37;
}

/* Style placeholder */
div[data-editable="webform"] label,
div[data-editable="webformNew"] label,
div[data-editable="webformNew"] select,
div[data-editable="webformNew"] .directional,
div[data-editable="webinarNew"] .directional {
    color:#000000;
}

[data-editable="webformNew"] [data-editable-item="label"] label {
    padding: 0;
}

div[data-editable="orderForm"] [data-editable="orderFormItem"] .input-style {
    padding:11px 10px 0 10px;
}

/* [ Webform inputs ] */
div[data-editable="webform"] input[type="text"],
div[data-editable="webform"] textarea,
div[data-editable="webform"] select,
div[data-editable="webformNew"] input[type="text"],
div[data-editable="webformNew"] [data-item-what="phone"] .fix-table-bug,
div[data-editable="webformNew"] textarea,
div[data-editable="webformNew"] select,
div[data-editable="webinarNew"] input[type="text"],
div[data-editable="webinarNew"] [data-item-what="phone"] .fix-table-bug,
div[data-editable="webinarNew"] textarea,
div[data-editable="webinarNew"] select,
div[data-editable="orderForm"] [data-editable="orderFormItem"] .input-style-container {
    border-radius: 0;
    background-color: #ffffff;
    border: 1px solid rgb(0, 0, 0);
    font-size: 14px;
}

div[data-editable="webformNew"] [data-item-what="phone"] input[type="text"],
div[data-editable="webinarNew"] [data-item-what="phone"] input[type="text"] {
    border:none;
}

div[data-editable="webformNew"] .directional::after {
    border-color: #989fa5 transparent transparent transparent;
}

[data-editable="webformNewItem"].opened .directional::after {
    border-color: transparent transparent #989fa5 transparent;
}

.custom-form [data-editable="webformNewItem"],
.custom-form [data-editable="webformNewButton"],
.custom-form [data-editable="webformNewItem"] [data-editable-item="label"],
.custom-form [data-editable="webformNewItem"] [data-editable-item="field"] {
    height: 55px;
}

.custom-form [data-editable="webformNewItem"][data-item-name="multi_checkbox"],
.custom-form [data-editable="webformNewItem"][data-item-name="multi_checkbox"] {
    height: auto;
}

.custom-form [data-editable="webformNewItem"] {
    width: 360px;
}

/* PRODUCT LIST */
[data-editable="productList"] .product-list-content {
    font-family: 'Roboto Medium', 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding-right: 2px;
}

[data-editable="productList"] .no-products {
    font-size: 14px;
    text-align: center;
    padding: 20px;
}
div[data-editable="productList"] [data-style-part="price"] {
    padding-left: 5px;
    color: #373737;
    font-weight: 700;
}
div[data-editable="productList"] [data-style-part="name"] {
    padding-left: 5px;
    color: #373737;
    font-weight: 700;
}

div[data-editable="productList"] .product-list-total-price {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #1e2a37;
    top: 5px;
}
div[data-editable="productList"] .product-list-summary {
    border-top: 2px dashed #e7e7e7;
}

div[data-editable="productList"] .product-list-content-cell,
div[data-editable="productList"] .product-list-content-cell label {
    vertical-align: middle;
}

div[data-editable="productList"] .product-list-content-cell

div[data-editable="productList"] .product-list-content-cell:nth-child(2) {
    padding-top: 2px;
    text-align: right;
}

/* PRODUCTS BOX */
/* Jak potrzeba cos ostylowac to mozna dodawac swoje atrybuty - niestety nie da sie dodac "class" bo sysytem je usuwa - nie wiem dlaczego */

[data-editable="productsBox"] [data-component-part="product-box"] {
    background-color: #ffffff;
    box-shadow: 0px 3px 73px 0px rgba(0, 0, 0, 0.03);
    border-radius: 5px;
    margin: 50px 0;
    box-sizing: border-box;
}
[data-editable="productsBox"] [data-dms-class="product-box-container"] {
    background-color: transparent;
}
/* Stylowanie textu */

[data-editable="productsBox"] [data-component-part="product-name"] .font-styles {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #000000;
    font-size:28px;
    line-height: 1.2;
}

[data-column-count="1"][data-editable="productsBox"] [data-component-part="product-name"],
[data-column-count="1"][data-editable="productsBox"] [data-component-part="product-description"],
[data-column-count="1"][data-editable="productsBox"] [data-component-part="product-price"] {
    text-align: left;
}

[data-editable="productsBox"] [data-component-part="product-description"] {
    text-align:center;
}

[data-editable="productsBox"] [data-component-part="product-description"] .font-styles {
    font-family: 'Roboto', sans-serif;
    font-weight: normal;
    color: #000000;
    font-size:17px;
    line-height: 1.3;
}

[data-editable="productsBox"] [data-component-part="product-price"] {
    text-align:center;
}

[data-editable="productsBox"] [data-component-part="product-price"] .font-styles {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #f62f37;
    font-size:40px;
    line-height: 1.2;
}

@supports (display: grid) {
    [data-editable="productsBox"] [data-component-part="product-logo"] {
        margin-bottom: 15px;
    }
    [data-editable="productsBox"] [data-component-part="product-name"] {
        margin-bottom: 10px;
    }
    [data-editable="productsBox"] [data-component-part="product-event-start-date"] {
        margin-bottom: 10px;
    }
    [data-editable="productsBox"] [data-component-part="product-description"] {
        margin-bottom: 9px;
    }
    [data-editable="productsBox"] [data-component-part="product-price"] {
        margin-bottom: 9px;
    }
    [data-editable="productsBox"] [data-component-part="product-delivery-token-title"] {
        margin-bottom: -4px;
    }
    [data-editable="productsBox"] [data-component-part="product-delivery-token"] {
        margin-bottom: 25px;
    }
    @media only screen and (min-width: 601px) {
        [data-column-count="1"][data-editable="productsBox"] [data-dms-class="product-box-container"] {
            padding: 31px 56px 56px;
        }
        [data-column-count="1"][data-editable="productsBox"] [data-component-part="product-name"] {
            text-align: left;
        }
        [data-column-count="1"][data-editable="productsBox"] [data-component-part="product-description"] {
            text-align: left;
        }
        [data-column-count="1"][data-editable="productsBox"] [data-component-part="product-price"] {
            text-align: right;
        }
        [data-column-count="1"]
        [data-editable="productsBox"] [data-component-part="product-join-the-webinar"],
        [data-editable="productsBox"] [data-component-part="product-link"],
        [data-column-count="1"][data-editable="productsBox"] [data-component-part="product-external-url"],
        [data-column-count="1"][data-editable="productsBox"] [data-component-part="product-internal-url"],
        [data-column-count="1"][data-editable="productsBox"] [data-component-part="product-instruction"] {
            margin: 0;
        }
    }
}

@supports (display: grid) {
    [data-editable="productsBox"] [data-dms-class="product-box-container"] {
        grid-template-areas:    "logo"
                                "name"
                                "date"
                                "description"
                                "price"
                                "token-label"
                                "token"
                                "button";
        grid-template-columns: auto;
        grid-template-rows: auto;
        justify-items: center;
    }
    [data-editable="productsBox"] [data-component-part="product-logo"] {
        grid-area: logo !important;
    }
    [data-editable="productsBox"] [data-component-part="product-name"] {
        grid-area: name !important;
    }
    [data-editable="productsBox"] [data-component-part="product-event-start-date"] {
        grid-area: date !important;
    }
    [data-editable="productsBox"] [data-component-part="product-description"] {
        grid-area: description !important;
    }
    [data-editable="productsBox"] [data-component-part="product-price"] {
        grid-area: price !important;
    }
    [data-editable="productsBox"] [data-component-part="product-delivery-token-title"] {
        grid-area: token-label !important;
    }
    [data-editable="productsBox"] [data-component-part="product-delivery-token"] {
        grid-area: token !important;
    }

    [data-editable="productsBox"] [data-component-part="product-join-the-webinar"],
    [data-editable="productsBox"] [data-component-part="product-link"],
    [data-editable="productsBox"] [data-component-part="product-external-url"],
    [data-editable="productsBox"] [data-component-part="product-internal-url"],
    [data-editable="productsBox"] [data-component-part="product-instruction"] {
        align-self: end;
    }

    [data-editable="productsBox"] [data-component-part="product-join-the-webinar"],
    [data-editable="productsBox"] [data-component-part="product-link"],
    [data-editable="productsBox"] [data-component-part="product-external-url"],
    [data-editable="productsBox"] [data-component-part="product-internal-url"],
    [data-editable="productsBox"] [data-component-part="product-instruction"] {
        grid-area: button !important;
    }

    [data-editable="productsBox"] [data-component-part="product-name"],
    [data-editable="productsBox"] [data-component-part="product-event-start-date"],
    [data-editable="productsBox"] [data-component-part="product-description"],
    [data-editable="productsBox"] [data-component-part="product-price"] {
        justify-self: stretch;
    }

    [data-editable="productsBox"] [data-component-part="product-join-the-webinar"],
    [data-editable="productsBox"] [data-component-part="product-link"],
    [data-editable="productsBox"] [data-component-part="product-external-url"],
    [data-editable="productsBox"] [data-component-part="product-internal-url"],
    [data-editable="productsBox"] [data-component-part="product-instruction"] {
        justify-self: stretch;
    }

    @media only screen and (min-width: 601px) {
        [data-column-count="1"][data-editable="productsBox"] [data-dms-class="product-box-container"] {
            grid-template-areas:    "logo name price"
                                    "logo date price"
                                    "logo description price"
                                    "logo token-label price"
                                    "logo token price"
                                    "logo button price" ;
            grid-template-columns: 200px 1fr auto;
            grid-template-rows: auto;
            justify-items: left;
            grid-gap: 0 28px;
        }
        [data-column-count="1"][data-editable="productsBox"] [data-component-part="product-logo"] {
            justify-self: start;
        }

        [data-editable="productsBox"] [data-component-part="product-join-the-webinar"],
        [data-editable="productsBox"] [data-component-part="product-link"],
        [data-editable="productsBox"] [data-component-part="product-external-url"],
        [data-editable="productsBox"] [data-component-part="product-internal-url"],
        [data-editable="productsBox"] [data-component-part="product-instruction"] {
            align-self: end;
        }
        [data-column-count="1"][data-editable="productsBox"] [data-component-part="product-join-the-webinar"],
        [data-column-count="1"][data-editable="productsBox"] [data-component-part="product-link"],
        [data-column-count="1"][data-editable="productsBox"] [data-component-part="product-external-url"],
        [data-column-count="1"][data-editable="productsBox"] [data-component-part="product-internal-url"],
        [data-column-count="1"][data-editable="productsBox"] [data-component-part="product-instruction"] {
            justify-self: start;
        }
    }
}

@supports (display: grid) {
    @media only screen and (min-width: 601px) {
        [data-column-count="1"][data-editable="productsBox"] [data-component-part="products-box-content"] {
            width: 100%;
        }
        [data-column-count="2"][data-editable="productsBox"] [data-component-part="products-box-content"],
        [data-column-count="3"][data-editable="productsBox"] [data-component-part="products-box-content"] {
            width: 1020px;
        }
    }
}