/* Globals */
.notionwpsync-required {
	color: #d63638;
}

.notionwpsync-field p {
	width: 25em;
}

/* Header */
.notionwpsync-admin-header {
	background-color: white;
	margin-left: -20px;
	padding: 30px 20px;
	background: #EFF9F7;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.notionwpsync-admin-header h2 {
	margin: 0;
}

.notionwpsync-admin-header-logo {
	width: 34px;
	height: auto;
	margin-right: 12px;
}

.notionwpsync-admin-header-wpco {
	display: block;
}

.notionwpsync-admin-header-wpco img {
	width: auto;
	height: 30px;
}

.notionwpsync-admin-header-link {
	display: flex;
	align-items: center;
	color: black;
	text-decoration: none;
	transition: opacity 0.25s;
}

.notionwpsync-admin-header-link:hover {
	color: black;
	opacity: 0.7;
}

.notionwpsync-admin-header-pro-tag {
	background-color: white;
	border-radius: 2px;
	padding: 1px 5px;
	text-transform: uppercase;
	margin-left: 8px;
	font-size: 12px;
	color: #10354f;
}

.notionwpsync-admin-header-promo {
	background-color: white;
	color: #356962;
	border: solid 1px #61BEB2;
	text-decoration: none;
	border-radius: 4px;
	padding: 14px 28px;
	margin: 0 12px;
	font-size: 14px;
	transition: box-shadow 250ms ease-in-out, transform 250ms ease-in-out, color 250ms ease-in-out;
}

.notionwpsync-admin-header-promo:hover {
	color: #356962;
	box-shadow: #61BEB2 1px 4px, #61BEB2 0px 0px 0px 2px;
	transform: translateY(-2px);
}

.notionwpsync-admin-header-promo strong { text-decoration: underline; }

.notionwpsync-admin-header-promo-icon {
	width: 12px;
	height: 12px;
	display: inline-block;
	margin-left: 8px;
}

.notionwpsync-admin-header-promo-icon path { fill: #61BEB2; }

.notionwpsync-admin-header-promo:hover,
.notionwpsync-admin-header-promo:focus {
	background-color: white;
}


/* Settings */
.wp-core-ui .button.notionwpsync-button-success {
	color: #46b450;
	border-color: #46b450;
}

.wp-core-ui .button.notionwpsync-button-delete {
	/*  color: #d63638; */
	/*  border-color: #d63638; */
}

p.description.notionwpsync-valid {
	color: #46b450;
}

/* List page */

.post-type-nwpsync-connection .subsubsub {
	margin-bottom: 16px;
}

.post-type-nwpsync-connection .tablenav.bottom {
	margin-top: 16px;
}

.post-type-nwpsync-connection .wp-list-table thead tr th,
.post-type-nwpsync-connection .wp-list-table thead tr td,
.post-type-nwpsync-connection .wp-list-table tfoot tr th,
.post-type-nwpsync-connection .wp-list-table tfoot tr td {
	color: #393939d1;
	background-color: rgb(26 53 80 / 4%);
	border-top: none;
	border-bottom: none;
	font-weight: 500;
}

.post-type-nwpsync-connection .wp-list-table th {
	padding: 12px 10px;
	border-bottom: 1px solid #c3c4c766;
}

.post-type-nwpsync-connection .wp-list-table td {
	padding: 24px 10px;
	border-bottom: 1px solid #c3c4c766;
}


.post-type-nwpsync-connection .wp-list-table > tbody > :nth-child(odd) {
	background-color: white;
}

.post-type-nwpsync-connection .wp-list-table > tbody .check-column {
	padding-top: 24px;
}

.post-type-nwpsync-connection .wp-list-table .row-actions .inline {
	display: none;
}

.post-type-nwpsync-connection .wp-list-table .column-post-type .dashicons {
	color: #a9a9bc;
}


/* Edit page */
.post-type-nwpsync-connection .tablenav.top,
.post-type-nwpsync-connection #misc-publishing-actions #visibility,
.post-type-nwpsync-connection #misc-publishing-actions .edit-timestamp,
.post-type-nwpsync-connection .postbox .handle-order-higher,
.post-type-nwpsync-connection .postbox .handle-order-lower,
.post-type-nwpsync-connection #show-settings-link {
	display: none;
}

