.wdd-delivery-options-wrapper {
	margin-top: 2em;
	margin-bottom: 2em;
}

.wdd-method-cards {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
}

.wdd-method-card {
	flex: 1;
	border: 2px solid #ddd;
	border-radius: 8px;
	padding: 15px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #fff;
}

.wdd-method-card:hover {
	border-color: #999;
}

.wdd-method-card.active {
	border-color: #000;
	background: #fafafa;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.wdd-method-card input[type="radio"] {
	display: none;
}

.wdd-method-card .wdd-icon {
	font-size: 2em;
	margin-bottom: 10px;
}

.wdd-method-card .wdd-title {
	font-weight: 600;
	font-size: 1.1em;
}

.wdd-delivery-fields {
	background: #f9f9f9;
	padding: 20px;
	border-radius: 8px;
	border: 1px solid #eee;
}

/* Ensure Autocomplete dropdown has high z-index */
.pac-container {
	z-index: 99999 !important;
}

.wdd-delivery-status:empty {
	display: none;
}

.wdd-delivery-status {
	margin-top: 15px;
	padding: 12px 15px;
	border-radius: 8px;
	border: 1px solid #ddd;
	line-height: 1.5;
}

.wdd-delivery-status.wdd-status-ok {
	background: #f1f8f1;
	border-color: #b7dbb7;
}

.wdd-delivery-status.wdd-status-error {
	background: #fdf2f2;
	border-color: #e5b5b5;
	color: #8a1f1f;
}

/* "Delivery includes" row under the delivery fee */
tr.wdd-fee-includes td {
	padding-top: 0 !important;
	border-top: 0 !important;
	text-align: left !important;
	font-size: 0.9em;
	opacity: 0.8;
}

tr.wdd-fee-includes ul {
	margin: 2px 0 0 1.2em;
	padding: 0;
	list-style: disc;
}

/* "We could do this cheaper" tooltip next to the delivery fee */
.wdd-tooltip {
	position: relative;
	display: inline-block;
	vertical-align: middle;
	margin-left: 6px;
	cursor: help;
	outline: none;
}

.wdd-tooltip-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #c0392b;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	font-style: italic;
	font-family: Georgia, serif;
	line-height: 1;
	animation: wdd-pulse 2s ease-in-out 3;
}

.wdd-tooltip-text {
	visibility: hidden;
	opacity: 0;
	position: absolute;
	right: 0;
	bottom: calc(100% + 8px);
	z-index: 1000;
	width: 240px;
	max-width: 70vw;
	padding: 10px 12px;
	border-radius: 6px;
	background: #222;
	color: #fff;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	text-align: left;
	white-space: normal;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
	transition: opacity 0.2s ease;
}

.wdd-tooltip-text::after {
	content: "";
	position: absolute;
	top: 100%;
	right: 5px;
	border: 6px solid transparent;
	border-top-color: #222;
}

.wdd-tooltip:hover .wdd-tooltip-text,
.wdd-tooltip:focus .wdd-tooltip-text,
.wdd-tooltip:focus-within .wdd-tooltip-text {
	visibility: visible;
	opacity: 1;
}

@keyframes wdd-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.2); }
}

@media (prefers-reduced-motion: reduce) {
	.wdd-tooltip-icon { animation: none; }
}
