/* BUTTONS */

button,
.button {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	border-radius: 6px;
	font-family: Poppins, Arial, Helvetica, sans-serif;
	font-size: 1rem;
	color: var(--text-shade-3);
	padding: 12px 48px;
	background: var(--bg-shade-3);
	cursor: pointer;
	display: block;
	text-align: center;
}
button:hover,
.button:hover {
	background: var(--bg-shade-4);
}
button.inactive {
	pointer-events: none;
}
button.primary,
.button.primary {
	background: var(--accent-shade-0);
}
button.primary:hover,
.button.primary:hover {
	background: var(--accent-shade-1);
}

button.secondary.icon-btn,
.button.secondary.icon-btn {
	width: 50px;
	height: 50px;
	display: flex;
	justify-content: center;
	align-items: center;
}
button svg,
.button svg {
	width: 30px;
	height: 30px;
	display: block;
}

/* MODALS */

body.modal-open {
	overflow: hidden;
}

div.modal-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;

	display: flex;
	justify-content: center;
	align-items: center;
	background: rgba(0, 0, 0, 0.6);

	z-index: 10;
}
div.modal-wrapper.hidden {
	display: none;
}
div.modal {
	background: var(--bg-shade-3);
	padding: 48px;
	border-radius: 8px;
	text-align: left;
	width: min(660px, 90%);
	box-sizing: border-box;
}

div.modal h1 {
	margin-top: 0;
}
p.modal-caption {
	color: var(--text-shade-1);
}
p.modal-caption span,
p.switch-tier-modal-caption span {
	color: var(--text-shade-3);
}

.modal-button-wrapper {
	margin-top: 24px;
	display: flex;
	justify-content: flex-end;
}
.modal-button-wrapper button {
	margin-left: 12px;
	width: fit-content;
}
.modal-button-wrapper button.cancel {
	background: none;
}
.modal-button-wrapper button {
	padding: 12px 24px;
}

@media screen and (max-width: 600px) {
	div.modal {
		padding: 24px;
	}
}

/* MISC FORM COMPONENTS */

input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	background: var(--bg-shade-3);
	padding: 12px;
	margin: 4px;
	margin-left: 0;
	border-radius: 4px;
	vertical-align: -65%;
	width: fit-content;
	cursor: pointer;
}
input[type="checkbox"]:checked {
	background: no-repeat center/contain url(../images/check.svg), var(--accent-shade-0);
}

input {
	appearance: none;
	-webkit-appearance: none;
	display: block;
	font-family: Poppins, Arial, Helvetica, sans-serif;
	font-size: 1rem;
	background-color: var(--bg-shade-3);
	border: none;
	border-radius: 4px;
	padding: 12px;
	color: var(--text-shade-3);
	width: calc(100% - 24px);
}
input:focus {
	background-color: var(--bg-shade-4);
	outline: none;
	transition: 150ms;
}
input[type="range"] {
	background: transparent;
	cursor: pointer;
	width: 100%;
	box-sizing: border-box;
}
input[type="range"]::-webkit-slider-runnable-track {
	background: var(--bg-shade-3);
	height: 1rem;
	border-radius: 1rem;
}
input[type="range"]::-moz-range-track {
	background: var(--bg-shade-3);
	border-radius: 1rem;
	height: 1rem;
}
input[type="range"]::-webkit-slider-thumb {
	appearance: none;
	-webkit-appearance: none;
	width: 1.5rem;
	height: 3rem;
	margin-top: -1rem;
	background-color: var(--accent-shade-1);
	border-radius: 0.5rem;
}
input[type="range"]::-moz-range-thumb {
	width: 1.5rem;
	height: 3rem;
	border: none;
	border-radius: 0.5rem;
	background-color: var(--accent-shade-1);
}
input[type="range"]:focus {
	outline: none;
}
input[type="range"]:focus::-webkit-slider-thumb {
	background-color: var(--accent-shade-3);
}
input[type="range"]:focus::-moz-range-thumb {
	background-color: var(--accent-shade-3);
}
