/* This stylesheet is used to style the admin option form of the plugin. */

/* Plugin Prefix is specified in arlo-for-wordpress.php */

/* --- Page header with platform indicator (settings and list screens) --- */
.arlo-page-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5em;
	margin-bottom: 0;
}

.arlo-page-header h1 {
	margin-bottom: 0;
}

.arlo-platform-indicator {
	display: flex;
	align-items: center;
	gap: 0.5em;
	font-size: 0.875em;
	color: #50575e;
}

/* --- Badge pills (used in header indicator and settings Status field) --- */
.arlo-badge {
	display: inline-block;
	padding: 0.15em 0.65em;
	font-size: 0.8em;
	font-weight: 600;
	line-height: 1.4;
	border-radius: 10rem;
	margin-right: 0.35em;
	vertical-align: middle;
	white-space: nowrap;
}

.arlo-badge-success {
	background-color: #00a32a;
	color: #fff;
}

.arlo-badge-error {
	background-color: #d63638;
	color: #fff;
}

.arlo-badge-warning {
	background-color: #dba617;
	color: #fff;
}

.arlo-badge-neutral {
	background-color: #787c82;
	color: #fff;
}

.arlo-badge-outline {
	background-color: #fff;
	color: #50575e;
	border: 1px solid #8c8f94;
}


.arlo-changelog-content {
	height: 40em;
	padding: 1em;
	overflow: auto;
	margin: 1em;
	border: 1px solid #cccccc;
	font-family: monospace;
}

.arlo-whatsnew-list {
	list-style: disc;
	margin-left: 2em;
}

.arlo-yellow {
	color: #ffd20d;
}

.arlo-gray {
	color: #ccc;
}

.arlo-blue {
	color: #0073aa;
}

.arlo-inlineblock {
	display: inline-block;
	margin: 0 0.5em;
}

/* The Custom CSS tab has no label column, so its field can use the full width, leaving room for the editor hint beside the editor. */
.arlo_customcss_section .arlo-label:empty {
	display: none;
}

.arlo_customcss_section .arlo-label:empty + .arlo-field {
	float: none;
	width: auto;
}

.arlo-css-editor-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 8px 24px;
}

.arlo-css-editor {
	flex: 1 1 520px;
	max-width: 1090px;
	min-width: 0;
}

.arlo-css-editor-hint {
	flex: 0 1 290px;
	min-width: 0;
	margin: 0;
}

/* The icon is hidden from assistive technology: the Custom CSS tab has screen reader text and the notice title carries its own message. */
.nav-tab .arlo-tab-attention,
.arlo-css-notice-icon {
	color: #996800; /* At least 3:1 against the inactive tab (#dcdcde), active tab (#f0f0f1) and notice (#fff) backgrounds. */
	font-size: 18px;
	width: 18px;
	height: 18px;
	vertical-align: text-bottom;
}

.nav-tab .arlo-tab-attention {
	margin-inline-start: 2px;
}

.arlo-css-notice-icon {
	margin-inline-end: 6px;
}

/* A soft, decorative exclamation mark: the message is in the text, so the icon is hidden from assistive technology. */
.arlo-css-editor-hint-icon {
	display: inline-block;
	box-sizing: border-box;
	width: 18px;
	height: 18px;
	margin-inline-end: 8px;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 700;
	line-height: 15px;
	text-align: center;
	vertical-align: text-bottom;
}

.arlo-css-action-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	margin: 16px 0;
}

.arlo-css-action-row > .button {
	flex-shrink: 0;
}

#arlo-css-analysis,
#arlo-css-migration-confirmation,
#arlo-css-discard-controls .arlo-css-action-row > p,
#arlo-css-unsaved {
	flex: 1 1 260px;
	min-width: 0;
	margin: 0;
}

#arlo-css-analysis:empty {
	flex-basis: 0;
}

/* A plain white box for status that is not transient, so it does not look like a dismissible notice. */
.arlo-css-box,
#arlo-css-analysis.arlo-css-analysis-issues {
	flex-basis: 100%;
	box-sizing: border-box;
	padding: 12px 16px;
	border: 1px solid #dcdcde;
	background: #fff;
}

.arlo-css-box {
	margin: 20px 0 16px;
}

.arlo-css-box p {
	margin: 0;
}

#arlo-css-analysis ul {
	list-style: disc;
	margin: 8px 0;
	padding-inline-start: 24px;
}

/* "Must fix" items lead with the same caution icon as the migration notice, in place of a bullet. */
#arlo-css-analysis ul.arlo-css-must-fix {
	list-style: none;
	padding-inline-start: 0;
}

