/**
 * DE2EU forwarding rate estimate shortcode.
 */

.de2eu-rate-estimate {
	max-width: 36rem;
	margin: 1.5rem 0;
	padding: 1.25rem 1.35rem;
	background: #f7f9fb;
	border: 1px solid #cfd8e3;
	border-radius: 4px;
	box-sizing: border-box;
	font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
	color: #0a1f33;
}

.de2eu-rate-estimate__intro {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	line-height: 1.45;
}

.de2eu-rate-estimate__fields {
	display: grid;
	gap: 0.85rem;
}

.de2eu-rate-estimate__field {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.de2eu-rate-estimate__field > label {
	font-family: "Barlow", "Segoe UI", sans-serif;
	font-weight: 600;
	font-size: 0.9rem;
}

.de2eu-rate-estimate__field select,
.de2eu-rate-estimate__field input[type="number"] {
	width: 100%;
	max-width: 100%;
	padding: 0.55rem 0.65rem;
	border: 1px solid #cfd8e3;
	border-radius: 4px;
	background: #fff;
	color: #0a1f33;
	font: inherit;
	box-sizing: border-box;
}

.de2eu-rate-estimate__source {
	border: 0;
	padding: 0;
	margin: 0;
	min-width: 0;
}

.de2eu-rate-estimate__source legend {
	float: none;
	width: auto;
	max-width: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	font-family: "Barlow", "Segoe UI", sans-serif;
	font-weight: 600;
	font-size: 0.9rem;
	line-height: 1.3;
	color: #0a1f33;
}

.de2eu-rate-estimate__dims {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.65rem;
}

.de2eu-rate-estimate__dims-hint {
	margin: -0.25rem 0 0;
	font-size: 0.82rem;
	line-height: 1.4;
	color: #5c6b7a;
}

.de2eu-rate-estimate__radio {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	font-family: inherit;
	font-weight: 400;
	font-size: 0.95rem;
	margin: 0.5rem 0 0;
	cursor: pointer;
}

.de2eu-rate-estimate__actions {
	margin: 1rem 0 0;
}

.de2eu-rate-estimate__submit {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 0.65rem 1.2rem;
	background: #e0a106;
	color: #1a1400;
	font-family: "Barlow", "Segoe UI", sans-serif;
	font-weight: 650;
	font-size: 0.95rem;
	cursor: pointer;
	line-height: 1.2;
}

.de2eu-rate-estimate__submit:hover,
.de2eu-rate-estimate__submit:focus {
	filter: brightness(0.97);
}

.de2eu-rate-estimate__submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

.de2eu-rate-estimate__result {
	margin-top: 1rem;
	padding: 0.9rem 1rem;
	background: #fff;
	border: 1px solid #cfd8e3;
	border-radius: 4px;
}

.de2eu-rate-estimate__result.is-error {
	border-color: #b42318;
	color: #7a1a12;
}

.de2eu-rate-estimate__total {
	margin: 0 0 0.5rem;
	font-family: "Barlow", "Segoe UI", sans-serif;
	font-size: 1.25rem;
	font-weight: 700;
}

.de2eu-rate-estimate__options-title {
	margin: 0.75rem 0 0.4rem;
	font-family: "Barlow", "Segoe UI", sans-serif;
	font-weight: 650;
	font-size: 0.95rem;
}

.de2eu-rate-estimate__offers {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.65rem;
}

.de2eu-rate-estimate__offer {
	margin: 0;
	padding: 0.7rem 0.75rem;
	border: 1px solid #cfd8e3;
	border-radius: 4px;
	background: #fafcfd;
}

.de2eu-rate-estimate__offer.is-cheapest {
	border-color: #e0a106;
	background: #fffaf0;
}

.de2eu-rate-estimate__offer-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.4rem 0.6rem;
	margin: 0 0 0.25rem;
}

.de2eu-rate-estimate__badge {
	font-size: 0.75rem;
	font-weight: 650;
	color: #1a1400;
	background: #e0a106;
	border-radius: 999px;
	padding: 0.15rem 0.5rem;
}

.de2eu-rate-estimate__offer-carrier,
.de2eu-rate-estimate__offer-note {
	font-size: 0.82rem;
	color: #5c6b7a;
	margin: 0 0 0.35rem;
}

.de2eu-rate-estimate__breakdown {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.92rem;
	line-height: 1.45;
}

.de2eu-rate-estimate__breakdown li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 0.2rem 0;
}

.de2eu-rate-estimate__breakdown li.is-total {
	font-weight: 650;
	margin-top: 0.35rem;
	padding-top: 0.35rem;
	border-top: 1px solid #e6edf4;
}

.de2eu-rate-estimate__meta {
	margin: 0.65rem 0 0;
	font-size: 0.85rem;
	color: #5c6b7a;
}

.de2eu-rate-estimate__disclaimer {
	margin: 0.85rem 0 0;
	font-size: 0.82rem;
	line-height: 1.4;
	color: #5c6b7a;
}
