/* Base styles */
.cpp-modal {
    /* display: none; */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow-y: auto;
    /* Allow scrolling if content exceeds viewport height */
}

.cpp-modal-content {
    position: relative;
    background: #fff;
    max-width: 747px;
    margin: 5% auto;
    /* Center vertically with some spacing */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: cppSlideIn 0.3s ease-out;
}

/* Close button */
.cpp-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 31px;
    color: #000000;
    cursor: pointer;
    transition: color 0.2sease;
    font-weight: 800;
}

.cpp-close:hover {
    color: #333;
}

/* Header */
.cpp-modal h3 {
    margin: 0 0 1.5rem;
    font-size: 1.5em;
    color: #333;
    text-align: center;
}

/* Product list */
.cpp-products {
    margin: 1rem 0;
}

.cpp-product {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 5px;
    background: #f9f9f9;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cpp-product:hover {
    background: #fff;
    border-color: #ddd;
}

.cpp-product label {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.cpp-product input[type="checkbox"] {
    margin-right: 1rem;
}

.cpp-product-image {
    width: 60px;
    height: 60px;
    margin-right: 1rem;
    border-radius: 5px;
    object-fit: cover;
}

.cpp-product-title {
    font-weight: 600;
    color: #333;
    margin-right: 0.5rem;
}

.cpp-product-price {
    color: #28a745;
    font-weight: 600;
}

/* Variations dropdown */
.cpp-variations {
    margin-top: 0.5rem;
}

.cpp-variation-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    font-size: 0.9em;
}

/* Buttons */
.cpp-add-selected,
.cpp-checkout {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cpp-add-selected {
    background: #007bff;
    color: white;
    margin-right: 1rem;
}

.cpp-add-selected:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.cpp-checkout {
    background: #28a745;
    color: white;
}

.cpp-checkout:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* Loading indicator */
#cpp-loading {
    display: none;
    margin-top: 1rem;
    text-align: center;
    font-style: italic;
    color: #666;
}

/* Success message */
#cpp-success-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* background: #fff; */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    /* animation: cppSlideIn 0.3s ease-out; */
}

#cpp-success-text {
    text-align: center;
}

.cpp-success-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cpp-product .cpp-variations select.cpp-variation-select {
    height: unset !important;
    width: 150px;
    padding: 10px;
}

.cpp-success-close:hover {
    color: #333;
}

form.cart .button {
    float: unset !important;

}

label .cpp-product-title {
    max-width: 187px;
}

.cpp-add-selected {
    margin-right: 5px !important;
}

.reset_variations {
    margin-top: 10px;
    margin-bottom: 10px;
}

