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

.auth_container {
    height: 100vh;
    position: relative;
    display: grid;
    grid-template-rows: 50px 1fr;
    grid-template-columns: 1fr;
    overflow-x: hidden;
}

/* Modal styles */
#modal_container {
    width: 100vw;
    background-color: #fff;
    z-index: 1001;
    transition: ease .2s;
    overflow-y: scroll;
}
.modal_header {
    padding: 1em 2em 0;
    display: flex;
    justify-content: space-between;
}
.modal_body {
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
}
.content {
    display: flex;
    width: 300%;
    margin-left: 0;
    transition: ease-out .2s;
}
.modal_open {
    position: fixed;
    top: 0;
    bottom: 0;
}
.modal_closed {
    display: none;
    top: -100%;
}

/* Form styles */
.signin, .signup, .password_reset {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1em 2em;
}
.auth_form {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
}
#signup{
    margin-bottom: 80px;
}
.auth_input {
    width: 100%;
    padding: 8px 10px;
    margin: 8px 0;
    border-radius: 4px;
    outline: none;
    border: none;
    font-size: 16px;
    background-color: #f0f0f0;
    color: #000;
}
.auth_input:focus {
    background-color: #fff;
    border: 1px solid gray;
}

#reset_success {display: none;}
.auth_btn {
    min-width: 10em;
    padding: 10px 20px;
    font-size: 18px;
    margin: 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: gray!important;
    color: #fff;
    border-radius: 2px;
    cursor: pointer;
}
.auth_btn:hover {
    background-color: #fff;
    border: 1px solid gray;
    color: #000;
}
.auth_btn:disabled {
    border: 1px solid #999999;
    background-color: #cccccc;
    color: #666666;
}
.auth_redirect {
    padding: 1em 0;
}
.auth_redirect p, .auth_redirect button {
    font-size: 14px;
    display: inline;
}
.auth_redirect button  {
    text-decoration: underline;
}

/* side nav */
.side_nav {
    display: flex;
    flex-direction: column;
    top: 0;
    background-color: #fff;
    box-shadow: -1px 0 12px #ddd;
    z-index: 1001;
}
.side_nav_open {
    position: fixed;
    right: 0;
    bottom: 0;
}
.side_nav_closed {
    display: none;
    right: -100%;
}
.side_nav_header {
    display: flex;
    padding: 1em;
    justify-content: space-between;
    align-items: center;
}
.side_nav_body {
    padding: .5em 2em;
    overflow-y: scroll;
}
.side_nav_links {
    text-decoration: none;
    padding: 5px 10px;
    font-size: 18px;
    font-weight: 500;
    display: block;
    color: #111;
}
.side_nav_links:first-child {
    display: none;
}

.bg-white.border.border-\[\#E9E9E9\].rounded-md.mt-5 {
    display: none;
}

.side_nav_header .user_email {
    color: gray;
    padding: 5px 10px;
    font-weight: 400;
    max-width: 200px;
    overflow: hidden;
}

/* Cart Component */
.cart-icon {
    position: relative;
    margin: 5px 10px;
    width: 1.5em;
    height: 1.5em;
    font-size: 16px;
    cursor: pointer;
    border: none;
    outline: none;
    background-color: white;
}
.cart-icon-count {
    position: absolute;
    padding: 0;
    height: 18px;
    width: 18px;
    top: -8px;
    right: -8px;
    border-radius: 50%;
    font-size: 12px;
    color: #fff;
    font-weight: 500;
    text-align: center;
    background-color: #ff5555;
    line-height: 20px;
}
.cart-item {
    display: flex;
    margin: 4px 0;
    height: 4em;
    width: 200px;
    cursor: pointer;
}
.item-details{
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-end;
}
.item-details p {
    margin: 0;
    font-size: 18px;
}
.item-id {
    color: #aaaaaa;
}
.item-image {
    flex: 1;
    position: relative;
}
.item-image img {
    position: absolute;
    width: 100%;
    height: 100%;
}
.cart-total {
    width: 100%;
    display: flex;
    justify-content: space-between;
}
.cart-total p {
    font-size: 18px;
}
.cart-btn {
    position: relative;
    width: 100%;
    padding: 10px 20px;
    margin: 4px 0;
    background-color: gray!important;
    font-size: 16px;
    cursor: pointer;
    border: none;
}
.cart-btn a {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
}
.cart-btn a:hover {
    color: #fff;
    text-decoration: none;
}
.cart-btn p {
    margin: 0;
    padding: 0;
}
.cart-btn svg {
    fill: #fff;
}

/* notification popup */
.notification {
    width: 300px;
    min-height: 80px;
    padding: 3px 6px;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 90px;
    border-radius: 6px;
    box-shadow: -3px 6px 12px #222;
    background-color: #fff;
    transition: .3s ease;
    z-index: 1001;
}
.hide-notification {
    right: -100%;
}
.show-notification {
    right: 15px;
}

/* different button styles */
.link_btn {
    width: max-content;
    padding: 4px;
    outline: none;
    border: none;
    background-color: #fff;
    cursor: pointer;
}
.redirect_btn {
    color: #0000ff;
}
.redirect_btn:hover {
    text-decoration: underline;
}

.info {
    text-align: center;
    padding: 2px;
    color: #888;
}

.error {
    padding: 2px;
    color: #ff0000;
    font-size: 12px;
}

.secondary {
    margin: 5px 0;
    width: 100%;
    display: flex;
    font-size: 14px;
    flex-direction: column;
}

/* Loader */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.newsletter_subscription{
    margin-bottom:15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media only screen and (min-width: 600px) {
    .secondary {
        flex-direction: row;
        justify-content: space-around;
    }
    .side_nav {
        width: 40%;
    }
}

@media only screen and (min-width: 769px) {
    .side_nav {
        width: 30%;
    }
}

@media only screen and (min-width: 1025px) {
    .side_nav {
        width: 20%;
    }
}

@media (max-width: 640px) {
    .signup {
        padding: 0 2em;
        margin-top: -5px;
    }
    .newsletter_subscription {
        font-size: 12px;
    }
    .terms_conditions {
        font-size: 12px;
    }
    .auth_input {
        margin: 5px 0;
    }
    .auth_redirect {
        padding: 0.2em 0;
    }
    .newsletter_subscription{
        margin-bottom:5px;
    }
}
