/*
 * Fixes on top of the 2017 stylesheets (Joomla 6 version of the site).
 */

/*
 * Product overview: the EShop theme sets ".clearfix { clear: none }", so a row of three shoes did not
 * contain its floats and the next row snagged behind a taller card (long names). Let every row close itself.
 */
#products-list-container .clearfix::after,
.eshop-categories-list .row-fluid::after {
	content: "";
	display: table;
	clear: both;
}

/*
 * Contact Enhanced 6 uses other class names than version 3 (ce-ff-container / form-control instead of
 * ce-cf-container / inputbox) and relies on Bootstrap's .visually-hidden, which this template doesn't load.
 * These rules give the form the same look as on the Joomla 3 site.
 */
.visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.ce-ff-container .form-control {
	float: left;
	box-sizing: border-box;
	font-family: 'Open Sans', sans-serif !important;
	border: solid 1px #dfdfdf;
	background-color: #fff;
	padding: 20px !important;
	width: 100% !important;
	font-size: 1em;
	margin-bottom: 10px !important;
}

.ce-ff-container .form-control.required {
	background-image: none !important;
}

.ce-ff-container {
	clear: both;
	margin-bottom: 8px;
}

.ce-ff-container .controls::after {
	content: "";
	display: table;
	clear: both;
}

.ce-form-footer {
	display: block !important;
}

.ce-form-footer .ce-form-footer {
	display: inline !important;
}

/*
 * Captcha as a math question: label "Beveiligingsvraag" above, the sum on the left,
 * the reload icon and the answer field on the right.
 */
p.securimage-introtext {
	font-weight: bold;
	margin: 10px 0 12px;
}

.securimage-container .securimage-image {
	display: flex;
	align-items: stretch;
	gap: 20px;
	padding: 0 !important;
}

.securimage-container .securimage-image > div {
	flex: 1;
	/* reload icon at the top, answer field flush with the bottom of the image */
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.securimage-container .img-securimage-captcha {
	display: block;
	border: solid 1px #dfdfdf !important;
	cursor: pointer;
}

.securimage-controls {
	padding: 0 !important;
	line-height: 0;
}

.securimage-controls svg {
	width: 26px;
	height: 26px;
}

.securimage-input {
	padding: 0 !important;
}

.securimage-input .form-control {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.securimage-container .form-control-feedback {
	display: none;
}
