/* The Modal (background) */
.modal-shopping {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 7; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* Modal Content */
.modal-shopping-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    /*border: 1px solid #888;*/
    max-width: 70%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
    display: grid;
    grid-template-columns: 50% auto;
}
.modal-shopping-body {
    grid-column: 1;
}
.img-preview {
    width: 90%;
    margin: auto;
    /* height: 100%; */
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

/* The Close Button */
.close-shopping {
    color: #000;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding-right: 10px;
    padding-top: 5px;
}

.close-shopping:hover,
.close-shopping:focus {
    color: #484848;
    text-decoration: none;
    cursor: pointer;
}

.modal-shopping-header {
    padding: 2px 16px;
    background-color: #111111;
    color: white;
}

.modal-shopping-footer {
    padding: 2px 2px;
    background-color: #f1f1f1;
    color: white;
    display:flex;
    justify-content: flex-end;
}

.shopping-buttons {
    margin-right: 15px;
}


/* Style the tab */
.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
}

/* Style the buttons that are used to open the tab content */
.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
}

/* Change background color of buttons on hover */
.tab button:hover {
    background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
    background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
    color: black;
}
.tabcontent p:first-letter {
    text-transform:capitalize;
}
.cart_items {
    margin-top: 1px;
    margin-bottom: 1px;
    font-size: 1em;
    padding: 0.25em;
}
.bold {
    font-weight: bold;
}

.cart_row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.left_cart {
    width: 50%;
}

.right_cart {
    width: 100%;
}

hr.cart_line {
    border-top: 1px solid rgba(0, 0, 0, 0.7);
    margin-top: 10px;
    margin-bottom: 10px;
}

.select_cart {
    margin-bottom: 5px;
    padding: .25em;
    border: 0;
    border-bottom: 2px solid currentcolor;
    font-weight: bold;
    /*letter-spacing: .15em;*/
    border-radius: 0;
    width: 100%;
}

.select_cart:focus, .select_cart:active {
    outline: 0;
    border-bottom-color: red;
}




.p_cart {
    margin: 2px 0;
}

.cart_form {
    width: 100%;
}
.cart_input, .cart_select, .cart_textarea {
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}
.cart_input {
    width: 100%;
    padding: 5px;
}
.cart_input[type="date"] {
    padding: 4px 5px;
}
.cart_select {
    width: 100%;
    padding: 7px 0;
    background: transparent;
}
.cart_textarea {
    width: 100%;
    padding: 5px;
    resize: vertical;
}
.item:hover p, .item:hover i, .question:hover p, .question label:hover, .cart_input:hover::placeholder {
    color:  #3263cd;
}
.item input:hover, .item select:hover, .item textarea:hover {
    border: 1px solid transparent;
    box-shadow: 0 0 5px 0 #3263cd;
    color: #3263cd;
}
.item {
    position: relative;
    margin: 5px 0 0 0;
}
.cart_input[type="date"]::-webkit-inner-spin-button {
    display: none;
}
input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    font-size: 20px;
    color: #111111;
}
[type="date"]::-webkit-calendar-picker-indicator {
    right: 2%;
    z-index: 2;
    opacity: 1;
    cursor: pointer;
}
.cart_input[type=radio], .cart_input[type=checkbox]  {
    display: none;
}
label.radio, label.checkbox {
    position: relative;
    display: inline-block;
    margin: 5px 10px 15px 0;
    cursor: pointer;
}
.question span {
    margin-left: 30px;
}
label.radio:before, label.checkbox:before{
    content: "";
    position: absolute;
    left: 0;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 2px solid #ccc;
}
label.checkbox:before{ border-radius: 5px}
input[type=radio]:checked + label:before, label.radio:hover:before,
input[type=checkbox]:checked + label:before, label.chekbox:hover:before {
    border: 2px solid #3263cd;
}
label.radio:after, label.checkbox:after {
    content: "";
    position: absolute;
    top: 6px;
    left: 5px;
    width: 8px;
    height: 4px;
    border: 3px solid #3263cd;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    opacity: 0;
}
input[type=radio]:checked + label:after, input[type=checkbox]:checked + label:after {
    opacity: 1;
}

.btn-block {
    width: 100px;
    padding: 8px;
    border: none;
    border-radius: 5px;
    background: #3263cd;
    color: #fff;
    cursor: pointer;
}
button:hover {
    background: #5b82d7;
}

@media only screen and (max-width: 1030px) {
    .modal-shopping-content {
        position: relative;
        background-color: #fefefe;
        margin: auto;
        padding: 0;
        /*border: 1px solid #888;*/
        max-width: 90%;
        box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
        -webkit-animation-name: animatetop;
        -webkit-animation-duration: 0.4s;
        animation-name: animatetop;
        animation-duration: 0.4s;
        display: grid;
        grid-template-columns: 50% auto;
        font-size: 1em;
    }
    .right_cart select{
        font-size: 1em;
    }
}