/* ==========================================================================
** Normalize
** ======================================================================== */

body {
	font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
	font-size: 16px;
	line-height: 1.4em;
	margin: 0;
	padding: 0 1em;
}

/* Links */
a,
a:visited {
	color: #0087be;
	text-decoration: none;
}

a:hover,
a:focus,
a:active {
	color: $link-highlight;
}

/* ==========================================================================
** Card
** ======================================================================= */

.card {
	display: block;
	position: relative;
	margin: 0 auto 10px auto;
	padding: 16px;
	box-sizing: border-box;
	background: white;
	box-shadow: 0 0 0 1px rgba(200, 215, 225, 0.5), 0 1px 2px #e9eff3;
}

.card:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

.card .delete-field {
	display: block;
	float: right;
}

@media ( min-width: 481px ) {
	.card {
		margin-bottom: 16px;
		padding: 24px;
	}
}

.card.is-compact {
	margin-bottom: 1px;
}

@media ( min-width: 481px ) {
	.card.is-compact {
		margin-bottom: 1px;
		padding: 16px 24px;
	}
}

.card > div {
	margin-top: 24px;
}

.card > div:first-child {
	margin-top: 0;
}


/* ==========================================================================
** Labels
** ======================================================================= */

label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 5px;
	margin-top: 24px;
}

label:first-of-type {
	margin-top: 7px;
}


/* ==========================================================================
** Text Inputs
** ======================================================================= */

input[type="text"],
input[type="tel"],
input[type="email"] {
	border-radius: 0;
	appearance: none;
	box-sizing: border-box;
	margin: 0;
	padding: 7px 14px;
	width: 100%;
	color: #2e4453;
	font-size: 16px;
	line-height: 1.5;
	border: 1px solid #c8d7e1;
	background-color: #fff;
	transition: all .15s ease-in-out;
	box-shadow: none;
}

input[type="text"]::placeholder,
input[type="tel"]::placeholder,
input[type="email"]::placeholder {
	color: #87a6bc;
}

input[type="text"]:hover,
input[type="tel"]:hover,
input[type="email"]:hover {
	border-color: #a8bece;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus {
	border-color: #0087be;
	outline: none;
	box-shadow: 0 0 0 2px #78dcfa;
}

input[type="text"]:focus::-ms-clear,
input[type="tel"]:focus::-ms-clear,
input[type="email"]:focus::-ms-clear {
	display: none;
}

input[type="text"]:disabled,
input[type="tel"]:disabled,
input[type="email"]:disabled {
	background: #f3f6f8;
	border-color: #e9eff3;
	color: #a8bece;
	-webkit-text-fill-color: #a8bece;
}

input[type="text"]:disabled:hover,
input[type="tel"]:disabled:hover,
input[type="email"]:disabled:hover {
	cursor: default;
}

input[type="text"]:disabled::placeholder,
input[type="tel"]:disabled::placeholder,
input[type="email"]:disabled::placeholder {
	color: #a8bece;
}


/* ==========================================================================
** Buttons
** ======================================================================== */

input[type="submit"] {
	padding: 0;
	font-size: 14px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	vertical-align: baseline;
	background: white;
	border-color: #c8d7e1;
	border-style: solid;
	border-width: 1px 1px 2px;
	color: #2e4453;
	cursor: pointer;
	display: inline-block;
	margin: 0;
	outline: 0;
	overflow: hidden;
	font-weight: 500;
	text-overflow: ellipsis;
	text-decoration: none;
	vertical-align: top;
	box-sizing: border-box;
	font-size: 14px;
	line-height: 21px;
	border-radius: 4px;
	padding: 7px 14px 9px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

input[type="submit"]:hover {
	border-color: #a8bece;
	color: #2e4453;
}

input[type="submit"]:active {
	border-width: 2px 1px 1px;
}

input[type="submit"]:visited {
	color: #2e4453;
}

input[type="submit"][disabled],
input[type="submit"]:disabled {
	color: #e9eff3;
	background: white;
	border-color: #e9eff3;
	cursor: default;
}

input[type="submit"][disabled]:active,
input[type="submit"]:disabled:active {
	border-width: 1px 1px 2px;
}

input[type="submit"]:focus {
	border-color: #00aadc;
	box-shadow: 0 0 0 2px #78dcfa;
}

input[type="submit"].is-compact {
	padding: 7px;
	color: #668eaa;
	font-size: 11px;
	line-height: 1;
	text-transform: uppercase;
}

input[type="submit"].is-compact:disabled {
	color: #e9eff3;
}

input[type="submit"].is-compact .gridicon {
	top: 4px;
	margin-top: -8px;
}

input[type="submit"].is-compact .gridicons-plus-small {
	margin-left: -4px;
}

input[type="submit"].is-compact .gridicons-plus-small:last-of-type {
	margin-left: 0;
}

input[type="submit"].is-compact .gridicons-plus-small + .gridicon {
	margin-left: -4px;
}

input[type="submit"].hidden {
	display: none;
}

input[type="submit"] .gridicon {
	position: relative;
	top: 4px;
	margin-top: -2px;
	width: 18px;
	height: 18px;
}

input[type="submit"].is-primary {
	background: #00aadc;
	border-color: #008ab3;
	color: white;
}

input[type="submit"].is-primary:hover,
input[type="submit"].is-primary:focus {
	border-color: #005082;
	color: white;
}

input[type="submit"].is-primary[disabled],
input[type="submit"].is-primary:disabled {
	background: #bceefd;
	border-color: #8cc9e2;
	color: white;
}

input[type="submit"].is-primary {
	color: white;
}


/* ==========================================================================
** Inline editor styles
** ======================================================================== */

.card.grunion-form-settings {
	background: #f5f5f5;
}

.card.grunion-field-edit {
	margin-bottom: 0.5em;
	background: #f5f5f5;
}

.ui-sortable-helper.card{
	background: #e9eff3;
}

.grunion-section-header {
	font-size: 21px;
	margin-top: 32px;
}

.grunion-type {
	float: left;
	width: 60%;
}

.grunion-type select {
	width: 100%;
}

.grunion-required {
	float: right;
	width: 30%;
	padding-top: 2em;
}

.grunion-options {
	clear: both;
}

.grunion-options ol {
	list-style: none;
	padding: 0;
	margin: 8px 0 0;
}

.grunion-options li {
	display: flex;
	margin-bottom: 16px;
}

.grunion-field-edit .grunion-options {
	display: none;
}

.delete-option,
.delete-field {
	color: #0087be;
	text-decoration: none;
	width: 40px;
	line-height: 40px;
	font-size: 21px;
	text-align: center;
	font-weight: 600;
}

.delete-field {
	position: absolute;
	top: 0;
	right: 0;
}

.delete-option:before,
.delete-field:before {
	font-family: Dashicons;
/*	content: "\f158"; /* This is the bolder X */
	content: "\f335"; /* This is the thinner X */
	display: inline-block;
	speak: none;
}

.grunion-field-edit.grunion-field-checkbox-multiple .grunion-options,
.grunion-field-edit.grunion-field-radio .grunion-options,
.grunion-field-edit.grunion-field-select .grunion-options {
	display: block;
}

.screen-reader-text {
	position: absolute;
	margin: -1px;
	padding: 0;
	height: 1px;
	width: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	border: 0;
	word-wrap: normal !important; /* many screen reader and browser combinations announce broken words as they would appear visually */
}