/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.

    Created on : 12-may-2017, 8:42:40
    Author     : Tatiana
        Restaurar copia a mano:15-05-17
*/
@import  'colores';
@import 'funciones';
@import 'ficha_conf';

#order-opc h1#cart_title {
    font-size: 16px;
    font-weight: bold;
    color: $gris_chocolate;
    text-transform: uppercase;
}
#cart_title.page-heading{
    font-size: 16px;
    font-weight: bold;
    color: $gris_chocolate;
    text-transform: uppercase;
}
.page-heading span.heading-counter {
    color: $secundario;
    float: right;
    font-size: 18px;
    text-transform: none;
}

.table-responsive{
    overflow: auto;
    width: 100%;
}


div#columns {
    margin: 15px auto;
}
h1.page-heading.step-num {
    color: $colorDelDemonio;
}
.text-center, #cart_summary thead th.cart_product, #cart_summary tbody td.cart_product, #cart_summary tbody td.cart_avail, #cart_summary tbody td.cart_delete {
    text-align: center;
}
#cart_summary thead th {
    padding: 7px 8px 9px 8px;
    font-size: 16px;
}

#cart_voucher {
    padding: 10px 10px 56px;
    position: relative;
}
.cart_navigation {
    margin: 15px 0 20px 0;
}

#cart_voucher .cart_navigation {
    border-bottom: 1px solid $gris_bordes;
    bottom: -1px;
    left: 0;
    margin-bottom: 0;
    padding: 0 10px 10px;
    position: absolute;
    width: 100%;
}
.cart_navigation .button-exclusive {
    background: none repeat scroll 0 0 $secundario;
    border: medium none;
    color: $blanco;
    font-size: 16px;
    padding: 7px 15px;
    &:hover{
        background-color: $primarioHover;
        color: $blanco !important;
    }
}


#cart_summary tfoot td.text-right, #cart_summary tfoot tbody td.cart_unit, #cart_summary tbody tfoot td.cart_unit, #cart_summary tfoot tbody td.cart_total, #cart_summary tbody tfoot td.cart_total {
    font-weight: bold;
    color: $colorDelDemonio;
}

#cart_summary tfoot td.total_price_container span {
    font: 600 18px/22px $fuente2;
    font-style: normal;
    font-variant-ligatures: normal;
    font-variant-caps: normal;
    font-variant-numeric: normal;
    font-weight: 600;
    font-stretch: normal;
    font-size: 18px;
    line-height: 22px;
    font-family: $fuente2;
    color: $grisTexto;
    text-transform: uppercase;
}
#cart_summary tfoot td.total_price_container span {
    color: $negro_claro;
    text-transform: uppercase;
}
#cart_summary tfoot td#total_price_container {
    color: $precio_total_final;
    font-weight: bold;
    background: $blanco;
    font:600 21px/25px "Open Sans",sans-serif;
}

/****lineas cesta***/
#cart_summary tbody td.cart_product {
    padding: 7px;
    width: 137px; 
    a {
        display: block;
        img {
            height: 100%;
            width: auto;
            margin: 4px;
        }
    }
}
.product-name {
    color: $gris_chocolate;
    display: block;
    font-size: 12px;
    line-height: 12px;
    margin-bottom: 0;
    padding: 17px 40px 0 24px;
    a {
        font-size: 14px;
        line-height: 1;
        color: $negro_claro;
    }
}
#cart_summary tbody td.cart_description small {
    display: block;
    font-size: 14px;
    padding: 5px 0 0 0;
}
#cart_summary tbody td.cart_avail {
    width: 1%;
    label{
        width: 100%;
        @include borderRadius(0);
    }
}
.table tbody > tr > td.cart_quantity .cart_quantity_button {
    margin-top: 3px;
}

