/* ===============================================
   GENERALS
   =============================================== */

button:hover,
button:active,
button:focus,
input:hover,
input:active,
input:focus,
textarea:hover,
textarea:active,
textarea:focus {
	outline: none !important;
	text-decoration: none !important;
}

.clear {
	clear: both;
	float: none !important;
}

.left {
	float: left;
}

.right {
	float: right;
}

.hide {
	display: none !important;
}

/* ===============================================
   SAVE MESSAGE
   =============================================== */

.updated.fade.message_save.tipcg_panel_message {
	margin: 0 0 20px 0;
	padding: 1.5%;
	box-shadow: 0 2px 1px -1px #46b450;
	background: #fff;
	border: solid 1px #ddd;
}

/* ===============================================
   HEADER
   =============================================== */

#tipcg_panel_header {
	margin: 0 0 20px 0;
	padding: 20px 0;
	position: relative;
}

#tipcg_panel_header a {
	font-family: "Open Sans", Geneva, sans-serif;
	display: inline-block;
	color: #616161;
	margin-left: 5px;
	text-decoration: none;
	font-weight: 600;
	transition: all .3s ease;
}

#tipcg_panel_header a:hover,
#tipcg_panel_header a:active,
#tipcg_panel_header a:focus {
	color: #5C97BF;
	box-shadow: none;
}

#tipcg_panel_header a::after {
	content: " | ";
	color: #616161 !important;
}

#tipcg_panel_header a:last-of-type::after {
	display: none;
}

#tipcg_panel_header .plugin_description {
	position: relative;
	text-align: left;
}

#tipcg_panel_header h2 {
	text-align: left;
	font-size: 22px;
	font-family: "Open Sans", Geneva, sans-serif;
	font-weight: 600;
	color: #616161;
	text-shadow: none;
	margin: 20px 0 10px 0;
}

#tipcg_panel_header span {
	font-family: "Open Sans", Geneva, sans-serif;
	font-size: 12px;
	color: #616161;
	font-weight: 600;
}

/* ===============================================
   TABS
   =============================================== */

#tipcg_panel_tabs {
	width: 98.5%;
	height: 100%;
	display: inline-block;
	margin-top: 0;
	vertical-align: top;
}

.tipcg_panel_tabs {
	position: relative;
	display: block;
}

#tipcg_panel_tabs ul.tipcg_panel_navigation {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	list-style: none;
	margin: 0;
	background: #fafafa;
	padding: 20px;
}

#tipcg_panel_tabs li {
	margin: 0;
}

#tipcg_panel_tabs li a {
	color: #616161;
	text-decoration: none;
	padding: 15px 20px;
	display: block;
	text-align: center;
	transition: all .3s ease;
	font-family: "Open Sans", Geneva, sans-serif;
	font-weight: 600;
	font-size: 14px;
	text-shadow: none;
	margin: 0;
	border: solid 1px #fafafa;
	text-transform: uppercase;
}

#tipcg_panel_tabs li a:hover,
#tipcg_panel_tabs li.ui-tabs-active a,
#tipcg_panel_tabs li.ui-state-active a {
	background: #f1f1f1;
	color: #616161;
	text-shadow: none;
	border: solid 1px #ddd;
	box-shadow: none;
}

#tipcg_panel_tabs li a:focus {
	box-shadow: none;
}

#tipcg_panel_tabs .tipcg_panel_navigation li:nth-child(4) a {
	background:#f22613;
	color:#fff;
	text-shadow:none;
	border: solid 1px #d91e18;
	border-radius: 2px;
}

#tipcg_panel_tabs .tipcg_panel_navigation li:nth-child(4) a:hover {
	background:#d91e18;
}

/* ===============================================
   BOXES
   =============================================== */

.tipcg_panel_container .tipcg_panel_mainbox {
	font-family: "Open Sans", Geneva, sans-serif;
	font-size: 14px;
	line-height: 1.4em;
	position: relative;
}

.tipcg_panel_container .tipcg_panel_mainbox-open {
	font-family: "Open Sans", Geneva, sans-serif;
	font-size: 14px;
	line-height: 1.4em;
	background: #f3f3f3;
	position: relative;
}

.tipcg_panel_container .tipcg_openbox {
	display: block !important;
}

.tipcg_panel_container h5.element-open {
	background: #fafafa;
	padding: 30px 20px;
	font-size: 14px;
	margin: 10px 0 0 0;
	color: #616161;
	font-family: "Source Sans Pro", sans-serif;
	font-weight: 600;
	text-transform: uppercase;
}

