/* WC Shipping Display — product page shipping line */

/* Price + shipping box side by side, vertically centred against the price. */
.wcsd-price-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.15em 0.9em;
}

.wcsd-box {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.1em;
	margin: 0;
	font-size: 0.8em;
	line-height: 1.4;
	color: #6b7280; /* grey, sits next to the price */
	opacity: 0;
	animation: wcsd-fade-in 1s ease forwards;
}

@keyframes wcsd-fade-in {
	to {
		opacity: 1;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.wcsd-box {
		opacity: 1;
		animation: none;
	}
}

/* Each visible line is a flex row; the flag selector sits inline at its end. */
.wcsd-line {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.2em 0.5em;
}

.wcsd-line2[hidden] {
	display: none;
}

.wcsd-l1 {
	color: #6b7280;
}

.wcsd-l1.wcsd-free {
	color: #16a34a; /* green when it already qualifies for free shipping */
	font-weight: 600;
}

.wcsd-note {
	color: #6b7280;
}

/* Custom dropdown: the trigger shows ONLY the flag + caret (never a name);
   the country list with full names opens on click. */
.wcsd-selector {
	position: relative;
	display: inline-flex;
}

.wcsd-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.25em;
	margin: 0;
	padding: 0.1em 0.35em;
	font: inherit;
	color: inherit;
	background: transparent;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	cursor: pointer;
	line-height: 1;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.wcsd-trigger:hover,
.wcsd-trigger[aria-expanded="true"] {
	background: rgba( 0, 0, 0, 0.04 );
	border-color: #cbd5e1;
}

.wcsd-flag {
	font-size: 1.15em;
	line-height: 1;
}

.wcsd-caret {
	font-size: 0.75em;
	color: #64748b;
}

/* The country list. */
.wcsd-list {
	position: absolute;
	z-index: 9999;
	top: calc( 100% + 4px );
	left: 0;
	min-width: 12em;
	max-height: 16em;
	overflow-y: auto;
	margin: 0;
	padding: 0.25em 0;
	list-style: none;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	box-shadow: 0 6px 20px rgba( 0, 0, 0, 0.12 );
	font-size: 1rem;
}

.wcsd-list[hidden] {
	display: none;
}

.wcsd-opt {
	display: flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.35em 0.75em;
	margin: 0;
	color: #374151;
	cursor: pointer;
	white-space: nowrap;
}

.wcsd-opt:hover {
	background: #f1f5f9;
}

.wcsd-opt.is-selected {
	font-weight: 600;
	background: #f8fafc;
}

.wcsd-opt-flag {
	font-size: 1.15em;
	line-height: 1;
}
