/**
 * Section Layout Styles - Accordion, Tabs & Wizard
 *
 * @package Extra_Product_Options_For_WooCommerce
 * @since   4.4.6
 */

/* ==========================================================================
   CSS Custom Properties (Animation Speed)
   ========================================================================== */

.epofw-layout-accordion,
.epofw-layout-tabs,
.epofw-layout-wizard {
	--epofw-animation-duration: 300ms;
}

[data-animation-speed="none"] {
	--epofw-animation-duration: 0ms;
}

[data-animation-speed="fast"] {
	--epofw-animation-duration: 150ms;
}

[data-animation-speed="normal"] {
	--epofw-animation-duration: 300ms;
}

[data-animation-speed="slow"] {
	--epofw-animation-duration: 500ms;
}

/* ==========================================================================
   Accordion Layout
   ========================================================================== */

.epofw-layout-accordion .epofw-accordion-section {
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-bottom: 10px;
	overflow: hidden;
}

.epofw-layout-accordion .epofw-accordion-section:last-child {
	margin-bottom: 0;
}

/* Accordion Header */
.epofw-layout-accordion .epofw-accordion-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 15px;
	background-color: #f7f7f7;
	cursor: pointer;
	transition: background-color var(--epofw-animation-duration) ease;
	user-select: none;
}

.epofw-layout-accordion .epofw-accordion-header:hover {
	background-color: #ebebeb;
}

.epofw-layout-accordion .epofw-accordion-header:focus {
	outline: 2px solid #0073aa;
	outline-offset: -2px;
}

