/**
 * Cookie List Styles
 *
 * @package RG\GCB
 */

.gcb-cookie-list {
	margin: 2em 0;
	font-family: var(--gcb-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);
}

.gcb-cookie-category {
	margin-bottom: 3em;
	padding: 1.5em;
	background: var(--gcb-bg, #f9f9f9);
	border-radius: var(--gcb-radius, 8px);
	border-left: 4px solid var(--gcb-accent, #0073aa);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gcb-cookie-category-title {
	margin: 0 0 0.5em 0;
	font-size: 1.5em;
	font-weight: 600;
	color: var(--gcb-text, #1d2327);
}

.gcb-cookie-category-description {
	margin: 0 0 1.5em 0;
	color: var(--gcb-text, #646970);
	opacity: 0.8;
	font-size: 0.95em;
	line-height: 1.6;
}

/* Table Format */
.gcb-cookie-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--gcb-bg, #fff);
	border-radius: var(--gcb-radius, 4px);
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gcb-cookie-table thead {
	background: var(--gcb-accent, #0073aa);
	color: #fff;
}

.gcb-cookie-table th {
	padding: 1em;
	text-align: left;
	font-weight: 600;
	font-size: 0.9em;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.gcb-cookie-table td {
	padding: 1em;
	border-bottom: 1px solid var(--gcb-border, #e5e5e5);
	color: var(--gcb-text, #1d2327);
}

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

.gcb-cookie-table tbody tr:hover {
	background: rgba(0, 0, 0, 0.02);
}

.gcb-cookie-table code {
	background: rgba(0, 0, 0, 0.05);
	padding: 0.2em 0.4em;
	border-radius: 3px;
	font-size: 0.9em;
	font-family: Consolas, Monaco, monospace;
	color: var(--gcb-accent, #d63638);
}

/* List Format */
.gcb-cookie-list-items {
	list-style: none;
	padding: 0;
	margin: 0;
}

.gcb-cookie-item {
	margin-bottom: 2em;
	padding: 1.5em;
	background: var(--gcb-bg, #fff);
	border-radius: var(--gcb-radius, 4px);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gcb-cookie-item strong {
	display: block;
	font-size: 1.2em;
	margin-bottom: 0.5em;
	color: var(--gcb-text, #1d2327);
}

.gcb-cookie-details {
	list-style: none;
	padding: 0;
	margin: 1em 0 0 0;
}

.gcb-cookie-details li {
	padding: 0.5em 0;
	border-bottom: 1px solid var(--gcb-border, #e5e5e5);
}

.gcb-cookie-details li:last-child {
	border-bottom: none;
}

.gcb-cookie-details strong {
	display: inline-block;
	min-width: 140px;
	font-weight: 600;
	color: var(--gcb-text, #646970);
	opacity: 0.8;
	font-size: 0.95em;
}

.gcb-cookie-details code {
	background: rgba(0, 0, 0, 0.05);
	padding: 0.2em 0.4em;
	border-radius: 3px;
	font-size: 0.9em;
	font-family: Consolas, Monaco, monospace;
	color: var(--gcb-accent, #d63638);
}

/* Simple Format */
.gcb-cookie-simple {
	background: var(--gcb-bg, #fff);
	padding: 1em;
	border-radius: var(--gcb-radius, 4px);
}

.gcb-cookie-simple-item {
	margin-bottom: 1.5em;
	padding-bottom: 1.5em;
	border-bottom: 1px solid var(--gcb-border, #e5e5e5);
}

.gcb-cookie-simple-item:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.gcb-cookie-simple-item h4 {
	margin: 0 0 0.5em 0;
	font-size: 1.1em;
	color: var(--gcb-text, #1d2327);
}

.gcb-cookie-simple-item p {
	margin: 0;
	color: var(--gcb-text, #646970);
	opacity: 0.9;
	font-size: 0.95em;
	line-height: 1.6;
}

.gcb-cookie-simple-item code {
	background: rgba(0, 0, 0, 0.05);
	padding: 0.2em 0.4em;
	border-radius: 3px;
	font-size: 0.9em;
	font-family: Consolas, Monaco, monospace;
	color: var(--gcb-accent, #d63638);
}

/* Kentha Theme specific styles */
body.kentha .gcb-cookie-list,
body.kentha-child .gcb-cookie-list,
.kentha .gcb-cookie-list,
.kentha-child .gcb-cookie-list {
	font-family: inherit;
}

body.kentha .gcb-cookie-category,
body.kentha-child .gcb-cookie-category,
.kentha .gcb-cookie-category,
.kentha-child .gcb-cookie-category {
	border-left-width: 3px;
	border-radius: 6px;
}

body.kentha .gcb-cookie-table,
body.kentha-child .gcb-cookie-table,
.kentha .gcb-cookie-table,
.kentha-child .gcb-cookie-table {
	border: 1px solid var(--gcb-border, rgba(0, 0, 0, 0.1));
}

body.kentha .gcb-cookie-table thead,
body.kentha-child .gcb-cookie-table thead,
.kentha .gcb-cookie-table thead,
.kentha-child .gcb-cookie-table thead {
	background: var(--gcb-accent, #0073aa);
}

body.kentha .gcb-cookie-item,
body.kentha-child .gcb-cookie-item,
.kentha .gcb-cookie-item,
.kentha-child .gcb-cookie-item {
	border: 1px solid var(--gcb-border, rgba(0, 0, 0, 0.1));
}

/* Responsive */
@media (max-width: 768px) {
	.gcb-cookie-table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.gcb-cookie-table thead {
		display: none;
	}

	.gcb-cookie-table tbody,
	.gcb-cookie-table tr,
	.gcb-cookie-table td {
		display: block;
		width: 100%;
	}

	.gcb-cookie-table tr {
		margin-bottom: 1em;
		border: 1px solid #e5e5e5;
		border-radius: 4px;
		padding: 0.5em;
	}

	.gcb-cookie-table td {
		border: none;
		padding: 0.5em 0;
		text-align: left;
	}

	.gcb-cookie-table td:before {
		content: attr(data-label) ": ";
		font-weight: 600;
		color: #646970;
		display: inline-block;
		min-width: 120px;
	}

	.gcb-cookie-table td:first-child {
		font-weight: 600;
		font-size: 1.1em;
		margin-bottom: 0.5em;
		padding-bottom: 0.5em;
		border-bottom: 1px solid #e5e5e5;
	}

	.gcb-cookie-table td:first-child:before {
		content: "";
	}
}

