/* Prévia em gaveta. */

.tnc-drawer {
	background: #fff;
	bottom: 0;
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
	display: flex;
	flex-direction: column;
	max-width: 100%;
	overflow-y: auto;
	position: fixed;
	right: 0;
	top: 0;
	width: 28rem;
	z-index: 10000;
}

.tnc-drawer[hidden] {
	display: none;
}

.tnc-drawer__head {
	align-items: center;
	background: #fff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	display: flex;
	gap: 0.5rem;
	justify-content: space-between;
	padding: 0.75rem 1rem;
	position: sticky;
	top: 0;
	z-index: 1;
}

.tnc-drawer__position {
	color: rgba(0, 0, 0, 0.6);
	font-size: 0.85rem;
}

.tnc-drawer__nav {
	display: flex;
	gap: 0.25rem;
}

.tnc-drawer__nav button {
	background: transparent;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 6px;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
	padding: 0.35rem 0.6rem;
}

.tnc-drawer__nav button:disabled {
	cursor: default;
	opacity: 0.4;
}

.tnc-drawer__nav button:focus-visible {
	outline: 2px solid var(--tnc-accent, #187181);
	outline-offset: 2px;
}

.tnc-drawer__body {
	padding: 1rem 1.25rem 2rem;
}

.tnc-drawer__image {
	background: #f5f5f5;
	border-radius: var(--tnc-radius, 10px);
	display: block;
	height: auto;
	max-height: 50vh;
	object-fit: contain;
	width: 100%;
}

.tnc-drawer__eyebrow {
	color: rgba(0, 0, 0, 0.6);
	font-size: 0.8rem;
	letter-spacing: 0.02em;
	margin: 0.9rem 0 0.2rem;
	text-transform: uppercase;
}

.tnc-drawer__title {
	font-size: 1.35rem;
	line-height: 1.25;
	margin: 0 0 0.75rem;
}

.tnc-drawer__title:focus-visible {
	outline: 2px solid var(--tnc-accent, #187181);
	outline-offset: 3px;
}

.tnc-drawer__fields {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	display: grid;
	gap: 0.1rem 0.9rem;
	grid-template-columns: minmax(6rem, 10rem) 1fr;
	margin: 0 0 1rem;
	padding-top: 0.75rem;
}

.tnc-drawer__fields dt {
	color: rgba(0, 0, 0, 0.55);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	padding-top: 0.2rem;
	text-transform: uppercase;
}

.tnc-drawer__fields dd {
	margin: 0 0 0.5rem;
}

.tnc-drawer__description {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	color: rgba(0, 0, 0, 0.8);
	padding-top: 0.75rem;
}

.tnc-drawer__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.tnc-drawer__loading,
.tnc-drawer__failed {
	color: rgba(0, 0, 0, 0.6);
	padding: 2rem 0;
	text-align: center;
}

/* No celular a gaveta é uma folha que sobe: 28rem não cabem. */
@media (max-width: 48rem) {
	.tnc-drawer {
		border-radius: 16px 16px 0 0;
		left: 0;
		max-height: 88vh;
		top: auto;
		width: auto;
	}
}
