/*
Theme Name: ICS Web Facturacion
Version: 1.0
Description: Tema básico de ICS para la Web de auto Facturación
Author: ICS
Author URI: https://www.icssolution.com/
Template: storefront
 */

/* Variables */
:root {
    --header-height: 100px;
    --header-margin: 1rem;
    --home-font-size: 1rem;
}

/* Ponemos en el layout únicamente la columna principal (eliminamos el secondary)*/
#primary {
    width: 100%;
}
#secondary {
    display:none;
}

body {
    background-color: #f4f5f5 !important;
    font-weight: 300;
    font-family: "plex-sans","Helvetica Neue",Helvetica,Arial,"Microsoft YaHei","微软雅黑体","Hiragino Sans GB","冬青黑体",sans-serif;
    color: #2e3333 !important;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    line-height: normal;
}

h1, h2, h3, h4, h5, h6, .wc-block-grid__product-title {
    font-family: plex-sans,sans-serif;
    font-size: 16px;
    line-height: normal;
    color: #2e3333;
    /*color: #828585; */
}
.attachment-woocommerce_thumbnail{

}
li:before {
    content:'';
    display:inline-block;
    height:100%;
    vertical-align:middle;
}

.woocommerce-loop-category__title, .woocommerce-loop-product__title{
    position: relative;
    margin-bottom: auto;
    flex-grow: 1;
    text-align: left;
    width: calc(100% - 100px);
    float: left;
}

/** Posicionamiento de la imagen */
.woocommerce-LoopProduct-link>img {
    float: right;
    display:inline-block;
    vertical-align:middle;
    margin-right: 3px;
}
.ics-image-left>.woocommerce-LoopProduct-link>img {
    float: none;
}
.ics-image-left>.woocommerce-LoopProduct-link>.woocommerce-loop-product__title {
    float: right;
}
.ics-image-top>.woocommerce-LoopProduct-link>img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: auto;
    height: auto;
    padding-right: 15px;
    background-color: transparent;
    margin-bottom: 5px;
}
.ics-image-top>.woocommerce-LoopProduct-link>.woocommerce-loop-product__title {
    float: none;
    width: 100%;
}

li {
    height: 100%;
    margin-bottom: 0px !important;
    justify-content: center;
    text-align: center;
    background-color: white;
    border-bottom: none;
    border-top: solid 1px lightgray;
}
li.loop_category_name {
    width: 100%;
    height: 100%;
    justify-content: center;
    text-align: left;
    background-color: transparent;
    border-top: none;
    border-bottom: none;
    border-top: solid 1px lightgray;
    clear: both !important;
    padding-top: 10px;
    padding-bottom: 10px !important;
    font-weight: bold;
}
.woocommerce-LoopProduct-link .woocommerce-loop-product__link{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-self: stretch;
    padding-left: 15px;
}

ul.products {
    list-style: none;
}
.attachment-woocommerce_thumbnail {
    position: relative;
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    margin-top: 0;
    border-radius: 3px;
    background-position: center;
    background-color: #e8ebeb;
    background-size: cover;
}
a.button{
    font-weight: normal;
    border-radius: 6px;
}
a.wc-forward {
    border-radius: 6px;
}

/* Quitamos el borde de los a y buttons */
a:focus, button:focus {
    outline: none;
}

.product {

}
.woocommerce-LoopProduct-link{
    text-align: left;
    width:100%;
    padding-left: 15px;
}

button.menu-toggle {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #fff;
    border-radius: 4px;
    /* display: -webkit-box; */
    /* display: -webkit-flex; */
    display: -ms-flexbox;
    /* display: flex; */
    cursor: pointer;
    /* padding: 8px 16px; */
    line-height: 24px;
    margin: 8px 14px;
    text-decoration: none;
    color: #2e3333;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    border: 1px solid #e8ebeb;
    -webkit-transition-property: border,-webkit-box-shadow;
    transition-property: border,-webkit-box-shadow;
    transition-property: border,box-shadow;
    transition-property: border,box-shadow,-webkit-box-shadow;
    -webkit-transition-duration: .15s;
    transition-duration: .15s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}
