:root{
	--brapi-border-color: rgba(217,217,217,0.25);
}

.brc-brapi {
	position: relative;
}

.brc-brapi a.brapi-button{
	display: inline-block;
	padding: 12px 16px;
	margin: 4px;
	background: var(--brapi-border-color);
	border-radius: 10px;
	text-transform: uppercase;
}

/** Flex comparison section styles **/
.brc-brapi .brapi-flex{
	display: flex;
	flex-wrap: wrap;
}
.brc-brapi .brapi-flex > div:first-child{
	position: sticky;
	top: 0;
	margin-bottom: auto;
	max-height: 80vh;
	flex-basis: 48%;
}
.brc-brapi .brapi-flex > div:first-child table tbody{
	max-height: 45vh;
	display: flex;
	flex-wrap: wrap;
	overflow-y: auto;
}
.brc-brapi .brapi-flex > div:first-child table :where(tbody,thead,tfoot) tr{
	display: flex;
	flex-basis: 100%;
}
.brc-brapi .brapi-flex > div:first-child table :where(tbody,thead,tfoot) tr :where(td,th){
	flex-grow: 1;
}
.brc-brapi .brapi-flex > div:first-child table :where(tbody,thead,tfoot) tr :where(td,th){
	display: block;
}
.brc-brapi .brapi-flex > div:first-child table :where(tbody,thead,tfoot) tr :where(td,th):not(:nth-child(2)){
	flex-basis: 18%;
}
.brc-brapi .brapi-flex > div:first-child table :where(tbody,thead,tfoot) tr :where(td,th):nth-child(2){
	flex-basis: 28%;
}
.brc-brapi .brapi-flex > div:last-child{
	flex-basis: 50%;
	margin-left: 2%;
}
/** ENDS Flex comparison section styles **/

.brc-brapi table tbody tr:nth-child(2n+1) td {
    background: unset;
}
.brc-brapi table.areaprops-table{
	border-spacing: 0 8px;
	border: unset;	
}
.brc-brapi table.singleprop-table{
	border: 0;
}
.brc-brapi table th{
	background: var(--brapi-border-color);
	color: #111111;
	border-bottom: 0;
}
.brc-brapi table :where(td,th){
	text-align: left;
}
.brc-brapi table.areaprops-table tbody tr{
	padding: 8px 0;
}
.brc-brapi table:where(.areaprops-table,.singleprop-table) tbody td{
	border-top: unset;
	border-bottom: 1px solid var(--brapi-border-color);
}
.brc-brapi table:where(.areaprops-table) tbody td{
	border-top: 1px solid var(--brapi-border-color);
}
.brc-brapi table:where(.areaprops-table,.singleprop-table) tbody td:first-child{	
	border-left: 1px solid var(--brapi-border-color);
}
.brc-brapi table:where(.areaprops-table,.singleprop-table) :where(tbody,tfoot) td:last-child{	
	border-right: 1px solid var(--brapi-border-color);
}
.brc-brapi table.areaprops-table :where(tbody, thead) :where(td,th):first-child{
	border-radius: 10px 0 0 10px;
}
.brc-brapi table.areaprops-table thead th:last-child{
	border-radius: 0 10px 10px 0;
}
.brc-brapi table.areaprops-table tbody td:last-child{
	padding: 0;
	position: relative;
	min-width: 100px;
}
.brc-brapi table.areaprops-table tbody td:last-child a{
	display: flex;
    height: 100%;
    width: 100%;
    text-align: center;
    color: white;
    background: rgb(54 18 81);
    position: absolute;
    justify-content: center;
    flex-direction: column;
	font-size: 1.05em;
	padding: 2px 7px;
	top: 0;
    left: 0;
    box-sizing: border-box;
}
.brc-brapi table.areaprops-table tbody td:last-child{
	border-right: 1px solid var(--brapi-border-color);
	border-radius: 0 10px 10px 0;
	overflow: hidden;
}
.brc-brapi .brapi-form{
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 30px;
	max-width: 650px; 
	justify-content: center;
	margin: auto;
}
.brc-brapi .brapi-form label{
	flex-basis: 100%;
}
.brc-brapi .brapi-form input[type="submit"]{
	float: unset;
	margin-top: unset;
	border-radius: 0 10px 10px 0;
}
.brc-brapi .brapi-form input[type="text"]{
	flex-grow: 1;
	width: auto;
	border-radius: 10px 0 0 10px;
	padding-left: 20px;
	text-transform: uppercase;
}
.brc-brapi .brc-tableside{
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 80px;
	box-shadow: 0px 2px 8px rgba(66, 66, 66, 0.46);
    border-radius: 10px;
}

