/* ==========================================================================
   WooCommerce Delivery & Pickup Timeslot Pro — Checkout Styles
   ========================================================================== */

.wdtp-checkout-wrap {
	background: #f9f5ff;
	border: 2px solid #ede9fe;
	border-radius: 12px;
	padding: 24px;
	margin: 24px 0;
}

.wdtp-section-title {
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #1f2937 !important;
	margin: 0 0 20px !important;
	padding: 0 !important;
	display: flex;
	align-items: center;
	gap: 8px;
}

.wdtp-icon { font-size: 20px; }

/* ---- Field Row ---- */
.wdtp-field-row {
	margin-bottom: 18px;
}

.wdtp-label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	color: #374151;
	margin-bottom: 7px;
}
.wdtp-label abbr { text-decoration: none; color: #ef4444; margin-left: 2px; }

.wdtp-input-wrap { position: relative; }

.wdtp-date-input,
.wdtp-slot-select {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid #e5e7eb;
	border-radius: 8px;
	font-size: 14px;
	color: #1f2937;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
	box-sizing: border-box;
}

.wdtp-date-input:focus,
.wdtp-slot-select:focus {
	outline: none;
	border-color: #7c3aed;
	box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}

.wdtp-calendar-icon {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 16px;
	pointer-events: none;
}

/* ---- Delivery Type Toggle ---- */
.wdtp-type-toggle { display: flex; gap: 10px; }

.wdtp-type-option { flex: 1; cursor: pointer; }
.wdtp-type-option input[type="radio"] { display: none; }

.wdtp-type-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #6b7280;
	background: #fff;
	transition: all .15s;
	cursor: pointer;
	user-select: none;
}

.wdtp-type-option input:checked + .wdtp-type-btn {
	border-color: #7c3aed;
	background: #f9f5ff;
	color: #7c3aed;
}

.wdtp-type-icon { font-size: 18px; }

/* ---- Loading spinner ---- */
.wdtp-loading-indicator {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #6b7280;
	padding: 8px 0;
}

.wdtp-spinner {
	width: 16px; height: 16px;
	border: 2px solid #e5e7eb;
	border-top-color: #7c3aed;
	border-radius: 50%;
	display: inline-block;
	animation: wdtp-spin .7s linear infinite;
}

@keyframes wdtp-spin { to { transform: rotate(360deg); } }

/* ---- Fee Notice ---- */
.wdtp-fee-notice {
	background: #f0fdf4;
	border: 1.5px solid #bbf7d0;
	border-radius: 7px;
	padding: 10px 14px;
	font-size: 13px;
	color: #059669;
	font-weight: 500;
	margin-top: 10px;
}

/* ---- Delivery Info Tables (frontend) ---- */
.wdtp-delivery-table th,
.wdtp-delivery-table td {
	padding: 8px 12px;
	text-align: left;
}
.wdtp-delivery-table th { font-weight: 600; width: 40%; }

.wdtp-thankyou-section {
	margin: 24px 0;
	padding: 20px;
	background: #f9f5ff;
	border: 1px solid #ede9fe;
	border-radius: 10px;
}

/* Flatpickr override to match theme */
.flatpickr-calendar {
	border-radius: 10px !important;
	box-shadow: 0 10px 40px rgba(0,0,0,.15) !important;
	border: 1px solid #e5e7eb !important;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
	background: #7c3aed !important;
	border-color: #7c3aed !important;
}
.flatpickr-day:hover { background: #ede9fe !important; }
