/* Signgature */
body, canvas, div, form, input {
    margin: 0;
    padding: 0;
}
#wrapperSign {
    width: 100%;
    padding: 1px;
}
canvas {
    position: relative;
    margin: 1px;
    margin-left: 0px;
    border: 1px solid #3a87ad;
}
h1, p {
    padding-left: 2px;
    width: 100%;
    margin: 0 auto;
}
#controlPanel {
    margin: 2px;
}
#saveSignature {
    display: none;
}
#canvas{
    display: flex;
    justify-content: center;
}

/* General */
* {
    margin: 0;
    /*padding: 0;*/
    box-sizing: border-box;
}

.row{
    margin-left: 0;
    margin-right: 0;
}

label{
    margin-bottom: 0;
}

input[type="checkbox"]{
    margin: 0;
}

.disable-dbl-tap-zoom{
    touch-action: none;
}

.w-100{
    width: 100%;
}

/* Typography */
.subtitle{
    font-size: 20px;
}

.text__big{
    font-size: 16px;
}

.prod__varianti__wrapper{
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.arrow__varianti{
    transition: transform .3s linear;
}

.upside__down{
    transform: rotate(180deg);
}


.wrapperApp{
    width: 100%; 
    background-color: #f0f0f0; 
    min-height: calc( 100vh - 64px);
    padding: 10px;
}

.wrapperSection{
    max-width: 600px;
    margin: 0 auto;
}

.wrapperSection__down{
    position: sticky;
    bottom: 30px;
}

.wrapperSection__footer{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wrapperSection__footer p{
    text-align: center;
}

.wrapperSection__footer .logo__dnatasting{
    height: 50px;
}


.message__text__bottom{
    font-size: 11px;
    padding: 2px 4px;
    color: #FFFFFF;
    background-color: var(--first-color);
}

.button__wrapper{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 10px 5px 10px;
    margin-bottom: 15px;
}

.logo__azienda{
    max-width: 100px;
}

.logo__azienda img{
    width: 100%;
    object-fit: contain;
}

.dropdown-menu{
    min-width: 45px;
}

.lang__descr{
    text-transform: capitalize;
}

.title__sezione {
    font-weight: 700;
    color: var(--first-color);
    padding-top: 10px;
    padding-bottom: 10px;
}

.card__wrapper{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.card__item{
    width: 100%;
    padding: 0 15px;
    margin-bottom: 15px;
   
}

@media screen and (min-width: 575.98px) {
    .card__item {
        width: 50%;
    }
}
.card__img{
   /*  width: 100%; */
    position: relative;
}
.card__img img{
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #FFFFFF;
    -webkit-box-shadow: 2px 2px 16px 5px rgba(0,0,0,0.17); 
    box-shadow: 2px 2px 16px 5px rgba(0,0,0,0.17);
}

.card__title{
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%, -99%);
    background-color: #ffffffca;
    padding: 3px 8px;
    border-radius: 3px;
    color: #000000; 
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.prod__container{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prod__details{
    display: flex;
    justify-content: flex-start;
    padding: 8px 10px;
    margin-bottom: 6px;
}

.prod__details__photo{
    margin-right: 15px;
    height: 125px;
    width: 60px;
}

.prod__details__photo img{
    object-fit: cover;
    object-position: center;
    width: 100%;
    aspect-ratio: 1/2;
}

.prod__details__text{
    max-width: 65%;
}


.prod__varianti{
    padding-left: 20px;
}

.prod__prezzo .prezzoBarrato{
    text-decoration: line-through;
    font-size: 11px;
}

.gestione__qta{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color:  var(--first-color);
    color:#FFFFFF;
    border-radius: 15px;
}

.gestione__qta .button{ 
    background-color: var(--first-color);;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    transition: background-color .2s ease-in-out;
}

.gestione__qta .button:hover{ 
    background-color: rgba(0,0,0,0.3);
}


.qta__number{
    width: 40px;
    text-align: center;
}


.prodotto__wineclub{
    display: flex;
    justify-content: center;
    color:#000000;
    font-weight: 700;
    border-radius: 15px;
    min-width: 104px;
}

.prodotto__wineclub .etichetta__wineclub{
    padding: 8px 15px;
}

.prodotto__wineclub .etichetta__wineclub_logo{
    padding-bottom: 4px;
    height: 80px;
    text-align: center;
}

.prodotto__wineclub .etichetta__wineclub_logo img{
    height: 100%;
    max-width: 100%;
    width: auto;
}

.prodotto__wineclub .etichetta__wineclub__escl{
    font-size: 10px;
    text-align: center;
}

@media screen and (min-width: 575.98px) {
    .prod__details__text{
        max-width: 100%;
    }
}

/******* Bottoni *********/

.lang__select a{
    text-decoration: none;
    color: #000000 !important;
}

.button{
    border: none;
    border-radius: 3px;
}

.button__back{
    background-color: #da5f01;
    color:#FFFFFF;
    padding: 7px 15px;
    transition: background-color .2s ease-in-out;
}

.button__back:hover{
    background-color: #9d4501;

}

.button__cart{
    background-color: #ffd503;
    color: #000000;
    font-weight: 600;
    width: 100%;
    padding: 6px 10px;
    transition: background-color .2s ease-in-out;
    -webkit-box-shadow: 5px 8px 8px 0px #979797; 
    box-shadow: 5px 8px 8px 0px #979797;
}

.button__cart:hover{
    background-color: #a58a00;
}


.wrapperSection__down {
    max-width: 600px; 
    width: 100%; 
    background-color: #fff; 
    margin:0 auto;
    padding: 10px;    
    overflow: auto;
}

/******* Menu *********/
#sezionesceltamenu{
    max-width: 600px; 
    width: 100%; 
    background-color: #fff; 
    margin:0 auto;
    padding: 10px;    
    overflow: auto;
}

#sezionesceltamenu .title_sezione {
    font-weight: 700;
    font-size: 17px;
    color: #C45500;
    padding-top: 10px;
    padding-bottom: 10px;
}


#sezionesceltamenu .qtaSelected {
    background-color: #b8efb8;
}

/******** Inserimento codice ********/

#inserimentocodice {
    max-width: 600px; 
    width: 100%; 
    background-color: #fff; 
    margin:0 auto;
    padding: 10px;    
    overflow: auto;
}

