#lfadt-checkout-wrapper {
	margin: 20px 0;
	padding: 20px;
	background: #ffffff;
	border: 2px solid #e0e7ff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

#lfadt-checkout-wrapper h3 {
	margin-top: 0;
	font-size: 1.15em;
	color: #1e3a5f;
	border-bottom: 2px solid #3b82f6;
	padding-bottom: 10px;
	margin-bottom: 15px;
}

.lfadt-map-section {
	margin-bottom: 20px;
}

.lfadt-msg {
	font-size: 0.9em;
	color: #555;
	margin-bottom: 10px;
}

.lfadt-search-box {
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
	position: relative;
}

.lfadt-search-box input {
	flex: 1;
	padding: 9px 14px;
	border: 1.5px solid #cbd5e1;
	border-radius: 8px;
	font-size: 0.95em;
	background: #fff;
	transition: border-color 0.2s;
}

.lfadt-search-box input:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.lfadt-search-box button {
	padding: 9px 20px;
	background: #3b82f6;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.lfadt-search-box button:hover {
	background: #2563eb;
}

#lfadt-search-results {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1.5px solid #e2e8f0;
	list-style: none;
	margin: 0;
	padding: 0;
	z-index: 9999;
	max-height: 220px;
	overflow-y: auto;
	display: none;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#lfadt-search-results li {
	padding: 12px 14px;
	border-bottom: 1px solid #f1f5f9;
	cursor: pointer;
	font-size: 0.9em;
	color: #334155;
}

#lfadt-search-results li:last-child {
	border-bottom: none;
}

#lfadt-search-results li:hover {
	background: #eff6ff;
}

#lfadt-map {
	height: 320px !important;
	width: 100%;
	border-radius: 10px;
	border: 2px solid #e2e8f0;
	margin-bottom: 12px;
	background: #f8fafc;
}

.lfadt-map-controls {
	display: flex;
	gap: 15px;
	align-items: center;
	flex-wrap: wrap;
}

.lfadt-map-controls .button {
	padding: 8px 18px;
	background: #10b981;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
}
	.lfadt-map-controls{
			display: grid!important;
		grid-template-columns: 1fr 1fr!important;
	}
.lfadt-map-controls .button:hover {
	background: #059669;
}

.lfadt-map-controls .button:active {
	transform: scale(0.97);
}

#lfadt-address-display {
	flex: 1;
	min-width: 200px;
	font-size: 0.88em;
	color: #475569;
	background: #f8fafc;
	padding: 10px 14px;
	border: 1.5px solid #e2e8f0;
	border-radius: 8px;
	min-height: 40px;
	display: flex;
	align-items: center;
}

/* Scheduling section */
.lfadt-scheduling-section {
	margin-top: 5px;
	padding-top: 15px;
	border-top: 1px solid #e2e8f0;
}

.lfadt-scheduling-section > p {
	margin-top: 0;
	margin-bottom: 12px;
	color: #334155;
	font-weight: 600;
}

.lfadt-date-selector, .lfadt-time-selector {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.lfadt-date-card, .lfadt-time-card {
	flex: 1;
	min-width: 110px;
	border: 2px solid #e2e8f0;
	padding: 12px 10px;
	border-radius: 10px;
	cursor: pointer;
	background: #fff;
	transition: all 0.2s;
	text-align: center;
	font-size: 0.92em;
}

.lfadt-date-card:hover, .lfadt-time-card:hover {
	border-color: #48c47a!important;
	background: #48c47a21!important;
}

.lfadt-date-card input[type="radio"], .lfadt-time-card input[type="radio"] {
	display: none;
}

.lfadt-date-card.selected {
	background: #ebfef6 !important;
    box-shadow: 0 6px 8px -5px rgb(from #1a9c80 r g b / 25%);
    border: 2px solid #48c47a !important;
    color: #48c47a !important;
    transform: translateY(-3px) !important;
}

.lfadt-time-card input[type="radio"]:checked + span {
	color: #fff;
}

.lfadt-time-card:has(input:checked) {
	background: #48c47a;
	color: #fff;
	border-color: #48c47a;
	box-shadow: 0 3px 8px rgba(68, 255, 78, 0.3);
}

.lfadt-time-card input[type="radio"] + span {
	color: #334155;
}

.picker-card .lfadt-date-card {
	flex: 1;
}

#lfadt_custom_date {
	width: 100%;
	margin-top: 6px;
	padding: 6px 8px;
	border: 1.5px solid #e2e8f0;
	border-radius: 6px;
	font-size: 0.9em;
}

.lfadt-date-card.-selected #lfadt_custom_date {
	border-color: rgba(255,255,255,0.4);
	background: rgba(255,255,255,0.2);
	color: #fff;
}

/* WooCommerce theme compat */
.woocommerce-checkout #lfadt-checkout-wrapper {
	position: relative;
	z-index: 1;
}

@media (max-width: 600px) {
	.lfadt-search-box {
		flex-direction: column;
	}
	.lfadt-search-box button {
		width: 100%;
	}
	#lfadt-search-results {
		left: 0;
		right: 0;
	}
	#lfadt-address-display {
		min-width: unset;
		width: 100%;
	}
	.lfadt-map-controls {
		flex-direction: column;
		align-items: stretch;
	}
	.lfadt-map-controls .button {
		width: 100%;
		text-align: center;
	}
	.lfadt-map-controls{
			display: grid!important;
		grid-template-columns: 1fr!important;
	}
}