#arlo-css-analysis ul.arlo-css-must-fix li {
	position: relative;
	padding-inline-start: 26px;
}

#arlo-css-analysis ul.arlo-css-must-fix .arlo-css-notice-icon {
	position: absolute;
	inset-inline-start: 0;
	top: 1px;
	margin: 0;
}

/* The arrow between a problem and what the migration will do about it, drawn by the dashicons font so it has a solid weight. #00a32a is WordPress's admin success green, 3.2:1 on white, above the 3:1 needed for a graphic; the arrow is decorative and "Fix:" is read in its place. */
#arlo-css-analysis .arlo-css-fix-arrow {
	color: #00a32a;
	font-size: 18px;
	width: 18px;
	height: 18px;
	margin: 0 2px;
	vertical-align: text-bottom;
}

#arlo-css-analysis p {
	margin: 8px 0 0;
}

/* Findings from before the latest edit; line numbers may have moved. */
#arlo-css-analysis p.arlo-css-stale {
	margin: 0 0 8px;
	font-style: italic;
	color: #50575e;
}

#arlo-css-migration-confirmation .description,
#arlo-css-discard-controls .description {
	display: block;
	margin-inline-start: 24px;
}

#arlo-css-unsaved .description {
	display: block;
}

#arlo-css-migration-summary,
#arlo-css-discard-summary {
	color: #646970;
	font-style: normal;
}

#arlo-css-revert-toggle,
#arlo-css-discard-toggle {
	padding: 0;
	vertical-align: baseline;
}

#arlo-css-migration-controls[hidden],
#arlo-css-discard-controls[hidden],
#arlo-css-migration-confirmation[hidden],
#arlo-css-unsaved[hidden] {
	display: none;
}

.button.arlo-css-migrate-button:not(:disabled) {
	background: #008a20;
	border-color: #008a20;
	color: #fff;
}

.button.arlo-css-migrate-button:not(:disabled):hover,
.button.arlo-css-migrate-button:not(:disabled):focus {
	background: #007017;
	border-color: #007017;
	color: #fff;
}

.arlo-timezone-warning {
	margin-top: 2px;
	font-size: 11px;
	line-height: 1.4;
	color: #50575e;
	cursor: help;
}

.arlo-timezone-warning .dashicons {
	width: 14px;
	height: 14px;
	font-size: 14px;
	color: #dba617;
	vertical-align: text-bottom;
}

.arlo-list-ellipsis {
	height: 2.4em;
	line-height: 1.2em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.arlo-error:not(.arlo-message) {
	border: 1px solid red;
}

.js .arlo-sections-wrap.arlo-initializing .arlo-section,
.js .arlo-sections-wrap.arlo-initializing p.submit {
	display: none;
}

.js .arlo-sections-wrap.arlo-initializing .nav-tab-wrapper.main-tab {
	visibility: hidden;
}

.arlo-init-spinner {
	display: none;
	padding: 2em 0;
	text-align: center;
}

.js .arlo-sections-wrap.arlo-initializing .arlo-init-spinner {
	display: block;
}

.arlo-init-spinner__icon {
	display: inline-block;
	width: 28px;
	height: 28px;
	border: 3px solid rgba(0, 115, 170, 0.25);
	border-top-color: #0073aa;
	border-radius: 50%;
	animation: arlo-sc-spin 0.7s linear infinite;
}

.arlo-section {
	position: relative;
	border-bottom: 1px solid #ddd;
	border-top: 1px solid #f6f6f6;
}

.arlo-section:nth-of-type(1) {
	border-top-color: transparent;
}

.arlo-section:nth-of-type(4) {
	border-bottom-color: transparent;
}

.arlo-tooltip {
	float: right;
	margin-top: 16px;
	text-decoration: none;
}

.arlo-field-wrap, #arlo-template-select {
	margin-bottom: 1em;
}

.arlo-field-wrap.search {
	background-color: transparent;
}

.arlo-field [type='text'], .arlo-field [type='url'] {
	width: 100%;
}

.arlo-field [type='text'].arlo-inline-input {
	width: auto;
	display: inline-block;
}

.arlo-field .arlo_platform {
	display: inline-block;
	color: #aaa;
	margin-right: 6px;
}

.arlo-field .arlo_platform + input {
	width: 60%;
}

.arlo-check {
	float: left;
}

.arlo-check input {
	margin: 2px 10px 2px 0;
}

.arlo-field input[type=checkbox].arlo-check.hidden {
	display: none;
}

