/* WPCreatix Bridge client: Opt out / Opt in dialog on the Plugins screen, in the plain WP admin look. */

.wcxbc-sh {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.35);
}

.wcxbc-sh[hidden],
.wcxbc-sh [hidden],
.wcxbc-sh .wcxbc-sh-gone {
	display: none !important;
}

.wcxbc-sh-box {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 460px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 24px 24px 20px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05), 0 16px 40px rgba(0, 0, 0, 0.18);
	color: #1e1e1e;
	font-size: 13px;
	line-height: 1.55;
	animation: wcxbc-sh-in 140ms ease-out;
}

.wcxbc-sh-box:focus {
	outline: none;
}

.wcxbc-sh p {
	margin: 0 0 12px;
	font-size: 13px;
}

.wcxbc-sh .wcxbc-sh-title {
	margin: 0 36px 10px 0;
	padding: 0;
	color: #1e1e1e;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.wcxbc-sh-x {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: none;
	color: #50575e;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.wcxbc-sh-x:hover {
	background: #f0f0f1;
	color: #1e1e1e;
}

.wcxbc-sh-x:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 0;
}

.wcxbc-sh-details {
	margin: 0 0 12px;
}

.wcxbc-sh-details summary {
	width: fit-content;
	color: #2271b1;
	cursor: pointer;
}

.wcxbc-sh-details summary:hover {
	color: #135e96;
}

.wcxbc-sh-details ul {
	margin: 8px 0 0;
	padding-left: 18px;
	color: #50575e;
	font-size: 12px;
	list-style: disc;
}

.wcxbc-sh-details li {
	margin: 0 0 3px;
}

.wcxbc-sh-links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
}

.wcxbc-sh .wcxbc-sh-links,
.wcxbc-sh .wcxbc-sh-links .button-link,
.wcxbc-sh .wcxbc-sh-links a {
	font-size: 12px;
}

.wcxbc-sh-sent {
	margin: 0 0 12px;
	color: #50575e;
}

.wcxbc-sh-sent p,
.wcxbc-sh .wcxbc-sh-sub {
	margin: 0 0 6px;
	font-size: 12px;
}

.wcxbc-sh .wcxbc-json {
	max-height: 220px;
	overflow: auto;
	margin: 0 0 8px;
	padding: 10px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	color: #1e1e1e;
	font-size: 11px;
	line-height: 1.45;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.wcxbc-sh .wcxbc-json:empty {
	min-height: 32px;
}

.wcxbc-sh .wcxbc-sh-msg {
	margin: 12px 0 0;
	padding: 8px 12px;
	background: #f6f7f7;
	border-left: 4px solid #72aee6;
}

.wcxbc-sh .wcxbc-sh-msg:empty {
	display: none;
}

.wcxbc-sh-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 20px;
}

.wcxbc-sh-btns {
	display: flex;
	gap: 8px;
}

[data-wcxbc-sharing-step="delete"] .wcxbc-sh-btns {
	margin-top: 20px;
}

.wcxbc-sh-btns .button {
	min-width: 96px;
	justify-content: center;
	text-align: center;
}

.wcxbc-sh .wcxbc-sh-quiet {
	color: #646970;
	font-size: 12px;
	text-decoration: underline;
}

.wcxbc-sh .wcxbc-sh-quiet:hover {
	color: #1e1e1e;
}

.wcxbc-sh .wcxbc-sh-note {
	margin: 0;
	color: #646970;
	font-size: 12px;
}

.wcxbc-sh .button.wcxbc-sh-del {
	border-color: #b32d2e;
	color: #b32d2e;
}

.wcxbc-sh .button.wcxbc-sh-del:hover {
	background: #fcf0f1;
	border-color: #8a2424;
	color: #8a2424;
}

@keyframes wcxbc-sh-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 600px) {
	.wcxbc-sh-box {
		padding: 20px 16px 16px;
	}

	.wcxbc-sh-foot {
		flex-direction: column;
		align-items: stretch;
	}

	.wcxbc-sh-btns .button {
		flex: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wcxbc-sh-box {
		animation: none;
	}
}
