/*
 * Swop Attributes — frontend.
 * Klassen zijn gelijk aan GoodWoo Attributes, zodat bestaande opmaak en eigen CSS blijven werken.
 * Kleuren komen uit Instellingen → Opmaak (CSS-variabelen); per blok kan de shortcode ze overschrijven.
 */

.goodwoo-attribute-container,
.goodwoo-attribute-container * {
	box-sizing: border-box;
	position: relative;
}

.goodwoo-attribute-container {
	margin-bottom: 7px;
}

.goodwoo-attribute,
.goodwoo-property {
	border: 2px solid var(--swat-border, #e2e2e2);
	min-height: 35px;
	z-index: 1;
}

.goodwoo-attribute {
	background-color: var(--swat-bg, transparent);
}

.goodwoo-attribute > span:nth-child(2) {
	width: 100%;
}

.goodwoo-attribute > span:nth-child(2) .goodwoo-property {
	margin-left: 0;
	margin-right: -2px;
}

.goodwoo-tooltip.goodwoo-tooltip-show {
	width: 100%;
	background-color: #b5b5b5;
}

.goodwoo-attribute > figure {
	position: relative !important;
	display: inline-block;
	height: 36px !important;
	min-width: 36px !important;
	max-height: 100%;
	max-width: 100%;
	margin: 0 !important;
	overflow: hidden;
	top: 0;
	vertical-align: middle;
	text-align: center;
}

.goodwoo-attribute > span {
	display: inline-block;
	line-height: 1;
	color: var(--swat-text, #000000);
	vertical-align: middle;
}

span.goodwoo-property {
	display: inline-block;
	height: 100%;
	min-width: 35px;
	margin-left: -2px;
	padding: 10px;
	border: none;
	text-align: center;
}

.goodwoo-tooltip-toggle .goodwoo-property {
	cursor: pointer;
}

.goodwoo-tooltip-hover .goodwoo-property:focus-visible,
.goodwoo-tooltip-toggle .goodwoo-property:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -4px;
}

span.goodwoo-property.active {
	background-color: #8b8888;
	color: #ffffff;
}

.goodwoo-tooltip.goodwoo-tooltip-toggle,
.goodwoo-tooltip.goodwoo-tooltip-hover {
	position: absolute;
	top: 100%;
	width: 100%;
	margin-top: 8px;
	z-index: 9999999;
	opacity: 0;
	background-color: transparent;
}

.goodwoo-tooltip.is-open {
	opacity: 1;
}

.goodwoo-tooltip-toggle .goodwoo-tooltip-section,
.goodwoo-tooltip-hover .goodwoo-tooltip-section {
	display: none;
}

.goodwoo-tooltip-section {
	padding: 10px 17.5px;
	vertical-align: middle;
	line-height: 1.5;
}

.goodwoo-tooltip-section:nth-child(odd) {
	background-color: #f7f7f7;
	color: #000000;
}

.goodwoo-tooltip-section:nth-child(even) {
	background-color: #e2e2e2;
	color: #000000;
}

.goodwoo-tooltip-title {
	margin: 4px 0 0;
	line-height: 1 !important;
	font-size: 14px !important;
}

.goodwoo-tooltip-title:first-letter {
	text-transform: capitalize;
}

.goodwoo-tooltip.goodwoo-tooltip-toggle .goodwoo-tooltip-section,
.goodwoo-tooltip.goodwoo-tooltip-hover .goodwoo-tooltip-section {
	margin-top: -3px;
	background-color: var(--swat-tip-bg, rgba(0, 0, 0, 0.75));
	color: var(--swat-tip-text, #ffffff);
}

.goodwoo-tooltip.goodwoo-tooltip-toggle .goodwoo-tooltip-section h3.goodwoo-tooltip-title,
.goodwoo-tooltip.goodwoo-tooltip-hover .goodwoo-tooltip-section h3.goodwoo-tooltip-title {
	color: var(--swat-tip-text, #ffffff);
	background-color: transparent !important;
}

.goodwoo-tooltip.goodwoo-tooltip-false {
	display: none !important;
}

/* Uitlijning */
.goodwoo-block-alignment-left > span {
	width: auto !important;
	text-align: left !important;
}

.goodwoo-block-alignment-left > span:nth-child(1) {
	padding: 0 !important;
}

.goodwoo-block-alignment-left > figure:nth-child(2) {
	position: absolute; /* Werkt bewust niet tegen "relative !important" hierboven in; zo stond het in GoodWoo. */
	right: 0 !important;
	left: inherit !important;
}

.goodwoo-block-alignment-center {
	display: block;
	margin: 0 auto;
	text-align: center;
}

.goodwoo-block-alignment-center > span,
.goodwoo-block-alignment-right > span {
	width: auto !important;
}

.goodwoo-block-alignment-right {
	text-align: right;
}

.goodwoo-attribute > figure > img {
	max-width: 100%;
	max-height: 100%;
	min-height: 36px;
	width: auto !important;
	height: auto !important;
}

/* Tooltips mogen buiten volle-breedte rijen van WPBakery vallen. */
.vc_row[data-vc-full-width] {
	overflow: inherit !important;
}

.goodwoo-attribute-container br {
	display: none;
}

.icon-container .fa,
.icon-container [class^="icon-"],
.icon-container [class*=" icon-"] {
	box-sizing: border-box;
	width: 36px;
	height: 36px;
	padding: 8px 0;
	font-size: 22px;
	text-align: center;
	vertical-align: middle;
}
