/* Privacidad, normas, autorizaciones y preferencias de cookies. */

#authModal {
	max-height: calc(100% - 2rem);
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.ace-legal-consents {
	margin: .25rem 0;
	padding: .85rem;
	border: 1px solid #ddd3c7;
	border-radius: .9rem;
	background: #faf7f2;
	color: #29241f;
}

.ace-legal-consents legend {
	padding: 0 .3rem;
	font-size: .78rem;
	font-weight: 800;
}

.ace-legal-consents > label {
	display: flex;
	align-items: flex-start;
	gap: .55rem;
	margin: .68rem 0;
	font-size: .72rem;
	line-height: 1.45;
}

.ace-legal-consents input[type="checkbox"] {
	width: 1rem;
	height: 1rem;
	margin: .08rem 0 0;
	accent-color: #7b3f24;
	flex: 0 0 auto;
}

.ace-legal-consents a,
.ace-legal-document a,
.ace-modal-card a,
.ace-cookie-banner a {
	color: #7b3f24;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ace-legal-brief,
.ace-legal-unavailable {
	margin: .4rem 0;
	font-size: .68rem;
	line-height: 1.4;
	color: #655d54;
}

.ace-legal-unavailable {
	padding: .55rem .65rem;
	border-radius: .65rem;
	background: #fff0d6;
	color: #6b3b00;
	font-weight: 700;
}

.ace-legal-consents.is-unavailable > label {
	opacity: .62;
}

.ace-legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem .7rem;
	margin: 1rem;
	padding: .8rem 0 0;
	border-top: 1px solid #e5ded4;
	font-size: .7rem;
	line-height: 1.35;
}

.ace-legal-links a,
.ace-legal-links button {
	padding: 0;
	border: 0;
	background: transparent;
	color: #6f6257;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.ace-legal-links a:hover,
.ace-legal-links button:hover,
.ace-legal-links a:focus-visible,
.ace-legal-links button:focus-visible {
	color: #7b3f24;
	text-decoration: underline;
}

.ace-legal-document {
	box-sizing: border-box;
	width: min(100% - 2rem, 850px);
	margin: 1.5rem auto 3rem;
	padding: clamp(1.1rem, 4vw, 2.75rem);
	border: 1px solid #e2d9cf;
	border-radius: 1.25rem;
	background: #fff;
	box-shadow: 0 16px 50px rgba(57, 40, 25, .08);
	color: #29241f;
	font-size: 1rem;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.ace-legal-document h1 {
	margin: 0 0 .4rem;
	font-size: clamp(1.7rem, 5vw, 2.5rem);
	line-height: 1.15;
}

.ace-legal-document h2 {
	margin: 2rem 0 .6rem;
	font-size: 1.3rem;
	line-height: 1.25;
}

.ace-legal-document h3 {
	margin: 1.4rem 0 .4rem;
	font-size: 1.05rem;
}

.ace-legal-document p,
.ace-legal-document ul,
.ace-legal-document ol {
	margin: .65rem 0;
}

.ace-legal-document li + li {
	margin-top: .28rem;
}

.ace-legal-document .ace-legal-meta,
.ace-legal-document .ace-legal-summary {
	color: #655d54;
}

.ace-legal-document .ace-legal-callout {
	margin: 1rem 0;
	padding: .9rem 1rem;
	border-left: 4px solid #7b3f24;
	border-radius: .6rem;
	background: #faf7f2;
}

.ace-legal-document .ace-legal-nav {
	display: flex;
	flex-wrap: wrap;
	gap: .55rem 1rem;
	margin: 0 0 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #e5ded4;
	font-size: .82rem;
}

.ace-legal-document .ace-table-wrap {
	max-width: 100%;
	overflow-x: auto;
}

.ace-legal-document table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: .9rem;
}

.ace-legal-document th,
.ace-legal-document td {
	padding: .65rem;
	border: 1px solid #ded6cc;
	text-align: left;
	vertical-align: top;
}

.ace-legal-document th {
	background: #f6f1eb;
}

.ace-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 1rem;
	background: rgba(20, 17, 14, .72);
	backdrop-filter: blur(3px);
}

.ace-modal-card {
	box-sizing: border-box;
	width: min(100%, 620px);
	max-height: min(88vh, 760px);
	padding: clamp(1rem, 4vw, 1.8rem);
	border-radius: 1.1rem;
	background: #fff;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
	color: #29241f;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.ace-modal-card h2,
.ace-cookie-banner h2 {
	margin: 0 0 .55rem;
	font-size: 1.3rem;
	line-height: 1.25;
}

.ace-modal-card p {
	margin: .55rem 0;
	font-size: .88rem;
	line-height: 1.5;
}

.ace-legal-review-links {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem 1rem;
	margin: .8rem 0;
	font-size: .8rem;
}

.ace-reconsent-fields {
	margin-top: .85rem;
}

.ace-modal-status {
	min-height: 1.25rem;
	color: #9b2c2c;
	font-weight: 700;
}

.ace-modal-actions,
.ace-cookie-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .55rem;
	margin-top: 1rem;
}

