
/* #region BASE */

.add-product-to-cart-panel {
    position: fixed;
    top: 120px;
    bottom: 120px;
    left: 10%;
    right: 10%;
    /*
    left: 300px;
    right: 300px;
    */
    background-color: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 100;
    border-radius: 15px;
    border: 1px solid rgb(60, 60, 60);
    overflow-y: auto;
}

/* #endregion */

/* #region HEADER */

.add-product-to-cart-panel .header {
    border-bottom: 1px solid rgb(60, 60, 60);
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-product-to-cart-panel .header .title-box {
    display: flex;
    align-items: center;
    padding: 30px;
}

.add-product-to-cart-panel .header .title-box h2 {
    margin: 0;
}

.add-product-to-cart-panel .header .close-box {
    display: flex;
    align-items: center;
    padding: 30px;
}

.add-product-to-cart-panel .header .close-box img {
    width: 35px;
    cursor: pointer;
    transition: 0.3s ease;
}

.add-product-to-cart-panel .header .close-box img:hover {
    background-color: rgb(50, 50, 50);
    border-radius: 10px;
}

/* #endregion */

/* #region PREVIEW */

.add-product-to-cart-panel .preview {
    border-bottom: 1px solid rgb(60, 60, 60);
    height: 120px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.add-product-to-cart-panel .preview .image-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    width: 120px;
}

.add-product-to-cart-panel .preview .image-box img {
    border-radius: 10px;
    object-fit: cover;
    width: 60px;
    height: 60px;
}

.add-product-to-cart-panel .preview .title-box {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
}

.add-product-to-cart-panel .preview .title-box h3 {
    margin: 0;
}

.add-product-to-cart-panel .preview .title-box span {
    margin: 0;
    color: var(--light-text);
}

/* #endregion */

/* #region VARIATION SELECTOR */

.add-product-to-cart-panel .variation-selector {
    border-bottom: 1px solid rgb(60, 60, 60);
    height: 60px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 30px;
}

.add-product-to-cart-panel .variation-selector span {
    margin-right: 15px;
    background-color: rgb(50, 50, 50);
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-color);
    font-size: 12px;
    cursor: pointer;
    transition: 0.3s ease;
}

.add-product-to-cart-panel .variation-selector .selected {
    background-color: var(--primary-color);
}

.add-product-to-cart-panel .variation-selector h3 {
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 16px;
    margin: 0;
}

/* #endregion */

/* #region PRICE SELECTOR */

.add-product-to-cart-panel .price-selector {
    border-bottom: 1px solid rgb(60, 60, 60);
    height: 60px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 30px;
}

.add-product-to-cart-panel .price-selector span {
    margin-right: 15px;
    background-color: rgb(50, 50, 50);
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-color);
    font-size: 12px;
    cursor: pointer;
    transition: 0.3s ease;
}

.add-product-to-cart-panel .price-selector .selected {
    background-color: var(--primary-color);
}

.add-product-to-cart-panel .price-selector h3 {
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 16px;
    margin: 0;
}

/* #endregion */

/* #region QUANTITY INPUT */

.add-product-to-cart-panel .quantity-input {
    border-bottom: 1px solid rgb(60, 60, 60);
        
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 5px;
    padding-top: 5px;
}

.add-product-to-cart-panel .quantity-input .wrapper {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    display: flex;
    height: 50px;

    width: 100%;
    margin-bottom: 10px;
    margin-top: 10px;
}
    
.add-product-to-cart-panel .quantity-input .wrapper:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.add-product-to-cart-panel .quantity-input input {
    border: none;
    outline: none;
    background: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
    width: 100%;
    text-align: center;
}

.add-product-to-cart-panel .quantity-input .change-btn {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-product-to-cart-panel .quantity-input .change-btn img {
    width: 25px;
    height: 25px;
    object-fit: cover;
}

.add-product-to-cart-panel .quantity-input .change-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* #endregion */

/* #region PRICE DATA */

.add-product-to-cart-panel .price-data {
    border-bottom: 1px solid rgb(60, 60, 60);
}

.add-product-to-cart-panel .price-data .wrapper {
    background-color: rgba(255, 255, 255, 0.05);
    height: 100px;
    margin: 20px;
    border-radius: 10px;
}

.add-product-to-cart-panel .price-data .subtotal {
    width: auto;
    height: 50%;
    margin-left: 10px;
    margin-right: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
}

.add-product-to-cart-panel .price-data .subtotal .left {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: 10px;
}

.add-product-to-cart-panel .price-data .subtotal .right {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: 10px;
}

.add-product-to-cart-panel .price-data .total {
    width: auto;
    height: 50%;
    margin-left: 10px;
    margin-right: 10px;
    display: flex;
}

.add-product-to-cart-panel .price-data .total .left {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

.add-product-to-cart-panel .price-data .total .right {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

/* #endregion */

/* #region FOOTER */

.add-product-to-cart-panel .footer {
    height: 60px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 30px;
}

.add-product-to-cart-panel .footer span {
    margin-right: 15px;
    background-color: rgb(50, 50, 50);
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-color);
    font-size: 12px;
    cursor: pointer;
    width: 50%;
    text-align: center;
    transition: 0.3s ease;
}

.add-product-to-cart-panel .footer .highlighted {
    background-color: var(--primary-color);
}

.add-product-to-cart-panel .footer .loading {
    background-color: var(--warning-color);
}

.add-product-to-cart-panel .footer .success {
    background-color: var(--success-color);
}

.add-product-to-cart-panel .footer .error {
    background-color: var(--error-color);
}

/* #endregion */



/* #region MOBILE */

@media (max-width:5000px) {

    .add-product-to-cart-panel .variation-selector {
        height: auto;
        display: block;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 5px;
        padding-top: 5px;
    }

    .add-product-to-cart-panel .variation-selector span {
        display: inline-block;
        width: 100%;
        margin-bottom: 10px;
    }

    .add-product-to-cart-panel .price-selector {
        height: auto;
        display: block;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 5px;
        padding-top: 5px;
    }

    .add-product-to-cart-panel .price-selector span {
        display: inline-block;
        width: 100%;
        margin-bottom: 10px;
    }
}

/* #endregion */