#notionwpsync-alpine-container .form-table th {
	width: 220px;
}

#notionwpsync-alpine-container [x-cloak] {
	display: none !important;
}


#notionwpsync-alpine-container .postbox .ui-sortable-handle {
	pointer-events: none;
	cursor: default;
}

#notionwpsync-alpine-container .postbox .ui-sortable-handle > span {
	pointer-events: auto;
	cursor: pointer;
}

#notionwpsync-global-settings .notionwpsync-field {
	position: relative;
	display: inline-block;
}


#notionwpsync-global-settings .notionwpsync-field.dashicons-before::before {
	position: absolute;
	right: -30px;
	top: 5px;
}

#notionwpsync-global-settings .notionwpsync-field.dashicons-yes-alt {
	color: #46b450;
}

#notionwpsync-global-settings .notionwpsync-field.dashicons-dismiss,
#notionwpsync-global-settings .notionwpsync-field.dashicons-dismiss a {
	color: #d63638;
}

.notionwpsync-connection-warning {
	display: flex;
	flex-wrap: wrap;
	gap: 0 16px;
}
.notionwpsync-connection-warning p {
	flex: 1 1 100%;
}
.notionwpsync-connection-warning button {
	margin-bottom: 12px!important;
}

#notionwpsync-global-settings .notionwpsync-object-choices {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	align-items: center;
	gap: 24px;
}

.notionwpsync-object-choice label {
	display: block;
}

.notionwpsync-object-choice-or {
	text-transform: uppercase;
	font-weight: bold;
	padding-top: 21px;
}

.notionwpsync-filter-group {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 8px;
}
.notionwpsync-filter-group .notionwpsync-filter-group {
	border: 1px solid #c3c4c7;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
	background: rgb(26 53 80 / 4%);
	padding: 12px;
	flex-basis: calc(100% - 96px - 32px);
}
.notionwpsync-filter-group-filters {
	display: flex;
	flex-direction: column;
	gap: 12px 8px;
	flex-basis: 100%;
}
.notionwpsync-filter-group-operator {
	width: 62px;
	line-height: 30px;
	text-align: right;
}
.notionwpsync-filter-group-operator select {
	vertical-align: top;
}
.notionwpsync-filter-group-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 8px;
}
.notionwpsync-filter-property {
	max-width: 120px!important;
}
.notionwpsync-filter-comparison {
	max-width: 150px!important;
}
.notionwpsync-filter-value,
.notionwpsync-filter-value-push {
	flex: 1 1 auto;
}
.notionwpsync-filter-group .btn-remove {
	background: transparent;
	border: 1px solid #d9d9d9;
	border-radius: 5rem;
	width: 24px;
	height: 24px;
	cursor: pointer;
}

.notionwpsync-filter-group .btn-remove:hover {
	color: white;
	border-color: transparent;
	background-color: #d63638;
}

.notionwpsync-filter-group .btn-remove-close-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: -2px;
}
.notionwpsync-filters .notice {
	margin-top: 12px;
}
.notionwpsync-page-scope fieldset {
	padding: 0;
	margin: 0;
	border: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

#notionwpsync-mapping .postbox-header h2 {
	justify-content: flex-start;
}

#notionwpsync-mapping .inside {
	margin-top: 0;
	padding: 0;
}

#notionwpsync-mapping .form-table {
	margin-top: 0;
}

#notionwpsync-mapping .form-table thead th {
	background: rgb(26 53 80 / 4%);
	padding: 12px;
}

#notionwpsync-mapping .form-table tbody th,
#notionwpsync-mapping .form-table tbody td {
	border-top: 1px solid #eeeeee;
	vertical-align: top;
}

#notionwpsync-mapping .form-table thead th.col-actions,
#notionwpsync-mapping .form-table tbody td.col-actions {
	width: 24px;
	text-align: center;
}

#notionwpsync-mapping .form-table tbody tr.sortable-chosen {
	background-color: white;
}

#notionwpsync-mapping .form-table tbody tr.sortable-chosen.sortable-ghost {
	background-color: rgb(26 53 80 / 4%);
}

#notionwpsync-mapping .form-table tbody tr.sortable-chosen.sortable-ghost * {
	opacity: 0;
}

#notionwpsync-mapping .form-table tfoot td {
	text-align: right;
	background: rgb(26 53 80 / 4%);
	border-top: 1px solid #eeeeee;
}