.arlo-page-select--hidden {
	display: none;
}

/* Block wrapper that contains a .arlo-label + .arlo-field float pair as a single self-clearing row */
.arlo-row {
	display: flow-root;
	margin-bottom: 0.75em;
}

/* Host-page field: flex row so the indicator sits beside the dropdown and wraps cleanly on narrow viewports */
.arlo-sc-host-field {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25em 0.75em;
}

.arlo-sc-host-field > p {
	flex: 0 0 100%; /* no-published-pages help paragraph takes full width */
}

.arlo-sc-host-field .arlo-sc-check {
	flex: 0 0 auto; /* don't stretch — only the invalid state (text) is allowed to grow */
}

.arlo-sc-host-field .arlo-sc-check--invalid {
	flex: 1 1 auto; /* invalid message can use remaining row space and wrap below dropdown */
}

/* Shortcode validation indicator — shown adjacent to the host-page dropdown */
.arlo-sc-check {
	display: inline-block;
	vertical-align: middle;
}

.arlo-sc-check--checking {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(0, 115, 170, 0.25);
	border-top-color: #0073aa;
	border-radius: 50%;
	animation: arlo-sc-spin 0.7s linear infinite;
	vertical-align: middle;
}

.arlo-sc-check--valid::before {
	font-family: dashicons;
	font-size: 20px;
	font-style: normal;
	speak: never;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	content: '\f147'; /* dashicons-yes */
	color: #46b450;
}

/* --invalid uses JS-injected dashicons span + message text; no ::before needed */
.arlo-sc-check--invalid {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.3em;
	max-width: 100%;
}

.arlo-sc-check--invalid .dashicons {
	color: #dba617;
	font-size: 18px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	line-height: 1.2;
}

.arlo-sc-check__msg {
	font-size: 13px;
	line-height: 1.5;
	color: #3c3c3c;
}

.arlo-sc-check__msg code {
	background: transparent;
	font-size: inherit;
	padding: 0;
}

.arlo-sc-check__links {
	display: inline;
	margin-left: 1em;
}

.arlo-sc-check__link {
	margin-right: 1em;
	font-size: 13px;
}

.arlo-sc-check--unknown {
	cursor: help;
}

.arlo-sc-check--unknown::before {
	content: '\2014'; /* em dash */
	color: #aaa;
	font-size: 14px;
}

/* URL / slug row ─────────────────────────────────────────────── */

.arlo-url-slug-row--hidden {
	display: none;
}

/* Flex row: slug code + links/badge sit inline and wrap on narrow viewports */
.arlo-url-slug-field {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25em 0;
}

/* Base URL prefix — dim/muted, contextual only */
.arlo-url-base {
	color: #999;
	font-size: 13px;
	font-family: monospace;
}

/* Slug path — inherits WP admin <code> defaults (grey background, padding) for emphasis */
.arlo-url-slug {
	font-size: 13px;
}

/* Links inherit .arlo-sc-check__link spacing (margin-right + font-size already defined) */
.arlo-url-slug-links {
	display: inline;
	margin-left: 0.75em;
}

/* Private badge — reuses .arlo-badge.arlo-badge-neutral defined above */
.arlo-url-slug-private {
	margin-right: 0.5em;
}

/* (Updated) badge — reuses .arlo-badge.arlo-badge-outline defined above */
.arlo-url-slug-updated {
	margin-left: 0.75em;
}

@keyframes arlo-sc-spin {
	to { transform: rotate(360deg); }
}

.arlo-check + .arlo-label {
	width: auto;
	float: left;
}

.arlo-submit input {
	float: right;
}

.js #arlo-template-select {
	display: block;
}

.js #arlo-template-select select {
	float: right;
	width: 70%;
}

.toplevel_page_arlo-for-wordpress p.webinar {
	color: #ccc;
}

.toplevel_page_arlo-for-wordpress p.webinar span {
	color: #444;
}

.toplevel_page_arlo-for-wordpress p.webinar i {
	margin: 0px 6px;
}

.arlo-middle {
	vertical-align: middle;
}

.arlo-left {
	float: left;
}

.arlo-wrap .wp-editor-wrap {
	margin-top: 1em;
}

/* Platform row: the URL group and the demo group wrap as two units, never mid-group. */
.arlo-platform-row {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 0;
}

.arlo-platform-url-wrap {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	max-width: 100%;
}

.arlo-domain {
	flex: 0 0 auto;
	line-height: 27px;
	white-space: nowrap;
}

