/**
 * 352 Consent Cookie Policy Styles
 *
 * Styles for the frontend cookie policy page.
 *
 * @package 352_Consent
 * @since   1.1.0
 */

/* Policy Container */
.tcc-cookie-policy {
	max-width: 800px;
	margin: 0 auto;
	line-height: 1.7;
}

.tcc-cookie-policy h2 {
	margin-top: 2em;
	margin-bottom: 0.5em;
	font-size: 1.4em;
}

.tcc-cookie-policy h3 {
	margin-top: 1.5em;
	margin-bottom: 0.5em;
	font-size: 1.2em;
}

.tcc-cookie-policy p {
	margin-bottom: 1em;
}

.tcc-cookie-policy ul {
	margin-bottom: 1em;
	padding-left: 1.5em;
}

.tcc-cookie-policy li {
	margin-bottom: 0.5em;
}

/* Policy Updated Notice */
.tcc-policy-updated {
	background: #f5f5f5;
	border-left: 4px solid #0073aa;
	padding: 1em 1.5em;
	margin-bottom: 2em;
	font-style: italic;
}

/* Cookie Service Sections */
.tcc-cookie-service {
	margin-bottom: 2em;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
}

.tcc-cookie-service h3 {
	margin: 0;
	padding: 0.75em 1em;
	background: #f5f5f5;
	border-bottom: 1px solid #ddd;
}

.tcc-service-category {
	margin: 0;
	padding: 0.5em 1em;
	background: #fafafa;
	border-bottom: 1px solid #ddd;
	font-size: 0.9em;
	color: #666;
}

/* Cookie Table */
.tcc-cookie-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9em;
}

.tcc-cookie-table th,
.tcc-cookie-table td {
	padding: 0.75em 1em;
	text-align: left;
	border-bottom: 1px solid #eee;
	vertical-align: top;
}

.tcc-cookie-table th {
	background: #f9f9f9;
	font-weight: 600;
	white-space: nowrap;
}

.tcc-cookie-table tbody tr:last-child td {
	border-bottom: none;
}

.tcc-cookie-table tbody tr:hover {
	background: #fafafa;
}

.tcc-cookie-table code {
	background: #f0f0f0;
	padding: 0.2em 0.4em;
	border-radius: 3px;
	font-size: 0.85em;
	word-break: break-all;
}

/* Responsive Table */
@media screen and (max-width: 600px) {
	.tcc-cookie-table thead {
		display: none;
	}

	.tcc-cookie-table tbody tr {
		display: block;
		margin-bottom: 1em;
		border: 1px solid #ddd;
		border-radius: 4px;
	}

	.tcc-cookie-table td {
		display: block;
		text-align: left;
		padding: 0.5em 1em;
		border-bottom: 1px solid #eee;
	}

	.tcc-cookie-table td:last-child {
		border-bottom: none;
	}

	.tcc-cookie-table td::before {
		content: attr(data-label) ': ';
		font-weight: 600;
	}
}

/* Consent Manager */
.tcc-consent-manager {
	background: #f5f5f5;
	border-radius: 4px;
	padding: 1.5em;
	margin: 1.5em 0;
	text-align: center;
}

.tcc-consent-manager p {
	margin-bottom: 1em;
}

.tcc-manage-consent-btn {
	display: inline-block;
	background: #0073aa;
	color: #fff;
	padding: 0.75em 1.5em;
	border: none;
	border-radius: 4px;
	font-size: 1em;
	cursor: pointer;
	transition: background 0.2s ease;
}

.tcc-manage-consent-btn:hover {
	background: #005a87;
}

.tcc-manage-consent-btn:focus {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

/* Contact Details */
.tcc-contact-details {
	background: #f5f5f5;
	border-radius: 4px;
	padding: 1.5em;
	font-style: normal;
	line-height: 1.8;
}

.tcc-contact-details a {
	color: #0073aa;
	text-decoration: none;
}

.tcc-contact-details a:hover {
	text-decoration: underline;
}

/* Sync Notice */
.tcc-sync-notice {
	color: #666;
	font-size: 0.85em;
	font-style: italic;
	text-align: center;
	margin-top: 2em;
}

/* Separator */
.tcc-cookie-policy hr {
	border: none;
	border-top: 1px solid #ddd;
	margin: 2em 0;
}

/* Links */
.tcc-cookie-policy a {
	color: #0073aa;
	text-decoration: none;
}

.tcc-cookie-policy a:hover {
	text-decoration: underline;
}

/* Print Styles */
@media print {
	.tcc-cookie-policy {
		max-width: none;
	}

	.tcc-consent-manager {
		display: none;
	}

	.tcc-cookie-service {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.tcc-cookie-table {
		font-size: 0.8em;
	}
}