.notionwpsync-notion-content-shortcodes {
	line-height: 1.5;
	/*padding: 15px 10px;*/
}
.notionwpsync-notion-content-shortcodes th,
.notionwpsync-notion-content-shortcodes td {
	padding: 15px 10px;
}
.notionwpsync-notion-content-shortcodes h3 {
	font-size: 1.2em;
	margin: 0;
}
.notionwpsync-notion-content-shortcodes table {
	margin-top: 15px;
}
.notionwpsync-notion-content-shortcodes .code {
	font-weight: 400;
	width: calc(100% - 40px);
}

.notionwpsync-notion-content-shortcode {
	font-weight: bold;
}
.notionwpsync-notion-content-shortcode-copy-button {
	position: relative!important;
	padding: 4px!important;
	display: inline-flex!important;
	align-items: center;
	margin-left: 4px!important;
}
.notionwpsync-notion-content-shortcode-copy-button .dashicons-before {
	height: 20px;
}
.notionwpsync-notion-content-shortcode-copy-button .copied {
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0;
	background: #3c434a;
	border-radius: 4px;
	color: #fff;
	font-size: 12px;
	max-width: 13.125rem;
	mix-blend-mode: normal;
	padding: 0.625rem 1rem;
	text-align: center;
	z-index: 9999;
	transform: translateX(calc(-50% + 16px));
}

.notionwpsync-notion-content-shortcode-copy-button.is-copied .copied {
	animation: notionwpsync-shifted-up 1.5s ease-in-out;
}
@keyframes notionwpsync-shifted-up {
	30% {
		opacity: 1;
		top: -40px;
	}
	70% {
		opacity: 1;
		top: -40px;
	}
	100% {
		opacity: 0;
		top: -60px;
	}
}

#notionwpsync-mapping .no-mapping {
	text-align: center;
	padding: 24px 12px;
}

#notionwpsync-mapping .regular-text {
	max-width: 25em;
	width: 100%;
}

#notionwpsync-mapping .notionwpsync-field:first-child label {
	display: none;
	font-weight: 600;
}

#notionwpsync-mapping .btn-remove {
	background: transparent;
	border: 1px solid #d9d9d9;
	border-radius: 5rem;
	width: 24px;
	height: 24px;
	cursor: pointer;
}

#notionwpsync-mapping .btn-remove:hover {
	color: white;
	border-color: transparent;
	background-color: #d63638;
}

#notionwpsync-mapping .btn-remove-close-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: -2px;
}

#notionwpsync-cancel-button {
	display: none;
	background-color: transparent;
	border: none;
	padding: 0;
	color: #b32d2e;
	text-decoration: underline;
	margin-top: 0.25rem;
	cursor: pointer;
}


#notionwpsync-mapping .btn-sort {
	background: transparent;
	border: none;
	width: 24px;
	height: 24px;
	cursor: move;
	cursor: -webkit-grabbing;
	margin-right: 24px;
	opacity: 0;
	transition: opacity 200ms;
}

#notionwpsync-mapping .form-table tbody tr:hover .btn-sort {
	opacity: 0.3;
}

.notionwpsync-field-group.notionwpsync-field-group-inline {
	display: flex;
}

.notionwpsync-field-group.notionwpsync-field-group-inline > div:not(:first-of-type) {
	margin-left: 10px;
}

.notionwpsync-field-subgroup {
	margin-top: 10px;
}

.notionwpsync-field {
	display: flex;
	flex-direction: column;
	margin-bottom: 10px;
}

.notionwpsync-field label {
	margin-bottom: 4px;
}

.notionwpsync-tooltip {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 1rem;
	height: 1rem;
	margin-top: -2px;
	background: rgb(26 53 80 / 4%);
	border: none;
	border-radius: 50%;
	box-sizing: border-box;
	color: #242748;
	font-size: 0.5rem;
	margin-left: 8px;
	position: relative;
	text-decoration: none;
	vertical-align: middle;
}

.notionwpsync-validation-message {
	font-size: 12px !important;
	color: #d63638;
}

.post-type-nwpsync-connection .ui-tooltip.ui-widget-content {
	background: #3c434a;
	border-radius: 4px;
	color: #fff;
	font-size: 12px;
	max-width: 13.125rem;
	mix-blend-mode: normal;
	padding: 0.625rem 1rem;
	position: absolute;
	text-align: center;
	z-index: 9999;
}