.table tbody > tr > td.cart_quantity .cart_quantity_button a {
    float: left;
    margin-right: 3px;
}
.table tbody > tr > td.cart_quantity .cart_quantity_button a  a {
    margin-right: 0;
}
.form-control {
    display: block;
    width: 100%;
    height: 32px;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.42857;
    color: $gris_oscuro;
    vertical-align: middle;
    background-color: $blanco;
    border: 1px solid $gris_bordes;
    border-radius: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    -webkit-transition: border-color ease-in-out 0.15s,box-shadow ease-in-out 0.15s;
    transition: border-color ease-in-out 0.15s,box-shadow ease-in-out 0.15s;
}

.form-control.grey {
    background: $blancoRoto;
}
#order-opc .form-control:not(textarea) {
    border: 1px solid $gris_bordes;
    height: 38px;
}
#cart_summary tbody td.cart_avail span {
    white-space: nowrap;
}
td.cart_delete.text-center{
    .linea_cesta_borrar{
        a{
            font-size:0;
            color: $colorDelDemonio;
            &:hover{
                color: silver;
            }
            &:after{
                content:"\e020";
                font-size: 21px;
                font-family: $fuente_iconos;
            }
        }
    }
}
.text-right, #cart_summary tbody td.cart_unit, #cart_summary tbody td.cart_total {
    text-align: right;
}
.price {
    font-size: 12px;
    color:$precio_cesta;
    font-weight: bold;
    white-space: nowrap;
}
.cart_unit ul li {
    display: inline-block;
    margin-left: 10px;
}
.old-price {
    color: $colorDelDemonio;
    display: inline-block;
    padding-left: 24px;
    float: left;
    font-size: 11px;
    margin-right: 9px;
    text-decoration: line-through;
}
.bt_cod_desc{
    display: block;
}

/**** login  ***/
div#login_for_cesta p.submit button{
    background: none repeat scroll 0 0 $primarioHover;
    border: medium none;
    color: $blanco;
    font-size: 16px;
    padding: 7px 15px;
    &:hover{
        background-color: $primarioHover;
        color:$blanco !important;
    }
}
.no_sesion.col-md-6{
    a{
        color:red;
    }
    p.lost_password.form-group{
        a{
            color:$colorDelDemonio;
        }
    }
    label{
        font-weight: normal;
    }
}

form.registro_simple {
    margin-bottom: 30px;
    float: left;
    label {
        font-weight: normal;
        font-size: 13px;
        margin-top: 16px;
        margin-bottom: 0;
        display: block;
    }
    input {
        margin-top: 15px;
        display: block;
        width: 100%;
        border: 1px solid $gris_bordes;
        height: 38px;
        padding: 3px 5px;
        box-shadow: none;
        line-height: 1.42857;
        color: $gris_oscuro;
        vertical-align: middle;
        background-color: $blanco;
        font-size: 13px;
    }
    input[type="checkbox"] {
        width: auto;
        display: inline-block;
    }
    .box_condiciones label {
        display: inline-block;
        vertical-align: middle;
    }
}
fieldset.botones_form_edicion {
    float: left;
    width:100%;
    a {
        display: none;
    }
    input{
        background: none repeat scroll 0 0 $primarioHover;
        border: medium none;
        color: $blanco;
        width:auto;
        font-size: 16px;
        padding: 7px 15px;
        &:hover{
            background-color: $primarioHover;
            color:$blanco !important;
        }
    }
    p.error_registro {
        display: none;
    }
}
form.form_tipo_envio label{
    font-weight: normal;
}

form.form_observaciones{
    label{
        font-weight: normal;
        display: block;
    }
    textarea {
        display: block;
        width: 100%;
        resize: none;
        border: 1px solid $gris;
    }
    ::-webkit-input-placeholder { /* WebKit, Blink, Edge */
        font-size: 0;
    }
    :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
        font-size: 0;
    }
    ::-moz-placeholder { /* Mozilla Firefox 19 */
        font-size: 0;
    }
    :-ms-input-placeholder { /* Internet Explorer 10-11 */
        font-size: 0;
    }
}

