/**
 * Structural styling for plugin-rendered front-end components.
 *
 * STRUCTURE ONLY — spacing, borders, table layout. Every colour is taken from a
 * CSS custom property that the theme defines, with a neutral fallback so the
 * output is still legible on any theme. Branding belongs to tc-storefront; this
 * file exists so a lot page is never an unstyled wall of text if the plugin is
 * used with another theme.
 *
 * @package tc-commerce-core
 */

.tc-disclaimer {
	margin: 1.25rem 0;
	padding: 0.9rem 1rem;
	border-left: 3px solid var(--tc-accent, #6b7280);
	background: var(--tc-surface-muted, #f6f7f7);
	font-size: 0.875rem;
	line-height: 1.55;
}

.tc-disclaimer__headline {
	margin: 0 0 0.4rem;
	font-weight: 600;
}

.tc-disclaimer__detail {
	margin: 0;
	color: var(--tc-text-muted, #4b5563);
}

.tc-footer-disclaimer {
	margin: 2rem auto 0;
	padding: 1.25rem 1rem;
	max-width: 70rem;
	border-top: 1px solid var(--tc-border, #e5e7eb);
	font-size: 0.8125rem;
	line-height: 1.6;
	color: var(--tc-text-muted, #4b5563);
	text-align: center;
}

.tc-specs,
.tc-lot__results,
.tc-lot-list__table,
.tc-supplement-facts__table {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
	font-size: 0.875rem;
}

.tc-specs th,
.tc-specs td,
.tc-lot__results th,
.tc-lot__results td,
.tc-lot-list__table th,
.tc-lot-list__table td,
.tc-supplement-facts__table th,
.tc-supplement-facts__table td {
	padding: 0.5rem 0.75rem;
	border-bottom: 1px solid var(--tc-border, #e5e7eb);
	text-align: left;
	vertical-align: top;
}

.tc-specs th {
	width: 40%;
	font-weight: 600;
	color: var(--tc-text-muted, #4b5563);
}

/* Wide tables scroll inside themselves rather than pushing the page sideways. */
.tc-lot-list,
.tc-lot__results-wrap {
	overflow-x: auto;
}

.tc-current-lot {
	margin: 1rem 0;
	padding: 0.75rem 0;
	border-top: 1px solid var(--tc-border, #e5e7eb);
	border-bottom: 1px solid var(--tc-border, #e5e7eb);
	font-size: 0.875rem;
}

.tc-current-lot__label {
	font-weight: 600;
}

.tc-current-lot__tested {
	color: var(--tc-text-muted, #4b5563);
}

.tc-current-lot__links a + a {
	margin-left: 1rem;
}

.tc-lot-status {
	display: inline-block;
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	background: var(--tc-surface-muted, #f3f4f6);
}

.tc-lot-status--recalled {
	background: var(--tc-danger-bg, #fee2e2);
	color: var(--tc-danger-text, #991b1b);
}

.tc-lot-status--expired {
	background: var(--tc-warning-bg, #fef3c7);
	color: var(--tc-warning-text, #92400e);
}

.tc-lot__alert {
	margin: 1rem 0 1.5rem;
	padding: 1rem;
	border-radius: 4px;
	font-size: 0.9375rem;
}

.tc-lot__alert strong {
	display: block;
	margin-bottom: 0.25rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.75rem;
}

.tc-lot__facts {
	margin: 1rem 0;
}

.tc-lot__fact {
	display: flex;
	gap: 1rem;
	padding: 0.4rem 0;
	border-bottom: 1px solid var(--tc-border, #e5e7eb);
}

.tc-lot__fact dt {
	flex: 0 0 40%;
	font-weight: 600;
	color: var(--tc-text-muted, #4b5563);
}

.tc-lot__fact dd {
	margin: 0;
}

.tc-lot__embed {
	width: 100%;
	min-height: 32rem;
	margin: 1rem 0;
	border: 1px solid var(--tc-border, #e5e7eb);
}

.tc-gate {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: baseline;
	font-size: 0.9375rem;
}

.tc-gate__message {
	color: var(--tc-text-muted, #4b5563);
}

.tc-application__field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin-bottom: 1.1rem;
}

.tc-application__field--check label {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	font-size: 0.875rem;
	line-height: 1.5;
}

.tc-application__hint,
.tc-application__privacy {
	font-size: 0.8125rem;
	color: var(--tc-text-muted, #4b5563);
}

.tc-application__notice {
	margin: 1rem 0;
	padding: 0.75rem 1rem;
	border-left: 3px solid var(--tc-accent, #6b7280);
	background: var(--tc-surface-muted, #f6f7f7);
}

.tc-application__notice--error {
	border-left-color: var(--tc-danger-text, #991b1b);
	background: var(--tc-danger-bg, #fee2e2);
}

.tc-account-status {
	margin: 1.5rem 0;
	padding: 1.25rem;
	border: 1px solid var(--tc-border, #e5e7eb);
	border-radius: 4px;
}

@media (max-width: 600px) {
	.tc-lot__fact {
		flex-direction: column;
		gap: 0.1rem;
	}

	.tc-lot__fact dt {
		flex-basis: auto;
	}

	.tc-lot__embed {
		min-height: 20rem;
	}
}