#arlo_platform_name {
	flex: 1 1 15em;
	width: 15em;
	min-width: 8em;
	float: none;
	margin: 0 5px;
}

#arlo_platform_name::placeholder {
	font-style: italic;
}

.arlo-demo-option {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
}

.arlo-demo-option[hidden],
.arlo-demo-only[hidden] {
	display: none;
}

.arlo-platform-or {
	padding: 0 16px;
	text-transform: uppercase;
	color: #646970;
}

.arlo-info-toggle {
	display: inline-flex;
	margin-left: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp-admin-theme-color, #2271b1);
	cursor: pointer;
}

.arlo-info-toggle:hover {
	color: var(--wp-admin-theme-color-darker-10, #135e96);
}

.arlo-info-toggle:focus-visible {
	outline: 2px solid var(--wp-admin-theme-color, #2271b1);
	outline-offset: 2px;
	border-radius: 50%;
}

/* WordPress pointer for the demo option; the arrow flips to the right when the icon is near the viewport edge. */
.arlo-info-pointer .wp-pointer-arrow,
.arlo-info-pointer .wp-pointer-arrow-inner {
	pointer-events: none; /* The arrow's box overlaps the icon; let clicks and hover reach the icon. */
}

.arlo-info-pointer .wp-pointer-content p {
	margin: 0;
	padding: 12px 14px;
}

.arlo-info-pointer.arlo-info-pointer--right .wp-pointer-arrow {
	right: 50px;
	left: auto;
}

/* regions */

#arlo-regions, 
#arlo-regions-header {
	width: 500px;
}

#arlo-regions-header,
#arlo-filters-header {
	margin-bottom: 3em;
}

#arlo-regions-header > div,
#arlo-filters-header > div {
	float: left;
	text-align: center;
	margin-left: 1em;
}

#arlo-regions li,
.arlo-filter-group li {
	clear:both;
	height: 2em;
	padding: 0.3em 0;
}

#arlo-regions li > div {
	float: left;
	margin-left: 1em;
}

.arlo-filter-group li > div {
	float: left;
	margin-right: 1em;
}

#arlo-regions li {
	cursor: move;
}

#arlo-regions .arlo-region-name,
#arlo-regions .arlo-region-controls,
.arlo-filter-group .arlo-filter-name,
.arlo-filter-group .arlo-filter-controls {
	float: right;
}

#arlo-regions .arlo-region-highlight,
.arlo-filter-group .arlo-region-highlight {
	height: 1.7em;
	border: 1px dotted #333;
}

.arlo-order-number,
.arlo-order-number {
	width: 30px;
	text-align: center;
	vertical-align: middle;
}

.arlo-region-id, .arlo-region-name {
	width: 170px;
}

.arlo-filter-old-value, .arlo-filter-new-value {
	width: 160px;
}

.arlo-region-controls,
.arlo-filter-controls {
	width: 60px;
}

.arlo-region-controls i,
.arlo-filter-controls i {
	margin-left: 0.2em;
	margin-top: 0.2em;
	display: inline-block;
	cursor: pointer;
	float: left;
}

.arlo-region-controls i.arlo-icons8-plus,
.arlo-filter-controls i.arlo-icons8-plus {
	display: none;
}

#arlo-regions li:last-of-type .arlo-region-controls i.arlo-icons8-plus,
.arlo-filter-group li:last-of-type .arlo-filter-controls i.arlo-icons8-plus {
	display: inline-block;
}

#arlo-region-empty,
#arlo-filter-empty {
	display: none;
}

.arlo-filter-new-value {
	display: none;
}

.arlo-filter-old-value select {
	width: 160px;
}

.arlo-available-filters {
	display: none;
}


/* hide the template edit select box if no javascript */
.no-js #arlo-template-select {
	display: none;
	visibility: hidden;
}

.arlo-preview {
	float: right;
}

.arlo-template-editor-wrap {
	margin-bottom: 1em;
}
/* only hide the editors if javascript is enabled */
.js .arlo_pages_section > [class^='arlo'] {
	display: none;
}


.arlo-validate.invalid {
	background-color: #FEE;
}

.arlo-validate.invalid:focus {
	border-color: #F22;
	-webkit-box-shadow: 0 0 2px rgba(255,34,34,.8);
	box-shadow: 0 0 2px rgba(255,34,34,.8);
}

.arlo-field small {
	display: none;
}

.arlo-field .invalid + small {
	display: block;
}

.arlo-log-retention-select {
	min-width: 180px;
}

.arlo-log-retention-warning {
	margin-left: 1em;
	vertical-align: middle;
}

