/**
 * Modify the GFAddon App Settings page
 */

#gform-settings .gforms_form_settings {

	// Margin right and bottom - provide the spacing for the buttons
	.edd-license-key {
		float: left;
		margin: 0 10px 10px 0;
	}

	// Group the buttons together to prevent one wrapping and others not
	.gv-edd-button-wrapper {
		float: left;
		padding-left: 0;

		.button,
		.button-primary {
			margin: 0 10px 10px 0 !important;
		}
	}
}

.gk-calendar-shortcode {
	position: relative;
	max-width: 400px;

	div.copied {
		display: none;
		position: absolute;
		top: 5px;
		right: 5px;
		background-color: #000;
		color: #FFF;
		padding: 2px 5px;
		border-radius: 5px;
	}

	input.shortcode {
		border-radius: 3px;
		border: 1px solid #9092b2;
		font-size: .75rem;
		padding: .5rem;
		cursor: pointer;
		display: block;
	}
}

/**
 * Gravity Forms Toolbar menu
 */
.gf-popover__button[data-url$="#gravityview-calendar-group-heading"] {
	font-weight: bold;
	color: #40464d;
	padding-top: 12px;
	border-radius: 0;
}
.gf-popover__button[data-url$="#gravityview-calendar-group-heading"]:hover {
	background: white;
	color: #40464d;
}

#tab_gravityview-calendar {

	.gaddon-setting-choice-visual label > span {
		-webkit-filter: none;
		-moz-filter: none;
		filter: none;
		min-width: 85px;
		padding: 0;
	}

	.gv-cal-color {
		&.gv-red {
			color: #d50000;
		}

		&.gv-orange {
			color: #ef6c00;
		}

		&.gv-yellow {
			color: #f6bf26;
		}

		&.gv-green {
			color: #0c8043;
		}

		&.gv-light-blue {
			color: #4286f5;
		}

		&.gv-blue {
			color: #3f51b5;
		}

		&.gv-purple {
			color: #8f24ab;
		}

		&.gv-green {
			color: #0c8043;
		}

		&.gv-dark-grey {
			color: #616161;
		}

		&.gv-light-grey {
			color: #a79b8e;
		}

		&.gv-white {
			color: #ffffff;
		}
	}

	& > h3 {
		line-height: 37px;
	}

	#gform_setting_export-ics-url div {
		margin-top: 10px;
	}

	// Thanks, http://b64.io
	.gvi-astronaut-head-icon {
		display: inline-block;
		text-indent: -9999px;
		direction: ltr;
		overflow: hidden;
		width: 30px;
		height: 37px;

		float: left;
		margin-right: 10px;

		.rtl & {
			float: right;
			margin-left: 10px;
		}

		-webkit-background-size: cover;
		-moz-background-size: cover;
		-ie-background-size: cover;
		background-size: cover;
		background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2MS4ycHgiIGhlaWdodD0iNzZweCIgdmlld0JveD0iMCAwIDYxLjIgNzYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDYxLjIgNzYiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGZpbGw9Im5vbmUiIGQ9Ik0yNS44LDYuN2MwLDAuNywwLjEsMS4zLDAuNCwxLjljLTAuMS0wLjMtMC4xLTAuNi0wLjEtMWMwLTMuMSwzLjMtNi42LDcuOC01LjJDMzMsMS45LDMyLjEsMS42LDMxLDEuNkMyOC4xLDEuNSwyNS44LDMuOCwyNS44LDYuN3oiLz48cGF0aCBmaWxsPSIjMjMxRjIwIiBkPSJNNTEuMywyNGMtNS4yLTUuMy0xMi4xLTguMy0xOS41LTguN2wwLTMuN0MzNC4yLDExLjEsMzYsOSwzNiw2LjRjMC0zLTIuNC01LjQtNS40LTUuNGMtMywwLTUuNCwyLjQtNS40LDUuNGMwLDIuNSwxLjcsNC43LDQuMSw1LjNsMCwzLjdjLTcuNCwwLjMtMTQuMywzLjMtMTkuNiw4LjVDNC4xLD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uNSwyNC45LDQ4LjMsMjUuNCw1OS40eiBNNTUuMiw1NS4yQzUwLjUsNjQuNyw0MSw3MC43LDMwLjUsNzAuN2MtMTAuNSwwLTIwLjEtNS45LTI0LjgtMTUuNGMtMS0yLjItMS42LTQuNi0xLjktNy4xYzMsNy43LDEzLjcsMTMuNCwyNi42LDEzLjVjMTIuOSwwLjEsMjMuNy01LjYsMjYuNy0xMy4yQzU2LjcsNTAuOSw1Ni4xLDUzLjEsNTUuMiw1NS4yeiIvPjwvc3ZnPg==);
	}

	.gv-edd-message {
		min-height: 20px;
		padding: 8px 19px;
		margin: 10px 0 !important;
		border: 1px solid;
		border-radius: 4px;
		position: relative;

		display: block !important; // Overwrite .inline class declaration

		background-color: #eeeeee;
		border-color: #cccccc;
		color: #666666;

		&.valid {
			background-color: #c4ee91;
			border-color: #71af5d;
			color: #4d7615;
		}

		&.error,
		&.invalid,
		&.failed {
			background-color: #fba1a3;
			border-color: #b84f5b;
			color: #981225
		}

		&.site_inactive,
		&.deactivated {
			background-color: #fbeba4;
			border-color: #d7c281;
			color: #958234
		}

		&.pending {
			background-color: #d3e4f4;
			border-color: #a9b6c2;
			color: #5c80a1;
		}

		p:first-child {
			margin: 0;
			padding: 2px;
		}
	}

	.inline.hide:empty {
		display: none !important;
	}

	.hide {
		display: none !important;
	}


	// Gravity Forms 2.5+ fixes
	.gform-settings-panel {
		.gf_tooltip svg {
			margin-top: 2px;
		}

		.gform-settings-field input[type=number] {
			&.medium {
				width: 45%;
			}
			&.small {
				width: 25%;
			}
		}

		.gform-settings-field__calendar_controls:after {
			display: block;
			content: '';
			clear: both;
		}
	}
}