.epofw-layout-accordion .epofw-accordion-header .epofw-section-title {
	margin: 0;
	flex: 1;
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

/* Accordion Icon - Base */
.epofw-layout-accordion .epofw-accordion-icon {
	width: 20px;
	height: 20px;
	position: relative;
	flex-shrink: 0;
	margin-left: 10px;
}

/* Plus-Minus Icon (Default) */
.epofw-layout-accordion.epofw-accordion-icon-plus-minus .epofw-accordion-icon::before,
.epofw-layout-accordion.epofw-accordion-icon-plus-minus .epofw-accordion-icon::after {
	content: '';
	position: absolute;
	background-color: #666;
	transition: transform var(--epofw-animation-duration) ease;
}

.epofw-layout-accordion.epofw-accordion-icon-plus-minus .epofw-accordion-icon::before {
	width: 12px;
	height: 2px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.epofw-layout-accordion.epofw-accordion-icon-plus-minus .epofw-accordion-icon::after {
	width: 2px;
	height: 12px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.epofw-layout-accordion.epofw-accordion-icon-plus-minus .epofw-accordion-expanded .epofw-accordion-icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

/* Chevron Icon */
.epofw-layout-accordion.epofw-accordion-icon-chevron .epofw-accordion-icon::before {
	content: '';
	position: absolute;
	width: 10px;
	height: 10px;
	border-right: 2px solid #666;
	border-bottom: 2px solid #666;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -70%) rotate(45deg);
	transition: transform var(--epofw-animation-duration) ease;
}

.epofw-layout-accordion.epofw-accordion-icon-chevron .epofw-accordion-expanded .epofw-accordion-icon::before {
	transform: translate(-50%, -30%) rotate(-135deg);
}

/* Caret Icon */
.epofw-layout-accordion.epofw-accordion-icon-caret .epofw-accordion-icon::before {
	content: '';
	position: absolute;
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 8px solid #666;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(0deg);
	transition: transform var(--epofw-animation-duration) ease;
}

.epofw-layout-accordion.epofw-accordion-icon-caret .epofw-accordion-expanded .epofw-accordion-icon::before {
	transform: translate(-50%, -50%) rotate(180deg);
}

/* Accordion Content */
.epofw-layout-accordion .epofw-section-fields {
	max-height: 0;
	overflow: hidden;
	transition: max-height var(--epofw-animation-duration) ease-out, padding var(--epofw-animation-duration) ease-out;
	padding: 0 15px;
}

.epofw-layout-accordion .epofw-accordion-expanded .epofw-section-fields {
	max-height: 5000px;
	padding: 15px;
	transition: max-height calc(var(--epofw-animation-duration) * 1.5) ease-in, padding var(--epofw-animation-duration) ease-in;
}

/* Repeater controls inside accordion (sibling of section-fields) */
.epofw-layout-accordion .epofw-section-repeater-controls {
	max-height: 0;
	overflow: hidden;
	padding: 0;
	margin: 0;
	border: none;
	transition: max-height var(--epofw-animation-duration) ease-out, padding var(--epofw-animation-duration) ease-out;
}

.epofw-layout-accordion .epofw-accordion-expanded .epofw-section-repeater-controls {
	max-height: 200px;
	padding: 10px 0;
	margin-top: 10px;
	border-top: 1px dashed #ddd;
	transition: max-height calc(var(--epofw-animation-duration) * 1.5) ease-in, padding var(--epofw-animation-duration) ease-in;
}

/* Description inside accordion */
.epofw-layout-accordion .epofw-section-description {
	display: none;
	padding: 0 15px 10px;
	margin: 0;
	background-color: #f9f9f9;
	border-bottom: 1px solid #eee;
}

.epofw-layout-accordion .epofw-accordion-expanded .epofw-section-description {
	display: block;
	background-color: transparent;
	border-bottom: none;
	padding: 10px 15px;
}

/* Error Indicator for Accordion */
.epofw-layout-accordion[data-highlight-errors="on"] .epofw-accordion-section.epofw-has-error .epofw-accordion-header {
	border-left: 3px solid #dc3545;
	background-color: rgba(220, 53, 69, 0.05);
}

.epofw-layout-accordion[data-highlight-errors="on"] .epofw-accordion-section.epofw-has-error .epofw-accordion-header::after {
	content: '';
	display: block;
	width: 20px;
	height: 20px;
	background-color: #dc3545;
	border-radius: 50%;
	margin-left: 10px;
	flex-shrink: 0;
	/* SVG warning icon */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
	background-size: 14px 14px;
	background-repeat: no-repeat;
	background-position: center;
	box-shadow: 0 2px 4px rgba(220, 53, 69, 0.4);
}

/* ==========================================================================
   Tabs Layout - Base
   ========================================================================== */

.epofw-layout-tabs {
	position: relative;
}

/* Tabs Navigation - Horizontal (Default) */
.epofw-layout-tabs .epofw-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	border-bottom: 2px solid #ddd;
	margin-bottom: 20px;
}

.epofw-layout-tabs .epofw-tab-button {
	padding: 12px 20px;
	border: none;
	background-color: #f5f5f5;
	color: #666;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all var(--epofw-animation-duration) ease;
	border-radius: 4px 4px 0 0;
	margin-bottom: -2px;
	position: relative;
}

.epofw-layout-tabs .epofw-tab-button:hover {
	background-color: #e8e8e8;
	color: #333;
}

.epofw-layout-tabs .epofw-tab-button:focus {
	outline: 2px solid #0073aa;
	outline-offset: -2px;
	z-index: 1;
}

.epofw-layout-tabs .epofw-tab-button.epofw-tab-active {
	background-color: #fff;
	color: #333;
	border: 2px solid #ddd;
	border-bottom-color: #fff;
	font-weight: 600;
}

/* Tab Panels */
.epofw-layout-tabs .epofw-tab-panel {
	display: none;
}

.epofw-layout-tabs .epofw-tab-panel.epofw-tab-active {
	display: block;
	animation: epofw-tab-fade-in var(--epofw-animation-duration) ease;
}

@keyframes epofw-tab-fade-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Hide section title in tabs */
.epofw-layout-tabs .epofw-tab-panel .epofw-section-title {
	display: none;
}

/* Keep description visible */
.epofw-layout-tabs .epofw-tab-panel .epofw-section-description {
	margin-bottom: 15px;
	padding: 10px;
	background-color: #f9f9f9;
	border-left: 3px solid #0073aa;
	font-style: italic;
}

/* Error Indicator for Tabs */
.epofw-layout-tabs[data-highlight-errors="on"] .epofw-tab-button.epofw-has-error::after {
	content: '';
	display: block;
	width: 18px;
	height: 18px;
	background-color: #dc3545;
	border-radius: 50%;
	position: absolute;
	top: -6px;
	right: -6px;
	/* SVG warning icon (exclamation in triangle) */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
	background-size: 12px 12px;
	background-repeat: no-repeat;
	background-position: center;
	box-shadow: 0 2px 4px rgba(220, 53, 69, 0.4);
}

/* Add subtle border to tab with error */
.epofw-layout-tabs[data-highlight-errors="on"] .epofw-tab-button.epofw-has-error {
	border-color: #dc3545 !important;
	box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.3);
}

/* ==========================================================================
   Tabs Layout - Vertical Style
   ========================================================================== */

/* Apply flex to the actual container that holds tabs-nav and panels */
.epofw-layout-tabs.epofw-tabs-style-vertical .epofw_middle_tg {
	display: flex;
	flex-direction: row;
	gap: 20px;
}

.epofw-layout-tabs.epofw-tabs-style-vertical .epofw-tabs-nav {
	flex-direction: column;
	flex-wrap: nowrap;
	flex-shrink: 0;
	border-bottom: none;
	border-right: 2px solid #ddd;
	margin-bottom: 0;
	min-width: 180px;
	gap: 4px;
}

.epofw-layout-tabs.epofw-tabs-style-vertical.epofw-tabs-position-right .epofw_middle_tg {
	flex-direction: row-reverse;
}

.epofw-layout-tabs.epofw-tabs-style-vertical.epofw-tabs-position-right .epofw-tabs-nav {
	border-right: none;
	border-left: 2px solid #ddd;
}

.epofw-layout-tabs.epofw-tabs-style-vertical .epofw-tab-button {
	border-radius: 4px 0 0 4px;
	margin-bottom: 0;
	margin-right: -2px;
	text-align: left;
}

.epofw-layout-tabs.epofw-tabs-style-vertical.epofw-tabs-position-right .epofw-tab-button {
	border-radius: 0 4px 4px 0;
	margin-right: 0;
	margin-left: -2px;
}

.epofw-layout-tabs.epofw-tabs-style-vertical .epofw-tab-button.epofw-tab-active {
	border: 2px solid #ddd;
	border-right-color: #fff;
}

.epofw-layout-tabs.epofw-tabs-style-vertical.epofw-tabs-position-right .epofw-tab-button.epofw-tab-active {
	border-right-color: #ddd;
	border-left-color: #fff;
}

.epofw-layout-tabs.epofw-tabs-style-vertical .epofw-tab-panel {
	flex: 1;
}

/* ==========================================================================
   Tabs Layout - Pills Style
   ========================================================================== */

.epofw-layout-tabs.epofw-tabs-style-pills .epofw-tabs-nav {
	border-bottom: none;
	gap: 8px;
	margin-bottom: 20px;
}

.epofw-layout-tabs.epofw-tabs-style-pills .epofw-tab-button {
	border-radius: 50px;
	margin-bottom: 0;
	padding: 10px 20px;
	background-color: #f0f0f0;
	border: 1px solid transparent;
}

.epofw-layout-tabs.epofw-tabs-style-pills .epofw-tab-button:hover {
	background-color: #e0e0e0;
}

.epofw-layout-tabs.epofw-tabs-style-pills .epofw-tab-button.epofw-tab-active {
	background-color: #0073aa;
	color: #fff;
	border-color: #0073aa;
}

/* ==========================================================================
   Tabs Layout - Underline Style
   ========================================================================== */

.epofw-layout-tabs.epofw-tabs-style-underline .epofw-tabs-nav {
	border-bottom: 1px solid #ddd;
	gap: 0;
}

.epofw-layout-tabs.epofw-tabs-style-underline .epofw-tab-button {
	background-color: transparent;
	border-radius: 0;
	margin-bottom: -1px;
	padding: 12px 20px;
	border-bottom: 3px solid transparent;
}

.epofw-layout-tabs.epofw-tabs-style-underline .epofw-tab-button:hover {
	background-color: transparent;
	border-bottom-color: #ccc;
}

.epofw-layout-tabs.epofw-tabs-style-underline .epofw-tab-button.epofw-tab-active {
	background-color: transparent;
	border: none;
	border-bottom: 3px solid #0073aa;
	color: #0073aa;
}

/* ==========================================================================
   Wizard Layout
   ========================================================================== */

.epofw-layout-wizard {
	position: relative;
}

/* Wizard Progress Bar */
.epofw-wizard-progress {
	margin-bottom: 30px;
}

.epofw-wizard-progress-bar {
	height: 4px;
	background-color: #e0e0e0;
	border-radius: 2px;
	margin-bottom: 15px;
	overflow: hidden;
}

.epofw-wizard-progress-fill {
	height: 100%;
	background-color: #0073aa;
	border-radius: 2px;
	transition: width var(--epofw-animation-duration) ease;
}

/* Wizard Steps */
.epofw-wizard-steps {
	display: flex;
	justify-content: space-between;
	position: relative;
}

.epofw-wizard-step-indicator {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
	opacity: 0.5;
	transition: opacity var(--epofw-animation-duration) ease;
}

.epofw-wizard-step-indicator:hover {
	opacity: 0.8;
}

.epofw-wizard-step-indicator.epofw-wizard-step-current,
.epofw-wizard-step-indicator.epofw-wizard-step-completed {
	opacity: 1;
}

.epofw-wizard-step-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: #e0e0e0;
	color: #666;
	font-size: 14px;
	font-weight: 600;
	transition: all var(--epofw-animation-duration) ease;
}