.woocommerce-LoopProduct-link>.price {
    width: 80%;
    float: left;
    height: auto;
    display: inline-block;
    font-size: 16px;
}

.loop-short-description {
    color: #626262;
    font-size: 14px;
    font-family: plex-sans,sans-serif;
}

.woocommerce-error>li {
    background: none;
    border-top: none;
}

.display_none {
    display: none;
}

@media only screen and (min-width: 768px) {
    .ics_nav_div {
        display: flex;
        padding: 8px 24px 8px 0;
    }
    .ics_extra_category{
        display: none;
    }
}
@media only screen and (max-width: 768px) {
    .ics_nav_div {
        /*overflow-x: auto !important;*/
    }
    .ics_category_ul {
        overflow-x: auto !important;
        -ms-overflow-style: none;
    }
    .ics_category_ul::-webkit-scrollbar {
        display: none;
    }
    .ics_category_nav {
        padding-right: 20px;
        margin-left: 0px;
    }
    .ics_btn_extra_categories {
        display: none;
    }
}
.ics_nav_div {
    width: 100%;
    background-color: #FFFFFF;
    border-top: 1px solid #e8ebeb;
    border-bottom: 3px solid #e8ebeb;
    padding-top: 10px;
    padding-bottom: 10px;
}
.ics_nav_div_fixed {

}
.ics_category_nav, .ics_category_ul {
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    flex-direction: row;
    -webkit-box-flex: 1;
}

.ics_category_nav {
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    justify-content: space-between;
    flex: 1 1 auto;
    width: 100%;
    padding-left: 0px;
}

.ics_category_ul {
    flex-wrap: nowrap;
    overflow: hidden;
    flex: 1 1 auto;
    padding: 4px;
    list-style-type: none;
    margin: 0 !important;
}

.ics_category_ul > li {
    border-top: 0;
}

.ics_category_button {
    opacity: 1;
    white-space: nowrap;
    -webkit-transition-property: opacity;
    transition-property: opacity;
    -webkit-transition-duration: .1s;
    transition-duration: .1s;
    -webkit-transition-timing-function: ease-in-out;
    transition-timing-function: ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: none;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-flex;
    border: none;
    border-radius: 16px;
    margin: 0;
    padding: 2px 16px;
    line-height: 24px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    -webkit-transition-property: -webkit-box-shadow;
    transition-property: -webkit-box-shadow;
    transition-property: box-shadow;
    transition-property: box-shadow,-webkit-box-shadow;
    -webkit-transition-duration: .15s;
    transition-duration: .15s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
    touch-action: manipulation;
}

.ics_category_button_base:hover {
    opacity: 0.7;
    background-color: transparent !important;
}

.ics_category_button_selected {
    background-color: #00ccbc;
}
.ics_category_button_selected:hover {
    opacity: 0.7;
    background-color: #00ccbc;
}

.ics_category_button_span {
    font-family: plex-sans, sans-serif;
    margin: 0;
    font-weight: 400;
    -webkit-font-smoothing: subpixel-antialiased;
    font-size: 14px;
    line-height: 19px;
}

.ics_category_button_span_color {
    color: #00b8a9;
}

.ics_category_button_span_selected {
    color: #fff;
    font-weight: 600;
}
.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
}
.ics_category_button_span > i {
    margin-left: 5px;
}
.ics_dropdown_content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    margin-top: 5px;
}
.ics_dropdown_content_show{
    display: block;
}

.ics_extra_category_ul {
    flex-wrap: nowrap;
    overflow: hidden;
    flex: 1 1 auto;
    padding: 4px;
    list-style-type: none;
    margin: 0 !important;
}
.ics_extra_category_ul > li {
    border-top: 1px solid rgba(0,0,0,.08);
}

.ics_extra_category_ul > li:hover {
    background-color: #f9fafa;
}
.ics_highlight_button {
    box-shadow: 0 0 0 3px rgba(0,204,188,.3);
}
.ics_btn_extra_categories {
    margin-left: 20px;
}
.ics_category_button_span_dropdown_selected{
    font-weight: bold;
}

.display-name {
    display: inline !important;
}