.tipcg_panel_container h5.element {
	background: #fafafa;
	padding: 25px 20px;
	font-size: 14px;
	margin: 0;
	font-family: "Source Sans Pro", sans-serif;
	font-weight: 600;
	text-shadow: none;
	color: #616161;
	transition: all .3s ease;
	text-transform: uppercase;
}

.tipcg_panel_container h5.element.linkable-element {
	background: none;
	border: solid 1px #ddd;
	padding: 0;
	text-transform: none;
	border-radius: 2px;
}

.tipcg_panel_container h5.element.linkable-element a {
	background: #fafafa;
	display: block;
	color: #616161;
	padding: 30px;
	position: relative;
	text-decoration: none;
	transition: all .3s ease;
}

.tipcg_panel_container h5.element.linkable-element a:hover,
.tipcg_panel_container h5.element.linkable-element a:active,
.tipcg_panel_container h5.element.linkable-element a:focus {
	background: #f1f1f1;
	box-shadow: none;
	color: #616161;
}

.tipcg_panel_container div.tipcg_panel_box {
	padding: 20px 0 20px 20px;
	background: #fff;
	max-width: 100%;
	display: block;
}

.tipcg_panel_container .input-left {
	float: left;
	width: 19%;
	vertical-align: top;
	padding: 0 0 14px 0;
}

.tipcg_panel_container .input-right {
	float: right;
	width: 79%;
	padding: 0;
	box-sizing: border-box;
	min-width: 0;
}

.tipcg_panel_container .tipcg_panel_box label,
.tipcg_panel_container .tipcg_panel_box .input-left p {
	color: #616161;
	font-family: "Open Sans", Geneva, sans-serif;
	float: left;
	font-size: 14px;
	padding: 6px 0;
	font-weight: 600;
	font-style: normal;
}

.tipcg_panel_container .tipcg_panel_box p,
.tipcg_panel_container p.description {
	color: #616161;
	font-family: "Open Sans", Geneva, sans-serif;
	font-style: italic;
	font-size: 12px;
	margin: 5px 0 0 0;
}

.tipcg_panel_container .tipcg-template-pro-warning {
	display: none;
	color: #b32d2e;
	font-style: normal;
	font-weight: 600;
}

#tipcg_template option[value="animated_flip"],
#tipcg_template option[value="typewriter"],
#tipcg_template option[value="paper"] {
	color: #888;
}

.tipcg_panel_container .tipcg_panel_box input[type="text"],
.tipcg_panel_container .tipcg_panel_box input[type="number"],
.tipcg_panel_container .tipcg_panel_box input[type="url"],
.tipcg_panel_container .tipcg_panel_box input[type="datetime-local"],
.tipcg_panel_container .tipcg_panel_box select {
	width: 98%;
	height: 35px;
	font-size: 12px;
	color: #616161;
	line-height: 1.5em;
	border: solid 1px #f1f1f1;
	box-shadow: none;
	max-width: inherit !important;
}

.tipcg_panel_container .tipcg_panel_box .small-number {
	max-width: 90px !important;
}

.tipcg_panel_container .tipcg_panel_box .code {
	font-family: Menlo, Consolas, Monaco, monospace;
}

.tipcg_panel_container .tipcg_panel_box.saveBox {
	background: #fafafa;
}

.tipcg_panel_container .tipcg_panel_box.saveBox .button {
	margin: 5px 5px 5px 0;
	padding: 0 16px;
	font-size: 13px;
	font-weight: 600;
	transition: background .3s ease;
}

.tipcg_panel_container .tipcg_panel_box.saveBox .tipcg_default_button {
	background: #fff;
	border-color: #616161;
	color: #616161;
}

.tipcg_panel_container .tipcg_panel_box.saveBox .tipcg_default_button:hover,
.tipcg_panel_container .tipcg_panel_box.saveBox .tipcg_default_button:active,
.tipcg_panel_container .tipcg_panel_box.saveBox .tipcg_default_button:focus {
	background: #f1f1f1;
}


.tipcg_panel_container .tipcg_panel_box.saveBox .tipcg_save_countdown {
	background: #5C97BF;
	border-color: #006799;
	color: #fff;
}

.tipcg_panel_container .tipcg_panel_box.saveBox .tipcg_save_countdown:hover,
.tipcg_panel_container .tipcg_panel_box.saveBox .tipcg_save_countdown:active,
.tipcg_panel_container .tipcg_panel_box.saveBox .tipcg_save_countdown:focus {
	background: #006799;
	color: #fff;
}