.lineas_direcciones_envio{
    display: none;

}
.direcciones_cesta{
    .box {
        border: 1px solid $gris_borde_subtitulo;
        box-shadow: 0 0 0 1px $blanco inset;
        -webkit-box-shadow: 0 0 0 1px $blanco inset;
        -moz-box-shadow: 0 0 0 1px $blanco inset;
        line-height: 23px;
        margin: 0 0 30px;
        padding: 14px 18px 13px;
        input, input ~ label, textarea, textarea ~ label{
            width: 100%; 
            resize: none;
            display:block;
            &:read-only{
                display: none;
            }
        }
        .botones_mod_borrar_direccion_envio input{
            width: auto;
        }
        .guardar_modificaciones_direccion_envio{
            display:none;
            input{
                width: auto;
            }
        }

        p.aclaracion_direcciones {
            position: absolute;
            text-align: right;
            margin: 0;
            font-size: 0.7em;
            right: 34px;
            width: 55%;
            line-height: 1;
        }
    }
    input[type=button], #addresses input[type=submit], a.boton{
        background: $secundario none repeat scroll 0 0;
        border: 0 none;
        color: $blanco;
        font-size: 14px;
        display: inline-block;
        margin: 15px 0;
        font-weight: normal;
        padding: 3px 15px;
        -moz-border-radius: 0;
        -webkit-border-radius: 0;
        border-radius: 0;
        transition: all 0.3s ease-in-out 0s;
        -webkit-transition: all 0.3s ease-in-out 0s;
        -ms-transition: all 0.3s ease-in-out 0s;
        &:hover{
            background-color:  $primario;
            color:$blanco !important;
        }
        &:after{
            content:"\e080";

            font-family: $fuente_iconos;

        }
    }
}
.formulario_nueva_direccion{
    display:none;
    float: left;
    form.nueva_direccion_envio{
        border: 1px solid $gris_borde_subtitulo;
        box-shadow: 0 0 0 1px $blanco inset;
        -webkit-box-shadow: 0 0 0 1px $blanco inset;
        -moz-box-shadow: 0 0 0 1px $blanco inset;
        line-height: 23px;
        margin: 0 0 30px;
        padding: 14px 18px 13px;
        input, input ~ label, textarea, textarea ~ label{
            width: 100%; 
            resize: none;
            font-weight: normal;
            display:block;
            &:read-only{
                display: none;
            }
        }
        .botones_mod_borrar_direccion_envio input{
            width: auto;
        }
        input[type=button], input[type=submit], a.boton{
            background: $secundario none repeat scroll 0 0;
            border: 0 none;
            color: $blanco;
            font-size: 14px;
            display: inline-block;
            width: auto;
            font-weight: normal;
            padding: 3px 15px;
            -moz-border-radius: 0;
            -webkit-border-radius: 0;
            border-radius: 0;
            transition: all 0.3s ease-in-out 0s;
            -webkit-transition: all 0.3s ease-in-out 0s;
            -ms-transition: all 0.3s ease-in-out 0s;
            &:hover{
                background-color:  $primario;
                color:$blanco !important;
            }
            &:after{
                content:"\e080";

                font-family: $fuente_iconos;

            }
        }



    }
}

div#uniform-cgv {
    float: left;
    margin-right: 5px;
}

