/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file.
 */

textarea.termageddon-embed-code {
	width: 100%;
	height: 150px;
}

/* Section Settings */
.tu-toggle-section,
.tu-section-settings,
.tu-settings-section {
	margin-top: 2rem;
}

/* Hide Extra spacing for the Integration section */
.tu-settings-tab.tu-tab-integrations .tu-section {
	display: none;
}

/* Titles */
.tu-toggle-section .tu-section-title {
	font-size: 125%;
	font-weight: 800;
}
.tu-toggle-section .tu-section-title-helper {
	padding: 1rem;
	color: #6c6c6c;
	font-style: italic;
}

/* Form */
.tu-toggle-section input[readonly] {
	opacity: 50%;
	pointer-events: none;
}
.tu-toggle-section .form-table {
	margin-left: 2rem;
}
.tu-toggle-section .form-table th,
.tu-toggle-section .form-table td {
	padding: 0.5rem 0;
}
.tu-toggle-section .form-table th {
	width: 300px;
}
.tu-toggle-section.slim-section .form-table th {
	width: 125px;
}

/* Settings Section */
#termageddon-script-snippets-container,
.tu-settings-section {
	padding-left: 2rem;
	padding-right: 2rem;
}

.tu-settings-tab.tu-tab-config .tu-settings-section {
	padding-left: 0;
	padding-right: 0;
}

.tu-settings-section .form-table th {
	width: 300px;
}

.tu-tab-integrations .tu-settings-section .form-table th {
	width: 500px;
}

.tu-section-hidden {
	display: none;
}
.tu-label-success {
	background-color: #3db44c;
	color: white;
	padding: 3px 5px;
	border-radius: 5px;
	font-size: 60%;
}
.tu-label-info {
	background-color: #019ed5;
	color: white;
	padding: 3px 5px;
	border-radius: 5px;
	font-size: 60%;
}
.tu-label-warning {
	background-color: orange;
	color: white;
	padding: 3px 5px;
	border-radius: 5px;
	font-size: 60%;
}
/**
 * Checkbox Toggle UI
 */
input[type="checkbox"].wppd-ui-toggle {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;

	-webkit-tap-highlight-color: transparent;

	width: auto;
	height: auto;
	vertical-align: middle;
	position: relative;
	border: 0;
	outline: 0;
	cursor: pointer;
	margin: 0 4px;
	background: none;
	box-shadow: none;
}
input[type="checkbox"].wppd-ui-toggle:focus {
	box-shadow: none;
}
input[type="checkbox"].wppd-ui-toggle:after {
	content: "";
	font-size: 6px;
	font-weight: 400;
	line-height: 18px;
	text-indent: -14px;
	color: #ffffff;
	width: 36px;
	height: 18px;
	display: inline-block;
	background-color: #a7aaad;
	border-radius: 72px;
	box-shadow: 0 0 12px rgb(0 0 0 / 15%) inset;
}
input[type="checkbox"].wppd-ui-toggle:before {
	content: "";
	width: 14px;
	height: 14px;
	display: block;
	position: absolute;
	top: 2px;
	left: 2px;
	margin: 0;
	border-radius: 50%;
	background-color: #ffffff;
}
input[type="checkbox"].wppd-ui-toggle:checked:before {
	left: 20px;
	margin: 0;
	background-color: #ffffff;
}
input[type="checkbox"].wppd-ui-toggle,
input[type="checkbox"].wppd-ui-toggle:before,
input[type="checkbox"].wppd-ui-toggle:after,
input[type="checkbox"].wppd-ui-toggle:checked:before,
input[type="checkbox"].wppd-ui-toggle:checked:after {
	transition: ease 0.15s;
}
input[type="checkbox"].wppd-ui-toggle:checked:after {
	content: "ON";
	background-color: #2271b1;
}

/* Label Hidden */
input[type="checkbox"].wppd-ui-toggle.label-hidden:after {
	width: 48px;
}
input[type="checkbox"].wppd-ui-toggle.label-hidden:checked:before {
	left: 32px;
}
input[type="checkbox"].wppd-ui-toggle.label-hidden:checked:after {
	content: "HIDDEN";
}

/* Label Enabled */
input[type="checkbox"].wppd-ui-toggle.label-enabled:after {
	font-size: 8px;
	width: 60px;
	/* background-color: #d63638; */
	content: "DISABLED";
	text-indent: 15px;
}
input[type="checkbox"].wppd-ui-toggle.label-enabled:checked:before {
	left: 44px;
}
input[type="checkbox"].wppd-ui-toggle.label-enabled:checked:after {
	background-color: #1ed14b;
	content: "ENABLED";
	text-indent: -14px;
}

.notice-inline {
	border-top: 1px solid #c3c4c7;
	border-bottom: 1px solid #c3c4c7;
	border-right: 1px solid #c3c4c7;
	border-left-width: 4px;
	border-left-style: solid;

	background: #fff;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	margin: 5px 15px 2px;
	padding: 1px 12px;
}

.tu-settings-section label em {
	font-size: 12px;
	font-weight: 400;
}

.tu-alert-error {
	color: #d63638;
	background: #fcf0f1;
	padding: 10px;
	border-left: 4px solid #d63638;
	margin: 10px 0;
}

.tu-alert-warning {
	color: #856404;
	background: #fff3cd;
	padding: 10px;
	border-left: 4px solid #ffc107;
	margin: 10px 0;
}

.tu-alert-success {
	color: #00a32a;
	background: #edfaef;
	padding: 10px;
	border-left: 4px solid #00a32a;
	margin: 10px 0;
}

.button-danger {
	background: #d63638 !important;
	border-color: #d63638 !important;
	color: #fff !important;
}

.button-danger:hover,
.button-danger:focus {
	background: #b32d2e !important;
	border-color: #b32d2e !important;
	color: #fff !important;
}

.button-warning {
	background: #ffc107 !important;
	border-color: #ffc107 !important;
	color: #333 !important;
	font-weight: 700;
}

.button-warning:hover,
.button-warning:focus {
	background: #e0a800 !important;
	border-color: #e0a800 !important;
	color: black !important;
}

textarea.select2-search__field {
	margin-bottom: 8px;
}

/* Full-width settings field (for script snippets) */
.form-table tr.tu-table-full-width th {
	display: none;
}

.form-table tr.tu-table-full-width td {
	display: block;
	padding: 0;
}

/* Script Snippets Accordion */
.termageddon-snippet-accordion-item {
	border-radius: 4px;
	overflow: hidden;
}

.termageddon-snippet-accordion-header {
	background: #fff;
	border-bottom: 1px solid #ddd;
	transition: background-color 0.2s ease;
}

.termageddon-snippet-accordion-header:hover {
	background: #f5f5f5;
}

.termageddon-snippet-service-name {
	font-weight: 600;
	font-size: 14px;
	color: #23282d;
}

.termageddon-snippet-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 8px;
	background-color: #ccc;
	color: #fff;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}

.termageddon-snippet-badge-success {
	background-color: #00a32a !important;
}

.termageddon-snippet-caret {
	color: #646970;
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.termageddon-snippet-accordion-content {
	background: #f9f9f9;
	transition: all 0.3s ease;
}

.termageddon-snippet-accordion-content.collapsed {
	display: none !important;
}

.termageddon-snippet-accordion-content:not(.collapsed) {
	display: block !important;
}
