/* Bisonmart Delivery Manager: checkout UI (mobile first). Override --bmdm-green in your theme to rebrand. */
.bmdm-booking {
	--bmdm-green: #15803d;
	--bmdm-green-dark: #166534;
	--bmdm-green-soft: #ecfdf3;
	--bmdm-border: #e5e7eb;
	--bmdm-text: #111827;
	--bmdm-muted: #6b7280;
	--bmdm-warn: #b45309;
	--bmdm-danger: #b91c1c;
	box-sizing: border-box;
	background: #fff;
	color: var(--bmdm-text);
	margin: 0 0 24px;
	font-size: 15px;
	line-height: 1.4;
}
.bmdm-booking *,
.bmdm-booking *::before,
.bmdm-booking *::after {
	box-sizing: border-box;
}
.bmdm-booking [hidden] {
	display: none !important;
}
.bmdm-section {
	background: #fff;
	border: 1px solid var(--bmdm-border);
	border-radius: 16px;
	padding: 16px;
	margin: 0 0 14px;
}
.bmdm-title {
	display: block;
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
	color: var(--bmdm-text);
}
.bmdm-note {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--bmdm-muted);
}
.bmdm-note:empty {
	display: none;
}
.bmdm-empty {
	margin: 0;
	padding: 10px 0;
	color: var(--bmdm-muted);
	font-size: 14px;
}

/* Method cards */
.bmdm-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}
.bmdm-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 2px solid var(--bmdm-border);
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.bmdm-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.bmdm-card:hover {
	border-color: #86efac;
}
.bmdm-card.is-selected {
	border-color: var(--bmdm-green);
	background: var(--bmdm-green-soft);
	box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12);
}
.bmdm-card:focus-within {
	outline: 2px solid var(--bmdm-green);
	outline-offset: 2px;
}
.bmdm-card-icon {
	display: grid;
	place-items: center;
	flex: 0 0 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--bmdm-green-soft);
	color: var(--bmdm-green);
}
.bmdm-card.is-selected .bmdm-card-icon {
	background: var(--bmdm-green);
	color: #fff;
}
.bmdm-card-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.bmdm-card-body strong {
	font-size: 14px;
	letter-spacing: 0.04em;
}
.bmdm-card-body small {
	color: var(--bmdm-muted);
	font-size: 13px;
}
.bmdm-card-check {
	margin-left: auto;
	flex: 0 0 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid var(--bmdm-border);
}
.bmdm-card.is-selected .bmdm-card-check {
	border-color: var(--bmdm-green);
	background: var(--bmdm-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/70% no-repeat;
}

/* Calendar */
.bmdm-calendar {
	max-width: 420px;
}
.bmdm-cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}
.bmdm-cal-month {
	font-weight: 700;
}
.bmdm-cal-nav {
	width: 40px;
	height: 40px;
	border: 1px solid var(--bmdm-border);
	border-radius: 50%;
	background: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: var(--bmdm-text);
}
.bmdm-cal-nav:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}
.bmdm-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}
.bmdm-cal-dow {
	text-align: center;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--bmdm-muted);
	padding: 4px 0;
}
.bmdm-cal-day {
	aspect-ratio: 1 / 1;
	min-height: 40px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	color: var(--bmdm-text);
	padding: 0;
}
.bmdm-cal-day.is-available {
	background: var(--bmdm-green-soft);
	border-color: #bbf7d0;
	color: var(--bmdm-green-dark);
}
.bmdm-cal-day.is-available:hover {
	border-color: var(--bmdm-green);
}
.bmdm-cal-day.is-selected {
	background: var(--bmdm-green);
	border-color: var(--bmdm-green);
	color: #fff;
	box-shadow: 0 2px 8px rgba(21, 128, 61, 0.35);
}
.bmdm-cal-day.is-disabled {
	background: #f9fafb;
	color: #c0c4cc;
	cursor: not-allowed;
}
.bmdm-cal-day.is-holiday {
	background: #fef2f2;
	color: #fca5a5;
	text-decoration: line-through;
}

/* Slots */
.bmdm-slot-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}
.bmdm-slot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 10px;
	width: 100%;
	padding: 12px 14px;
	border: 2px solid var(--bmdm-border);
	border-radius: 12px;
	background: #fff;
	text-align: left;
	cursor: pointer;
	color: var(--bmdm-text);
	font: inherit;
}
.bmdm-slot:hover:not(:disabled) {
	border-color: #86efac;
}
.bmdm-slot.is-selected {
	border-color: var(--bmdm-green);
	background: var(--bmdm-green-soft);
}
.bmdm-slot-time {
	font-weight: 700;
}
.bmdm-slot-status {
	font-size: 12px;
	font-weight: 600;
	color: var(--bmdm-green);
}
.bmdm-slot.is-limited .bmdm-slot-status {
	color: var(--bmdm-warn);
}
.bmdm-slot.is-full,
.bmdm-slot.is-unavailable {
	background: #f9fafb;
	cursor: not-allowed;
	opacity: 0.7;
}
.bmdm-slot.is-full .bmdm-slot-status,
.bmdm-slot.is-unavailable .bmdm-slot-status {
	color: var(--bmdm-danger);
}
.bmdm-slot-fee {
	font-size: 12px;
	color: var(--bmdm-muted);
}

/* Locations */
.bmdm-location-list {
	display: grid;
	gap: 8px;
}
.bmdm-loc {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px 14px;
	border: 2px solid var(--bmdm-border);
	border-radius: 12px;
	cursor: pointer;
}
.bmdm-loc.is-selected {
	border-color: var(--bmdm-green);
	background: var(--bmdm-green-soft);
}
.bmdm-loc input {
	margin-top: 4px;
	accent-color: var(--bmdm-green);
}
.bmdm-loc-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.bmdm-loc-body small {
	color: var(--bmdm-muted);
}

/* Instructions + notice */
.bmdm-instructions textarea {
	width: 100%;
	border: 1px solid var(--bmdm-border);
	border-radius: 12px;
	padding: 10px 12px;
	font: inherit;
	resize: vertical;
	min-height: 60px;
}
.bmdm-instructions textarea:focus {
	outline: 2px solid var(--bmdm-green);
	border-color: transparent;
}
.bmdm-notice {
	padding: 10px 14px;
	border-radius: 12px;
	background: #fef2f2;
	color: var(--bmdm-danger);
	font-size: 14px;
}

/* Order details */
.bmdm-details-table th,
.bmdm-details-table td {
	padding: 8px 10px;
	vertical-align: top;
}

@media (min-width: 600px) {
	.bmdm-cards {
		grid-template-columns: 1fr 1fr;
	}
	.bmdm-slot-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (prefers-reduced-motion: reduce) {
	.bmdm-card {
		transition: none;
	}
}