.brc-brapi .brc-tableside > table{
	width: 100%;
	flex-grow: 1;
	margin-bottom: 0;
	border-radius: 10px 10px 0 0;
	overflow: hidden;
}
.brc-brapi .brc-tableside > div:last-child{
	border-radius: 0 0 10px 10px;
}
.brc-brapi .brc-tableside > table + div{
	width: 100%;
	background: var(--brapi-border-color);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 3%;
	min-width: 180px;
	text-align: center;
	flex-grow: 1;
}
.brc-brapi .brc-tableside > table + div h5{
	margin-bottom: 0;
}
.brc-brapi .brc-tableside > table.singleprop-table + div{
	background: #c52626;
}
.brc-brapi .brc-tableside > table.comparison-table + div{
	background: #3AAA35;
}.brc-brapi .brc-tableside > table.comparison-table + div{
	background: #3AAA35;
}
.brc-brapi .brc-tableside > table.singleprop-table + div h5{
	color: white;
}
.brc-brapi .brc-tableside .comparison{
	flex-basis: 100%;
	background: white;
	padding: 3%;
	text-align: center;
	border: 1px solid #3AAA35;	
}
.brc-brapi .brc-tableside .comparison h5{
	color: #3AAA35;
}
.brc-brapi .brc-tableside .splitinfo{
	display: flex;
	font-size: 1.25em;
	text-align: center;
	flex-wrap: wrap;
	justify-content: center;
	color: #3AAA35;
}
.brc-brapi .brc-tableside .splitinfo > div:first-child{
	border-right: 1px solid var(--brapi-border-color);
	margin-right: 3%;
	padding-right: 3%;
}
.brc-brapi .brc-tableside .splitinfo :where(.totalrebate, .yearlysaving){
	font-size: 1.25em;
	font-weight: 600;
}
.brc-brapi .sqmprice{
	font-size: 1.25em;
	line-height: 1.75;
}

