/*
Theme Name: DWT Listing Child (RSAG)
Description: RSAG child theme for DWT Listing. Holds all RSAG customizations so parent theme updates are safe.
Author: RSAG
Version: 1.0.0
Template: dwt-listing
Text Domain: dwt-listing
*/

:root {
	--rsag-green: #006c41;
	--rsag-green-dark: #00532f;
	--rsag-navy: #232d50;
	--rsag-light: #f4f7f5;
	--rsag-border: #dfe6e2;
}

.rsag-panel .panel-title a i {
	color: var(--rsag-green);
}

.rsag-about p {
	font-size: 17px;
	line-height: 1.7;
}

#rsag-disclosure.rsag-disclosure {
	background: var(--rsag-light);
	border-left: 4px solid var(--rsag-green);
	border-radius: 6px;
	margin-top: 20px;
	padding: 16px 20px;
}

#rsag-disclosure.rsag-disclosure p {
	font-size: 15px;
	margin: 0;
}

.rsag-accred-body {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 28px;
	align-items: flex-start;
}

.rsag-accred-badge img {
	display: block;
	height: auto;
	max-width: 264px;
	width: 100%;
}

.rsag-accred-intro {
	flex: 1 1 260px;
	font-size: 16px;
	margin: 0;
}

#rsag-scores.rsag-scores {
	flex: 1 1 100%;
	list-style: none;
	margin: 0;
	padding: 0;
}

#rsag-scores.rsag-scores li {
	align-items: center;
	border-bottom: 1px solid var(--rsag-border);
	display: flex;
	font-size: 16px;
	justify-content: space-between;
	padding: 10px 0;
}

.rsag-stars .fa {
	color: #f5a623;
	font-size: 18px;
	margin-left: 2px;
}

.rsag-accred-link {
	flex: 1 1 100%;
	margin: 0;
}

.rsag-accred-link a {
	color: var(--rsag-green);
	font-weight: 600;
}

#rsag-details.rsag-details {
	display: grid;
	gap: 8px 32px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

#rsag-details .rsag-detail h5 {
	color: var(--rsag-navy);
	font-size: 16px;
	font-weight: 700;
	margin: 12px 0 6px;
	text-transform: none;
}

#rsag-details .rsag-detail p,
#rsag-details .rsag-checks li {
	font-size: 15px;
	line-height: 1.6;
	text-transform: none;
}

#rsag-details .rsag-checks {
	list-style: none;
	margin: 0;
	padding: 0;
}

#rsag-details .rsag-checks li i {
	color: var(--rsag-green);
	margin-right: 6px;
}

.rsag-area-list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.rsag-area-list li {
	font-size: 16px;
	padding: 4px 0;
}

#rsag-map.rsag-map iframe {
	border-radius: 6px;
	display: block;
	margin: 12px 0 16px;
}

.rsag-complaint-count {
	font-size: 16px;
	font-weight: 600;
}

.rsag-complaint {
	background: #fff8f6;
	border-left: 4px solid #c0392b;
	font-size: 15px;
	margin: 0 0 16px;
	padding: 14px 18px;
}

.rsag-complaint footer {
	color: #555;
	font-size: 14px;
	margin-top: 8px;
}

a.btn.btn-theme.rsag-btn,
.rsag-btn {
	background: var(--rsag-green);
	border: 0;
	border-radius: 6px;
	color: #fff;
	font-weight: 700;
	padding: 12px 22px;
	text-transform: none;
}

a.btn.btn-theme.rsag-btn:hover,
.rsag-btn:hover {
	background: var(--rsag-green-dark);
	color: #fff;
}

@media (max-width: 767px) {
	#rsag-details.rsag-details {
		grid-template-columns: 1fr;
	}

	.rsag-accred-body {
		display: block;
	}

	.rsag-accred-badge img {
		margin-bottom: 14px;
		max-width: 220px;
	}
}
