/* FORM STYLES */

/* Global settings */

/* Fields stuff */

input, textarea, select, label
{
	font-family: "gt-pressura-extended-light"; // default type across all form elements	
}

select
{
	appearance: none;
	background-image: url("../img/ui/dropdown.svg");
	background-repeat: no-repeat;
	background-position: right 0.625rem top 50%;
	background-size: 0.625rem auto;
}

input[type=text], input[type=number], input[type=password], input[type=email], input[type=tel], textarea, select
{
	color: #000000;
	background-color: rgba(0,0,0, 0.02);
	font-size: 1rem;
	font-weight: inherit;
	padding: 0.625rem;
	border-radius: 0.3125rem;
	border: 1px solid rgba(0,0,0, 0.12);
	-webkit-appearance: none;
	-moz-appearance: none;
	text-align: left;
	text-align: -moz-left;
	text-align: -webkit-left;
	width: 100%;
}

input.quantity
{
	display: inline;
	vertical-align: middle;
	text-align: center;
}

input::-webkit-outer-spin-button, input::-webkit-inner-spin-button
{
	-webkit-appearance: none;
	margin: 0;
}

input[type=number]
{
	-moz-appearance: textfield;
}

textarea
{
	height: 10rem;
	resize: none;
	line-height: 150%;
}

label, input[type="submit"], input[type="button"], button, input[type="radio"]
{
	cursor: pointer;
}

input[type="submit"], input[type="button"], button
{
	width: fit-content;
	font-size: 0.75rem;
	font-family: "gt-pressura-extended-regular";
	font-weight: inherit;
	color: #000000;
	letter-spacing: 0.01rem;
	text-transform: uppercase;
	background: rgba(255,170,255,1.0);
	border-radius: 0.25rem;
	border: 1px solid #000000;
	box-shadow: 2px 2px #000000;
	padding: 0.625rem 1.25rem;
	text-align: center;
}

input[type="submit"]:disabled, input[type="button"]:disabled
{
		opacity: 0.4;
}

input[type="submit"]:hover, input[type="button"]:hover, button:hover
{
	box-shadow: 4px 4px #000000;
}

input[type="submit"]:active,  input[type="button"]:active
{
	box-shadow: 0px 0px;
}

.inactive
{
	pointer-events: none;
	opacity: 0.24;
}

.stepper
{
	height: 2.5rem;
	display: inline;
	vertical-align: middle;	
}


/* Custom form, button, checkbox and radio stuff */

#cart button, #addtocart button
{
	width: 100%;
}

#birthyear
{
	margin: 1.25rem auto 2.5rem auto;
	width: 7.5rem;
}

input[type="radio"]
{
	-webkit-appearance: none;
	appearance: none;
	display: block; /* this removes annoying padding from radio input */

	background-color: #ffffff;
	width: 1.25rem;
	height: 1.25rem;
	border: 1px solid #000000;
	border-radius: 50%;
	cursor: pointer;
}

input[type="radio"]:checked
{
	background-color: #000000;
	box-shadow: inset 0 0 0 0.25rem #ffffff; //
}

.checkity
{
	margin-top: 1.25rem;
	display: block;
	position: relative;
	padding-left: 1.875rem;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.checkity input /* hide default checkbox */
{
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

.checkmark /* render new checkbox */
{
	position: absolute;
	top: 0;
	left: 0;
	height: 1.25rem;
	width: 1.25rem;
	background-color: rgba(51,34,34, 0.16);
}

.checkity:hover input ~ .checkmark
{
	background-color: rgba(51,34,34, 0.32);
}

.checkity input:checked ~ .checkmark
{
	background-color: rgba(51,34,34, 0.64);
}

.checkmark:after
{
	content: "";
	position: absolute;
	display: none;
}

.checkity input:checked ~ .checkmark:after
{
	display: block;
}

.checkity .checkmark:after
{
	left: 0.475rem;
	top: 0.25rem;
	width: 0.3125rem;
	height: 0.625rem;
	border: solid white;
	border-width: 0 1px 1px 0;
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
}

.frequency, .frequency div
{
	display: flex;
	align-items: center;
}

.frequency label
{
	font-family: "gt-pressura-extended-regular";
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}



/* Form layout and text stuff */

.fields_50_50, .fields_33_34_33
{
	display: flex;
	align-items: start	
}

.fields_50_50 div
{
	width: 50%;
}

.fields_50_50 div:not(:first-child), .fields_33_34_33 div:not(:first-child)
{
	padding-left: 0.625rem;
}

.fields_33_34_33 div:nth-child(odd)
{
	width: 33%;
}

.fields_33_34_33 div:nth-child(even)
{
	width: 34%;
}

p.section
{
	font-family: "gt-pressura-extended-medium";
	font-weight: inherit;
	margin: 2.5rem 0 1.25rem 0;
}

.fieldname
{
	font-size: 0.75rem;
	margin-top: 1.25rem;
	margin-bottom: 0.625rem;
}

p.alert
{
	font-size: 0.875rem;
	color: #ff5544;
	margin-top: 0.3125rem;
	display: none;
}




/* SMARTPHONE settings and/or overrides (under 640px) */

@media only screen and (max-width: 639px)
{
	select:not(:first-child)
	{
		margin-top: 0.625rem; 
	}

	.optional
	{
		display: none;
	}

	.fieldname
	{
		margin-top: 0.625rem;
		margin-bottom: 0.3125rem;
	}

	textarea
	{
		height: 5rem;
	}

	.fields_50_50, .fields_33_34_33
	{
		display: block;
	}

	.fields_50_50 div, .fields_33_34_33 div
	{
		width: 100%;
	}

	.fields_50_50 div:not(:first-child)
	{
		padding-left: 0;
	}
	
	.fields_33_34_33 div:not(:first-child)
	{
		padding-left: 0;
	}

	.fields_33_34_33 div:nth-child(odd)
	{
		width: 100%;
	}
	
	.fields_33_34_33 div:nth-child(even)
	{
		width: 100%;
	}
}