/**
 * Frontend Styles
 */
.bundle-and-save-widget {
	margin: 30px 0;
	padding: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.bundle-and-save-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	margin-bottom: 20px;
}

.bundle-and-save-header-line {
	flex: 1;
	height: 1px;
	background: #000;
}

.bundle-and-save-title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: #000;
	text-transform: uppercase;
	letter-spacing: 1px;
	white-space: nowrap;
}

.bundle-and-save-container {
	border: 1px solid #000;
	background: #fff;
	padding: 20px;
	margin-bottom: 20px;
}

.bundle-and-save-item {
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding: 15px 0;
}

.bundle-and-save-item-row {
	display: flex;
	align-items: flex-start;
	gap: 15px;
}

.bundle-and-save-item-image {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	overflow: hidden;
	border-radius: 4px;
}

.bundle-and-save-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bundle-and-save-item-content {
	flex: 1;
	min-width: 0;
}

.bundle-and-save-item-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #000;
}

.bundle-and-save-item-options {
	margin-top: 0;
	width: 100%;
}

.bundle-and-save-variant-title {
	font-size: 12px;
	color: #000;
	margin-bottom: 8px;
	font-weight: bolder;
}

.bundle-and-save-attributes-container {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.bundle-and-save-attribute-selector {
	min-width: 120px;
}

/* 1 or 2 attributes: full width each */
.bundle-and-save-attributes-container[data-attribute-count="1"] .bundle-and-save-attribute-selector,
.bundle-and-save-attributes-container[data-attribute-count="2"] .bundle-and-save-attribute-selector {
	flex: 1;
}

/* 3 or more attributes: 2 per row, last one full width if odd */
.bundle-and-save-attributes-container[data-attribute-count]:not([data-attribute-count="1"]):not([data-attribute-count="2"]) .bundle-and-save-attribute-selector {
	flex: 0 0 calc(50% - 5px);
}

/* If odd number of attributes (>2), make last one full width */
.bundle-and-save-attributes-container[data-attribute-count]:not([data-attribute-count="1"]):not([data-attribute-count="2"]) .bundle-and-save-attribute-selector:nth-child(odd):last-child {
	flex: 1 1 100%;
}

.bundle-and-save-attribute-selector label {
	display: none;
}

.bundle-and-save-variant-select {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.bundle-and-save-variant-select:hover {
	border-color: #000;
}

.bundle-and-save-variant-select:focus {
	outline: none;
	border-color: #000;
}

.bundle-and-save-item-price {
	flex-shrink: 0;
	text-align: right;
}

.bundle-and-save-price {
	font-size: 16px;
	font-weight: 600;
	color: #000;
}

.bundle-and-save-separator {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 10px 0;
}

.bundle-and-save-separator-line {
	flex: 1;
	height: 1px;
	background: #000;
}

.bundle-and-save-add-icon {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid #000;
	background: #fff;
	color: #000;
	font-size: 18px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: default;
	flex-shrink: 0;
}

.bundle-and-save-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 15px;
	margin-top: 15px;
	border-top: 1px solid #ddd;
}

.bundle-and-save-total-label {
	font-size: 16px;
	font-weight: 600;
	color: #000;
}

.bundle-and-save-total-price {
	font-size: 18px;
	font-weight: 700;
	color: #000;
}

.bundle-and-save-add-to-cart-wrapper {
	margin-top: 0;
}

.bundle-and-save-add-to-cart-button {
	width: 100%;
	padding: 15px 20px;
	background: #000;
	color: #fff;
	border: none;
	border-radius: 0;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: background 0.3s ease;
}

.bundle-and-save-add-to-cart-button:hover:not(:disabled) {
	background: #333;
}

.bundle-and-save-add-to-cart-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Responsive - Mobile Styles */
@media (max-width: 768px) {
	.bundle-and-save-title {
		font-size: 20px;
	}
	
	.bundle-and-save-container {
		padding: 15px;
	}
	
	.bundle-and-save-item {
		padding: 12px 0;
	}
	
	.bundle-and-save-item-image {
		width: 60px;
		height: 60px;
	}
	
	.bundle-and-save-item-title {
		font-size: 14px;
	}
	
	.bundle-and-save-add-to-cart-button {
		padding: 12px 16px;
		font-size: 14px;
	}
}