.arlo-advanced-regions {
	margin: 1em 0;
}

.arlo-advanced-regions summary {
	cursor: pointer;
	font-weight: 600;
}

.arlo-advanced-regions fieldset {
	margin: 0.75em 0 0;
	padding: 0;
}

.arlo-advanced-regions .description {
	margin: 0.25em 0 0;
}

.arlo-legacy-region-id-handling-warning,
.arlo-legacy-region-id-handling-length-warning,
.arlo-region-id-warning {
	margin-top: 0.5em;
}

/* label font size and weight is based on WP 3.9 admin styles, though not using those styles directly as the label would need to be in a table header cell, urgh */
.arlo-label {
	font-size: 14px;
	font-weight: 600;
	line-height: 29px;
}
.arlo-label label {
	display: block;
	width: 100%;
}

.arlo_template_section label {
	visibility: hidden;
	height: 1px;
}

.arlo-codes {
	font-size: 11px;
	margin-top: 0;
}

.arlo-codes ul {
	margin-left: 15px;
}

.arlo-reload-template {
	cursor: pointer;
	display: inline-block;
	line-height: 2em;
}

.arlo-sub-template-select {
	display: inline-block;
	margin-right: 1em;
}

table.arlo-welcome td.logo {
	width: 80px;
	padding-top: 15px;
}

.arlo-template-table {
	width: 100%;
}

.arlo-template-table td {
	padding: 0.5em;
}

.arlo-template-table td:first-of-type {
	width: 190px;
	vertical-align: top;
	border-right: 1px solid #ccc;
	padding-right: 0;
}

.arlo-new_custom .arlo-template-table td {
	vertical-align: top;
}

.arlo-block {
	display: inline-block;
}

/* --- Platform status field (settings General tab) --- */
.arlo-platform-status {
	line-height: 2;
}

.arlo-status-badges {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	column-gap: 1em;
	row-gap: 0.2em;
	margin-bottom: 0.2em;
}

.arlo-status-badges .arlo-badge,
.arlo-status-badges a {
	margin-right: 0;
}

.arlo-status-last-sync {
	color: #646970;
	font-size: 0.9em;
}

/* clearing for divs containing floated elements */

.arlo-wrap .cf:before,
.arlo-wrap .cf:after {
    content: " "; 
    display: table;
}

.arlo-wrap .cf:after,
.arlo-clear {
    clear: both;
}

/* vertical tab */
.nav-tab-wrapper.vertical-nav-tab-wrapper {
	border-bottom: 0;
	padding: 10px 0;
}

.nav-tab.vertical-nav-tab {
	float: none;
	display: block;
	border: 1px solid #ccc;
	border-right: none;	
	margin-right: 1px;
	margin-bottom: 3px;
}	

.nav-tab.vertical-nav-tab.nav-tab-active {
	border-right: 1px solid #f1f1f1;
	margin-right: -1px;
	margin-bottom: 3px;
}

.nav-tab.vertical-nav-tab.arlo-for-wordpress-pages-new_custom {
	background-color: #d2d2d2;
	margin-top: .5em;
}

.nav-tab.vertical-nav-tab.arlo-for-wordpress-pages-new_custom:hover {
	background-color: white;
}

.nav-tab.vertical-nav-tab.arlo-for-wordpress-pages-new_custom.nav-tab-active {
	background-color: #f1f1f1;
}

.nav-tab.vertical-nav-tab.arlo-for-wordpress-pages-new_custom::before,
.arlo-filter-section-toggle h2:before {
    content: '+';
    display: inline-block;
    margin-right: 5px;
}

.arlo-filter-section-toggle h2:before {
	width: 10px;
}

.filter-section-expanded .arlo-filter-section-toggle h2:before {
    content: '-';
}

.arlo-template-table .arlo-label + .arlo-field.arlo-template-field,
.arlo-template-table .arlo-template-field .arlo-label.arlo-full-width {
	width: 100%;
}

.arlo-template-table .arlo-template-field .arlo-label.arlo-full-width label {
	font-weight: normal;
}

.arlo-template-table .arlo-template-field .wp-editor-wrap {
	float: left;
	width: calc(100% - 22em - 3em);
	margin-right: 3em;
}

.arlo-template-table .arlo-template-field .wp-editor-wrap .wp-editor-wrap {
	width: 100%;
}