.tipcg_panel_container .tipcg_panel_box.saveBox .tipcg_delete_countdown {
	border-color: #e74c3c;
	background-color: #ec7063;
	color: #fff;
}

.tipcg_panel_container .tipcg_panel_box.saveBox .tipcg_delete_countdown:hover,
.tipcg_panel_container .tipcg_panel_box.saveBox .tipcg_delete_countdown:active,
.tipcg_panel_container .tipcg_panel_box.saveBox .tipcg_delete_countdown:focus {
	background-color: #e74c3c;
}

.tipcg_panel_container .tipcg_panel_box .button-primary.tipcg_config_action {
	background: #5C97BF;
	border-color: #006799;
	color: #fff;
	display: inline-block;
	margin-top: 10px;
	transition: background .3s ease;
}

.tipcg_panel_container .tipcg_panel_box .button-primary.tipcg_config_action:hover,
.tipcg_panel_container .tipcg_panel_box .button-primary.tipcg_config_action:active,
.tipcg_panel_container .tipcg_panel_box .button-primary.tipcg_config_action:focus {
	background: #006799;
	color: #fff;
}

.tipcg_panel_container .tipcg_panel_box input[type="file"] {
	display: block;
	margin: 10px 0;
}

.tipcg-style-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(140px, 1fr));
	gap: 12px;
	align-items: end;
}

.tipcg-style-field label,
.tipcg-style-field span {
	display: block;
	font-family: "Open Sans", Geneva, sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #616161;
	margin-bottom: 6px;
}

.tipcg-style-field span {
	display: inline-block;
	margin: 0 0 0 6px;
}

.tipcg-style-field .small-number {
	width: 90px !important;
}

.tipcg-field-suffix {
	display: inline-block;
	margin-left: 6px;
	color: #616161;
	font-size: 12px;
	font-style: normal;
	line-height: 35px;
	vertical-align: top;
}

.tipcg-color-field .wp-picker-container {
	display: block;
}

.tipcg_panel_container .tipcg_panel_box .tipcg-color-field input[type="text"].wp-color-picker {
	width: 90px !important;
	height: 30px;
}

.tipcg_panel_container .tipcg-range-control {
	width: 98%;
	margin: 8px 0 4px 0;
}

.tipcg_panel_container .tipcg-range-row {
	display: grid;
	grid-template-columns: minmax(36px, auto) minmax(160px, 1fr) minmax(36px, auto);
	align-items: center;
	gap: 10px;
}

.tipcg_panel_container .tipcg-range-limit,
.tipcg_panel_container .tipcg-range-value {
	color: #616161;
	font-size: 12px;
	font-style: normal;
	line-height: 1.4em;
}

.tipcg_panel_container .tipcg-range-min {
	text-align: left;
}

.tipcg_panel_container .tipcg-range-max {
	text-align: right;
}

.tipcg_panel_container .tipcg-range-value {
	display: block;
	font-weight: 700;
	margin: 5px 0 10px 0;
	text-align: center;
}

.tipcg_panel_container .tipcg_panel_box input[type="range"].tipcg-range-input {
	--tipcg-range-progress: 0%;
	-webkit-appearance: none;
	appearance: none;
	background: linear-gradient(
		to right,
		#5C97BF 0%,
		#5C97BF var(--tipcg-range-progress),
		#e5e5e5 var(--tipcg-range-progress),
		#e5e5e5 100%
	);
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	height: 8px;
	margin: 0;
	padding: 0;
	width: 100%;
}

.tipcg_panel_container .tipcg_panel_box input[type="range"].tipcg-range-input::-webkit-slider-runnable-track {
	background: transparent;
	border: 0;
	border-radius: 0;
	height: 8px;
}

.tipcg_panel_container .tipcg_panel_box input[type="range"].tipcg-range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	background: #5C97BF;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	height: 16px;
	margin-top: -4px;
	width: 16px;
}

.tipcg_panel_container .tipcg_panel_box input[type="range"].tipcg-range-input::-moz-range-track {
	background: transparent;
	border: 0;
	border-radius: 0;
	height: 8px;
}

.tipcg_panel_container .tipcg_panel_box input[type="range"].tipcg-range-input::-moz-range-progress {
	background: #5C97BF;
	border-radius: 0;
	height: 8px;
}

.tipcg_panel_container .tipcg_panel_box input[type="range"].tipcg-range-input::-moz-range-thumb {
	background: #5C97BF;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	height: 16px;
	width: 16px;
}

