/* WC Products Qty Bundle - Frontend Styles */

.wpqb-bundles-frontend {
/*     margin: 20px 0 30px; */
/*     padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px; */
}

.wpqb-bundles-title {
    margin: 0 0 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

/* Selection Summary Section */
.wpqb-selection-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
	width: 100%;
/*     padding: 20px;
    background: #fff;
    border: 2px solid #2271b1;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
}

.wpqb-summary-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.wpqb-summary-qty {
/*     background: #2271b1;
    color: #fff; */
    font-size: 16px;
    font-weight: 700;
/*     width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; */
}

.wpqb-summary-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.wpqb-summary-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.wpqb-summary-per-item,
.wpqb-summary-total {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpqb-summary-label {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

.wpqb-summary-per-item-price {
    font-size: 1em;
    font-weight: 600;
    color: #333;
}

.wpqb-summary-total-price {
    font-size: 1.3em;
    font-weight: 700;
/*     color: #2271b1; */
}

.wpqb-bundles-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.wpqb-bundle-option {
/*     background: #fff;
    border: 1px solid #fff;
    border-radius: 4px;
    padding: 15px; */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.wpqb-bundle-option.selected .woocommerce-Price-amount {
    color: #ba322f;
}

.wpqb-bundle-option:hover {
    border-color: #2271b1;
/*     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    transform: translateY(-2px);
}

.wpqb-bundle-option.selected {
    border-color: #ba322f;
    border-width: 1px;
/*     background: #f0f6fc; */
/*     box-shadow: 0 4px 12px rgba(34, 113, 177, 0.2); */
    position: relative;
}

/* .wpqb-bundle-option.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #2271b1;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
} */

.wpqb-bundle-image {
    margin-bottom: 15px;
	padding: 10px;
    background-color: #fff;
    border-radius: 10px;
	border: 1px solid #fff;
}
.wpqb-bundle-option.selected .wpqb-bundle-image {
    border: 1px solid #ba322f;
}

.wpqb-bundle-image img {
    max-width: 134px;
    max-height: 134px;
    border-radius: 4px;
    display: block;
}

.wpqb-bundle-details {
    width: 100%;
}

.wpqb-bundle-name {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2271b1;
}

.wpqb-bundle-qty {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.wpqb-bundle-price {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 8px;
/*     color: #2271b1; */
}

.wpqb-bundle-price del {
    color: #999;
    font-weight: 400;
    margin-right: 5px;
}

.wpqb-bundle-price ins {
    text-decoration: none;
    color: #e74c3c;
}

.wpqb-per-item-price {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 8px;
    font-style: italic;
}

.wpqb-bundle-savings {
    font-size: 0.9em;
    color: #27ae60;
    font-weight: 600;
    padding: 5px 10px;
    background: #eafaf1;
    border-radius: 3px;
    display: inline-block;
}

/* Single Product Quantity Bundle */
.single-product form.cart {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap !important;
    gap: 15px;
}
.wpqb-bundles-list {
    display: flex;
    flex-direction: row;
}
.wpqb-bundle-name, .wpqb-per-item-price {
    display: none;
}
.wpqb-bundle-option {
    position: relative;
}
.wpqb-bundle-qty {
    position: absolute;
    left: -13px;
    top: -13px;
    background-color: #81878f;
    padding: 5px;
    border-radius: 100%;
    width: 25px;
    height: 25px;
    font-size: 12px;
    margin: 0px !important;
    line-height: 14px;
    color: white;
}
.wpqb-bundle-option.selected .wpqb-bundle-qty{
    background-color: #ba322f;
}
.wpqb-summary-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.single-product button.single_add_to_cart_button {
    width: 260px !important;
    padding: 14px 20px !important;
    font-size: 16px;
    text-transform: uppercase;
    line-height: 24px !important;
    margin-bottom: 0px !important;
    background-color: transparent !important;
    color: black !important;
    border: 1px solid #000 !important;
    transition: all 0.3s ease-in-out;
}

.single-product button.single_add_to_cart_button:hover{
    background-color: #000 !important;
    color: white !important;
}
.single-product .quantity {
    margin: 0px !important;
    border: 1px solid #000;
    border-radius: 5px;
}
.single-product input.input-text.qty {
    border-radius: 5px;
}


/* Single column on mobile */
@media (max-width: 768px) {
    .wpqb-bundles-list {
        grid-template-columns: 1fr;
    }

    

    .wpqb-bundle-image {
        margin-bottom: 0;
/*         margin-right: 15px; */
        flex-shrink: 0;
    }

    .wpqb-bundle-image img {
        max-width: 80px;
        max-height: 80px;
    }

    .wpqb-selection-summary {
/*         flex-direction: column;
        align-items: flex-start; */
        gap: 15px;
		width: 100%;
    }
	.single-product button.single_add_to_cart_button {
		width: 225px !important;
		margin-inline-start: 0px !important;
	}

    .wpqb-summary-left {
        width: 100%;
    }

    .wpqb-summary-right {
        width: 100%;
/*         align-items: flex-start; */
    }
}

/* RTL Support */
[dir="rtl"] .wpqb-bundle-option {
    text-align: right;
}

[dir="rtl"] .wpqb-bundle-price del {
    margin-right: 0;
    margin-left: 5px;
}

@media (max-width: 768px) {
    [dir="rtl"] .wpqb-bundle-image {
        margin-right: 0;
        margin-left: 15px;
    }
}