.container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 0 20px;
}

input:not([type=checkbox]):not([type=radio]), select {
	display: block;
}

.no-radio {
	margin: 0;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	display: inline;
}

.square {
	display: inline-block;
	width: 40px;
	height: 40px;
	cursor: pointer;
	text-align: center;
	font-size: 10px;
	padding: 2px;
}

.circle {
	width: 90%;
	height: 90%;
	border: 1px solid #aaa;
	border-radius: 50%;
	position: relative;
	top: 1px;
	left: 1px;
}

.square:hover {
	opacity: 0.5;
}

.no-radio:checked + .square, .no-radio:checked + .square:hover {
	/* opacity: 0.5; */
	border: 2px solid var(--success-accent);
	padding: 0;
}

.small-image {
	width: 100px;
	border: 1px solid #aaa;
}

.small-image:hover {
	cursor: pointer;
	opacity: 0.75;
}

.selected-image, .selected-image:hover {
	opacity: 0.5;
}

.error {
	color: red;
}

.size-info {
	text-decoration: underline dotted;
}

.modal {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.75);
}

body.modal-open {
	overflow: hidden;
}

.popup {
	position: fixed;
	left: 50%;
	top: 120px;
	transform: translateX(-50%);
	width: 85%;
	max-width: 1200px;
	height: calc(100vh - 180px);
	padding: 20px;
	background-color: white;
	overflow: auto;
}

.inliner {
	display: inline-block;
}

.success {
	color: green;
}

.error {
	color: red;
}

.product-info h2 {
	font-size: 28pt;
	font-weight: 300; /* light */
	text-align: center;
	margin: 10px 0;
	color: var(--title-accent);
}

.product-info h2 strong {
	font-size: 38pt;
	font-family: 'Bebas Neue', cursive;
	color: var(--title-accent);
}

.product-info h3 {
	text-align: center;
	margin: 0 0 10px;
	font-family: 'Bebas Neue', cursive;
	font-weight: normal;
	font-size: 24pt;
}

.product-image {
	width: 100%;
}

.small-images {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.product-info {
	display: grid;
	gap: 20px;
}

.product-visual {
	border: 2px solid #ada9b3;
	background-color: var(--one-accent);
	padding: 10px;
}

.product-info strong {
	font-weight: 800; /* black */
	color: var(--heading-accent);
}

.product-info p {
	margin: 5px 0 15px;
}

.product-info p strong {
	font-weight: bold;
	color: inherit;
}

.form-category strong {
	font-weight: 600; /* black */
	color: #009de1;
}

.form-category span {
	text-transform: uppercase;
}

#estimate-form {
	display: grid;
	gap: 20px;
}

fieldset > label:first-child, .form-subtitle {
	font-weight: 800; /* black */
	color: var(--heading-accent);
}

.form-category label + input, .form-category label + select {
	margin: 5px 0 10px;
	/* background-color: var(--input-accent); */
}

.estimate {
	border: 2px solid #ada9b3;
	background-color: var(--three-accent);
	padding: 0 10px;
}

.estimate h3 {
	font-size: 20pt;
	font-weight: bold;
	color: var(--discreet-accent);
	margin: 10px 0;
}

.total-price {
	font-size: 16pt;
	font-weight: bold;
	margin: 10px 0 0;
}

.total-price strong {
	font-size: 20pt;
	color: var(--success-accent);
}

.sub-price {
	font-size: 14pt;
}

.sub-price strong {
	font-size: 16pt;
}

.btns {
	margin: 20px;
}

.grid-btns {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.large-btn {
	margin-top: 10px;
	width: 100%;

}

.diffquantity {
	font-size: 10pt;
	color: #333;
}

.label-container {
	text-align: center;
}

.label-box {
	display: inline-block;
	padding: 5px 10px;
	margin: 0;
}

.subquantities > div {
	display: inline-block;
	margin: 0 10px;
}

.indented-form {
	margin-left: 10px;
}

.totalquantity {
	font-size: 14pt;
	color: var(--dark-accent);
}

.totalquantity > span {
	font-size: 16pt;
	color: var(--success-accent);
}

#estimate > p {
	margin: 0;
}

ul {
	margin: 0;
	padding-left: 20px;
}

.price-box {
	margin: 10px 5px;
	border: 2px solid var(--success-accent);
	padding: 10px;
	background-color: #fff;
}

.price-box > strong {
	font-size: 12pt;
	font-weight: 600;
	display: inline-block;
}

.price-box strong > span {
	font-size: 14pt;
	color: var(--light-accent);
}

.price-box hr {
	border: 1px solid var(--success-accent);
}

.inline-price {
	font-weight: 600;
	color: var(--success-accent);
}

.btn-success {
	background-color: var(--success-accent);
}

.popup button {
	margin-top: 10px;
}

.modal-category input {
	margin-bottom: 5px;
}

.modal-subcategory p {
	margin: 20px 0 10px;
}

.inline-quantity {
	font-size: 14pt;
	font-weight: 600;
	color: var(--success-accent);
}

.yellow-highlight {
	background-color: var(--box-accent);
	padding: 5px 15px;
	margin-bottom: 10px;
	border: 2px solid #ada9b3;
}

.yellow-highlight > p {
	margin: 5px 0;
}

.product-form .form-category {
	background-color: var(--two-accent);;
}

#technical {
	display: block;
	margin-bottom: 20px;
	background-color: var(--long-accent);
}

#technical:hover {
	color: var(--hover-accent);
}

#close-button {
	position: sticky;
	top: 0;
	float: right;
	font-size: 36pt;
	color: var(--success-accent);
	cursor: pointer;
}

.quantity-box {
	font-size: 14pt;
	border: 2px solid black;
	border-radius: 5px;
	width: 45px;
	padding: 0 5px;
}

textarea {
	width: 100%;
}

.modal h4 {
	color: #009de1;
	margin: 5px 0;
}

.modal pre {
	display: inline;
	font-weight: 600;
}

input[type=file] {
	margin: 10px;
}

/* Remove input[type=number] arrows */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	-webkit-appearance: none; /* Chrome, Safari */
	margin: 0;
}
input[type=number] {
	-moz-appearance: textfield; /* Firefox */
}

@media (max-width: 992px) {
	.container {
		grid-template-columns: repeat(2, 1fr);
	}
	.grid-btns {
		grid-template-columns: 1fr;
	}
	.small-image {
		width: 50px;
	}
}

@media (max-width: 600px) {
	.container {
		grid-template-columns: 1fr;
	}
	.rhs {
		float: left;
	}
	.ruler {
		display: none;
	}
	.popup {
		top: 0;
		height: calc(100vh - 100px);
	}
}

.btn-discreet {
	background-color: var(--discreet-accent);
}
