/* Modern Styles for Xtensions Best Checkout */
/* Minimal enhancements - preserves OpenCart styling */

/* Main checkout container */
#content {
	position: relative;
	min-height: 500px;
	padding: 20px 0;
}

/* Bootstrap Wizard Enhancement */
.bs-wizard {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 2px solid #f0f0f0;
}

.bs-wizard-step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	min-width: 0;
	text-align: center;
	transition: all 0.3s ease;
}

/* Wizard step dot */
.bs-wizard-dot {
	display: block;
	width: 32px;
	height: 32px;
	margin: 0 auto 10px;
	background-color: #e8e8e8;
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	position: relative;
	z-index: 1;
}

/* Wizard step number */
.bs-wizard-stepnum {
	font-weight: 600;
	font-size: 12px;
	color: #999;
	display: block;
	margin-top: 5px;
	transition: all 0.3s ease;
}

/* Progress bar styling */
.bs-wizard-step .progress {
	position: absolute;
	top: 15px;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	height: 2px;
	background-color: #f0f0f0;
	border-radius: 0;
	margin: 0;
}

.bs-wizard-step .progress-bar {
	background-color: #23a1d1;
	height: 100%;
	width: 100%;
	box-shadow: none;
	transition: all 0.3s ease;
}

/* First step - no progress before */
.bs-wizard-step:first-child .progress {
	display: none;
}

/* Between step styling */
.bs-wizard-step + .bs-wizard-step .progress {
	left: -50%;
	width: 200%;
}

/* Step states */
.bs-wizard-step.disabled .bs-wizard-dot {
	background-color: #e8e8e8;
	cursor: not-allowed;
}

.bs-wizard-step.disabled .bs-wizard-stepnum {
	color: #999;
}

.bs-wizard-step.active .bs-wizard-dot {
	background-color: #23a1d1;
	box-shadow: 0 0 0 4px rgba(35, 161, 209, 0.2);
	transform: scale(1.1);
}

.bs-wizard-step.active .bs-wizard-stepnum {
	color: #23a1d1;
	font-weight: 700;
}

.bs-wizard-step.complete .bs-wizard-dot {
	background-color: #28a745;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bs-wizard-step.complete .bs-wizard-dot::after {
	content: '✓';
	position: absolute;
	color: #fff;
	font-weight: bold;
	font-size: 16px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.bs-wizard-step.complete .bs-wizard-stepnum {
	color: #28a745;
}

/* Panels containing form content */
.bottom {
	animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive adjustments */
@media screen and (max-width: 991px) {
	#xcart,
	#totals,
	.xcart,
	.totalspanel {
		display: block !important;
	}

	.xcart .panel-heading,
	.totalspanel .panel-heading {
		display: none;
	}
}

@media (max-width: 767px) {
	.bs-wizard {
		flex-wrap: nowrap;
		margin-bottom: 16px;
		padding-bottom: 10px;
		gap: 0;
	}

	.bs-wizard-step {
		flex: 0 0 33.3333%;
		width: 33.3333% !important;
		max-width: 33.3333%;
		margin: 0;
		padding: 0 4px;
	}

	.bs-wizard-stepnum {
		font-size: 10px;
		line-height: 1.2;
		margin-top: 2px;
		min-height: 24px;
		display: flex;
		align-items: flex-end;
		justify-content: center;
		word-break: normal;
		overflow-wrap: anywhere;
	}

	.bs-wizard-step .progress {
		top: 12px;
	}

	.bs-wizard-dot {
		width: 24px;
		height: 24px;
		border-width: 2px;
		margin-bottom: 6px;
	}

	.bs-wizard-step.active .bs-wizard-dot {
		box-shadow: 0 0 0 3px rgba(35, 161, 209, 0.2);
	}

	.bs-wizard-step.complete .bs-wizard-dot::after {
		font-size: 13px;
	}
}

/* Step 2 - Shipping, Address and Comments styling (same as guest-summary) */
#shipping_method.container_panel,
#order-comment.container_panel {
	background: #fff;
	border-radius: 8px;
	padding: 14px 16px;
	box-shadow: 0 6px 16px rgba(0,0,0,0.08);
	margin: 20px 0;
}

#shipping_method.container_panel .heading,
#order-comment.container_panel .heading {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 12px;
	color: #333;
}

/* Reduce motion support */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