.brc-brapi .options a:before{
	content: "";
	position: relative;
	border-radius: 100px;
	background: #cfcfcf;
	border: 2px solid #cfcfcf;
	display: inline-block;
	width:24px;
	height: 24px;
	vertical-align: bottom;
	margin-right: 6px;
	box-shadow: 0 0 0 2px inset white;
}
.brc-brapi .options a:hover::before{
	border: 2px solid #3AAA35;
}
.brc-brapi .options a.active::before{
	background: #3AAA35;
	border: 2px solid #3AAA35;
}
.brc-brapi .options a{
	background: white;
}
.brc-brapi hr{
	background: var(--brapi-border-color);
	margin: 10px 0;
}
.brc-brapi .singleprop-container{
	padding: 3%;
	border: 1px solid var(--brapi-border-color);
	border-radius: 10px;	
	box-shadow: 0px 2px 8px rgba(66, 66, 66, 0.46);
	margin-top: 20px;
}
.brc-brapi .singleprop-container .buttons a.brapi-button{
	color: white;
}
@media only screen and (max-width:1024px){
	
	.brc-brapi :where(table.areaprops-table) thead{		
		display: none;		
	}	
	.brc-brapi :where(table.areaprops-table) tbody td{
		vertical-align: top;
	}
	.brc-brapi :where(table.areaprops-table) tbody td:before{
		content:attr(data-attr);
		font-weight: 600;
		display: block;
	}
	.brc-brapi :where(table.singleprop-table) tfoot tr :where(td:nth-child(3),td:nth-child(5)):before{
		content:attr(data-attr);
		font-weight: 600;
		display: block;
	}
	.brc-brapi :where(table.singleprop-table) tfoot tr :where(td:nth-child(2),td:nth-child(4),th){
		display: none!important;
	}
	.brc-brapi .brapi-flex > div:first-child{
		position: relative;
		top: 0;
		max-height: unset;
		flex-basis: 100%;
	}
	.brc-brapi .brapi-flex > div:first-child table tbody{
		max-height: unset;
		overflow-y: unset;
	}
	.brc-brapi :where(table.singleprop-table){
		display: grid;
		grid-template-areas: "thead tbody"
		"tfoot tfoot";
	}
	.brc-brapi :where(table.singleprop-table) thead{
		grid-area: thead;			
		display: flex;
		flex-direction: column;
	}
	
	.brc-brapi :where(table.singleprop-table) :where(thead,tbody,tfoot) :where(th,td){
		padding: 11px 6px!important;
	}
	.brc-brapi :where(table.singleprop-table) thead tr{
		display: flex;
		flex-direction: column;	
		flex-basis: 100%;
	}
	.brc-brapi :where(table.singleprop-table) tbody tr{
		display: flex;
		flex-direction: column;
		border-right: 1px solid var(--brapi-border-color);
		flex-wrap: nowrap;
	}
	.brc-brapi :where(table.singleprop-table) tbody{
		grid-area: tbody;
		display: flex;
		flex-wrap: nowrap!important;
		overflow-x: auto;
	}
	.brc-brapi :where(table.singleprop-table) tbody td{
		border-width: 0!important;
	}
	.brc-brapi :where(table.singleprop-table) tfoot td{
		text-align: center!important;
	}
	.brc-brapi :where(table.singleprop-table) tfoot{
		grid-area: tfoot;
	}
	.brc-brapi .brapi-flex table :where(tbody,thead,tfoot) tr :where(td,th){
		flex-basis: 20%!important;
		white-space: nowrap;
	}
	
	.brc-brapi .brapi-flex > div:last-child{
		flex-basis: 100%;
	}
}
@media only screen and (max-width:900px){
	.brc-brapi table.areaprops-table tbody tr{
		border: 1px solid var(--brapi-border-color);
		padding: 0;
		border-radius: 10px;
		overflow: hidden;
		margin: 12px 0;
		box-shadow: 0 1px 3px 1px rgba(77,77,77,0.25);
		background: white;
	}
	.brc-brapi table.areaprops-table tbody td:last-child{
		border-radius: 0;
		border: unset;
	}
}
@media only screen and (max-width:780px){
	.brc-brapi :where(table.areaprops-table,table.singleprop-table) tbody tr{
		display: flex;
		flex-wrap: wrap;
	}
	.brc-brapi :where(table.areaprops-table) :where(td:nth-child(1), td:nth-child(2)){
		width:50%;		
	}
	.brc-brapi :where(table.areaprops-table) tbody td:not(:nth-child(1),:nth-child(2)){
		flex-grow: 1;
	}
	.brc-brapi :where(table.singleprop-table) :where(tbody,tfoot) td{
		flex-grow: 1;
	}
	.brc-brapi :where(th, td, tbody th){
		font-size: 13px;
	}
	.brc-brapi table.areaprops-table tbody td:last-child a{
		width: 100%;
		padding: 3px;
	}
	
	.brc-brapi :where(table.singleprop-table) tfoot tr{
		display: flex;
		flex-wrap: wrap;
	}
	.brc-brapi :where(table.singleprop-table) tfoot tr th{
		flex-basis: 100%;
	}
	.brc-brapi :where(table.singleprop-table) tfoot tr :where(td:nth-child(2),td:nth-child(4)){
		display: none;
	}
	
	.brc-brapi table.areaprops-table tbody td:last-child{
		min-height: 48px;
		flex-basis: 100%;
	}
}
@media only screen and (max-width:600px){
	.brc-brapi .brapi-form input[type="submit"]{
		width:100%;
		border-radius: 0 0 10px 10px;
	}
	.brc-brapi .brapi-form input[type="text"]{
		width: 100%;
		border-radius: 10px 10px 0 0;
	}
}