.tipcg_panel_container .tipcg_panel_box input[type="range"].tipcg-range-input:disabled {
	cursor: default;
	opacity: 0.7;
}

.ilrcp_template_preview {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 350px;
	min-height: 120px;
	box-sizing: border-box;
	margin-top: 12px;
	padding: 0;
	border: 1px solid #ddd;
	background: #fff;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	overflow: hidden;
}

@media screen and (max-width: 960px) {
	.tipcg-style-grid {
		grid-template-columns: repeat(2, minmax(140px, 1fr));
	}
}

@media screen and (max-width: 600px) {
	.tipcg-style-grid {
		grid-template-columns: 1fr;
	}
}

/* ===============================================
   COUNTDOWN MANAGER
   =============================================== */

.tipcg_countdownGenerator {
	padding: 20px;
	background-color: #fff;
}

.tipcg_countdownGenerator .tipcg_panel_container {
	margin-bottom: 20px;
}

.tipcg_countdownGenerator .tipcg-countdown-editor.tipcg_panel_container {
	background: transparent;
	border: 0;
}

.tipcg_countdownGenerator .tipcg-countdown-editor .tipcg-countdown-section {
	margin-bottom: 20px;
	border-top: solid 1px #ddd;
}

.tipcg_countdownGenerator .tipcg-countdown-editor .tipcg-countdown-section:last-child {
	margin-bottom: 0;
}

.tipcg_countdownGenerator .tipcg-countdown-editor .tipcg-countdown-section > h5.element-open {
	margin: 0;
	border: 0;
	border-bottom: solid 1px #ddd;
}

.tipcg_countdownGenerator .tipcg-countdown-editor .tipcg-countdown-section > div.tipcg_panel_box:first-of-type {
	border-top: 0;
}

.tipcg_countdownGenerator .tipcg_panel_container:last-child {
	margin-bottom: 0;
}

.tipcg_countdownGenerator .tipcg_panel_countdown_order {
	margin-bottom: 20px;
}

.tipcg_countdownGenerator .tipcg-countdown-item {
	position: relative;
}

.tipcg_countdownGenerator .tipcg-countdown-item .tipcg-countdown-list-shortcode {
	position: absolute;
	top: 50%;
	height: 30px;
	line-height: 30px;
	transform: translateY(-50%);
	right: 30px;
	min-width: 250px;
	z-index: 2;
}

.tipcg_countdownGenerator .tipcg-countdown-item .tipcg-countdown-shortcode-field {
	width: 100%;
	max-width: 420px;
	min-height: 28px;
	margin: 0;
	padding: 0 8px;
	border: 1px solid #ddd;
	background: #fff;
	box-shadow: none;
	color: #616161;
	font-family: Menlo, Consolas, Monaco, monospace;
	font-size: 12px;
	line-height: 28px;
	text-align: center;
}

.tipcg_countdownGenerator .tipcg-countdown-item .tipcg-countdown-shortcode-field:focus {
	border-color: #5C97BF;
	box-shadow: 0 0 0 1px #5C97BF;
	outline: none;
}

.tipcg-new-countdown-row {
	margin-top: 10px;
}

.tipcg-new-countdown-row .button.tipcg_add_countdown {
	background: #5C97BF;
	border-color: #006799;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 0 16px;
	transition: all .3s ease;
}

.tipcg-new-countdown-row .button.tipcg_add_countdown:hover,
.tipcg-new-countdown-row .button.tipcg_add_countdown:active,
.tipcg-new-countdown-row .button.tipcg_add_countdown:focus {
	background: #006799;
	border-color: #006799;
	color: #fff;
}

.tipcg-new-countdown-row .button.tipcg_add_countdown::after {
	content: "+";
	color: #616161;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	position: absolute;
	right: 28px;
	top: 50%;
	transform: translateY(-50%);
}


.tipcg-type-block:not(.tipcg-active) {
	display: none;
}

.tipcg-duration-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 12px;
	width: 98%;
}

.tipcg-duration-field {
	min-width: 0;
	max-width: 100%;
}

.tipcg-duration-field .small-number {
	width: 100% !important;
	max-width: none !important;
}

.tipcg-duration-field span {
	display: block;
	font-size: 12px;
	color: #616161;
	margin-bottom: 4px;
	font-style: normal;
}

.tipcg-datetime {
	max-width: 240px !important;
}

@media (max-width: 900px) {
	#tipcg_panel_tabs {
		width: 100%;
	}

	.tipcg_panel_container .input-left,
	.tipcg_panel_container .input-right {
		float: none;
		width: 100%;
	}
}