/* Matches the WordPress editor's text area so a read-only template looks like the editor; the tint marks it read only. */
.arlo-template-table .arlo-template-field .arlo-template-readonly {
	box-sizing: border-box;
	width: 100%;
	padding: 10px;
	border: 1px solid #dcdcde;
	background: #f6f7f7;
	box-shadow: none;
	color: #1e1e1e;
	font: 13px/1.5 Consolas, Monaco, monospace;
}

.arlo-template-table .arlo-template-field .arlo-shortcodes {
	float: left;
	box-sizing: border-box;
	width: 22em;
	max-height: 40em;
	overflow-y: auto;
	border: 1px solid #cccccc;
	padding: 1em;
}

.arlo-template-table .arlo-template-field .arlo-shortcodes h3 {
	margin-top: 0;
}

.arlo-template-table .arlo-template-field .arlo-shortcodes h4 {
	margin-bottom: 0.5em;
}

.arlo-template-table .arlo-template-field .arlo-shortcodes .arlo-codes {
	margin-top: 2em;
}

.arlo-wrap.arlo-list .arlo_log #id{
	width: 70px;
}

.arlo-wrap.arlo-list .arlo_log #created{
	width: 150px;
}

.arlo-wrap.arlo-list .arlo_log #import_id{
	width: 150px;
}

.arlo-wrap.arlo-list .arlo_log #diagnostic_level,
.arlo-wrap.arlo-list .arlo_log .column-diagnostic_level{
	width: 120px;
	white-space: nowrap;
}

.arlo-wrap.arlo-list .arlo_log .column-id{
	text-align: right;
}

.arlo-system-requirements-table .arlo-required-setting-icon {
	width: 24px;
	height: 24px;
}

.arlo-system-requirements-table .arlo-required-setting {
	width: 300px;
	text-align: left;
}

.arlo-system-requirements-table .arlo-required-setting-value {
	text-align: center;
	width: 80px;
}

.arlo-timezone-checks-table th:not(:first-child),
.arlo-timezone-checks-table td:not(:first-child) {
	padding-right: 16px;
	text-align: left;
	white-space: nowrap;
}

.arlo-timezone-advisory {
	background-color: white;
	border: 1px solid #c3c4c7;
	margin-top: 16px;
	padding: 1px 12px;
}

.arlo-wrap .green {
	color: green;
}

.arlo-wrap .red {
	color: darkred;
}

.arlo-delete-button {
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    margin-left: 1em;	
}

.arlo-field a:focus {
	box-shadow: none;
}

/* The Theme tab has no label column either: the theme grid sits beside a help panel in the space the label would take. */
.arlo_theme_section .arlo-label:empty {
	display: none;
}

.arlo_theme_section .arlo-label:empty + .arlo-field {
	float: none;
	width: auto;
}

/* The help panel sits beside the theme cards in the same row, so its top always lines up with the first row of cards; the cards take the remaining width and collapse from four to three to two columns. */
.arlo-themes-layout {
	container-type: inline-size;
}

.arlo-themes-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 290px;
	align-items: start;
	column-gap: 24px;
}

.arlo-themes-help {
	box-sizing: border-box;
	min-width: 0;
	padding: 4px 16px;
	border: 1px solid #dcdcde;
	background: #fff;
}

/* Stack the help panel once the container can no longer fit two 220px cards (plus their 16px gap) beside the 290px panel and 24px column gap. */
@container (max-width: 769px) {
	.arlo-themes-body {
		grid-template-columns: minmax(0, 1fr);
	}

	.arlo-themes-help {
		margin-top: 20px;
	}
}