@media (max-width: 768px){

    .table-responsive {
        width: 100%;
        margin-bottom: 15px;
        overflow-y: hidden;
        overflow-x: scroll;
        border: 1px solid $gris;
    }
    .table-responsive > .table {
        margin-bottom: 0;
        background-color: $blanco;
        border: 0;
    }
    #order-detail-content #cart_summary table, #order-detail-content #cart_summary thead, #order-detail-content #cart_summary tbody, #order-detail-content #cart_summary th, #order-detail-content #cart_summary td, #order-detail-content #cart_summary tr {
        display: block;
    }
    #order-detail-content #cart_summary tr {
        border-bottom: 1px solid $gris;
        padding-bottom: 7px;
        overflow: hidden;
        position: relative;
    }
    #order-detail-content #cart_summary thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    #order-detail-content #cart_summary td {
        border: none;
        position: relative;
        float: left;
        white-space: normal;
        padding: 7px 20px 7px 20px;
    }
    #order-detail-content #cart_summary tfoot td {
        float: none;
        width: 100%;
    }
    #order-detail-content #cart_summary td:before {
        content: attr(data-title);
        font-weight: bold;
        display: block;
    }
    #order-detail-content #cart_summary tfoot td:before {
        display: inline;
    }
    #order-opc #cart_voucher .cart_navigation {
        position: relative;
    }
    #order-detail-content #cart_summary tfoot tr .text-right, #order-detail-content #cart_summary tfoot tr tbody td.cart_unit, #order-detail-content #cart_summary tbody tfoot tr td.cart_unit, #order-detail-content #cart_summary tfoot tr tbody td.cart_total, #order-detail-content #cart_summary tbody tfoot tr td.cart_total, #order-detail-content #cart_summary tfoot tr .price {
        display: block;
        float: left;
        width: 50%;
    }
    #order-detail-content #cart_summary td.cart_product {
        text-align: left;
    }
    #order-detail-content #cart_summary tbody td.cart_description {
        width: 300px;
    }
    #order-detail-content #cart_summary td.cart_avail {
        display: none;
    }
    #order-detail-content #cart_summary td.cart_unit {
        width: 33%;
        text-align: right;
        min-height: 70px;
        clear: both;
    }
    .cart_unit ul li {
        display: block;
    }
    #order-detail-content #cart_summary td.cart_unit .price {
        text-align: right;
    }
    #order-detail-content #cart_summary td.cart_quantity {
        width: 33%;
        min-height: 70px;
        border-left: 1px solid $gris;
        border-right: 1px solid $gris;
    }

    #order-detail-content #cart_summary td.cart_quantity > .form-control {
        display: inline;
    }
    #order-detail-content #cart_summary td.cart_quantity div {
        display: block;
    }
    #order-detail-content #cart_summary td.cart_quantity > .cart_quantity_button a {
        margin-right: 0;
        float: none;
    }
    #order-detail-content #cart_summary td.cart_delete {
        position: absolute;
        right: 20px;
        top: 7px;
    }
    #order-detail-content #cart_summary td.cart_delete:before {
        content: '' !important;
    }
    #order-detail-content #cart_summary td div {
        display: inline;
    }
    #order-detail-content #cart_summary td.cart_total {
        width: 33%;
        min-height: 70px;
        text-align: right;
    }
    #order-detail-content #cart_summary tbody td .price {
        text-align: center;
    }
    #order-opc #cart_voucher .cart_navigation {
        position: relative;
    }
}
.page-heading.step-num span {
    font-size: 30px;
    font-style: normal;
    left: 5px;
    line-height: 1;
    position: absolute;
    top: -5px;
    color: $colorDelDemonio;
    font-weight: bold;
}
.page-heading.step-num {
    position: relative;
    padding-left: 25px;
    overflow: visible;
}

.delivery_option > div > table.resume td.delivery_option_radio, .delivery_option > div > table.resume td.delivery_option_radio {
    width: 54px;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}
div.radio {
    margin-right: 3px;
    position: relative;
    display: inline;
}
div.radio, div.radio span, div.radio input {
    width: 13px;
    height: 13px;

}

div.radio span {
    position: relative;
    top: -2px;
    display: -moz-inline-box;
    display: inline-block;
    zoom: 1;
    text-align: center;
    background-position: 0 -243px;
    background-image: url(../images/sprite.png);
    background-repeat: no-repeat;
    -webkit-font-smoothing: antialiased;
}
div.radio span.checked {
    background-position: -13px -243px;
}
div.radio span.unchecked {
    background-position: 0px -243px;
}
.radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] {
    margin: 0 0 0 -6px!important;
    float: left;
    margin-left: -20px;
}
div.radio input {
    opacity: 0;
    filter: alpha(opacity=0);
    -moz-opacity: 0;
    border: none;
    background: none;
    display: -moz-inline-box;
    display: inline-block;
    zoom: 1;
    text-align: center;
    cursor: pointer;
}

