/**
 * Elementor Variable Add to Cart Widget Styles
 */

/* WooCommerce Notice Styling for Horizontal/Sticky Layouts */
.evac-wc-notice-container {
	margin: 0 auto 20px auto;
	padding: 0;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
}

.evac-wc-notice-container .evac-wc-notice {
	background-color: #D7D7CC !important;
	border: none !important;
	border-left: none !important;
	padding: 15px 20px !important;
	margin: 0 auto !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	flex-wrap: wrap !important;
	gap: 15px !important;
	box-shadow: 0px 4px 44px 0px rgba(0, 0, 0, 0.15) !important;
	border-radius: 7px !important;
	position: relative !important;
	color: #333 !important;
	width: var(--content-width);
}

.woocommerce-message.evac-wc-notice:before {
	display: none;
}

.evac-wc-notice-container .evac-wc-notice .evac-notice-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.evac-wc-notice-container .evac-wc-notice .evac-notice-icon .evac-tick-icon {
	width: 36px;
	height: 35px;
	display: block;
}

.evac-wc-notice-container .evac-wc-notice .evac-notice-message {
	flex: 1;
	color: #333 !important;
	font-size: inherit;
	line-height: inherit;
}

.evac-wc-notice-container .evac-wc-notice .evac-notice-button-wrapper {
	flex-shrink: 0;
	margin-left: auto;
}

.evac-wc-notice-container .evac-wc-notice .evac-view-cart-button {
	background-color: #00794D !important;
	color: #fff !important;
	border: none !important;
	padding: 10px 20px !important;
	border-radius: 4px !important;
	text-decoration: none !important;
	font-weight: 500 !important;
	transition: background-color 0.3s ease !important;
	display: inline-block !important;
}

.evac-wc-notice-container .evac-wc-notice .evac-view-cart-button:hover {
	background-color: #006640 !important;
	color: #fff !important;
}

.evac-wc-notice-container .evac-wc-notice a:not(.evac-view-cart-button) {
	color: #333 !important;
	text-decoration: none !important;
}

/* Ensure notice is within page container */
.woocommerce-notices-wrapper {
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
}

/* Responsive */
@media (max-width: 768px) {
	.evac-wc-notice-container .evac-wc-notice {
		flex-direction: row !important;
		align-items: center !important;
		gap: 10px !important;
	}

	.evac-wc-notice-container .evac-wc-notice .evac-notice-message {
		flex: 1;
		min-width: 0;
	}

	.evac-wc-notice-container .evac-wc-notice .evac-notice-button-wrapper {
		margin-left: 0 !important;
		width: 100% !important;
		margin-top: 10px !important;
	}

	.evac-wc-notice-container .evac-wc-notice .evac-view-cart-button {
		width: 100% !important;
		text-align: center !important;
	}
}

.elementor-variable-add-to-cart-widget {
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	background-color: #f8f6f3;
	border: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

/* Content Section */
.evac-content-section {
	flex: 1;
	background: #FEFEF3;
	padding: 0 15px 20px 15px;
}

/* Product Image */
.elementor-product-image {
	margin-bottom: 25px;
	text-align: center;
}

.elementor-product-image img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

/* Product Description */
.elementor-product-description {
	font-size: 16px;
	line-height: 1.7;
	color: #333;
	margin-bottom: 20px;
	font-style: italic;
}

/* More Details Link */
.evac-more-details {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	text-decoration: underline;
	text-underline-offset: 3px;
	margin-bottom: 30px;
	letter-spacing: 0.5px;
	transition: color 0.3s ease;
}

.evac-more-details:hover {
	color: #4a6741;
}

/* Variations */
.elementor-variations {
	margin-bottom: 20px;
}

.elementor-variation-attribute {
	margin-bottom: 20px;
}

.elementor-variation-label {
	display: block;
	margin-bottom: 15px;
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 1.5px;
	color: #333;
}

.elementor-variation-options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.elementor-variation-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.elementor-variation-button {
	padding: 12px 24px;
	border: 1px solid #333;
	background-color: transparent;
	color: #333;
	cursor: pointer;
	transition: all 0.25s ease;
	font-size: 14px;
	border-radius: 30px;
	min-width: 100px;
	text-align: center;
	font-weight: 400;
	letter-spacing: 0.3px;
}

.elementor-variation-button:hover {
	border-color: #4a6741;
	color: #4a6741;
}

.elementor-variation-button.selected {
	border-color: #4a6741;
	background-color: #4a6741;
	color: #fff;
}

.elementor-variation-button:disabled,
.elementor-variation-button.disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* Variation Select Dropdown */
.elementor-variation-select {
	padding: 12px 24px;
	border: 1px solid #333;
	background-color: transparent;
	color: #333;
	cursor: pointer;
	transition: all 0.25s ease;
	font-size: 14px;
	border-radius: 30px;
	min-width: 200px;
	text-align: left;
	font-weight: 400;
	letter-spacing: 0.3px;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	padding-right: 45px;
}

.elementor-variation-select:hover {
	border-color: #4a6741;
	color: #4a6741;
}

.elementor-variation-select:focus {
	outline: none;
	border-color: #4a6741;
}

/* Footer Section */
.evac-footer-section {
	background-color: #F3F2E7;
	padding: 25px 15px;
}

.evac-footer-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 20px;
}