.post-type-nwpsync-connection .ui-tooltip.ui-widget-content a {
	color: #fff;
}

.post-type-nwpsync-connection .ui-tooltip.ui-widget-content h6 {
	display: block;
	font: inherit;
	font-weight: 600;
	margin: 0;
}

.post-type-nwpsync-connection .ui-tooltip.ui-widget-content.arrow-bottom::after {
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid #3c434a;
	bottom: -6px;
	content: "";
	margin-left: -3px;
	position: absolute;
}

.post-type-nwpsync-connection .ui-tooltip.ui-widget-content.arrow-left::after {
	border-bottom: 6px solid transparent;
	border-right: 6px solid #3c434a;
	border-top: 6px solid transparent;
	content: "";
	left: -6px;
	margin-top: -6px;
	position: absolute;
	top: 50%;
}

#notionwpsync-import {
	display: flex;
	align-items: center;
	margin-top: 20px;
}

#notionwpsync-import-button {
	display: flex;
	align-items: center;
}

#notionwpsync-import-feedback {
	margin-left: 10px;
}

#notionwpsync-sync-settings .notionwpsync-radiogroup > label {
	display: block;
	margin-bottom: 1em !important
}

#notionwpsync-sync-settings .notionwpsync-radiogroup > .notionwpsync-field,
#notionwpsync-sync-settings .notionwpsync-radiogroup > .notionwpsync-field-group {
	margin: 12px 0 12px 24px;
}

@keyframes notionwpsync-import-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

#notionwpsync-import-button.loading .dashicons {
	animation-name: notionwpsync-import-spin;
	animation-duration: 700ms;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
}

#notionwpsync-import-button .label {
	margin-left: 5px;
}

#notionwpsync-import-stats .dashicons-yes-alt {
	color: #46b450;
}

#notionwpsync-import-stats .dashicons-dismiss,
#notionwpsync-import-stats .notionwpsync-last-error,
.notionwpsync-notion-content-shortcodes__error {
	color: #d63638;
}

@media screen and (max-width: 600px) {
	.notionwpsync-admin-header {
		padding-top: 76px;
		margin-bottom: -46px;
	}
}

@media screen and (max-width: 782px) {
	.notionwpsync-admin-header {
		flex-wrap: wrap;
	}

	.notionwpsync-admin-header-promo {
		order: 10;
		margin: 24px 0 0;
	}

	.notionwpsync-field p {
		width: 100%;
	}

	#notionwpsync-global-settings .notionwpsync-field {
		width: 100%;
	}

	#notionwpsync-global-settings .notionwpsync-field.dashicons-before::before {
		top: 10px;
	}

	#notionwpsync-mapping .notionwpsync-field:first-child label {
		display: block;
	}

	#notionwpsync-mapping .form-table thead {
		display: none;
	}

	#notionwpsync-mapping .form-table td {
		padding: 12px;
	}

	#notionwpsync-mapping .form-table tbody td {
		border-top: none;
	}

	#notionwpsync-mapping .form-table tbody tr {
		border-top: 1px solid #eeeeee;
	}

	#notionwpsync-mapping .regular-text {
		max-width: 100%;
	}

	#notionwpsync-mapping .btn-remove {
		width: auto;
		height: auto;
		border: none;
		color: #b32d2e;
		text-decoration: underline;
		padding: 0;
	}

	#notionwpsync-mapping .btn-remove:hover {
		color: #b32d2e;
		border-color: transparent;
		background-color: transparent;
	}

	#notionwpsync-mapping .btn-remove .btn-remove-close-icon {
		display: none;
	}

	#notionwpsync-mapping .btn-remove .screen-reader-text {
		clip: initial;
		height: auto;
		width: auto;
		margin: 0;
		clip-path: none;
		position: relative;
	}

	#notionwpsync-mapping .btn-sort {
		display: none;
	}

	#notionwpsync-sync-settings .notionwpsync-radiogroup > .notionwpsync-field {
		margin: 12px 0 12px 32px;
	}
}


/* wordpress.org plugin */
.notionwpsync-disabled {
	opacity: 0.7!important;
	pointer-events: none!important;
}
