/*
*   Frontpage
*/
body {
    padding-top: 50px;
    background-color: rgb(59, 89, 152);
}
footer {
    margin-top: 0px;
}

.navbar.navbar-default {
    margin-bottom: 0px;
    box-shadow: 0px 0px 5px rgba(60,60,60,0.7);
}
.cart {
    font-size: 30px;
}
li.cart a {
    padding: 10px;
    padding-left: 15px;
    padding-right: 15px;
}
li.cart > a {
    padding: 10px;
    padding-left: 15px;
    padding-right: 15px;
}
.mobile-cart {
    font-size: 20px;
    line-height: 22px;
    padding: 5px 9px;
    color: black !important;
}

.overflow {
    overflow: hidden;
}

.container-fluid {
    position: relative;
}
.container-fluid.header {
    padding-bottom: 20px;
}
.container.main {
    padding-top: 20px;
    padding-bottom: 40px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0px 0px 8px rgb(60,60,60);
}

#mobile-side {
    display: none;
}

.text-center {
    text-align: center;
}
label {
    font-size: 11pt;
    font-weight: 400;
}
.second_email {
    display: none;
}

#desktop-menu {
    padding: 0px 0px;
    padding-bottom: 99999px;
    margin-bottom: -99999px;
    
    background-color: #f8f8f8;
    border: 1px solid #e7e7e7;
    border-radius: 5px;
    overflow: hidden;
}
#desktop-menu .menu {
}
.nav-sidebar li {
    border-bottom: 1px solid #e7e7e7;
    background-color: #ffffff;
}
.nav-sidebar li a {
    color: #000;
}

#page {
    padding-right:0px;
    padding-bottom: 99999px;
    margin-bottom: -99999px;
}
#page .content {
    min-height: 700px;
    background-color: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 5px;
    padding: 0px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 20px;
    padding-bottom: 30px;
}
#page .content img {
    max-width: 100%;
    height: auto;
}

.shopcart .header {
    background-color: rgb(20,20,20);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    color: white;
}
.shopcart .footer {
    background-color: rgb(20,20,20);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    color: white;
}
.shopcart .footer .block,
.shopcart .header .block{
    border-right: 1px solid #fff;
}
.shopcart .row {
    min-height: 50px;
    padding: 0px;
    margin: 0px;
    padding-bottom: 20px;
}
.shopcart .row .block {
    min-height: 50px;
}
.shopcart .price {
    padding-top: 20px;
}

.btn {
    margin-top: 5px;
}
a.btn {
    background-color: rgb(245,245,245);
    color: black;
    padding-top: 6px;
    padding-bottom: 6px;
}
a.btn.edit-button {
    background-color: rgb(245,245,245);
}
a.btn.disabled {
    cursor: not-allowed;
    pointer-events: all;
}
.btn.link {
    font-size: inherit;
    white-space: normal;
}
.btn-left {
    float: left;
    margin-right: 20px;
}
.btn-right {
    float: right;
    margin-left: 20px;
}

/*
* Painikkeet
*/

.btn.blue {
    background-color: rgb(59, 89, 152);
    color: white;
}
.btn.green {
    background-color: #060;
    color: white;
}
.btn.light-green {
    background-color:  #99ff66;
    color: black;
}
.btn.light-blue {
    background-color: #55acee;
    color: white;
}
.btn.orange {
    background-color: rgb(225,109,55);
    color: white;
}

footer p {
    color: white;
    font-size: 10pt;
}
footer h4 {
    color: white;
    font-size: 15px;
}

.half-item {
    min-width: 160px;
}

@media (min-width: 768px) {
    ul.navbar-nav {
        float:right;
    }
    #mobile-dropdown.dropdown-menu {
        left: -102px;
        min-width: 200px;
    }
    .half-item {
        width: 45%;
        margin-right: 5%;
        float:left;
    }
}
@media (max-width: 768px) {
    #page {
        padding-left: 0px;
    }
    #desktop-menu {
        display: none;
    }
    #mobile-side {
        display: block;
    }
    .nav li.mobile-item {
        display:block;
        float: left;
        width: 49.9%;
    }
    .nav.child li.mobile-item {
        width: 100%;
    }
    .half-item {
        width: 100%;
    }
    li.cart {
        display: none !important;
    }
}
@media (min-width: 500px) {
    img.paytrail-vert {
        display: none;
    }
}
@media (max-width: 500px) {
    .nav li.mobile-item {
        width: 100% !important;
        float: none;
    }
    img.paytrail {
       display: none; 
    }
}
@media (max-height: 400px) {
    #phases {
        display:none;
    }
}

input.invalid {
    border: 1px solid red !important;
}
input.valid {
    border: 1px solid lightgreen !important;
}
.error-msg {
    font-size: 12pt;
    color: red;
    font-weight: 500;
}

input[type="checkbox"].checkbox {
    visibility: hidden;
    min-height: 20px;
    height: 20px;
    min-width: 20px;
    width: 20px;
    margin:0px;
}
div.custom-checkbox {
    display:inline-block;
    border-radius: 5px;
    border: 1px solid rgb(140,140,140);
    background-color: white;
    
    background-position: center;
    background-size: 80% 80%;
    background-repeat: no-repeat;
    cursor:pointer;
}
div.custom-checkbox.checked {
    background-image: url(../img/accept-green.png);
}
table.delivery {
    width: 100%;
    margin-right: 0%;
}
table.delivery td {
    vertical-align: middle;
}
table.delivery td div.custom-checkbox {
    vertical-align: middle;
}
table.delivery .price {
    text-align: right;
}

.delivery .hl {
    font-weight: 600;
    text-align: right;
}
.delivery .price {
    font-weight: 600;
    text-align: right;
}

table.extra_products {
    width: 100%;
    margin-right: 0%;
}
table.extra_products td {
    vertical-align: middle;
}
table.extra_products td div.custom-checkbox {
    vertical-align: middle;
}
table.extra_products .price {
    text-align: right;
}

.extra_products .hl {
    font-weight: 600;
    text-align: right;
}
.extra_products .price {
    font-weight: 600;
    text-align: right;
}
.extra_products .description {
    font-size: 0.8em;
}

#map {
    min-height: 350px;
}

input.accept-input {
    background-image: none;
    background-repeat: no-repeat;
    background-position: 99% center;
    background-size: 20px 20px;
    padding-right: 25px !important;
}
input.accept-input.valid {
    background-image: url(../img/accept-green.png);
}
input.accept-input.invalid {
    background-image: url(../img/cross-red.png);
}

#preview {
    width: 100%;
    height: auto;
    max-width: 600px;
    max-height: 849px;
    margin-top:20px;
    margin-bottom: 10px;
    box-shadow: 0px 0px 2px rgba(80,80,80, 0.6);
    cursor: pointer;
}

#pages canvas {
    margin-bottom: 20px;
    border: 1px solid black;
    width:100%;
}

span.msg-input {
    padding: 10px 10px;
    display: inline-block;
    width: 100%;
}
span.msg-input input {
    text-align: center;
}

#page img.paytrail {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin-top: 15px;
}
#page img.paytrail-vert {
    max-width: 100px;
    width: 100%;
    height: auto;
    margin-top: 15px;
}

/* Custom ComboBox - Autocomplete */
  .custom-combobox {
    position: relative;
    display: block;
  }
  .custom-combobox-toggle {
    position: absolute;
    top: 0;
    bottom: 0;
    right: -2px;
    padding: 0;
  }
  .custom-combobox-input {
    margin: 0;
    padding: 5px 10px;
    min-width: 100%;
    background-color: white;
  }