.epofw-wizard-step-indicator.epofw-wizard-step-current .epofw-wizard-step-number {
	background-color: #0073aa;
	color: #fff;
}

.epofw-wizard-step-indicator.epofw-wizard-step-completed .epofw-wizard-step-number {
	background-color: #28a745;
	color: #fff;
}

.epofw-wizard-step-indicator.epofw-wizard-step-completed .epofw-wizard-step-number::before {
	content: '\2713';
}

.epofw-wizard-step-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: #e0e0e0;
	transition: all var(--epofw-animation-duration) ease;
}

.epofw-wizard-step-indicator.epofw-wizard-step-current .epofw-wizard-step-dot {
	background-color: #0073aa;
	transform: scale(1.3);
}

.epofw-wizard-step-indicator.epofw-wizard-step-completed .epofw-wizard-step-dot {
	background-color: #28a745;
}

.epofw-wizard-step-label {
	font-size: 12px;
	color: #666;
	text-align: center;
	max-width: 100px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.epofw-wizard-step-indicator.epofw-wizard-step-current .epofw-wizard-step-label {
	color: #0073aa;
	font-weight: 600;
}

/* Wizard Steps */
.epofw-layout-wizard .epofw-wizard-step {
	display: none;
}

.epofw-layout-wizard .epofw-wizard-step.epofw-wizard-step-active {
	display: block;
	animation: epofw-wizard-step-in var(--epofw-animation-duration) ease;
}

@keyframes epofw-wizard-step-in {
	from {
		opacity: 0;
		transform: translateX(20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Hide section title in wizard */
.epofw-layout-wizard .epofw-wizard-step .epofw-section-title {
	display: none;
}

/* Wizard Navigation */
.epofw-wizard-navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 25px;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
}

.epofw-wizard-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all var(--epofw-animation-duration) ease;
}

.epofw-wizard-btn-prev {
	background-color: #f5f5f5;
	color: #333;
}

.epofw-wizard-btn-prev:hover:not(:disabled) {
	background-color: #e8e8e8;
}

.epofw-wizard-btn-prev:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.epofw-wizard-btn-next {
	background-color: #0073aa;
	color: #fff;
}

.epofw-wizard-btn-next:hover:not(:disabled) {
	background-color: #005a87;
}

.epofw-wizard-btn-next:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.epofw-wizard-btn-icon {
	font-size: 16px;
}

/* Error state for wizard steps */
.epofw-wizard-step-indicator.epofw-has-error .epofw-wizard-step-number {
	background-color: #dc3545 !important;
	color: #fff !important;
	border-color: #dc3545 !important;
}

.epofw-wizard-step-indicator.epofw-has-error .epofw-wizard-step-title {
	color: #dc3545;
}

/* Error icon overlay for wizard steps */
.epofw-wizard-step-indicator.epofw-has-error::after {
	content: '';
	position: absolute;
	top: -4px;
	right: -4px;
	width: 16px;
	height: 16px;
	background-color: #dc3545;
	border-radius: 50%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
	background-size: 10px 10px;
	background-repeat: no-repeat;
	background-position: center;
	box-shadow: 0 2px 4px rgba(220, 53, 69, 0.4);
}

.epofw-wizard-step-indicator {
	position: relative;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media screen and (max-width: 768px) {
	/* Accordion adjustments */
	.epofw-layout-accordion .epofw-accordion-header {
		padding: 10px 12px;
	}

	.epofw-layout-accordion .epofw-accordion-header .epofw-section-title {
		font-size: 14px;
	}

	.epofw-layout-accordion .epofw-accordion-expanded .epofw-section-fields {
		padding: 12px;
	}

	/* Tabs adjustments - stack vertically on mobile */
	.epofw-layout-tabs:not(.epofw-tabs-style-vertical) .epofw-tabs-nav {
		flex-direction: column;
		gap: 0;
		border-bottom: none;
	}

	.epofw-layout-tabs:not(.epofw-tabs-style-vertical) .epofw-tab-button {
		border-radius: 0;
		margin-bottom: 0;
		border: 1px solid #ddd;
		border-bottom: none;
	}

	.epofw-layout-tabs:not(.epofw-tabs-style-vertical) .epofw-tab-button:first-child {
		border-radius: 4px 4px 0 0;
	}

	.epofw-layout-tabs:not(.epofw-tabs-style-vertical) .epofw-tab-button:last-child {
		border-bottom: 1px solid #ddd;
		border-radius: 0 0 4px 4px;
	}

	.epofw-layout-tabs:not(.epofw-tabs-style-vertical) .epofw-tab-button.epofw-tab-active {
		background-color: #0073aa;
		color: #fff;
		border-color: #0073aa;
	}

	.epofw-layout-tabs:not(.epofw-tabs-style-vertical) .epofw-tab-panel.epofw-tab-active {
		border: 1px solid #ddd;
		border-top: none;
		padding: 15px;
		border-radius: 0 0 4px 4px;
	}

	/* Vertical tabs become horizontal on mobile */
	.epofw-layout-tabs.epofw-tabs-style-vertical {
		flex-direction: column;
	}

	.epofw-layout-tabs.epofw-tabs-style-vertical .epofw-tabs-nav {
		flex-direction: row;
		flex-wrap: wrap;
		border-right: none;
		border-bottom: 2px solid #ddd;
		min-width: auto;
	}

	.epofw-layout-tabs.epofw-tabs-style-vertical .epofw-tab-button {
		border-radius: 4px 4px 0 0;
		margin-right: 0;
		margin-bottom: -2px;
	}

	/* Wizard adjustments */
	.epofw-wizard-steps {
		flex-wrap: wrap;
		gap: 10px;
		justify-content: center;
	}

	.epofw-wizard-step-label {
		display: none;
	}

	.epofw-wizard-navigation {
		flex-direction: column;
		gap: 10px;
	}

	.epofw-wizard-btn {
		width: 100%;
		justify-content: center;
	}
}

@media screen and (max-width: 480px) {
	.epofw-layout-tabs .epofw-tab-button {
		padding: 10px 15px;
		font-size: 13px;
	}

	.epofw-wizard-step-number {
		width: 28px;
		height: 28px;
		font-size: 12px;
	}
}

/* ==========================================================================
   RTL Support
   ========================================================================== */

[dir="rtl"] .epofw-layout-accordion .epofw-accordion-icon {
	margin-left: 0;
	margin-right: 10px;
}

[dir="rtl"] .epofw-layout-tabs .epofw-tab-panel .epofw-section-description {
	border-left: none;
	border-right: 3px solid #0073aa;
}

[dir="rtl"] .epofw-layout-tabs.epofw-tabs-style-vertical .epofw-tabs-nav {
	border-right: none;
	border-left: 2px solid #ddd;
}

[dir="rtl"] .epofw-layout-tabs.epofw-tabs-style-vertical .epofw-tab-button {
	border-radius: 0 4px 4px 0;
	margin-right: 0;
	margin-left: -2px;
	text-align: right;
}

[dir="rtl"] .epofw-wizard-btn-prev .epofw-wizard-btn-icon {
	transform: scaleX(-1);
}

[dir="rtl"] .epofw-wizard-btn-next .epofw-wizard-btn-icon {
	transform: scaleX(-1);
}

@keyframes epofw-wizard-step-in-rtl {
	from {
		opacity: 0;
		transform: translateX(-20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

[dir="rtl"] .epofw-layout-wizard .epofw-wizard-step.epofw-wizard-step-active {
	animation-name: epofw-wizard-step-in-rtl;
}

/* ==========================================================================
   Accessibility - Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.epofw-layout-accordion,
	.epofw-layout-tabs,
	.epofw-layout-wizard {
		--epofw-animation-duration: 0ms;
	}

	.epofw-layout-accordion .epofw-section-fields,
	.epofw-layout-accordion .epofw-accordion-icon::after,
	.epofw-layout-tabs .epofw-tab-panel.epofw-tab-active,
	.epofw-layout-wizard .epofw-wizard-step.epofw-wizard-step-active {
		transition: none;
		animation: none;
	}
}

/* ==========================================================================
   Theme Compatibility
   ========================================================================== */

/* Ensure proper spacing within WooCommerce product page */
.woocommerce .epofw-layout-accordion,
.woocommerce .epofw-layout-tabs,
.woocommerce .epofw-layout-wizard {
	margin-top: 15px;
	margin-bottom: 15px;
}

/* Fix z-index issues with some themes */
.epofw-layout-tabs .epofw-tabs-nav {
	position: relative;
	z-index: 1;
}

/* Ensure accordion sections don't overflow container */
.epofw-layout-accordion .epofw-accordion-section {
	box-sizing: border-box;
}

/* Fix button styles that might be overridden by themes */
.epofw-wizard-btn,
.epofw-tab-button,
.epofw-wizard-step-indicator {
	font-family: inherit;
	line-height: 1.4;
}