/******** Codice Errato ********/

#risultatocodice {
    max-width: 600px; 
    width: 100%; 
    background-color: #fff; 
    margin:0 auto;
    padding: 10px;    
    overflow: auto;
}

/******** Tipologia Prodotti ********/
#sezionetipologiaprod {
    max-width: 600px; 
    width: 100%; 
    background-color: #fff; 
    margin:0 auto;
    padding: 10px;    
    overflow: auto;
}

#sezionetipologiaprod .title_sezione {
    font-weight: 700;
    font-size: 17px;
    color: #C45500;
    padding-top: 10px;
    padding-bottom: 10px;
}


/****************/
#sezioneelencoprod {
    max-width: 600px; 
    width: 100%; 
    background-color: #fff; 
    margin:0 auto;
    padding: 10px;    
    overflow: auto;
}

#sezioneelencoprod .title_sezione {
    font-weight: 700;
    font-size: 17px;
    color: #C45500;
    padding-top: 10px;
    padding-bottom: 10px;
}

#sezioneelencoprod .titleProd {
    border-bottom: 1px solid #d0d0d0;
}

#sezioneelencoprod .rigaProd {
    height: 67px;
    border-bottom: 1px solid #d0d0d0;
}

#sezioneelencoprod .boxNomeProd {
    font-size: 13px;
}

#sezioneelencoprod .boxPrezzo {
    padding: 0px 12px 0px 12px;
    font-weight: 600;
    width: 10px;
}

#sezioneelencoprod .form-control {
    height: 29px;
    padding-top: 2px;
    padding-left: 2px;
    padding-right: 2px;
    width: auto;
    max-width: 100%;
    min-width: 46px;
    border: 1px solid #0b6bb0;
}

#sezioneelencoprod .qtaSelected {
    background-color: #b8efb8;
}


/******* Carrello *********/
#vistacarrello {
    max-width: 600px; 
    width: 100%; 
    background-color: #fff; 
    margin:0 auto;
    padding: 10px;    
    overflow: auto;
}

#vistacarrello .title_sezione {
    font-weight: 700;
    font-size: 17px;
    color: #C45500;
    padding-top: 10px;
    padding-bottom: 10px;
}

#vistacarrello .titleProd {
    border-bottom: 1px solid #d0d0d0;
}

#vistacarrello .rigaProd {
    height: 67px;
    border-bottom: 1px solid #d0d0d0;
}

#vistacarrello .boxNomeProd {
    font-size: 13px;
}

#vistacarrello .boxPrezzo,
#vistacarrello .boxTot {
    padding: 0px 12px 0px 12px;
    width: 10px;
}
#vistacarrello .boxTot {
    font-weight: 600;
}

#vistacarrello .boxQta {
    text-align: center;
}

#vistacarrello .title__qta{

}

#vistacarrello .title__prezzotot{
    text-align: end;
}


#vistacarrello .qtaSelected {
    background-color: #b8efb8;
}

/******* Carrello2 *********/


#vistacarrello .tabella__rigo{
    display: flex;
    justify-content: space-between;
}

#vistacarrello .tabella__intestazione{
    font-weight: 600;
    border-bottom: 2px solid #a4a4a4;
    padding: 15px 0;
}

