.rack_calc{
	clear: both;
}


.rack_calc nav{
	display: flex;
	align-items: center;
	position: relative;
}
.rack_calc nav::after{
	content: '';
	position: absolute;
	left: 0;right: 0;
	bottom: 0;
	height: 2px;
	background: #6B97C3;
}
.rack_calc header{
	font-size: 1.2em;
	padding: .5em 0;
	border-bottom: 2px solid #6B97C3;
}




.rack_calc nav a{
	outline-top: 2px solid red;
	border: 2px solid #6B97C3;
	color: #6B97C3;
	border-radius: 3px 3px 0 0;
	font-size: 1.2em;
	padding: .2em .5em;
	white-space: nowrap;
	font-weight: bold;
	margin-left: -2px;
	position: relative;

	transition: 200ms;
}
.rack_calc nav a:hover{
	color: #58BFF5;
	border-color: #58BFF5;
	border-bottom-color: #6B97C3;
	z-index: 1;
}


.rack_calc nav a.active{
	border-color: #0054AA;
	border-bottom-color: white;
	color: #0054AA;
	z-index: 10;
	
}

.rack_calc nav a.add{
	width: 24px;
	height: 24px;
	border-radius: 100%;
	background: #0054AA;
	border-color: #0054AA;
	margin-left: 1em;
	color: white;
	display: flex;
	align-items: center;justify-content: center;
	padding: 0;
	padding-top: 1px;
}
.rack_calc nav a.add:hover{
	border-color: #58BFF5;	
	background: #58BFF5;
}
.rack_calc nav a.add:nth-child(6){
	display: none;
}

.rack_calc .section:first-of-type .drop{
	display: none;
}
.rack_calc .section{
	padding: 1em 1em;
	position: relative;
	display: none;
}
.rack_calc .section.active{
	display: block;
}
.rack_calc .drop{
	position: absolute;
	right: 0;bottom: 2em;
	color: #0054AA;
	text-decoration: underline dotted;
	transition: 200ms;
}
.rack_calc .drop:hover{
	color: red;
}


.rack_calc label{

	position: relative;

}

.rack_calc .options{
	display: grid;
	grid-template-columns: 1fr 10fr;
}

.rack_calc .legend{
	margin: 1em 1em 1em 0;
	white-space: nowrap;
}
.rack_calc fieldset{
	border: none;
	margin: 1em 0;
	display: flex;
	flex-wrap: wrap;	
}


.rack_calc fieldset.amount{
	display: flex;
	align-items: stretch;
}
.rack_calc fieldset.amount span{
	padding-left: 1em;
	padding-right: 1em;
	min-width: 64px;

	background: #D5EAF5;

	display: flex;
	align-items: center;
	justify-content: center;
}

.rack_calc button{
	background: #6b97c3;
	border: none;
	padding: .2em .5em;
	cursor: pointer;
	color: white;
	font-weight: bold;
	height: 28px;
	width: 28px;
	transition: 200ms;
}
.rack_calc button:hover{
	background: #0054AA;
}
.rack_calc button:disabled{
	color: white;
	background: lightgray;
	pointer-events: none;
}




.rack_calc label{
	cursor: pointer;
	margin-bottom: .5em;
}
.rack_calc label:not(:last-child){
	margin-right: .5em;
}
.rack_calc label.disabled{
	pointer-events: none;
}

.rack_calc label input[type=radio]{
	opacity: 0;
	position: absolute;
	pointer-events: none;
}


.rack_calc label input + span{
	border: 2px solid #0054AA;
	padding: .2em .5em;
	transition: 200ms;
	display: block;
}
.rack_calc label:hover input + span{

	border-color: #58BFF5;

}

.rack_calc label input:checked + span{
	border-color: #FE9C00;
	background:  #FE9C00;
	color: white;
}

.rack_calc label input:disabled + span{
	border-color: lightgray;
	color: white;
	background: lightgray;
}