﻿
.clear-cart {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.products-and-order-container {
    display: flex;
    align-items: start;
    justify-content: center;
    column-gap: 80px;
    margin-top: auto;
    margin-bottom: auto;
}

.cart-product, .order-summary-container, .no-items-container {
    background: #1C1C1E;
    border: solid 1px #2F2F33;
    box-shadow: 0 4px 6px rgba(0,0,0,.05), 0 10px 25px rgba(0,0,0,.08);
    border-radius: 12px;
    color: white;
}

.cart-products-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 40px;
    margin-bottom: 10%;
    font-size: 16px;
}

.cart-product {
    display: flex;
    column-gap: 70px;
    padding: 50px;
    box-shadow: 0 0 5px rgba(0,0,0,0.15);
    width: 100%;
    font-size: 18px;
}

.cart-product-info {
    margin-left: -70px;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.cart-product-name {
    margin: 0;
    width: 200px;
    font-size: 20px;
    margin-bottom: 5px;
    color: white;
}

.cart-product-image {
    width: 400px;
    height: 400px;
    border-radius: 7px;
    margin-right: 15px;
}

.delivery-choice-container {
    display: flex;
    align-items: center;
    column-gap: 10px;
    margin-bottom: 5px;
}


.delivery-choices {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.delivery-label {
    margin: 0;
}

.delivery-option {
    transform: scale(1.5);
    background-color: green;
    padding: 5px;
    accent-color: rgb(231, 196, 123);
}

.delivery-option:hover,
.delivery-label:hover,
.delivery-choice-container,
.quantity-selector:hover {
    cursor: pointer;
}


.item-quantity-and-price {
    display: flex;
    flex-direction: column;
    row-gap: 0.5rem;
}


.order-summary-info {
    padding-top: 30px;
    padding-left: 30px;
    padding-right: 30px;
    font-size: 18px;
}

.order-summary,
.order-total,
.order-total-price {
    font-weight: bold;
    font-size: 20px;
}


.order-summary {
    text-align: center;
}

.summary-hr {
    margin-top: 0px;
    margin-bottom: 15px;
    border-width: 3px;
    background-color: black;
}

.summary-buttons {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
    align-items: start;
    padding: 10px;
}


.checkout-button{
    margin: 0;
}


.checkout-button,
.coupon-button,
.coupon-dropdown,
.coupon-input,
#coupon-code,
#submit-coupon {
    width: 100%;
}

.coupon-input {
    display: none;
    margin-top: 5px;
}

#coupon-code,
#submit-coupon {
    padding: 10px 30px;
    font-size: 16px;
    border-radius: 4px;
}

#submit-coupon {
    background: transparent;
    border: 1px solid rgba(214,179,106,.45);
    border-radius: 12px;
    color: #d6b36a;
    display: none;
}

#submit-coupon:hover {
    background: rgba(214,179,106,.08);
    border-color: #d6b36a;
    color: #f5d38a;
}


.summary-row {
    display: flex;
    column-gap: 50px;
    justify-content: space-between;
}

.summary-column {
    display: flex;
    flex-direction: column;
}

.cart-wrapper{
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.products-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 40px;
    row-gap: 40px;
}

.products-wrapper div{
    width: 400px;
}

.remove-item-button,
.clear-cart-button,
.refund-button{
    background: rgba(140, 40, 50, .15);
    color: #d97b83;
    border: 1px solid rgba(170, 70, 80, .45);
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 600;
    transition: all .25s ease;
    text-align: center;
}

.clear-cart-button{
    width: 100%;
}

.remove-item-button:hover,
.clear-cart-button:hover,
.refund-button:hover {
    background: rgba(170, 55, 65, .25);
    border-color: #cf5f69;
    color: #f3a0a8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(180,40,55,.18);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #4a3d21;
    background: #1C1C1E;
    color: rgb(231,196,123);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all .25s ease;
}

.quantity-btn:hover {
    background: rgba(214,179,106,.08);
    border-color: rgb(231,196,123);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212,175,55,.18);
}

.quantity-value {
    width: 30px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.quantity-container{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.no-items-container{
    display: flex;
    justify-content: center;
    padding: 20px;
}

#redirect-overlay, #coupon-validation-overlay, #remove-cart-item-overlay, #purchase-validation-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(18,18,18,.82);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
    z-index: 99999;
}

#redirect-overlay.show, #coupon-validation-overlay.show, #remove-cart-item-overlay.show, #purchase-validation-overlay.show {
    opacity: 1;
    visibility: visible;
}

.redirect-modal {
    background: #1C1C1E;
    border: 1px solid #2F2F33;
    border-radius: 16px;
    padding: 35px 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 18px;
    box-shadow: 0 12px 35px rgba(0,0,0,.45);
}

.redirect-modal p {
    margin: 0;
    color: white;
    font-size: 22px;
    font-weight: 700;
}

.redirect-spinner {
    width: 46px;
    height: 46px;
    border: 4px solid rgba(231,196,123,.25);
    border-top-color: rgb(231,196,123);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}


#submit-coupon:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.close-coupon-validation {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    transition: color .2s ease, transform .2s ease;
}

.close-coupon-validation:hover {
    color: rgb(231,196,123);
    transform: scale(1.1);
}

#coupon-validation-modal {
    position: relative;
}

@keyframes spin {

    to {
        transform: rotate(360deg);
    }
}

.info-and-buttons{
    display: flex;
    gap: 70px;
}

.review-refund-buttons{
    display: flex;
    flex-direction: column;
    gap: 15px;
}