.delivery_option > div > table.resume td.delivery_option_logo, .delivery_option > div > table.resume td.delivery_option_logo {
    width: 97px;
    padding-left: 21px;
}
.delivery_option > div > table.resume td.delivery_option_price, .delivery_option > div > table.resume td.delivery_option_price {
    width: 162px;
}
.delivery_option.item table{
    color: $colorDelDemonio;
}
.cod_pedido.col-md-12{
    font-size: 33px;
    margin-top: 18px;
    margin-bottom: 25px;
    color: $colorDelDemonio;
    @media(max-width: 499px){
        text-align: center;
    }
}
.border-direc{
    border: 1px solid $gris_borde_subtitulo;
    box-shadow: 0 0 0 1px $blanco inset;
    -webkit-box-shadow: 0 0 0 1px $blanco inset;
    -moz-box-shadow: 0 0 0 1px $blanco inset;
    line-height: 23px;
    margin: 0 0 30px;
    padding: 14px 18px 13px;
    .page-subheading {
        border-bottom: 1px solid $gris_borde_subtitulo;
        box-shadow: 0 1px rgba(255,255,255,1);
        color: $gris_chocolate;
        font-size: 20px;
        line-height: normal;
        margin-bottom: 12px;
        padding: 0 0 15px;
        display: block;
        text-transform: uppercase;
    }
}

.contenedor_dEnvio{
    span{
        display:block;
    }

}
.cabecera_facturacion{
    display:none;
}

.cab_pedido{
    .datos_cliente,.tipo_envio,.forma_pago{
        & > div{
            border: 1px solid $gris_borde_subtitulo;
            box-shadow: 0 0 0 1px $blanco inset;
            -webkit-box-shadow: 0 0 0 1px $blanco inset;
            -moz-box-shadow: 0 0 0 1px $blanco inset;
            line-height: 23px;
            margin: 0 0 30px;
            padding: 14px 18px 13px;
            .nombre_forma_pago, .nombre_tipo_envio{
                border-bottom: 1px solid $gris_borde_subtitulo;
                box-shadow: 0 1px rgba(255,255,255,1);
                color: $gris_chocolate;
                font-size: 20px;
                line-height: normal;
                margin-bottom: 12px;
                padding: 0 0 15px;
                display: block;
                text-transform: uppercase;
            }
        }

    }

    .datos_cliente{
        font-size: 16px;
    }
    .tipo_envio, .forma_pago{
        strong{
            display: block;
        }
    }
}

