/* #region ADD PRODUCT TO CART PANEL */

.aptcp {
    overflow-y: auto;
    position: fixed;
    top: 120px;
    bottom: auto;
    left: 300px;
    right: 300px;
    background-color: rgb(20, 20, 20);
    border-radius: 15px;
    border: 1px solid gray;
    max-height: 500px;
}

/* #endregion */

/* #region ADD PRODUCT TO CART PANEL - HEADER */

.aptcp-header {
    width: 100%;
    height: 75px;
    border-bottom: 1px solid gray;
    display: flex;
}

.aptcp-header-data-part {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
}

.aptcp-header-data-part-image {
    width: 75px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aptcp-header-data-part-image img {
    height: 60%;
    width: 60%;
    object-fit: cover;
    border-radius: 8px;
}

.aptcp-header-data-part-name {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.aptcp-header-data-part-name h2 {
    margin: 0;
    padding: 0;
}

.aptcp-header-close-part {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: 10px;
}

.aptcp-header-close-part div {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* #endregion */

/* #region ADD PRODUCT TO CART PANEL - BUTTON */

.aptcp-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    text-align: center;
}

    .aptcp-btn:hover {
        background-color: var(--accent-color);
        transform: translateY(-2px);
    }

.aptcp-btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
}

    .aptcp-btn-secondary:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: var(--primary-color);
    }

.aptcp-btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

    .aptcp-btn-icon img {
        height: 25px;
    }

    .aptcp-btn-icon:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .aptcp-btn-icon.edit:hover {
        background-color: rgba(255, 193, 7, 0.2);
    }

    .aptcp-btn-icon.view:hover {
        background-color: rgba(0, 123, 255, 0.2);
    }

    .aptcp-btn-icon.delete:hover {
        background-color: rgba(220, 53, 69, 0.2);
    }

/* #endregion */

/* #region ADD PRODUCT TO CART PANEL - VARIATION SELECTOR */

.aptcp-variation-selector {
    width: 100%;
    height: 70px;
    border-bottom: 1px solid gray;
    display: flex;
}

.aptcp-variation-selector button {
    width: auto;
    height: 50px;
    margin: 10px;
}

/* #endregion */

/* #region ADD PRODUCT TO CART PANEL - NUMBER INPUT */

.aptcp-number-input {
    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;
    margin: 10px;
    width: 250px;
    display: flex;
}

.aptcp-number-input:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.aptcp-number-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: 150px;
    text-align: center;
}

.aptcp-number-input-change-btn {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aptcp-number-input-change-btn img {
    width: 25px;
    height: 25px;
    object-fit: cover;
}

.aptcp-number-input-change-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* #endregion */

/* #region ADD PRODUCT TO CART PANEL - FOOTER */

.aptcp-footer {
    margin-bottom: 20px;
    width: 100%;
    height: 50px;
    border-top: 1px solid gray;
    display: flex;
}

.aptcp-footer div {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
}

.aptcp-footer div button {
    width: 100%;
    height: 100%;
}

/* #endregion */

/* #region ADD PRODUCT TO CART PANEL - PRICE DATA */

.aptcp-price-data-container {
    background-color: rgba(255, 255, 255, 0.05);
    height: 100px;
    margin: 20px;
    border-radius: 10px;
}

.aptcp-price-data-container-subtotal {
    width: auto;
    height: 50%;
    margin-left: 10px;
    margin-right: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
}

.aptcp-price-data-container-subtotal-left {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: 10px;
}

.aptcp-price-data-container-subtotal-right {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: 10px;
}

.aptcp-price-data-container-total {
    width: auto;
    height: 50%;
    margin-left: 10px;
    margin-right: 10px;
    display: flex;
}

.aptcp-price-data-container-total-left {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

.aptcp-price-data-container-total-right {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

/* #endregion */



