/**
 * Custom Checkout Steps Styles
 * Extracted from form-checkout.php for better organization
 * 
 * @package Hello Elementor Child
 * @version 5.1.0
 */

/* ==========================================================================
   General Step Styles
   ========================================================================== */

.checkout-step {
	padding: 2rem 0;
	text-align: center;
	border-bottom: 1px solid #eee;
	margin-bottom: 1.5rem;
}

.checkout-step:last-of-type {
	border-bottom: none;
	margin-bottom: 0;
}

.checkout-step h2,
.checkout-step h3,
.checkout-step h4 {
	margin-bottom: 1.5rem;
	text-align: center;
}

.step-buttons {
	margin-top: 2rem;
	text-align: center;
}

/* ==========================================================================
   Postcode Input
   ========================================================================== */

#postcode {
	max-width: 200px;
	margin-left: auto;
	margin-right: auto;
	display: block;
	text-align: center;
	margin-bottom: 1em;
}

#zip-validation-message {
	margin-top: 1em;
	font-weight: bold;
	min-height: 1.2em;
}

#zip-validation-message.success {
	color: #50614F;
}

#zip-validation-message.error {
	color: #D8000C;
}

/* ==========================================================================
   Button Styles
   ========================================================================== */

.checkout-step button,
.checkout-step .button {
	background-color: transparent;
	color: #50614F !important;
	border: 2px solid #50614F;
	padding: 0.6em 1.2em;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 1rem;
	border-radius: 3px;
	margin: 0.3em;
	text-decoration: none;
	line-height: normal;
	display: inline-block;
	vertical-align: middle;
}

.checkout-step button:hover,
.checkout-step .button:hover,
.checkout-step button.active,
.checkout-step .button.active {
	background-color: #50614F;
	color: #fff !important;
	border-width: 2px;
}

.checkout-step button:disabled,
.checkout-step button.disabled {
	opacity: 0.5;
	cursor: not-allowed;
	background-color: #ccc !important;
	border-color: #ccc !important;
	color: #999 !important;
}

.btn-collection,
.btn-delivery,
#btn-route,
a.button[target="_blank"],
.btn-sub-option {
	font-size: 0.95rem;
}

.button-group {
	margin: 1em 0;
}

.button-group.sub-options {
	display: block !important;
}

/* ==========================================================================
   Details Sections
   ========================================================================== */

.details-section {
	display: none;
	margin-top: 1.5em;
}

.description-box {
	max-width: 600px;
	margin: 1em auto 0 auto;
	padding: 0.8em;
	background-color: #f9f9f9;
	border: 1px solid #eee;
	border-radius: 3px;
	display: none;
}

/* ==========================================================================
   Collection Map Container
   ========================================================================== */

#collection-map-container {
	max-width: 600px;
	height: 450px;
	margin: 1em auto;
	border: 1px solid #eee;
	overflow: hidden;
}

#collection-map-container iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

/* ==========================================================================
   Date Picker Styles
   ========================================================================== */

#custom-datepicker-wrapper {
	display: none;
	margin-top: 1.5em;
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
}

#custom-datepicker-wrapper label {
	display: block;
	margin-bottom: 0.5em;
	font-weight: bold;
}

#custom_delivery_date_picker {
	background-color: #fff;
	cursor: pointer;
	width: 100%;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 3px;
}

/* ==========================================================================
   Time Slot Select Styles
   ========================================================================== */

.custom-timeslot-select-wrapper {
	display: none;
	margin-top: 1em;
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
}

.custom-timeslot-select-wrapper label {
	display: block;
	margin-bottom: 0.5em;
	font-weight: bold;
}

.custom-timeslot-select-wrapper select {
	min-width: 250px;
	display: block;
	width: 100%;
}

/* ==========================================================================
   Step 3: Order Review Visibility
   ========================================================================== */

form.woocommerce-checkout:not(.step-3-active) #order_review_heading,
form.woocommerce-checkout:not(.step-3-active) #order_review {
	display: none !important;
}

/* ==========================================================================
   Step 3: Single Column Layout
   ========================================================================== */

form.woocommerce-checkout.step-3-active #customer_details .col-1,
form.woocommerce-checkout.step-3-active #customer_details .col-2 {
	float: none !important;
	width: 100% !important;
	max-width: 100%;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-bottom: 0;
}

form.woocommerce-checkout.step-3-active #customer_details .col-1 {
	margin-bottom: 2em;
}

form.woocommerce-checkout.step-3-active .woocommerce-shipping-fields {
	clear: both;
}

form.woocommerce-checkout.step-3-active .woocommerce-billing-fields h3,
form.woocommerce-checkout.step-3-active .woocommerce-shipping-fields h3 {
	text-align: left;
}

/* ==========================================================================
   Step 3: Hide Shipping Address for Collection
   ========================================================================== */

form.woocommerce-checkout.collection-selected.step-3-active #customer_details .col-2 {
	display: none !important;
}

form.woocommerce-checkout.collection-selected.step-3-active #customer_details .col-1 {
	margin-bottom: 0 !important;
}