.arlo-themes {
	--arlo-theme-gap: 16px;
	--arlo-theme-min: 220px;
	display: grid;
	/* The max() floor stops the columns shrinking below four-per-row sizing, so the grid never exceeds four columns. */
	grid-template-columns: repeat(auto-fill, minmax(max(var(--arlo-theme-min), calc((100% - 3 * var(--arlo-theme-gap)) / 4)), 1fr));
	gap: 20px var(--arlo-theme-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.arlo-themes .arlo-theme {
	display: flow-root;
	min-width: 0;
	margin: 0;
}

.arlo-themes .arlo-theme .arlo-theme-desc {
	border: 1px solid #ccc;
	aspect-ratio: 250 / 183;
	box-sizing: border-box;
	position: relative;
	background-color: white;
	overflow: hidden;
}

.arlo-themes .arlo-theme .arlo-theme-desc a {
	text-decoration: none;
}

.arlo-themes .arlo-theme .arlo-theme-desc .arlo-theme-desc-text {
	line-height: 1em;
	font-size: 1em;
	margin-top: 5em;
}

.arlo-themes .arlo-theme .arlo-theme-desc .arlo-theme-desc-text .arlo-theme-name {
	margin-top: 0.5em;
	text-align: center;
	font-size: 2em;
	margin-bottom: 0.5em;
	color: #0085BA;
}

.arlo-themes .arlo-theme .arlo-theme-desc .arlo-theme-desc-text .arlo-theme-icon {
	width: 48px;
	margin: 0 auto;
	margin-top: -3em;
	margin-bottom: 1em;
	color: #0085BA;
}

.arlo-themes .arlo-theme .arlo-theme-desc .arlo-theme-desc-text .arlo-theme-description {
	text-align: center;
	color: #aaa;
}

.arlo-themes .arlo-theme .arlo-theme-desc img {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 10;
}

.arlo-themes .arlo-theme .arlo-theme-desc .arlo-theme-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    background-color: white;
    font-size: 2em;
	opacity: 0;
	-webkit-transition: opacity .25s ease-in-out;
	-moz-transition: opacity .25s ease-in-out;
	transition: opacity .25s ease-in-out;
}

.arlo-themes .arlo-theme .arlo-theme-desc .arlo-theme-overlay .arlo-theme-desc-text {
	color: black;
	font-size: 0.5em;
	margin-top: 0;
}

.arlo-themes .arlo-theme .arlo-theme-desc .arlo-theme-overlay .arlo-theme-desc-text .arlo-theme-description {
	color: black;
}

.arlo-themes .arlo-theme .arlo-theme-desc .arlo-theme-desc-text .arlo-theme-for-designer {
	color:red;
	margin-top: 1em;
	text-align: center;
}

.arlo-themes .arlo-theme .arlo-theme-desc.arlo-theme-inverse .arlo-theme-overlay {
	background-color: darkgray;
}

.arlo-themes .arlo-theme .arlo-theme-desc.arlo-theme-inverse .arlo-theme-overlay .arlo-theme-desc-text .arlo-theme-description,
.arlo-themes .arlo-theme .arlo-theme-desc.arlo-theme-inverse .arlo-theme-overlay .arlo-theme-desc-text,
.arlo-themes .arlo-theme .arlo-theme-desc.arlo-theme-inverse .arlo-theme-overlay .arlo-theme-desc-text .arlo-theme-name,
.arlo-themes .arlo-theme .arlo-theme-desc.arlo-theme-inverse .arlo-theme-overlay .arlo-theme-desc-text .arlo-theme-icon  {
	color: white;
}

.arlo-themes .arlo-theme .arlo-theme-desc:hover .arlo-theme-overlay {
	opacity: 1;
}

.arlo-themes .arlo-theme .arlo-theme-desc:hover > .arlo-theme-desc-text{
	opacity: 0;
}

.arlo-themes .arlo-theme .arlo-theme-desc:hover.arlo-theme-inverse .arlo-theme-desc-text .arlo-theme-for-designer {
	color: white;
}

.arlo-themes .arlo-theme .arlo-theme-information {
	margin-top: 2px;
}

.arlo-themes .arlo-theme .arlo-theme-information .arlo-theme-name {
	font-weight: 900;
	float: left;
}

.arlo-themes .arlo-theme .arlo-themes-developer-banner {
    top: -30px;
    right: -90px;
    left: auto;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    width: 200px;
    background: darkgray;
    position: absolute;
    text-align: center;
    line-height: 1.5em;
    padding: 42px 0 7px;
    font-weight: bold;
    color: white;
    font-size: 11px;
	text-transform: uppercase;
	box-shadow: 0 0 8px rgba(0,0,0,0.3);
	z-index: 20;
	-webkit-transition: opacity .25s ease-in-out;
	-moz-transition: opacity .25s ease-in-out;
	transition: opacity .25s ease-in-out;
}

.arlo-themes .arlo-theme .arlo-theme-desc.arlo-theme-inverse:hover .arlo-themes-developer-banner {
	box-shadow: none;
}

.arlo-themes .arlo-theme .arlo-theme-buttons {
	float: left;
}

.arlo-themes .arlo-theme .arlo-theme-buttons {
	display: block;
	margin-top: 0.4em;
}

.arlo-themes .arlo-theme .arlo-theme-buttons li {
	float: left;
	text-transform: uppercase;
	color: white;
	margin-right: 0.3em;
}

.arlo-themes .arlo-theme .arlo-theme-buttons li a {
	text-decoration: none;
	color: white;
	padding: 0.3em 0.5em;
	background-color: lightgray;
	display: inline-block;
	font-size: 0.95em;
}

.arlo-themes .arlo-theme .arlo-theme-buttons li a:hover {
	background-color: darkgray;
}

.arlo-themes .arlo-theme .arlo-theme-buttons li.arlo-theme-current {
	background-color: #ffd100;
	padding: 0.3em 0.5em;
	font-size: 0.95em;
}

a .arlo-icons8 {
	text-decoration: none;
}


/* filters section */

.arlo_filters_section .arlo-filter-group {
	display: none;
}

.arlo-filter-group, 
#arlo-filters-header {
	width: 570px;
}

