/**
 * WooCommerce Delivery Slots - Frontend Checkout Styles
 * Mobile-responsive, theme-agnostic, and clean.
 */

.dawds-delivery-wrapper {
	margin: 24px 0;
	padding: 20px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	box-sizing: border-box;
	clear: both;
}

.dawds-delivery-title {
	font-size: 1.15rem;
	font-weight: 600;
	color: #1e293b;
	margin: 0 0 16px 0;
	padding-bottom: 10px;
	border-bottom: 2px solid #f1f5f9;
	display: flex;
	align-items: center;
	gap: 8px;
}

.dawds-field-group {
	margin-bottom: 16px;
}

.dawds-field-group:last-child {
	margin-bottom: 0;
}

.dawds-field-group label {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	color: #334155;
	margin-bottom: 6px;
}

.dawds-field-group label .required {
	color: #e11d48;
	font-weight: bold;
}

.dawds-date-display {
	display: flex;
	align-items: center;
	background-color: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 10px 14px;
	color: #0f172a;
	font-weight: 500;
	font-size: 0.95rem;
	user-select: none;
	width: 100%;
	box-sizing: border-box;
}

.dawds-date-icon,
.dawds-time-icon {
	margin-right: 8px;
	display: inline-flex;
	align-items: center;
}

.dawds-select-wrapper {
	position: relative;
	width: 100%;
}

.dawds-select {
	display: block;
	width: 100% !important;
	padding: 11px 14px;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #1e293b;
	background-color: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	box-sizing: border-box;
	appearance: auto;
	-webkit-appearance: auto;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	cursor: pointer;
}

.dawds-select:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.dawds-select option:disabled {
	color: #94a3b8;
	background-color: #f1f5f9;
}

.dawds-notice-box {
	margin-top: 14px;
	padding: 12px 14px;
	background-color: #eff6ff;
	border-left: 4px solid #3b82f6;
	border-radius: 4px;
	font-size: 0.85rem;
	line-height: 1.45;
	color: #1e40af;
}

.dawds-notice-box p {
	margin: 0;
}

.dawds-notice-box p + p {
	margin-top: 4px;
}

.dawds-same-day-alert {
	color: #b91c1c;
	font-weight: 500;
}

.dawds-loading-overlay {
	opacity: 0.5;
	pointer-events: none;
	position: relative;
}

/* Cart estimated delivery styling */
.dawds-cart-delivery-estimate th,
.dawds-cart-delivery-estimate td {
	padding: 10px 12px;
	vertical-align: middle;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
	.dawds-delivery-wrapper {
		padding: 16px;
		margin: 20px 0;
	}

	.dawds-select {
		padding: 13px 12px;
		font-size: 1rem; /* Prevents auto-zoom on iOS */
	}

	.dawds-date-display {
		padding: 11px 12px;
		font-size: 1rem;
	}
}
