.modal-open {
	overflow: hidden;
}
.modal-open .modal {
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: hidden;
}
.modal-inner {
	position: relative;
	width: auto;
	height: auto;
	box-sizing: border-box;
	border: none;
	border-radius: 0;
	background-color: rgb(51, 48, 45);
	opacity: 1;
	max-width: 30rem;
	padding: 2rem;
	margin: 1rem auto;
}
.modal-wide .modal-inner {
	max-width: 40rem;
}
.modal-title {
	height: 3rem;
	line-height: 3rem;
	overflow: hidden;
	font-weight: 600;
	font-size: 1.5rem;
	position: absolute;
	top: 1rem;
	left: 2rem;
	right: 2rem;
}
.modal-title-text {
	max-width: calc(100% - 2rem);
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	margin-right: 2rem;
	color: rgb(251, 202, 9);
	text-transform: uppercase;
}
.modal-icon {
	float: right;
	cursor: pointer;
	position: relative;
	color: #8a8fb5;
	font-size: 1.4rem;
	padding: 0 0.5rem;
	z-index: 1;
}
.modal-icon:hover {
	color: rgb(251, 202, 9);
}
.modal-body {
	padding: 3rem 0 0;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
}
#modal-underlay {
	display: none;
	position: fixed;
	background-color: rgba(0, 0, 0, 0.8);
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}
@media (max-width: 32rem) {
	.modal-title {
		top: 0rem;
		left: 1rem;
		right: 1rem;
		font-size: 1.3rem;
	}
	.modal-title-text {
		max-width: calc(100% - 1rem);
		margin-right: 1rem;
	}
	.modal-inner {
		margin: 1rem 1rem;
		padding: 1rem;
	}
}

.modal-form fieldset {
	margin: 0;
	padding: 0;
	border: none;
}

.modal-form .form-field {
	margin-top: 0.5rem;
}

.modal-form .form-buttons, .modal-buttons {
	text-align: center;
	margin-top: 1rem;
}

.form-field input[type=text], .form-field input[type=number], .form-field input[type=email], .form-field input[type=password], .form-field textarea {
	transition: all .2s;
	border: 1px solid #888;
	color: rgb(251, 202, 9);
	background-color: #222;
	font-size: 1rem;
	padding: 0.75rem 1rem;
	width: 100%;
	border-radius: 0.3rem;
	outline: none;
}

.form-field input[type=text]:hover, .form-field input[type=number]:hover, .form-field input[type=email]:hover, .form-field input[type=password]:hover, form-field textarea:hover {
	border: 1px solid rgb(251, 202, 9);
}

.field-desc {
	width: calc(100% - 1rem);
	box-sizing: border-box;
	margin-top: 0.5rem;
	margin-left: 1rem;
	font-size: 0.9rem;
	color: #888;
	line-height: 1rem;
	min-height: 1rem;
	text-align: left;
}

.form-field.field-error input[type=text], .form-field.field-error input[type=password], .form-field.field-error input[type=email], .form-field.field-error input[type=number] {
	color: #f44;
	border: solid 1px #f44;
}

.form-field.field-error textarea {
	color: #f44;
	border: solid 1px #f44;
}

.form-field.field-error .field-desc {
	color: #f44;
}

.form-field select {
	display: inline-block;
	transition: all .2s;
	outline: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
	border: 1px solid #888;
	font-size: 1rem;
	font-weight: 400;
	border-radius: 0.75rem;
	color: rgb(251, 202, 9);
	background-color: #222;
	padding: 0.75rem 1rem;
	width: 100%;
}

.form-field select:hover {
	border: 1px solid rgb(251, 202, 9);
}

fieldset p {
	margin-top: 0px;
	margin-bottom: 15px;
}

fieldset + fieldset > p {
	margin-top: 20px;
}
