/* #shopping_cart p {
    background-color: red;
    text-align: right;
} */

#shopping_cart button {
    background-color: rgba(255, 255, 255, 0);
}

@keyframes pop-up {
    0% {
        transform: scale(0) translate(-50%, -50%);
    }

    100% {
        transform: scale(1) translate(-50%, -50%);
    }
}

#shopping_cart {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 85%;
    width: 60%;
    background-color: whitesmoke;
    overflow: auto;
    transform: scale(1) translate(-50%, -50%);
    
    animation: pop-up 0.7s 1;
}


#shopping_cart .header {
    position: sticky;
    min-height: 30px;
    width: 100%;
    top: 0;
    background-color: whitesmoke;
    box-shadow: 3px 3px 5px 6px  #ccc;
}
#shopping_cart .header  > h2{
    display: inline-block;
}
#shopping_cart .header  > .first-capital {
    padding-left: 1em;
}

#shopping_cart .container {
    width: auto;
    height: auto;
    text-align: center;
    padding: 1em;
    /* padding-top: 50px; */
    /* overflow-y: auto; */
    /* height: 85%; */
}

#shopping_cart #cancel {
    position: absolute;
    top: 1.5em;
    right: 1.5em;
    font-size: 1.5em;
}

#shopping_cart h2 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* #shopping_cart h3 {
    text-align: left;
} */

#shopping_cart ul {
    list-style: none;
    min-height: 7em;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 1em;
}

#shopping_cart li {
    min-height: 5em;
    display: flex;
    flex-flow: row wrap;
    margin-bottom: 1em;
}


#shopping_cart .image-container {
    height: 5em;
    text-align: center;
    flex-grow: 1;
    width: 20%;
}

#shopping_cart .item {
    position: relative;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#shopping_cart .item>* {
    height: 100px;
    display: flex;
    text-align: center;
    align-items: center;
}


#shopping_cart img {
    max-width: 100%;
    max-height: 100%;
}

#shopping_cart .item-body {
    width: 35%;
    height: 5em;
}

#shopping_cart .price {
    width: 15%;
}

#shopping_cart .quantity {
    width: 20%;
}

#shopping_cart .quantity>input {
    width: 100%;
}

#shopping_cart .multiplication-sign {
    width: 5%;
}

#shopping_cart .delete-item {
    width: 5%;
    color: rgba(238, 27, 27, 0.781);
}

#shopping_cart p {
    font-weight: bold;
    font-size: 1.25em;
    text-align: right;
    margin-right: 1em;
}

#shopping_cart hr {
    border: 1px solid black;
    width: 16em;
    text-align: right;
    margin-right: 0px;
    margin-left: calc(100% - 16em);
}

#shopping_cart #orderNow {
    background-color: #6bbc34;
    padding: 0.5em 1.5em;
    margin: 1em auto;
    color: white;
    font-size: 1.15em;
}

#shopping_cart #orderNow:hover {
    background-color: #599e2c;
}

#shopping_cart #emptyCart,
#shopping_cart #deleteCart {
    background-color: rgba(238, 27, 27, 0.781);
    padding: 0.5em 1.5em;
    margin: 1em auto;
    color: white;
    font-size: 1.15em;
}

#shopping_cart #deleteCart> :first-child {
    color: white;
}

#shopping_cart #emptyCart:hover,
#shopping_cart #deleteCart:hover {
    background-color: rgba(187, 13, 13, 0.781);
}


#shopping_cart .center {
    line-height: 2em;
    text-align: center;
    margin: 1em 0px;
}

#shopping_cart .centermir {
    text-align: center;
    font-weight: normal;
    font-size: 1.25em;
}    

/* Credentials input */
#shopping_cart .credentials-input-container {
    padding-left: 1em;
}

#shopping_cart .credentials-input-container>* {
    display: block;
}

#shopping_cart .credentials-input-container>label {
    text-align: left;
}

#shopping_cart .credentials-input-container>input {
    width: 100%;
    height: 2em;
    padding: 0.7em;
    margin-top: 0.3em;
}

@media only screen and (max-width: 800px) {
    #shopping_cart {
        position: absolute;
        height: 100%;
        width: 100%;
        background-color: whitesmoke;
        overflow: auto;

        /* padding: 1em; */
    }

    #shopping_cart .image-container {
        width: 100%;
    }

    #shopping_cart .delete-item {
        width: 25%;
        color: rgba(238, 27, 27, 0.781);
    }
}


#shopping_cart .invisible {
    display: none !important;
}

#shopping_cart .error {
    color: red;
    text-align: left;
    padding: 1em;
    font-size: 1em;
}

#shopping_cart .address {
    display: grid;
    grid-column-gap: 10%;
    grid-template-columns: 70% 20%;
    grid-template-rows: auto auto;
}

#shopping_cart .address>div {
    width: 100%;
}

#shopping_cart .address>div>*,
#shopping_cart #cart_name_input_box>*,
#shopping_cart #econt_office_form>* {
    display: block;
}

#shopping_cart .address label,
#shopping_cart #econt_office_form label {
    text-align: left;
}

#shopping_cart .address input,
#shopping_cart #cart_name_input_box input,
#shopping_cart #econt_office_form input {
    width: 100%;
    height: 2em;
    padding: 0.7em;
    margin-top: 0.3em;
}

#shopping_cart .saveBtn {
    background-color: #0080FF;
    padding: 0.5em 1.5em;
    margin: 1em auto;
    color: white;
    font-size: 1.15em;
}

#shopping_cart .saveBtn:hover {
    background-color: rgb(5, 100, 196);
}

#shopping_cart #cart_name_input_box {
    display: inline-block;
}

#shopping_cart #cart_name_input_box input {
    width: 100%;
    height: 2em;
    padding: 0.7em;
    margin-top: 0.3em;
}

#shopping_cart .address-form {
    text-align: left;
    margin-left: 2em;
}

#shopping_cart #econt_offices {
    display: block;
    margin: 0 auto;
    border: 1px solid gray;
    max-height: 500px;
    overflow-y: auto;
    background-color: #f9f9f9;
    box-shadow: grey 1px 1px;
}

#shopping_cart #econt_offices p {
    font-size: 1em;
    margin: 0;
    padding: 10px;
    text-align: left;
    cursor: pointer;
}

#shopping_cart #econt_offices p:hover {
    background-color: grey;
}

#shopping_cart #econt_office_form>div {
    width: 50%;
    margin: 0 auto;
}

#shopping_cart #econt_office_form label {
    width: 50px;
    display: block;
}

#shopping_cart textarea {
    resize: none;
}

#shopping_cart .delivery_options {
    text-align: left;
}

#shopping_cart .delivery_options > h3 {
    padding-bottom: 1em;
}

#shopping_cart .delivery_options > div {
    padding-left: 2em;
}