/*
 * Shipping rates ([shipping_rates_table] / [hms_shipping_rates]): one card per
 * shipping zone with the country flag, carrier and price tiers; the free tier
 * is highlighted. Same card style as the payment-methods and Impressum pages.
 */

.hms-shipping-rates {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin: 24px 0 8px;
}

.hms-shipping-zone {
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hms-shipping-zone:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px -12px rgba(16, 24, 40, 0.18);
}

.hms-shipping-zone__header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 24px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hms-shipping-zone__flag {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	width: 36px;
	height: 24px;
	border-radius: 5px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
	color: var(--wd-primary-color);
}

.hms-shipping-zone__flag svg {
	display: block;
	width: 100%;
	height: 100%;
}

.hms-shipping-zone__title {
	margin: 0;
	color: var(--wd-title-color);
	font-family: var(--wd-title-font);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.hms-shipping-zone__carrier {
	margin: 2px 0 0;
	color: var(--wd-text-color);
	font-size: 13px;
}

.hms-shipping-zone__rates {
	margin: 0;
	padding: 8px 12px 12px;
	list-style: none;
}

.hms-shipping-rate {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 12px;
	border-radius: 10px;
	color: var(--wd-text-color);
	font-size: 15px;
}

.hms-shipping-rate + .hms-shipping-rate {
	margin-top: 2px;
}

.hms-shipping-rate__cost {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--wd-title-color);
	font-weight: 600;
	white-space: nowrap;
}

.hms-shipping-rate--free {
	background: color-mix(in srgb, var(--wd-primary-color) 10%, #fff);
	color: var(--wd-title-color);
}

.hms-shipping-rate--free .hms-shipping-rate__cost strong {
	color: var(--wd-primary-color);
}

.hms-shipping-rate__badge {
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--wd-primary-color);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

@media (max-width: 480px) {
	.hms-shipping-zone__header {
		padding: 16px 18px;
	}

	.hms-shipping-rate__badge {
		display: none;
	}
}

/* Woodmart colours every .amount green; keep prices in the row's own colour. */
.hms-shipping-rate .amount {
	color: inherit;
	font-weight: inherit;
}