.evac-footer-info {
	display: flex;
	flex-direction: column;
	gap: 0;
	flex: 1;
	align-items: flex-start;
}

/* Product Title */
.elementor-product-title {
	margin: 0 0 8px 0;
	font-size: 20px;
	font-weight: 500;
	letter-spacing: 2px;
	color: #333;
	line-height: 1.2;
	display: block;
	width: 100%;
}

/* Product Price */
.elementor-product-price {
	font-size: 18px;
	font-weight: 500;
	color: #4a6741;
	margin: 0;
	line-height: 1.2;
	display: block;
	width: 100%;
}

.elementor-product-price del {
	color: #999;
	font-weight: 400;
	font-size: 14px;
}

.elementor-product-price ins {
	text-decoration: none;
	color: #4a6741;
}

/* Hide "From:" text when variation is selected */
.elementor-product-price.variation-selected .piechentea-price-from,
.variation-selected .piechentea-price-from {
	display: none !important;
}

/* Quantity Wrapper */
.elementor-quantity-wrapper {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin-bottom: 20px;
	border: 1px solid #ddd;
}

.elementor-quantity-wrapper.disabled {
	opacity: 0.6;
	pointer-events: none;
	cursor: not-allowed;
}

.elementor-quantity-wrapper.disabled .evac-qty-btn {
	cursor: not-allowed;
	opacity: 0.6;
	border-radius: 4px;
	overflow: hidden;
	width: auto;
	margin-left: auto;
	background-color: #fff;
	/* height: 40px; */
}

.evac-qty-btn {
	/* width: 40px; */
	/* height: 40px; */
	border: none;
	background-color: #fff;
	color: #333;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 18px;
	font-weight: 300;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 1;
	flex-shrink: 0;
}

.evac-qty-btn:hover {
	background-color: #f5f5f5;
}

.evac-qty-display {
	min-width: 30px;
	width: auto;
	/*height: 40px;*/
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 500;
	color: #333;
	background-color: #fff;
	/* padding: 0 10px; */
	box-sizing: border-box;
}

/* Add to Cart Button */
.elementor-variable-add-to-cart-button {
	width: 100%;
	padding: 18px 30px;
	border: none;
	border-radius: 0;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 2px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-decoration: none;
	background-color: #4a6741;
	color: #fff;
}

.elementor-variable-add-to-cart-button:hover:not(.disabled):not(:disabled) {
	background-color: #3d5636;
}

.elementor-variable-add-to-cart-button.disabled,
.elementor-variable-add-to-cart-button:disabled {
	background-color: #ccc;
	cursor: not-allowed;
}

.elementor-variable-add-to-cart-button.loading {
	position: relative;
	color: transparent !important;
}

.elementor-variable-add-to-cart-button.loading::after {
	content: "";
	position: absolute;
	width: 20px;
	height: 20px;
	top: 50%;
	left: 50%;
	margin-left: -10px;
	margin-top: -10px;
	border: 2px solid #fff;
	border-top-color: transparent;
	border-radius: 50%;
	animation: elementor-spin 0.6s linear infinite;
}

.evac-btn-icon {
	font-size: 18px;
	font-weight: 300;
}

@keyframes elementor-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Continue Shopping Link */
.evac-continue-shopping {
	display: block;
	text-align: center;
	font-size: 13px;
	font-weight: 500;
	color: #333;
	text-decoration: underline;
	text-underline-offset: 3px;
	margin-top: 20px;
	letter-spacing: 1px;
	transition: color 0.3s ease;
}

.evac-continue-shopping:hover {
	color: #4a6741;
}

/* Messages */
.elementor-add-to-cart-message {
	margin-top: 15px;
	min-height: 0;
}

.elementor-message {
	padding: 12px 15px;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.elementor-message-success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.elementor-message-error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Single Variation Display (Hidden by default) */
.elementor-single-variation-wrap {
	display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
	.elementor-variable-add-to-cart-widget {
		max-width: 100%;
	}
	
	.evac-content-section,
	.evac-footer-section {
		padding-left: 20px;
		padding-right: 20px;
	}

	.elementor-product-title {
		font-size: 18px;
	}

	.elementor-product-description {
		font-size: 15px;
	}

	.evac-footer-top {
		flex-direction: column;
		gap: 15px;
	}

	.evac-footer-info {
		width: 100%;
		margin-bottom: 15px;
	}

	.elementor-product-title {
		margin-bottom: 8px;
	}

	.elementor-product-price {
		margin-top: 0;
	}

	.elementor-quantity-wrapper {
		margin-left: 0;
		margin-right: 0;
		width: 100%;
		justify-content: flex-start;
	}

	.elementor-variation-buttons {
		width: 100%;
	}

	.elementor-variation-button {
		flex: 1;
		min-width: calc(33.333% - 10px);
		padding: 10px 15px;
	}
}

@media (max-width: 480px) {
	.elementor-variation-button {
		min-width: calc(50% - 10px);
	}
}

/* Accessibility */
/* Focus styles can be added here if needed */

/* Print Styles */
@media print {
	.elementor-variable-add-to-cart-button,
	.elementor-variation-button,
	.evac-qty-btn,
	.evac-continue-shopping,
	.evac-more-details {
		display: none;
	}
}

/* Elementor Editor Styles */
.elementor-editor-active .elementor-variable-add-to-cart-widget {
	min-height: 400px;
}
