/**
 * Frontend Styles
 */
.aio-apw__section {
	margin: 5px 0;
	padding: 20px;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	background: #fafafa;
	width: 100%;
	clear: both;
	float: none;
	display: block;
	flex-basis: 100%;
	order: -1;
}
@media only screen and (max-width: 767px){

body .aio-apw__section{
    width: 395px !important;
    max-width: 395px !important;
}

body button.single_add_to_cart_button.button.alt{
    flex: 0 0 55% !important;
    max-width: 55% !important;
}

}

button.single_add_to_cart_button.button.alt.disabled.wc-variation-selection-needed {
    flex-basis: 72% !important;
}
button.single_add_to_cart_button.button.alt {
    flex-basis: 73% !important;
}
.elementor-add-to-cart-mobile--align-right form.cart button {
        flex-basis: 48% !important;
    }

.aio-apw__section h3 {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 1.25em;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--aio-apw-primary-color, #7F54B3);
}

.aio-apw__block {
	margin-bottom: 20px;
}
.aio-apw__block:last-child {
	margin-bottom: 0;
}

.aio-apw__block h4 {
	font-size: 1.1em;
	margin-bottom: 10px;
}

.aio-apw__field {
	margin-bottom: 15px;
	display: flex;
	flex-direction: column;
}
.aio-apw__field > label {
	font-weight: 600;
	margin-bottom: 5px;
	font-size: 0.95em;
}
.aio-apw__field input[type="text"],
.aio-apw__field select {
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	max-width: 100%;
}
.aio-apw__field-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.aio-apw__field-options label {
	display: flex;
	align-items: center;
	font-weight: 400;
	cursor: pointer;
}
.aio-apw__field-options input[type="radio"],
.aio-apw__field-options input[type="checkbox"] {
	margin-right: 8px;
}

.aio-apw__price-badge {
	display: inline-block;
	background: #e6f4ea;
	color: #137333;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 0.85em;
	font-weight: 600;
	margin-left: 10px;
}

.aio-apw__advance-notice {
	display: none;
	background: #fff3cd;
	border-left: 4px solid #ffc107;
	color: #856404;
	padding: 12px 15px;
	margin-top: 20px;
	border-radius: 0 4px 4px 0;
	font-weight: 500;
}
.aio-apw__advance-notice.is-visible {
	display: block;
}

.aio-apw-price-breakdown {
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px dashed #ccc;
}
.aio-apw-price-breakdown-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
}
.aio-apw-price-breakdown-row.total {
	font-weight: 700;
	font-size: 1.1em;
	border-top: 1px solid #ccc;
	padding-top: 8px;
	margin-top: 8px;
}

.aio-apw__price-badge {
	font-weight: bold;
	color: #27ae60;
}

/* Image Swatches */
.aio-apw__image-swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 15px;
	margin-top: 10px;
}
.aio-apw__swatch-item {
	position: relative;
	border: 2px solid transparent;
	border-radius: 8px;
	padding: 15px;
	cursor: pointer;
	text-align: center;
	background: #1e1e1e;
	color: #ffffff;
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
}
.aio-apw__swatch-item:hover,
.aio-apw__swatch-item:focus-within {
	border-color: #555;
	background: #2a2a2a;
}
.aio-apw__swatch-checkbox {
	margin-bottom: 15px !important;
	transform: scale(1.2);
}
.aio-apw__swatch-item img {
	max-width: 100%;
	height: auto;
	max-height: 100px;
	object-fit: contain;
	border-radius: 6px;
	margin-bottom: 12px;
}
.aio-apw__swatch-title {
	font-weight: 700;
	font-size: 0.9em;
	margin-bottom: 5px;
	line-height: 1.3em;
}
.aio-apw__swatch-price {
	font-size: 0.85em;
	color: #bfbfbf;
	font-weight: bold;
}


/* Fix for Variations Table & Clear Button Layout */
.woocommerce div.product form.cart table.variations {
	width: 100% !important;
	display: table !important;
}

.woocommerce div.product form.cart table.variations tr {
	display: flex !important;
	/* Forces flex to make it full width while keeping items inline */
	width: 100% !important;
	align-items: center;
	/* Aligns vertically */
	flex-wrap: nowrap;
	/* Forces to stay on same line */
}

.woocommerce div.product form.cart table.variations th.label {
	width: auto !important;
	display: block !important;
	padding-right: 15px;
	margin-bottom: 0 !important;
	white-space: nowrap;
}

.woocommerce div.product form.cart table.variations td.value {
	flex: 1;
	/* Grow to fill the rest of the 100% width */
	display: flex !important;
	align-items: center;
	/* keep swatches inline */
	flex-wrap: wrap;
	width: auto !important;
	position: relative;
}

.woocommerce div.product form.cart .reset_variations {
	visibility: visible !important;
	display: inline-block !important;
	margin-left: auto;
	/* Pushes the "Clear" completely to the right edge */
	color: #e2401c;
	white-space: nowrap;
	margin-top: 0;
}

.woocommerce div.product form.cart table.variations th.label {
	height: 38px !important;
}
.single_variation_wrap {
    margin-top: 8px;
}