/**
 * Burger Delivery Zones - frontend styles.
 * Entry popup + zone picker in the style of the original site:
 * black header bar, 4-column radio grid, "PLZ - Area" format.
 */

/* Overlay */
.bdz-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.65);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

/* Modal */
.bdz-modal {
	background: #ffffff;
	border-radius: 12px;
	max-width: 860px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
	animation: bdzPop 0.25s ease-out;
}

@keyframes bdzPop {
	from { transform: scale(0.96) translateY(8px); opacity: 0; }
	to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* Black header bar (original site style) */
.bdz-headbar {
	background: #111111;
	color: #ffffff;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-align: center;
	padding: 16px 20px;
	font-size: 1.15rem;
	border-radius: 12px 12px 0 0;
}

.bdz-sub {
	text-align: center;
	color: #555555;
	margin: 18px 20px 6px;
	font-size: 1rem;
}

/* Step 1: method choice */
.bdz-methods {
	display: flex;
	gap: 18px;
	padding: 22px 28px 30px;
}

.bdz-method {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 28px 16px;
	border: 2px solid #e5e5e5;
	border-radius: 12px;
	background: #fafafa;
	cursor: pointer;
	transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
	font-family: inherit;
}

.bdz-method:hover {
	border-color: #CD212A;
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(205, 33, 42, 0.15);
}

.bdz-method-icon { font-size: 3rem; line-height: 1; }
.bdz-method-label { font-size: 1.35rem; font-weight: 800; color: #1c1c1c; }
.bdz-method-desc { font-size: 0.9rem; color: #777777; }

/* Step 2: zone grid - 4 columns like the original */
.bdz-zones {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px 14px;
	padding: 18px 28px 6px;
}

.bdz-zone {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.12s, background 0.12s;
}

.bdz-zone:hover { border-color: #CD212A; background: #fff8f8; }

.bdz-zone input[type="radio"] {
	margin-top: 3px;
	accent-color: #CD212A;
	width: 17px;
	height: 17px;
	flex-shrink: 0;
	cursor: pointer;
}

.bdz-zone input[type="radio"]:checked + .bdz-zone-name { color: #CD212A; }

.bdz-zone-name {
	font-weight: 700;
	color: #1c1c1c;
	font-size: 0.95rem;
	line-height: 1.3;
	display: block;
}

.bdz-zone-meta {
	display: block;
	font-size: 0.78rem;
	color: #888888;
	margin-top: 2px;
	line-height: 1.35;
}

.bdz-nozones {
	text-align: center;
	color: #999999;
	padding: 20px;
}

/* Confirm + back */
.bdz-confirm {
	display: block;
	margin: 18px auto 4px;
	padding: 13px 54px;
	background: #CD212A;
	color: #ffffff;
	border: none;
	border-radius: 999px;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background 0.15s, transform 0.15s;
	font-family: inherit;
}

.bdz-confirm:hover:not(:disabled) { background: #a81a22; transform: translateY(-1px); }
.bdz-confirm:disabled { background: #cccccc; cursor: not-allowed; }

.bdz-back {
	display: block;
	margin: 6px auto 22px;
	background: none;
	border: none;
	color: #888888;
	cursor: pointer;
	font-size: 0.9rem;
	font-family: inherit;
}
.bdz-back:hover { color: #CD212A; }

/* Change link under cart */
.bdz-change-wrap {
	text-align: right;
	margin: 10px 0 0;
	font-size: 0.9rem;
	color: #666666;
}
.bdz-change-wrap .bdz-current { margin-right: 8px; }
.bdz-change-wrap a { color: #CD212A; font-weight: 700; }

/* Responsive */
@media (max-width: 860px) {
	.bdz-zones { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.bdz-methods { flex-direction: column; }
	.bdz-method { padding: 20px 12px; }
	.bdz-zones { grid-template-columns: 1fr; padding: 14px 18px 4px; }
	.bdz-headbar { font-size: 1rem; }
}