.ics-basic-checkout-table>h1 {
    font-size: 1.5em;
    /*font-size: 32em;*/
}
.ics-basic-checkout-table>h2 {
    font-size: 1.4em;
    /*font-size: 2.4em;*/
}

/* Página de la carta, tenemos un posicionamiento especial */
.ics-carta>ul.products>li.product {
    width: 100% !important;
    border-top: none !important;
}
.ics-carta>ul.products>li.product:last-child, .ics-carta>ul.products>li.loop_category_name {
    border-bottom: solid 1px lightgray;
}
.ics-carta>ul.products>li.product>a {
    cursor: default !important;
}
.ics-carta>ul.products>li.product>a>h2 {
    float: left;
    width: calc(100% - 150px);
    margin-bottom: 0px;
}
.ics-carta>ul.products>li.product>a>h2>span.loop-short-description>p {
    margin-bottom: 0px;
}
.ics-carta>ul.products>li.product>a>span.price {
    width: 150px;
    text-align: right;
    padding-right: 15px;
    float: right;
    margin-bottom: 0px;
}
.componente-menu {
    padding-left: 25px;
}

.img-circle{
    border-radius:50%;
    width: 100%;
    height: 100%;
}
.bg-red{background-color:#ff4136}
.bg-blue{background-color:#357edd}
.bg-green{background-color:#19a974}
.status-container {
    height: 90px;
}
.status-container .wrapper {
    margin-left: auto;
    margin-right: auto;
    width: 700px;
}
.status-container .wrapper>div {
    width: 105px;
    height: 105px;
    float:left;
    display: inline-block;
    margin-right: 15px;
}
.status-container .legend {
    display: inline-block;
    width: 100%;
    margin-top: 40px;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    color: white;
}

#loaderImage {
    position: absolute;
    display: none;
}

div.m-select {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.1);
    border: solid 1px #5d5d5d;
    background-color: #ffffff;
    margin-bottom: 10px;
}
div.m-select select.category-selector {
    position: relative;
    font: 800 18px/1.67 'Open Sans', sans-serif;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #5d5d5d;
    width: 100%;
    transform: translateY(2px);
    -webkit-appearance: none;
    padding: 12px 18px;
    box-sizing: border-box;
    align-items: center;
    white-space: pre;
    -webkit-rtl-ordering: logical;
    letter-spacing: normal;
    word-spacing: normal;
    text-transform: none;
    text-indent: 0px;
    text-shadow: none;
    display: inline-block;
    text-align: start;
    -webkit-writing-mode: horizontal-tb !important;
    text-rendering: auto;
}
.m-select i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 23px;
    color: #5d5d5d;
}
.ics-product-label-combinations label {
    width: 100%;
    display: flex;
}
.modal {
    width: 100% !important;
}
.jquery-modal {
    z-index: 1000 !important;
}
.jquery-modal .ics-carta>ul.products>li.product:last-child, .ics-carta>ul.products>li.loop_category_name {
    border-bottom: none !important;
}
.storefront-primary-navigation {
    display: none;
}
header.site-header, header.entry-header {
    display: none;
}
.ics_web_header {
    justify-content: center;
}
.ics_web_header .container {
    padding: 2.5em 1.5em;
}
.ics_web_container {
    padding: 2.5em;
    background-color: #ffffff;
    border: 1px solid #d2d2d2;
}
.ics_web_header .row {
    display: flex;
    flex-wrap: wrap;
}
.header_logo {
    height: var(--header-height);
    width: auto;
    vertical-align: middle;
    float: left;
    margin: var(--header-margin) 0;
}
.ics_web_header h1{
    line-height: var(--header-height);
    /*margin: 20px 0 30px;*/
    white-space: nowrap;
    /*font-size: 2rem;*/
    font-size: 2.3em !important;
    color: #000000;
    margin: var(--header-margin);
    font-weight: bold;
}
.ics_web_container h2 {
    color: #000000;
    /*font-size: 1.5rem;*/
    font-size: 2.4rem;
    font-weight: bold;
}
.ics_web_container h3 {
    color: #000000;
    /*font-size: 1.2rem;*/
    font-size: 1.6rem;
    font-weight: bold;
}
.ics_web_container h4 {
    color: #000000;
    /*font-size: 1.2rem;*/
    font-size: 1.6rem;
}
.ics_web_container .form-group {
    margin-bottom: 1rem;
}
.ics_web_container .form-group label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 300;
}
.ics_web_container .form-group .form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}
.ics_web_container .input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}
.ics_web_container .input-group input:first-of-type {
    width: auto;
}
.ics_web_container .input-group input:nth-of-type(2) {
    width: 25px;
    padding: 0 0.5em;
}
.ics_web_container .invoice_types {
    list-style: none;
    display: flex;
    margin: 0;
}
.ics_web_container .invoice_types li {
    border: none;
    margin-right: 1rem;
}
.ics_web_container .invoice_types li input {
    vertical-align: top;
}
.ics_web_container .invoice_type_label {
    font-size: 1rem;
    font-weight: 300;
}
.ics_web_container .input-error {
    border: 1px solid red !important;
    color: red !important;
}
.ics_web_container .label-error {
    color: red;
}
.ics_web_container .col-label-invoice-type {
    color: red;
    display: none;
}
.ics_web_container .col-label-data {
    color: red;
    display: none;
}
@media screen and (min-width: 768px) {
    .ics_web_container form {
        padding: 1.5em 7.5em;
    }
}
@media screen and (max-width: 768px) {
    .ics_web_container form {
        padding: 0.5em;
    }
}