#cpp-success-message .cpp-modal-content {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .cpp-modal-content {
        width: 90%;
        margin: 10% auto;
        padding: 1.5rem;
    }

    .cpp-product {
        flex-direction: column;
        align-items: flex-start;
    }

    .cpp-product-image {
        margin-bottom: 0.5rem;
    }

    .cpp-add-selected,
    .cpp-checkout {
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Animations */
/* @keyframes cppSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
} */



/* new pop ----------------------- */

.head-pop {
    font-weight: 400;
    font-size: 42px;
    line-height: 100%;

    text-transform: capitalize;
    text-align: center;
    margin-bottom: 10px;
}

.head-pop-disc {
    color: #000000;
    font-weight: 400;
    text-align: center;
    font-size: 17px;
    line-height: 100%;
    margin-top: 0;
    margin-bottom: 10px ! IMPORTANT;
}

.estimate-div {
    background-color: #D8EEEA;
    padding: 21px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.estimate-div p {
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;

    margin: 0;
    margin-bottom: 6px;
    text-align: center;
}

.estimate-div h6 {
    color: #000000;
    font-weight: 400;
    font-size: 20px;
    line-height: 100%;

    margin: 0;
    text-align: center;
}

.cart-items {
    font-weight: 400;
    font-size: 18px;
    line-height: 100%;

    color: #666666;
    text-align: center;
    margin-top: 0;
    margin-bottom: 7px;
}

.main-price {
    color: #000000;
    font-weight: 400;
    font-size: 35px;
    line-height: 100%;

    margin-bottom: 5px;
    text-align: center;
    margin-top: 0;
}

.price-remember {
    color: #000000;
    font-weight: 400;
    font-size: 15px;
    line-height: 100%;
    margin-bottom: 19px;
    text-align: center;
    margin-top: 0;
}

.pair-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.comn-btn-outline {
    border: 1px solid #000000;
    padding: 15px 5px;
    color: #000000;
    background-color: transparent;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    text-transform: uppercase;
    max-width: 165px;
    width: 100%;
    text-align: center;
    text-decoration: none;
}

.comn-btn-black {
    border: 1px solid #000000;
    padding: 15px 5px;
    color: white;
    background-color: black;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    text-transform: uppercase;
    max-width: 165px;
    width: 100%;
    text-align: center;
    text-decoration: none;
}

.product-info-all h5 {
    font-weight: 400;
    font-size: 24px;
    line-height: 100%;

    text-transform: capitalize;
    margin-bottom: 10px;
    color: #000000;
    margin-top: 0;
}

.product-info-all p {
    font-weight: 400;
    font-size: 16px;
    line-height: 29px;
    color: #666666;
    margin: 0 !important;
}

.product-info-all {
    margin-bottom: 30px;
}

.products-show {
    background-color: #F7F6FF;
    padding: 40px 20px;
}

.product-img-show {
    padding-bottom: 17%;
    width: 100%;
    height: 100%;
    position: relative;
    max-width: 119px;
    margin: 0;
}

.product-img-show img {
    position: absolute;
    width: 100%;
    height: 100%;
    max-width: 100% !important;
    object-fit: contain;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

select.product-variation-select {
    height: auto !important;
    margin-bottom: 19px;
}

.data-show-product {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
}

.product-show-one {
    display: flex;
    gap: 33px;
    align-items: center;
}

.data-show-product h3 {
    font-weight: 400;
    font-size: 17px;
    line-height: 100%;
    text-transform: capitalize;
    max-width: 459px;
    margin-bottom: 20px;
    text-align: left;
    color: #000000;
}

.data-show-product h6 {
    color: #000000;
    font-weight: 400;
    font-size: 17px;
    line-height: 100%;
    margin-top: 0;
    margin-bottom: 17px;
}

.product-show-one .pair-btn {
    margin-bottom: 0;
    justify-content: left;
}

.upper-product-row {
    display: flex;
    flex-direction: column;
    row-gap: 30px;
}

.add-select {
    margin-top: 40px;
    text-align: center;
}

.add-select .comn-btn-black {
    max-width: 377px;
}
.product-show-one.selected .comn-btn-outline{
    background-color: #20ab20;
    color: white;
    border-color: #20ab20;
}
.cpp-summary-close{
    font-size: 27px;
    font-weight: 600;
    cursor: pointer;
}
#cpp-selected-summary{
    text-align: center;
    margin-bottom: 24px;
}
.add-select.add-s{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}
.comn-btn-black:hover{
    background-color: white !important;
    border-color: black !important;
    color: black !important;
}
.varient-flex{
    display: flex;
    gap: 10px;
}
@media(max-width:1399px) {
    .data-show-product h3 {
        font-size: 15px;
        max-width: 453px;
        margin-bottom: 14px;
    }   

    .data-show-product h6 {
        font-size: 18px;
        line-height: 100%;
        margin-bottom: 15px;
    }

    .comn-btn-outline {
        padding: 14px 5px;
        font-size: 14px;
        max-width: 164px;
        width: 100%;
    }

    .comn-btn-black {
        padding: 14px 5px;
        font-size: 14px;
        max-width: 164px;
        width: 100%;
    }

    .add-select .comn-btn-black {
        max-width: 320px;
    }
}

@media(max-width:1099px) {
    .product-info-all p {
        font-size: 15px;
        line-height: 28px;
    }

    .main-price {
        font-size: 33px;
        margin-bottom: 5px;
        text-align: center;
        margin-top: 0;
    }

    .products-show {
        padding: 28px;
    }

    .head-pop-disc {
        font-size: 17px;
        line-height: 100%;
        margin-bottom: 29px;
    }
    .data-show-product h6 {
        font-size: 16px;
        line-height: 100%;
        margin-bottom: 14px;
    }


}

@media(max-width:991px) {

    .product-show-one {
        gap: 16px;
    }

    .add-select {
        margin-top: 24px;
        text-align: center;
    }

    .product-info-all p {
        font-size: 14px;
        line-height: 25px;
    }
    .main-price {
        font-size: 36px;
        margin-bottom: 5px;
        text-align: center;
        margin-top: 0;
    }

}

@media(max-width:767px) {
    .product-show-one {
        gap: 16px;
        flex-wrap: wrap;
    }

    .data-show-product h3 {
        font-size: 19px;
        max-width: 100%;
        margin-bottom: 12px;
    }
    .product-img-show {
        padding-bottom: 32%;
        width: 100%;
        height: 100%;
        position: relative;
        max-width: 136px;
        margin: 0;
    }
    .add-select.add-s{
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
    }
    .varient-flex{
    flex-wrap: wrap;
    }
    .uppr-div-select{
        width: 100%;
    }

}

@media(max-width:575px) {

    .estimate-div {
        background-color: #D8EEEA;
        padding: 13px;
        border-radius: 10px;
        margin-bottom: 20px;
    }

    .estimate-div h6 {
        font-size: 17px;
        line-height: 100%;
    }

    .estimate-div p {
        font-size: 13px;
        margin: 0;
        margin-bottom: 6px;
    }

    .main-price {
        font-size: 29px;
        margin-bottom: 5px;
        margin-top: 0;
    }

    .cart-items {
        font-size: 15px;
        margin-top: 0;
        margin-bottom: 7px;
    }

    .price-remember {
        font-size: 14px;
        margin-bottom: 19px;
        margin-top: 0;

    }

    .comn-btn-outline {
        padding: 14px 6px;
        font-size: 13px;
        max-width: 167px;
        width: 100%;
    }

    .comn-btn-black {
        padding: 14px 6px;
        font-size: 13px;
        max-width: 167px;
        width: 100%;
    }

    .product-info-all h5 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .products-show {
        padding: 28px 12px;
    }

    .product-info-all p {
        font-size: 14px;
        line-height: 23px;
    }

    .product-img-show {
        padding-bottom: 56%;
        max-width: 221px;
        margin: 0;
    }

    .add-select .comn-btn-black {
        max-width: 278px;
    }
    
}

@media(max-width:425px) {


    .pair-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 13px;
        margin-bottom: 50px;
        flex-wrap: wrap;
    }

    .data-show-product h3 {
        font-size: 17px;
        max-width: 100%;
        margin-bottom: 12px;
    }

    .data-show-product h6 {
        font-size: 16px;
        line-height: 100%;
        margin-bottom: 15px;
    }

    .cpp-modal-content {
        width: 90%;
        margin: 10% auto;
        padding: 1.5rem 1rem;

    }

    .head-pop-disc {
        font-size: 14px;
        line-height: 100%;
        margin-bottom: 19px;
    }
    .head-pop{
        font-size: 18px !important;
    }

    .pair-btn {
        gap: 13px;
        margin-bottom: 34px;
        flex-wrap: wrap;
    }

    .product-img-show {
        padding-bottom: 91%;
        max-width: 100%;
        margin: 0;
    }
}

