﻿* {
    box-sizing: border-box;
}
.text-sm, .text-sm * { font-size:0.95em !important; }

.flexbox {
    display: flex;
}

.hidden {
    display: none;
}

.parsley-errors-list {
    list-style-type: none;
    padding-left: 1.25rem;
    padding-top: 0rem;
    color: #ff0000;
}

ul.parsley-errors-list li {
    font-size:0.8rem;
}

ul.parsley-errors-list:empty { display:none;}

.form select {
    height:40px !important; 
}
.form div[data-form-field] {
    position: relative;
    margin-bottom: 1.25rem;
}
.form div[data-form-field].parsley-error {
    margin-bottom: 0;
}

.form div[data-tight] { margin-bottom:0; }

#delivery_other_container {
    display: none;
}

.form h4 {
    margin-top:1rem;
    margin-bottom:1.25rem;
}

.chosen-container .chosen-single {
    background:transparent !important;
    box-shadow:none !important;
    border-radius:0.25rem !important;
    padding:0.5rem 1rem !important;
    height:auto !important;
    border-color:#ddd !important;
}

.chosen-container-single .chosen-single div {
    display: block;
    width: 32px !important;
    margin-right: 0.5rem !important;
}


.chosen-container-single .chosen-single div b {
    background-position: right center !important;
    background-repeat: no-repeat !important;
    background-image: url("data:image/svg+xml,%3Csvg width='16px' height='16px' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 9L12 17L20 9' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-color:transparent !important;
}

.form input:not([type=radio]):not([type=checkbox]):not([type=checkbox]):not([type=submit]), .form textarea, .form select {
    width: 100%;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    background: none;
    position: relative;
    top: 0;
    left: 0;
    z-index: 1;
    padding: 8px 12px;
    outline: 0;
}

.form input[type=checkbox]:hover, .form input[type=checkbox]:hover + label {
    cursor: pointer;
}

.form input, .form select {
    height: 2.75rem;
}

.form input[type=checkbox], .form select {
    height: 1.5rem;
}

.form input[required]:valid, .form textarea[required]:valid {
    background-position: right center;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='20' viewBox='0 0 20 20' stroke='none' xmlns='http://www.w3.org/2000/svg' class=''%3E%3Cpath d='M7.24806 15.8961L7.25281 15.9004L18 4.64706L16.6012 3.39384L7.14439 13.296L3.25082 9.67836L1.95622 11.039L7.24367 15.9007L7.24806 15.8961Z' fill='%2300cc00'%3E%3C/path%3E%3C/svg%3E");
}

.form input.parsley-error, .form textarea.parsley-error {
    border-color: #ff0000;
    border-width: 2px;
    background-position: right center !important;
    background-repeat: no-repeat !important;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' width='40' height='20' stroke='none' fill='none' xmlns='http://www.w3.org/2000/svg' class=''%3E%3Cpath d='M16.0585 2L17.3277 3.32484L3.26917 18L2 16.6752L16.0585 2Z' fill='%23ff0000'%3E%3C/path%3E%3Cpath data-v-4ad38144='' d='M18 16.6752L16.7308 18L2.67232 3.32484L3.94149 2L18 16.6752Z' fill='%23ff0000'%3E%3C/path%3E%3C/svg%3E") !important;
}

.form div.parsley-error label { color:#dd0000 !important; }

.form input:valid + label, .form input:valid + ul + label, .form input:valid + div + label, .form textarea:valid + label, .form textarea:valid + ul + label {
    transition: background 0.2s, color 0.2s, top 0.2s, bottom 0.2s, right 0.2s, left 0.2s;
    color: #999;
    margin: auto 0.5rem;
    top: 1rem;
    display: block;
    left: 10px;
    width: auto;
    height: 1rem;
    line-height: 1rem;
    font-size: 1rem;
    z-index: 222;
    position: absolute;
}
.form input[type=checkbox] + label, .form input[type=checkbox] + ul + label {
    color: #000;
    line-height:150%;
    top:-0.15rem;
    left:1rem;
}


.form input:not([type=radio]):not([type=checkbox]):focus, .form textarea:focus {
    border-color: #2486ff;
    background: #fafafa;
}

.form input.parsley-error + label, .form input.parsley-error + ul + label, .form textarea.parsley-error + label, .form textarea.parsley-error + ul + label {
    color: #dd0000;
}
.form input.parsley-error, .form textarea.parsley-error {
    border-color: #dd9999 !important;
    border-width:2px !important;
}

.form input:not([type=radio]):not([type=checkbox]):focus + label, .form input:not([type=radio]):not([type=checkbox]):focus + ul + label, .form input:not([type=radio]):not([type=checkbox]):focus + div + label, .form textarea:focus + label, .form textarea:focus + ul + label {
    background: #f7f7f7;
    color: #2486ff;
    font-size: 85%;
    padding: 1px 3px;
    z-index: 211;
    transition: 0.2s;
    /*text-transform: uppercase;*/
}

.form .form-radio { width:100%;}
.form input[type=radio] + label, .form input[type=radio] + ul + label {
    display: block;
    width: 100%;
    /*text-transform: uppercase;*/
}
.form span[data-control-type=radio] { position:relative; width:100%; display:inline-block;}
.form span[data-control-type=radio] * {
    display: inline-block;
    height:auto;    
}
.form span input[type=radio] + label, .form input[type=radio] + ul + label {
    display: inline-block;
    width: auto;
    position: relative;
    left: 10px;
    top: 0;
    line-height: 1.5;
    height:2rem;
    padding-bottom: 1rem;
    color:#333;
    /*text-transform: uppercase;*/
}
.form span[data-type="CARD"]::after {
    content: "";
    position: absolute;
    right: 0;
    width: 200px;
    margin-top:4px;
    height:86px;
    background: url(/assets/img/card_schemes_ideal_no_bg.png) no-repeat right top;
    background-size:contain;
}

.form span input[type=radio] + label:hover, .form input[type=radio] + ul + label:hover {
    cursor:pointer;
    color:#2486ff;
}

.form input[type=radio]:focus + label, .form input[type=radio]:focus + ul + label, .form input[type=radio]:checked + label, .form input[type=radio]:checked + ul + label,
.form input[type=checkbox]:checked + label, .form input[type=checkbox]:checked + ul + label {
    background: #f7f7f7;
    color: #007700;
    font-weight: 300;
    z-index: 211;
    transition: 0.2s;
    /*text-transform: uppercase;*/
}

.form input:not([type=radio]):not([type=checkbox]).has-value + label, .form input:not([type=radio]):not([type=checkbox]).has-value + ul + label, .form input:not([type=radio]):not([type=checkbox]).has-value + div + label, .form textarea.has-value + label, .form textarea.has-value + ul + label {
    background: #f7f7f7;
    font-size: 85%;
    padding: 1px 3px;
    z-index: 211;
    transition: 0.2s;
    top: -10px;
    margin: 0 0.25rem;
    color: #333;
}

.form label {
    transition: background 0.2s, color 0.2s, top 0.2s, bottom 0.2s, right 0.2s, left 0.2s;
    color: #999;
    margin: auto 0.5rem;
    top: 0.85rem;
    display: block;
    left: 10px;
    width: auto;
    height: 1rem;
    line-height: 1rem;
    font-size: 1rem;
    z-index: 222;
    position: absolute;
}

.form textarea {
    display: block;
    resize: vertical;
}

.form input:not([type=radio]):not([type=checkbox]):not([type=submit]), .form textarea {
    padding: 1rem;
}

form.go-bottom label {

}

.form input:focus, .form textarea:focus {
    /*padding: 4px 6px 20px 6px; */
}

.form input:not([type=radio]):not([type=checkbox]):not([type=submit]):focus + label, .form input:not([type=radio]):not([type=checkbox]):not([type=submit]):focus + ul + label, .form input:not([type=radio]):not([type=checkbox]):not([type=submit]):focus + div + label, .form textarea:focus + label, .form textarea:focus + ul + label {
    top: -10px;
    margin: 0 0.25rem;
}

/*
.form > div::before {
    position: absolute;
    z-index: 999;
    display: block;
    top: 0;
    right: 0;
    width: 32px;
    height: 100%;
    content: "";
    color: #33ff33;
    background-position: center center;
    background-repeat: no-repeat;    
        background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' stroke='none' xmlns='http://www.w3.org/2000/svg' class=''%3E%3Cpath d='M7.24806 15.8961L7.25281 15.9004L18 4.64706L16.6012 3.39384L7.14439 13.296L3.25082 9.67836L1.95622 11.039L7.24367 15.9007L7.24806 15.8961Z' fill='%2300cc00'%3E%3C/path%3E%3C/svg%3E");
}

.form > div::before + .form input:valid {
    
}*/

.form .btn {
    height:2.75rem;
    padding:0.5rem 0.75rem;
}



.form .btn-finish-order {
    background-color: #00bb00;
    color: #fff !important;
    font-weight: 700;
    padding: 0.75rem;
    display: block;
    height: 3rem;
    width: 100%;
}

.form .btn-finish-order:hover {
    background-color:#33ff33;
    transition:0.2s;
    color:#000 !important;
}

.form a svg use {
}
.form a.chevron:hover {
    color:#cc0000 !important;
    transition:0.2s;
}
.form a:hover svg use {
    transform: rotate(90deg);
    transform-origin: 50% 50%;
    transition: 0.2s;
    fill: #cc0000;
}

.btn-gray {
    background-color: #ddd;
}

.btn-gray:hover {
    background-color: #bbb;
    transition: 0.2s;
    color: #fff !important;
}

.form .promo-cont {
    margin-bottom:1.25rem;
}
/* ======================================================= CHECKBOX */
.form .form-control {
    font-family: system-ui, sans-serif;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.5;
    display: grid;
    grid-template-columns: 1em auto;
    gap: 0.5em;
}

    .form .form-control + .form-control {
        margin-top: 1em;
    }

.form .form-control--disabled {
    color: var(--form-control-disabled);
    cursor: not-allowed;
}

.form input[type=checkbox] {
    /* Add if not using autoprefixer */
    -webkit-appearance: none;
    /* Remove most all native input styles */
    -moz-appearance: none;
    appearance: none;
    /* For iOS < 15 */
    background-color: var(--form-background);
    /* Not removed via appearance */
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;    
    border: 0.15em solid #999;
    border-radius: 0.25em;
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
}
    .form div.parsley-error input[type=checkbox] {
        border-color:#dd9999;
        border-width:2px;
    }

    .form input[type=checkbox]::before {
        content: "";
        width: 0.65em;
        height: 0.65em;
        -webkit-clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
        clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
        transform: scale(0);
        transform-origin: bottom left;
        transition: 120ms transform ease-in-out;
        box-shadow: inset 1em 1em var(--form-control-color);
        /* Windows High Contrast Mode */
        background-color: #007700;
    }

    .form input[type=checkbox]:checked::before {
        transform: scale(1);
    }

    /*
    .form input[type=checkbox]:focus {
        outline: max(2px, 0.15em) solid #fff;
        outline-offset: max(2px, 0.15em);
    }*/

    .form input[type=checkbox]:disabled {
        --form-control-color: var(--form-control-disabled);
        color: var(--form-control-disabled);
        cursor: not-allowed;
    }


.tab-password-reset, .tab-google-auth {
    display: none;
}

.form input[type=submit]:active {
    background-color: #1353a2 !important;
}

    /* ========================== WHITE FORM */

.form.white input:not([type=radio]):not([type=checkbox]), .form.white textarea, .form.white select {
    border: 1px solid #eee;
}

.form.white input:not([type=radio]):not([type=checkbox]):focus + label, .form.white input:not([type=radio]):not([type=checkbox]):focus + ul + label, .form.white input:not([type=radio]):not([type=checkbox]):focus + div + label, .form.white textarea:focus + label, .form.white textarea:focus + ul + label {
    background: #fff;
}

.form.white input[type=radio]:focus + label, .form.white input[type=radio]:focus + ul + label, .form.white input[type=radio]:checked + label, .form.white input[type=radio]:checked + ul + label,
.form.white input[type=checkbox]:checked + label, .form.white input[type=checkbox]:checked + ul + label {
    background: #fff;
}

.form.white input:not([type=radio]):not([type=checkbox]).has-value + label, .form.white input:not([type=radio]):not([type=checkbox]).has-value + ul + label, .form.white input:not([type=radio]):not([type=checkbox]).has-value + div + label, .form.white textarea.has-value + label, .form.white textarea.has-value + ul + label {
    background: #fff;
}



/* ========================== FOOTER FORM */

.form.footer input:not([type=radio]):not([type=checkbox]), .form.footer textarea, .form.footer select {
    border: 1px solid #eee;
}

    .form.footer input:not([type=radio]):not([type=checkbox]):focus + label, .form.footer input:not([type=radio]):not([type=checkbox]):focus + ul + label, .form.footer input:not([type=radio]):not([type=checkbox]):focus + div + label, .form.footer textarea:focus + label, .form.footer textarea:focus + ul + label {
        background: #2486ff;
    }

.form.footer input[type=radio]:focus + label, .form.footer input[type=radio]:focus + ul + label, .form.footer input[type=radio]:checked + label, .form.footer input[type=radio]:checked + ul + label,
.form.footer input[type=checkbox]:checked + label, .form.footer input[type=checkbox]:checked + ul + label {
    background: #2486ff;
}

.form.footer input:not([type=radio]):not([type=checkbox]).has-value + label, .form.footer input:not([type=radio]):not([type=checkbox]).has-value + ul + label, .form.footer input:not([type=radio]):not([type=checkbox]).has-value + div + label, .form.footer textarea.has-value + label, .form.footer textarea.has-value + ul + label {
    background: #2486ff;
}

.form.footer div.parsley-error input[type=checkbox] {
    border-color: #ffaaaa;
    border-width: 2px;
}

.form.footer .parsley-error {
    color: #ffaaaa;
}
.form.footer .parsley-errors-list li {
    color: #ffaaaa !important;
}
.form.footer div.parsley-error label {
    color: #ffaaaa !important;
}

.form.footer input[required]:valid, .form.footer textarea[required]:valid {
    background-position: right center !important;
    background-repeat: no-repeat !important;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='20' viewBox='0 0 20 20' stroke='none' xmlns='http://www.w3.org/2000/svg' class=''%3E%3Cpath d='M7.24806 15.8961L7.25281 15.9004L18 4.64706L16.6012 3.39384L7.14439 13.296L3.25082 9.67836L1.95622 11.039L7.24367 15.9007L7.24806 15.8961Z' fill='%2377ff77'%3E%3C/path%3E%3C/svg%3E") !important;
}

.form.footer input.parsley-error, .form.footer textarea.parsley-error {
    background-position: right center !important;
    background-repeat: no-repeat !important;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' width='40' height='20' stroke='none' fill='none' xmlns='http://www.w3.org/2000/svg' class=''%3E%3Cpath d='M16.0585 2L17.3277 3.32484L3.26917 18L2 16.6752L16.0585 2Z' fill='%23ff9999'%3E%3C/path%3E%3Cpath data-v-4ad38144='' d='M18 16.6752L16.7308 18L2.67232 3.32484L3.94149 2L18 16.6752Z' fill='%23ff9999'%3E%3C/path%3E%3C/svg%3E") !important;
}

.form.footer input[type=checkbox]::before {
     background-color: #77ff77 !important;
}