
body, html {
    font-family: 'Arial', sans-serif;
    margin: 0.5rem;
    padding: 0;
    background-color: #081F2E;
    font-size: 4vw;
    color: antiquewhite;
}

/* Minimum aspect ratio */



@media (min-aspect-ratio: 1/1.5) {
    html {
        font-size: 2.8vw;
    }
}

@media (min-aspect-ratio: 1/1) {
    html {
        font-size: 2.1vw;
    }
}
  
  /* Maximum aspect ratio */
  @media (max-aspect-ratio: 9/16) {
    html {
        font-size: 4vw;
    }
  }

.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 0;
    padding: 0;
    list-style: none;
}

.products::after {
    content: "";
    flex: auto;
    margin: 0.5rem;
  }
  
a {
    all: unset;
}

.logo {
    width: 7rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    margin-left: 0.5rem;
}

@keyframes fadeOut {
    0% { opacity: 1;}
    99% { opacity: 0.01;}
    100% { opacity: 0;}
}

.admin-error {
    position: fixed;
    top: 1rem;
    left: 1.5rem;
    width: 21rem;
    background: #d34b58;
    color: white;
    padding: 0.5rem;
    z-index: 1000;
    height: 8rem;
    border-radius: 1rem;
    display: none;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-error:has(.error) {
    display: flex;
    opacity: 1;
    animation: fadeOut 1s;
    animation-delay: 2s;
    animation-fill-mode: forwards;
}


.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;

    div {
        width: 4rem;
        color: #184a6b;
        font-weight: 600;
        font-size: 0.95rem;
    }
    input {
        padding: 0.5rem 0.5rem;
        border-radius: 0.2rem;
        font-size: 0.8rem;
        font-weight: 600;
        border: 0.1rem solid #184a6b5c;
        background: #e9ceb3;
        width: 15rem;
    }
}

.input-group-alt {
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 1rem;

    div {
        color: #e9ceb3;
        font-weight: 600;
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
    
    input {
        padding: 0.5rem 0.5rem;
        border-radius: 0.2rem;
        font-size: 0.8rem;
        font-weight: 600;
        color: #e9ceb3;
        border: 0.1rem solid #184a6b5c;
        background: #0b283b;
        width: 20rem;
        height: 1.5rem;
    }

    button {
        padding: 0.5rem 1rem;
        border-radius: 0.2rem;
        font-size: 0.8rem;
        font-weight: 600;
        border: 0rem solid #184a6b5c;
        background: #e9ceb3;
        color: #184a6b;
        cursor: pointer;
        width: 100%;
        height: 3rem;
        margin-top: 0.5rem;
        margin-right: 0.5rem;
    }

    .field-error {
        color: #d34b58;
        font-size: 0.8rem;
        margin-top: 0.2rem;
    }

    .success {
        color: #87c487;
        font-size: 1rem;
    }
}



.input-group {
    button {
        padding: 0.5rem 1rem;
        border-radius: 0.2rem;
        font-size: 1rem;
        font-weight: 600;
        border: 0.1rem solid #184a6b5c;
        background: #e9ceb3;
        color: #184a6b;
        cursor: pointer;
        width: 7.8rem;
        margin-right: 0.5rem;
    
        &.remove {
            color: #d34b58;
        }
    }
}


@keyframes collapse {
    0% { max-height: 16.0rem; opacity: 1; padding: 1rem; }
    100% { max-height: 0.0rem; opacity: 0; padding: 0rem; }
}

.admin-nav {
    margin-bottom: 1rem;
    
    button {
        background: transparent;
        border: none;
        font-size: 1.8rem;
        color: #e9ceb3;
        opacity: 0.4;
        margin-left: 0.5rem;
        &:first-child {
            margin-left: 0;
        }
    }
}

.shopper-id {
    position: fixed;
    width: calc(100% - 2rem);
    height: 100%;
    top: 8rem;
    padding: 1rem;
    left: 0;
    background: #081F2E;
    z-index: 100;
    
    form {
        width: 100%;
    }
    div {
        font-size: 1rem;
    }
    input {
        margin-top: 1rem;
    }
}

.admin-order-card {
    width: 21.0rem;
    height: 4.0rem;
    background: rgb(235 220 201);
    padding: 0.2rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.05), 0 0.2rem 0.2rem rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;

    &.pending {
        box-shadow: inset 0px 0px 0px 5px #cd2a3a;
        height: 6.0rem;
    }
    

    h2 {
        font-size: 1.0rem;
        color: #d34b58;
        margin: 0;
        margin-bottom: 0.4em;
    }

    &:has(.deleted-order) {
        background: #d34b58;
        animation: collapse 0.3s;
        animation-fill-mode: forwards;
    }

    .header {
        display: flex;
        justify-content: space-between;
        margin: 0.6rem 0rem;
        align-items: center;
        
        h4 {
            font-size: 1rem;
            color: #184a6b;
            margin: 0;

            &.main {
                color: #d34b58;
            }
        }
    }

}

.admin-product-card {
    width: 21.0rem;
    height: 16.0rem;
    background: rgb(235 220 201);
    padding: 1rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.05), 0 0.2rem 0.2rem rgba(0, 0, 0, 0.05);
    border-radius: 1rem;

    h2 {
        font-size: 1.2rem; 
        color: #d34b58;
        margin: 0;
        margin-bottom: 0.4em;
    }

    &:has(.deleted-product) {
        background: #d34b58;
        animation: collapse 0.3s;
        animation-fill-mode: forwards;
    }
}


.fancy-heading {
    width: 100%;
    display: flex;
    justify-content: center;

    .mid-line {
        flex-grow: 1;
        position: relative;
        margin: 0 0.6rem;
        &:before {
            content: "";
            position: absolute;
            top: 50%;
            left: 0;
            width: 100%;
            height: 0.1rem;
            background: #184a6b;
        }
    }
}

.product-card {
    width: 8.2rem;
    height: 8.2rem;
    background: rgb(235 220 201);
    padding: 1rem;
    /* margin-bottom: 1.2rem; */
    margin: 0.5rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    

    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.05), 0 0.2rem 0.2rem rgba(0, 0, 0, 0.05);

    position: relative;

    h2 {
        font-size: 1.2rem; 
        margin-bottom: 0.5rem;
        color: #184a6b;
        text-align: center;
    }
    .price {
        font-size: 1.6rem;
        font-weight: 600;
        color: #d34b58;
    }

    /* &::before {
        content: "";
        width: 3rem;
        height: 3rem;
        background-image: url("/swish.svg");
        background-size: 50%;
        background-repeat: no-repeat;
        background-position: center center;
        position: absolute;
        bottom: 0;
        left: 0;
    } */
}

.shopper-verified {
    
}

.shopper-verified::after {
    content: " ✅";
    font-size: 1.2em;
    font-weight: bold;
    vertical-align: middle;
    color: #1f771f;
    display: inline-block;
    margin-left: 0.5em;
}

.shopper-unverified::after {
    content: " ❌";
    font-size: 1.2em;
    font-weight: bold;
    vertical-align: middle;
    color: #a03d22;
    display: inline-block;
    margin-left: 0.5em;
}