.cesta_comprada{

    .table{
        border:none;
        .cart_product{
            text-align: center;
            flex: 1 1 3%;
            figure{
                img{
                    max-width: 100%;
                    height: auto;
                }
            }
        }
        .cart_description{
            text-align: left;
            flex: 1 1 65%;
        }
        .cart_unit{
            flex: 1 1 10%;
        }
        .cart_quantity{
            flex: 1 1 20%;
        }
        .cart_total{
            flex: 1 1 1%;
            text-align: right;
        }
        .cabecera-tabla{
            border-bottom:2px solid $gris;
            display: flex;
            align-items: center;
            align-content: space-between;
            flex-wrap: wrap;
            font-size: 18px;
            @media(max-width: 767px){
                display:none;
            }
            .product-info{
                display:flex;
                align-items: center;
                flex: 1 1 50%;
                .producto{
                    margin-left: 40px;
                }
            }
            .product-buy-detail{
                display:flex;
                align-items: center;
                flex: 1 1 50%;
            }
            div{
                border:none;
                background: $blancoRoto;
                border-bottom-width: 1px;
                color: $colorDelDemonio;
                vertical-align: middle;
            }
        }
        .cuerpo-tabla{
            .cart_item{
                border-bottom: 1px solid $gris;
                padding:0px;
                display: flex;
                align-items: center;
                align-content: space-between;
                flex-wrap: wrap;

                .product-info{
                    display:flex;
                    align-items: center;
                    flex: 1 1 50%;
                    .cart_product{
                        padding: 10px;
                        width: 115px;
                    }
                }
                .product-buy-detail{
                    display:flex;
                    align-items: center;
                    flex: 1 1 50%;
                }
                div{
                    border:none;
                    vertical-align: middle;
                    .product-name{
                        padding: 0px;
                        display: block;
                        width:100%;
                        a{
                            font-weight: 500;
                            font-size:18px;
                        }
                    }
                }
                .cart_quantity .cart_quantity_input {
                    height: 27px;
                    line-height: 27px;
                    padding: 0;
                    text-align: center;
                    width: 57px;
                }
            }
        }
        .pie-tabla{
            .text-right{
                text-align: right;
                font-size: 18px;
                width: 200px;
                text-align: left;
            }
            .lpt{
                background:none;
                text-align: right;
                div{
                    border:none;
                    display: inline-block;
                }
                .price{
                    font-size: 18px;
                    text-align: right;
                    color: $primario;
                    font-weight: bold;
                    white-space: nowrap;
                    width: 90px;
                }
            }
            .total_price_container{
                span, div{
                    font-size:20px;
                }

            }
        }
        .cart-total{
            font-size: 18px;
        }
        .price{
            font-size: 18px;
        }
        .text-center{
            text-align: -webkit-center;
        }
    }
}
/// Lotes
.texto_cabecera.cabecera_lote {
    font-size: 1.2em;
    padding: 8px 12px;
    background: $secundario;
    overflow: hidden;
    color: $primario;
}
.texto_cabecera.totales_lote{
    border-bottom:2px solid $blanco;
    background: $secundario;
    padding: 8px 12px;
    font-size:1.2em;
    overflow: hidden;

    strong {
        float: right;
        margin-right: 2px;
    }
}
.linea_cesta_lote .cart_item{
    border-left: 10px solid $secundario;

}

.botones_pie{
    float:right;
    .boton{
        padding: 12px 30px;
        i.mdi.mdi-printer{
            margin-right: 5px; 
        }
    }
    @media(max-width: 499px){
        float:none;
    }
}
@media print{
    body{
        top: 0;
        margin:0;
        padding:0;
    }
    main{
        min-height: auto;
        margin:0;
        padding:0;

    }

    header#sticky_top {
    position: relative;
    }
    .cabecera_facturacion{
        display:block;
        position: absolute;
        top:120px;
        p{
            text-align: center;
            margin-bottom: 4px;
        }
    }
    .botones_pie{
        display:none;
    }
    footer, .content-top-br, header #hSuperior,header .nav, header .field-search, header .telefonos, header #contenedorNav{
        display: none;
    }
    header .busquedaCesta #sticky_top{
        display: none;
    }
    .cod_pedido{
        position: absolute;
        top: 0px;
        right: 19px;
    }
    .tipo_envio{
        position: absolute;
        top: 275px;
        left: 0px;
        width: 33%;

    }
    .datos_cliente{
        position: absolute;
        right: 0;
        top: 275px;
        width: 67%;

    }
    .forma_pago{
        position: absolute;
        top: 100px;
        right: 0px;
        width: 50%;
    }
    .cesta_comprada{
        margin-top: 450px;
        .cart_unit{
            text-align: center;
            .text-right{
                text-align: center;
            }
        }
        .cart_total_price, .cart_total_delivery, .cart_total_voucher{
            .text-right{
                text-align: left;
            }
        }
    }
    a:link:after, a:visited:after {  
        display: none;
        content: "";    
    }
    .linea_cesta_lote{
        background: $blanco;
    }
    header #search_block_top{
        height: 133px;
        display: block;
    }
}