.arlo-filter-group li > .arlo-filter-toggle {
	float: right;
}

.arlo-filter-group li > .arlo-filter-toggle,
#arlo-filters-header > div.arlo-filter-toggle {
	width: 118px;
}

.arlo-filter-group li > .arlo-filter-toggle input {
	margin: 0 auto;
	display: block;
}

a.arlo-filter-section-toggle {
    border: 1px solid #ccc;
    display: block;
    width: 300px;
    cursor: pointer;
    padding: 1em;
    margin-bottom: .5em;
    background-color: #e5e5e5;
}

a.arlo-filter-section-toggle h2 {
    margin: 0;
}

.arlo-filter-settings {
	margin-bottom: 1em;
}

.arlo-select-page {
	margin-bottom: 1em;
}

/* media queries, these match the wordpress admin breakpoints as of WP 3.9 */

@media only screen and (min-width: 601px) {

}

@media only screen and (min-width: 783px) {
	
	.arlo-label {
		float: left;
		width: 30%;
	}

	.arlo-label + .arlo-field {
		float: left;
		width: 70%;
	}
	
	.arlo-template-table .arlo-template-field .arlo-label {
		float: left;
		width: 20%;
	}

	.arlo-template-table .arlo-template-field .arlo-label + .arlo-field {
		float: left;
		width: 80%;
	}	

	.arlo-check input {
		margin: 6px 10px 6px 0;
	}
	
}

@media screen and (max-width: 782px) {
	.arlo-domain {
		line-height: 35px;
	}	
}

@media screen and (max-width: 1100px) {
	.arlo-template-table .arlo-template-field .arlo-shortcodes {
		display: none;
	}
	.arlo-template-table .arlo-template-field .wp-editor-wrap {
		width: 100%;
		margin-right: 0;
	}
}


@media only screen and (min-width: 901px) {
	
}

/* Restore list styling inside Arlo admin notices (WP admin resets ul/li). */
.arlo-message ul {
	list-style: disc;
	margin: 0.4em 0 1.5em 1.8em;
	padding: 0;
}

.arlo-message ul li {
	margin: 0.15em 0;
}

/* Previews the public "Powered by Arlo" credit inline in the opt-in label. The inner element copies the front-end size and opacity (see public.css) so the box stays solid. */
.arlo-powered-by-opt-in-credit {
	display: inline-block;
	margin: 0 6px;
	padding: 0 4px;
	border: 1px solid #dcdcde;
	border-radius: 3px;
	background: #fff;
	line-height: 0;
	vertical-align: middle;
}

.arlo-powered-by-opt-in-credit-content {
	display: inline-flex;
	align-items: center;
	gap: 0.2em;
	font-size: 10px;
	line-height: 1;
	opacity: 0.5;
}

.arlo-powered-by-opt-in-credit img {
	display: block;
	width: 27px;
	height: 27px;
}

/* Marks a site whose "Powered by Arlo" credit was showing before the upgrade. Uses the .notice-info blue (#3858e9), which has 5:1 text contrast on white. */
.arlo-powered-by-opt-in-pill {
	display: inline-block;
	margin-left: 6px;
	padding: 0 8px;
	border: 1px solid #3858e9;
	border-radius: 999px;
	background: #fff;
	color: #3858e9;
	font-size: 11px;
	font-weight: 600;
	line-height: 20px;
	vertical-align: middle;
}

/* Keeps the Misc opt-in text in its own column so a wrapped line hangs under the text, not under the checkbox. */
.arlo-powered-by-setting {
	max-width: 40em;
}

.arlo-powered-by-setting label {
	display: flex;
	align-items: flex-start;
	gap: 0.5em;
}

.arlo-powered-by-setting input[type="checkbox"] {
	flex: 0 0 auto;
	margin: 0.15em 0 0;
}

.arlo-powered-by-setting .description {
	margin-left: calc(1rem + 0.5em);
}

.arlo-powered-by-setting em {
	white-space: nowrap;
}