.ace-modal-actions button,
.ace-cookie-actions button,
.ace-external-placeholder button {
	min-height: 2.65rem;
	padding: .62rem .9rem;
	border: 1px solid #b9aa9b;
	border-radius: .75rem;
	background: #fff;
	color: #3b332c;
	font: inherit;
	font-size: .82rem;
	font-weight: 800;
	cursor: pointer;
}

.ace-modal-actions .ace-primary-button,
.ace-cookie-actions .ace-cookie-accept {
	border-color: #7b3f24;
	background: #7b3f24;
	color: #fff;
}

.ace-modal-actions button:disabled,
.ace-cookie-actions button:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.ace-cookie-banner {
	position: fixed;
	left: 1rem;
	right: 1rem;
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 2147482000;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1rem 1.5rem;
	align-items: center;
	box-sizing: border-box;
	max-width: 980px;
	margin: auto;
	padding: 1rem 1.15rem;
	border: 1px solid #dfd4c8;
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 18px 65px rgba(25, 19, 14, .3);
	color: #29241f;
}

.ace-cookie-banner p {
	margin: 0;
	font-size: .82rem;
	line-height: 1.45;
}

.ace-cookie-banner h2 {
	font-size: 1rem;
}

.ace-cookie-actions {
	justify-content: flex-end;
	margin: 0;
}

.ace-cookie-choice {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .85rem 0;
	border-bottom: 1px solid #e8e0d8;
}

.ace-cookie-choice span,
.ace-cookie-choice small {
	display: block;
}

.ace-cookie-choice small {
	margin-top: .2rem;
	color: #6e655c;
	font-size: .75rem;
	line-height: 1.35;
}

.ace-cookie-choice input {
	width: 1.2rem;
	height: 1.2rem;
	accent-color: #7b3f24;
	flex: 0 0 auto;
}

.ace-external-placeholder {
	display: grid;
	place-items: center;
	box-sizing: border-box;
	min-height: 180px;
	padding: 1.2rem;
	border: 1px dashed #b9aa9b;
	border-radius: .8rem;
	background: #f7f2ec;
	color: #554b42;
	text-align: center;
}

.ace-external-placeholder p {
	max-width: 460px;
	margin: 0 0 .8rem;
}

.ace-sensitive-choice {
	box-sizing: border-box;
	margin: .65rem 0 .2rem;
	padding: .7rem .8rem;
	border: 1px solid #ddd3c7;
	border-radius: .8rem;
	background: #faf7f2;
	color: #342d27;
}

.ace-sensitive-choice legend {
	padding: 0 .25rem;
	font-size: .72rem;
	font-weight: 800;
}

.ace-sensitive-choice p {
	margin: 0 0 .5rem;
	color: #655d54;
	font-size: .68rem;
	line-height: 1.45;
}

.ace-sensitive-choice label {
	display: flex;
	align-items: flex-start;
	gap: .45rem;
	margin: .45rem 0;
	font-size: .7rem;
	line-height: 1.4;
}

.ace-sensitive-choice input {
	margin-top: .12rem;
	accent-color: #7b3f24;
	flex: 0 0 auto;
}

.ace-legal-warning {
	margin: 1rem 0;
	padding: .85rem 1rem;
	border: 1px solid #e6bd79;
	border-radius: .7rem;
	background: #fff4df;
	color: #6b3b00;
}

.ace-legal-button {
	min-height: 2.5rem;
	padding: .55rem .85rem;
	border: 1px solid #7b3f24;
	border-radius: .7rem;
	background: #7b3f24;
	color: #fff;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

@media (max-width: 700px) {
	.ace-cookie-banner {
		grid-template-columns: 1fr;
	}

	.ace-cookie-actions {
		justify-content: stretch;
	}

	.ace-cookie-actions button {
		flex: 1 1 9rem;
	}
}

@media (max-width: 380px) {
	#authModal {
		inset-inline: .5rem;
		max-height: calc(100% - 1rem);
	}

	.ace-legal-consents {
		padding: .65rem;
	}

	.ace-modal-overlay {
		padding: .5rem;
	}

	.ace-modal-card {
		max-height: 94vh;
		padding: .9rem;
	}

	.ace-cookie-banner {
		left: .5rem;
		right: .5rem;
		bottom: max(.5rem, env(safe-area-inset-bottom));
		padding: .85rem;
	}

	.ace-modal-actions button,
	.ace-modal-actions a {
		width: 100%;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ace-modal-overlay,
	.ace-cookie-banner {
		scroll-behavior: auto;
	}
}