#vistacarrello .tabella__rigo__prodotti{
    border-bottom: 1px solid #d0d0d0;
    padding: 10px 0;
}

#vistacarrello .tabella__prod__nome{
    padding: 0 6px 0 0;
}

#vistacarrello .tabella__colonna1{
    flex-grow: 1;
}

#vistacarrello .tabella__colonna2{
    text-align: center;
    width: 105px;
}

#vistacarrello .tabella__colonna3{
    width: 25%;
    text-align: end;
}

#vistacarrello .tabella__totaleordine{
    text-align: end;
    padding: 8px 4px;
}

#vistacarrello .totaleordine__testo{
    font-weight: 600;
}

#vistacarrello .spedizione__prezzo{
    width: 80%;
    max-width: 80px;
    text-align: end;
}

.cart__text, 
.cart__total{
    font-size: 16px;
}

/******* Dati Anagrafica *********/
#sezionedatianagrafica {
    max-width: 600px; 
    width: 100%; 
    background-color: #fff; 
    margin:0 auto;
    padding: 10px;    
    overflow: auto;
}

#sezionedatianagrafica form .row{
    padding: 6px 10px;
    display: flex; 
    flex-wrap: wrap;
}

#sezionedatianagrafica form .row .input {
    padding: 3px 6px;
    font-size: 18px;
}

#sezionedatianagrafica form .row .input {
    width: 100%;
    margin: 2px 0px;
}

@media screen and (min-width: 575.98px) {
    #sezionedatianagrafica form .row .input {
        width: calc(50% - 15px);
    }
    #sezionedatianagrafica form .row .input.input.textarea__wrapper {
        width: calc(100% - 15px);
    }
}
 

#sezionedatianagrafica .form-control {
    height: 29px;
    padding-top: 2px;
    padding-left: 2px;
    padding-right: 2px;
    width: auto;
    max-width: 100%;
    min-width: 46px;
    border: 1px solid #0b6bb0;
}

#sezionedatianagrafica .title__small{
    padding: 3px 6px;
    font-size: 18px;
    font-weight: 600;
}

#sezionedatianagrafica #sceltaindirizzo{
    padding-left: 18px;
}


.input {
    position: relative;
}

.input__label {
    position: absolute;
    pointer-events: none;
    left: 15px;
    top: 6px;
    padding: 3px ;
    margin: 6px 8px;
    white-space: nowrap;
    transform: translate(0, 0);
    transform-origin: 0 0;
    background: #FFFFFF;
    transition: transform 120ms ease-in;
    font-weight: 600;
    line-height: 1.2;
}

.checkbox__indirizzo__wrapper{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100% !important;
}

.checkbox__indirizzo__check{
    margin: 0;
    width: 25px !important;
}

#sezionedatianagrafica form .row .input__field{
    box-sizing: border-box;
    display: block;
    width: 100%;
    border: 3px solid black;
    padding: 10px 12px;
    color: black;
    background: transparent;
    border-radius: 6px;
}

#sezionedatianagrafica .row__checkbox .checkbox__indirizzo__wrapper{
    align-items: flex-start;
}

#sezionedatianagrafica .row__checkbox .checkbox__indirizzo__wrapper .checkbox__indirizzo__check{
    margin-top: 4px;
}


.input__label:focus,
.input__field:focus + .input__label, 
.input__field:not(:placeholder-shown) + .input__label,
.input__field:active + .input__label {
    transform: translate(0.35rem, -50%) scale(0.8);
    color: #ffd503;
}

.input.textarea__wrapper{
    height: 200px;
}

.input .input__field__textarea{
    height: 100%;
    line-height: 1.1;
}

#sezionedatianagrafica form .row.row__checkbox .input {
    font-size: 14px;
    margin: 0;
}

#sezionedatianagrafica .wrapper__policyfirma .text__policyfirma{
    font-size: 9px;
}

#sezionedatianagrafica .checkbox__indirizzo__label{
    max-width: calc(100% - 25px);
}

/******* Thank You Page *********/

#paginaringraziamento {
    max-width: 600px; 
    width: 100%; 
    background-color: #fff; 
    margin:0 auto;
    padding: 10px;    
    overflow: auto;
}

#paginaringraziamento .thx__text,
#paginaringraziamento .thx__btn{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.has-error .input__field {
    border-color: red;
}

.error-message {
    color: red;
    font-size: 0.875rem;
    margin-top: 5px;
    width: 100%;
}

.checkbox__indirizzo__wrapper .error-message{
    padding-left: 20px;
}

input:invalid, select:invalid {
    border-color: red;
}

input:focus:invalid, select:focus:invalid {
    outline: none;
    border-color: red;
}
