html {
    font-family: 'Source Sans 3', sans-serif;
    color: #282828;
    user-select: none;
}

p, h3 {
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    min-width: 17rem;
    max-width: 60rem;
    margin: 0 auto;
    background-color: #282828;
} 

img{
    min-width: 3rem;
    max-width: 100%;
    display: block;
}

/* ORDER FORM */

.order-form {
    display: grid;
    width: 100%;
}

.order-selection-container {
    padding: 0 1.25rem;
    background-color: #FFFBEB;
    border-bottom: 2px solid black;
}

.os__food-item {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 1rem;
}

.os__food-item:not(:last-child) {
    border-bottom: 2px solid lightgrey;
}

.os__food-item img {
    max-width: 7.5%;
}

.fi__text-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.fi__text {
    margin: .75rem 0;
    display: grid;
    gap: .35rem;
    min-width: 17ch;
    width: 60%;
    font-size: 1em;
    font-weight: 400;
}

.fi__text-name {
    font-weight: 900;
    font-size: 1.15em;
    white-space: nowrap;
}

.fi__text-ingredients {
    max-width: 100%;
}

.fi__text-price {
    font-weight: 700;
}

.fi-add-to-cart-wrapper {
    display: flex;
    align-items: center;
    justify-content: end;
    width: 40%;
    font-size: 1.25em;
    font-weight: 600;
}

@media (max-width: 25.5rem) {
    .fi-add-to-cart-wrapper {
        flex-direction: column;
        align-items: end;
        justify-content: center;
        margin: .75rem 0;
    }

    .fi-add-to-cart-wrapper p {
        margin: 0 1.1rem;
    }
}

.add-to-cart {
    color: #404040;
    padding: .22em .22em .15em .22em;
    margin: .5rem;
    border: 1px solid gray;
    border-radius: 50%;
}

.add-to-cart:hover {
    opacity: .75;
    transition: .15s ease;
}

.add-to-cart:active {
    opacity: .5;
    transition: .05s ease;
}

/* ORDER SELECTION SUMMARY */

.order-details {
    background-color: #fbfbf9;
    width: 100%;
}

.order-details-wrapper {
    display: grid;
    align-items: center;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.od-food-items-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: .25rem 0;
    gap: .5em;
}

.od-food-item {
    display: flex;
    justify-content: space-between;
    padding: 0 1.75rem;
}

.od-food-item > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .33em;
    width: 100%;
}

.od-food-item-name {
    font-weight: 600;
}

/* ORDER PRICE SUMMARY */

.od-total-price {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: .25rem;
    margin: 0 auto;
    border-top: 2px solid lightgray;
    width: 90%;
    padding: 1rem .5rem 0 .5rem;
    font-size: 1.1em;
    font-weight: 500;
}

.od-total-price div {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-width: 16rem;
}

.od-total-price div p span{
    font-size: .75em;
    font-weight: 400;
}

.od-total-price--discount {
    color: rgba(230, 0, 0, 0.651);
}

.od-total-price div:last-child {
    border-top: 2px solid lightgrey;
    padding: 1rem 0;
    font-size: 1.25em;
    font-weight: bold;
}

.od-food-item--remove-btn {
    border: none;
    background: none;
    transition: .3s ease;
    margin-inline-end: .6rem;
}

.od-food-item--remove-btn:hover {
    opacity: .8;
    transition: .3s ease;
}

.od-food-item--remove-btn:active {
    opacity: .5;
}

.od-btn-container {
    width: 100%;
    padding: 0 0 1rem 0;
}

.od-btn-container button {
    width: 100%;
    max-width: 25.5rem;
    padding: .5em;
    background-color: #15db99;
    border: none;
    border-radius: .25em;
    font-size: 1.1em;
    font-weight: bold;
    color: whitesmoke;
}

.od-btn-container button:active {
    background-color: #10a775;
}

/* MODAL */

.checkout-modal-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 245, 245, 0.466);
} 

.show {
    display: none;
}

.modal-form-wrapper {
    display: grid;
    align-items: center;
    position: fixed;
    inset: auto 0;
    min-width: 12rem;
    max-width: 26rem;
    padding: 2rem;
    height: fit-content;
    inset: 0;
    margin: auto;
    background-color: whitesmoke;
    border-radius: 4.6px;
    border: 1px solid lightgray;
    box-shadow: 1px 1px 5px lightgray;
}

.close-modal-wrapper {
    text-align: end;
}

.close-modal {
    color: #282828;
    width: fit-content;
}

.close-modal:active {
    opacity: .75;
}

.modal-form-input-wrapper,
.checkout-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.checkout-form input{
    width: 100%;
    padding: 1rem;
    border: 1px solid #cccccc;
    box-shadow: 0px 1px 5px lightgray;
    border-radius: 4.6px;
}

.checkout-form-pay-btn {
    background-color: #15db99;
    font-size: 1.1em;
    font-weight: bold;
    color: whitesmoke;
}

.checkout-form-pay-btn:active {
    background-color: #10a775;
}

