/*
 * GW Members no site: mensagem de quem não pode ver, condicionais, cadeado no
 * menu e a barra do "Ver como". Usa a fonte e as cores do tema; a cor de
 * destaque vem de --gwm-accent (o tema pode trocar).
 */
:root {
	--gwm-accent: #0664b9;
	--gwm-accent-text: #fff;
	--gwm-radius: 12px;
	--gwm-border: color-mix(in srgb, currentColor 16%, transparent);
	--gwm-soft: color-mix(in srgb, currentColor 5%, transparent);
}

.gwm-denied {
	margin: 1.5em 0;
	padding: 2em 1.5em;
	border: 1px solid var(--gwm-border);
	border-radius: var(--gwm-radius);
	background: var(--gwm-soft);
	text-align: center;
}
.gwm-denied__icon {
	width: 2.75em;
	height: 2.75em;
	margin: 0 auto .75em;
	border-radius: 50%;
	background: color-mix(in srgb, var(--gwm-accent) 14%, transparent);
	position: relative;
}
.gwm-denied__icon::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 1.25em;
	height: 1.25em;
	background: var(--gwm-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gwm-denied--overdue .gwm-denied__icon,
.gwm-denied--no_access .gwm-denied__icon { background: color-mix(in srgb, var(--gwm-accent) 14%, transparent); }
.gwm-denied__title { margin: 0 0 .35em; font-size: 1.2em; font-weight: 700; line-height: 1.3; }
.gwm-denied__text { margin: 0 auto; max-width: 34em; opacity: .85; }
.gwm-denied__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6em; margin-top: 1.25em; }

.gwm-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .7em 1.4em;
	border-radius: 8px;
	background: var(--gwm-accent);
	color: var(--gwm-accent-text) !important;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	border: 1px solid var(--gwm-accent);
}
.gwm-button:hover { filter: brightness(1.08); }
.gwm-button--ghost { background: transparent; color: inherit !important; border-color: var(--gwm-border); }

.gwm-teaser { position: relative; max-height: 12em; overflow: hidden; }
.gwm-teaser::after { content: ""; position: absolute; inset: auto 0 0; height: 5em; background: linear-gradient(transparent, var(--wp--preset--color--base, #fff)); }

.gwm-denied-main { width: min(720px, calc(100% - 32px)); margin: 3em auto; }
.gwm-standalone { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #1f2937; background: #f6f7f9; }

.gwm-editor-note {
	margin: 0 0 1.25em;
	padding: .6em .9em;
	border-left: 3px solid var(--gwm-accent);
	background: var(--gwm-soft);
	font-size: .85em;
}

.gwm-my-access { list-style: none; margin: 1em 0; padding: 0; }
.gwm-my-access li { display: flex; flex-wrap: wrap; gap: .25em .75em; align-items: baseline; padding: .6em 0; border-bottom: 1px solid var(--gwm-border); }
.gwm-my-access .gwm-situation { font-size: .85em; font-weight: 600; padding: .1em .6em; border-radius: 99px; background: var(--gwm-soft); }

/* Item de menu que leva a um conteúdo que a pessoa ainda não pode ver. */
.gwm-locked > a::after {
	content: "";
	display: inline-block;
	width: .8em;
	height: .8em;
	margin-left: .4em;
	vertical-align: -.05em;
	background: currentColor;
	opacity: .65;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.gwm-view-as-bar {
	position: fixed;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	z-index: 99999;
	padding: .6em 1.1em;
	border-radius: 99px;
	background: #1f2937;
	color: #fff;
	font: 500 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
	max-width: calc(100% - 32px);
}
.gwm-view-as-bar a { color: #7dd3fc; margin-left: .5em; }