.site-footer {
    display: none;
}

#loader {
    /*display: none;*/
    visibility: hidden;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 120px;
    height: 120px;
    margin: -76px 0 0 -76px;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

/*@-webkit-keyframes spin {*/
/*    0% { -webkit-transform: rotate(0deg); }*/
/*    100% { -webkit-transform: rotate(360deg); }*/
/*}*/

/*@keyframes spin {*/
/*    0% { transform: rotate(0deg); }*/
/*    100% { transform: rotate(360deg); }*/
/*}*/

/* Add animation to "page content" */
body.page {
    /*position: relative;*/
    -webkit-animation-name: pagefade;
    -webkit-animation-duration: 1s;
    animation-name: pagefade;
    animation-duration: 1s
}

@-webkit-keyframes pagefade {
    from { bottom:-100px; opacity:0 }
    to { bottom:0px; opacity:1 }
}

@keyframes pagefade {
    from{ bottom:-100px; opacity:0 }
    to{ bottom:0; opacity:1 }
}
#ics_loader {
    position:fixed;
    width:100%;
    left:0;right:0;top:0;bottom:0;
    background-color: rgba(255,255,255,0.5);
    z-index:9999;
    display:none;
}

@-webkit-keyframes spin {
    from {-webkit-transform:rotate(0deg);}
    to {-webkit-transform:rotate(360deg);}
}

@keyframes spin {
    from {transform:rotate(0deg);}
    to {transform:rotate(360deg);}
}

#ics_loader::after {
    content:'';
    display:block;
    position:absolute;
    left:45%;top:45%;
    width:50px;height:50px;
    border-style:solid;
    /*border-color:black;*/
    border-color: var(--theme-background-color);
    border-top-color:transparent;
    border-width: 4px;
    border-radius:50%;
    -webkit-animation: spin .8s linear infinite;
    animation: spin .8s linear infinite;
}
#btn-submit {
    background-color: var(--theme-background-color);
    color: var(--theme-font-color);
}
body.privacy-policy .entry-content {
    text-align: left;
}
body.privacy-policy h1 {
    margin-top: 3em;
    font-size: 35px;
    color: #333;
    padding-bottom: 10px;
    line-height: 1em;
    font-weight: 500;
}
body.privacy-policy ol {
    list-style-type: decimal;
    list-style-position: inside;
    padding: 0 0 23px;
    line-height: 26px;
    margin: 0;
}
body.privacy-policy ol li {
    text-align: left;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    vertical-align: baseline;
    background: transparent;
}
body.privacy-policy ol li strong {
    font-weight: 700;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    vertical-align: baseline;
    background: transparent;
}
body.privacy-policy p {
    margin: 0;
    padding: 0;
    padding-bottom: 1em;
    border: 0;
    outline: 0;
    font-size: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    vertical-align: baseline;
    background: transparent;
}
body.privacy-policy {

}
