/* REDA Omloopmaat Calculator
 * Colours follow the Elementor global colours when present; override the
 * --reda-om-* variables on .reda-om to restyle.
 */
.reda-om {
	--reda-om-accent: var(--e-global-color-primary, #eb7821);
	--reda-om-text: var(--e-global-color-text, #303030);
	--reda-om-muted: #6f6f6f;
	--reda-om-border: #d9d9d9;
	--reda-om-bg: #ffffff;
	--reda-om-soft: #fdf3eb;
	--reda-om-radius: 8px;

	box-sizing: border-box;
	/* Elementor's global text font when present; otherwise inherited from the theme. */
	font-family: var(--e-global-typography-text-font-family), sans-serif;
	color: var(--reda-om-text);
	background: var(--reda-om-bg);
	border-radius: var(--reda-om-radius);
	padding: 24px;
	text-align: left;
	line-height: 1.45;
}

.reda-om *,
.reda-om *::before,
.reda-om *::after {
	box-sizing: inherit;
}

.reda-om [hidden] {
	display: none !important;
}

.reda-om__form {
	margin: 0;
}

.reda-om__steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.reda-om__step {
	margin: 0;
	padding: 0;
}

.reda-om__label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	font-weight: 700;
	font-size: 15px;
	color: var(--reda-om-text);
}

.reda-om__nr {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 2px solid var(--reda-om-border);
	color: var(--reda-om-muted);
	font-size: 13px;
	line-height: 1;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.reda-om__step.is-active .reda-om__nr {
	border-color: var(--reda-om-accent);
	color: var(--reda-om-accent);
}

.reda-om__step.is-done .reda-om__nr {
	border-color: var(--reda-om-accent);
	background: var(--reda-om-accent);
	color: #fff;
}

.reda-om .reda-om__select {
	display: block;
	width: 100%;
	max-width: none;
	height: 48px;
	margin: 0;
	padding: 0 40px 0 14px;
	border: 1px solid var(--reda-om-border);
	border-radius: var(--reda-om-radius);
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23303030' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	color: var(--reda-om-text);
	font: inherit;
	font-size: 15px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.reda-om .reda-om__select:hover:not(:disabled) {
	border-color: var(--reda-om-accent);
}

.reda-om .reda-om__select:focus {
	outline: none;
	border-color: var(--reda-om-accent);
	box-shadow: 0 0 0 3px rgba(235, 120, 33, 0.25);
}

.reda-om .reda-om__select:disabled {
	background-color: #f4f4f4;
	color: var(--reda-om-muted);
	cursor: not-allowed;
	opacity: 1;
}

.reda-om__status {
	min-height: 1.45em;
	margin: 12px 0 0;
	color: var(--reda-om-muted);
	font-size: 14px;
}

.reda-om__status:empty {
	min-height: 0;
	margin: 0;
}

.reda-om__status.is-error {
	color: #b42318;
}

.reda-om.is-busy .reda-om__status::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 8px;
	vertical-align: -1px;
	border: 2px solid var(--reda-om-border);
	border-top-color: var(--reda-om-accent);
	border-radius: 50%;
	animation: reda-om-spin 0.7s linear infinite;
}

@keyframes reda-om-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Result */
.reda-om__result {
	margin-top: 20px;
	padding: 20px;
	border-left: 4px solid var(--reda-om-accent);
	border-radius: var(--reda-om-radius);
	background: var(--reda-om-soft);
	outline: none;
}

.reda-om__result-head {
	margin-bottom: 14px;
}

.reda-om__result-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--reda-om-text);
}

.reda-om__result-sub {
	margin: 2px 0 0;
	color: var(--reda-om-muted);
	font-size: 14px;
}

.reda-om__items {
	display: grid;
	gap: 12px;
	margin: 0;
}

.reda-om__item {
	margin: 0;
}

.reda-om__item-label {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--reda-om-muted);
}

.reda-om__item-value {
	margin: 2px 0 0;
	font-size: 15px;
	color: var(--reda-om-text);
}

.reda-om__item.is-emphasis .reda-om__item-value {
	font-size: 30px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--reda-om-accent);
}

.reda-om__item-value a {
	color: var(--reda-om-accent);
	text-decoration: underline;
}

.reda-om__item--wielflap,
.reda-om__item--fixon_clips,
.reda-om__item--tochtstrook {
	padding-top: 10px;
	border-top: 1px solid rgba(48, 48, 48, 0.1);
}

.reda-om__item--wielflap ~ .reda-om__item--fixon_clips,
.reda-om__item--wielflap ~ .reda-om__item--tochtstrook,
.reda-om__item--fixon_clips ~ .reda-om__item--tochtstrook {
	padding-top: 0;
	border-top: 0;
}

.reda-om__item--advies {
	padding: 12px 14px;
	border-radius: var(--reda-om-radius);
	background: #fff;
}

.reda-om__result-empty {
	margin: 0;
}

.reda-om .reda-om__restart {
	margin: 16px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--reda-om-accent);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
	box-shadow: none;
}

.reda-om .reda-om__restart:hover,
.reda-om .reda-om__restart:focus {
	background: none;
	color: var(--reda-om-text);
}

@media (max-width: 480px) {
	.reda-om {
		padding: 16px;
	}

	.reda-om__item.is-emphasis .reda-om__item-value {
		font-size: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.reda-om * {
		transition: none !important;
		animation: none !important;
	}
}
