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

html, body {
    width: 100%;
    height: 100%;
}

#cartMain {
    width: 100%;
    height: 100%;
    background-color: rgb(121, 82, 10);
    color: white;
    position: relative;
    padding: 20px;
}




#backToShop {
    width: 16%;
    height: 8%;
    position: absolute;
    display: flex;
}

#iconBackToShop {
    width: 30%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#backToShopText {
    width: 70%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-wrap: nowrap;
}

#backToShopButton {
    width: 50%;
    height: 50%;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.356);
    transition: transform 0.3s ease-in-out;
}

#backToShopButton:hover {
    cursor: pointer;
    transform: scale(1.25);
}

#backToShopButton img {
    filter: brightness(0) invert(1);
}









#shoppingCart{
    width: 65%;
    height: 87%;
    border: 1px dotted white;
    bottom: 3%;
    position: absolute;
}

#shoppingCartText{
    width: 100%;
    height: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px dotted white;
}

#shoppingCartItems{
    width: 100%;
    height: 95%;
    overflow-y: scroll;
}

.cartItems {
    width: 100;
    height: 25%; 
    display: flex; 
    padding: 10px; 
    border-radius: 5px; 
    border-bottom: 1px dotted white;
}

.itemPhoto{
    width: 20%;
    height: 100%;
}

.itemPhoto img{
    width: 100%;
    height: 100%;
    object-fit: contain; 
    display: block;
}


.itemDetails{
    width: 60%;
    height: 100%;
    /* background-color: orange; */
    padding: 10px 10px;
    font-size: 22px;
}

.itemButtons{
    width: 20%;
    height: 100%;
    /* background-color: orange; */
    padding: 10px 10px;
}

.quantityManager{
    width: 100%;
    height: 30%;
    /* background-color: green; */
    display: flex;
    /* border: 1px dotted white; */
}

.increaseQuantity{
    width: 30%;
    height: 100%;
    /* background-color: gray; */
    display: flex;
    justify-content: center;
    align-items: center;
}

.quantityCount{
    width: 40%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
}

.decreaseQuantity{
    width: 30%;
    height: 100%;
    /* background-color: black; */
    display: flex;
    justify-content: center;
    align-items: center;
}

.quantityButton {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 50px;
    display: flex;
    color: white;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.quantityButton:hover {
    cursor: pointer;
    background-color: orange;
    color: white;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}

.quantityButton:active {
    transform: scale(0.95);
    background-color: darkorange;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.itemPrice{
    width: 100%;
    height: 30%;
    margin-top: 9%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.itemSize{
    width: 100%;
    height: 30%;
    margin-top: 1%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sizeDecreaseButton{
    font-size: 25px;
    width: 20%;
    height: 60%;
    border: none;
    color: white;
    background-color: transparent;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border-radius: 5px;
}

.sizeDecreaseButton:hover{
    cursor: pointer;
    background-color: orange;
    color: white;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}

.sizeDecreaseButton:active{
    transform: scale(0.95);
    background-color: darkorange;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.currentSize{
    width: 20%;
    height: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 23px;
}


.sizeIncreaseButton{
    font-size: 25px;
    width: 20%;
    height: 60%;
    border: none;
    color: white;
    background-color: transparent;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border-radius: 5px;
}

.sizeIncreaseButton:hover{
    cursor: pointer;
    background-color: orange;
    color: white;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}

.sizeIncreaseButton:active{
    transform: scale(0.95);
    background-color: darkorange;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}







.address, .payment, .discount, .bill{
    border: 1px dotted white;
    width: 30%;
    height: auto;
    right: 2%;
    position: absolute;
}

.address {
    top: 10%;
}

.payment {
    top: 30%;
}

.discount{
    top: 55%;
}

.bill{
    top: 72%;
    height: 25%;
    padding: 10px 10px;
}

.textHeader {
    width: 100%;
    background-color: rgb(179, 119, 9);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 10px;
    font-size: 17px;
}

.textBoxContainer {
    width: 100%;
    height: auto;   
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

.textBox {
    height: 100%;
    width: 85%;
}

.inputText {
    width: 100%;
    height: 100px;
    font-size: 18px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: white;
    outline: none;
    padding: 10px;
    resize: none; 
    overflow-y: scroll; 
    white-space: pre-wrap; 
}

.editContainer {
    height: 100%;
    width: 15%;
    display: flex;
    align-items: center;
    padding: 10px 5px;
}

.buttonEdit {
    width: 100%;
    height: 20%;
    background-color: rgb(156, 107, 15);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 17px;
}

.buttonEdit:hover {
    background-color: orange;
    color: black;
    cursor: pointer;
}

.buttonEdit:active {
    transform: scale(0.95);
    background-color: darkorange;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .address, .payment {
        width: 90%;
        right: 5%;
    }

    #backToShop {
        width: 40%;
    }
}

.buttonApply {
    width: 100%;
    height: 20%;
    background-color: rgb(156, 107, 15);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 17px;
}

.buttonApply:hover {
    background-color: orange;
    color: black;
    cursor: pointer;
}


.buttonApply:active {
    transform: scale(0.95);
    background-color: darkorange;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}


#discountContent{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    padding: 10px 10px;
}

.textBoxCoupon{
    width: 90%;
}


.inputCoupon {
    overflow-x: auto; 
    overflow-y: hidden; 
    background: transparent;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    border: none;
    border-radius: 10px;
    color: white;
    outline: none;
    padding: 10px;
    white-space: nowrap; 
    resize: none;
}

#subtotal{
    width: 100%;
    height: 22%;
    border-bottom: 1px dotted white;
    /* background-color: red; */
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#shippingCost{
    width: 100%;
    height: 22%;
    /* background-color: green; */
    border-bottom: 1px dotted white;
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#discountCost{
    width: 100%;
    height: 22%;
    /* background-color: orange; */
    border-bottom: 1px dotted white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#discountCostText{
    display: flex;
    align-items: center;
    width: 40%;
    height: 100%;
    display: flex;
    gap: 20px;
}

#question{
    width: 20%;
    height: 100%;
    background-color: rgba(128, 128, 128, 0.459);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#total{
    width: 100%;
    height: 34%;
    /* background-color: black; */
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#totalText{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#totalText h1{
    font-size: 22px;
}

#totalText h2{
    font-size: 20px;
}

.buttonCheckout{
    width: 100%;
    height: 20%;
    background-color: rgb(156, 107, 15);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 17px;
}

.buttonCheckout:hover{
    cursor: pointer;
    background-color: orange;
    color: black;
}

.buttonCheckout:active {
    transform: scale(0.95);
    background-color: darkorange;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

