/* RGPD Cookie Consent - estilos frontend (minimalista) */

.rgpdcc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.25);
	z-index: 999998;
}

.rgpdcc-banner {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 999999;
	background: var(--rgpdcc-bg, #ffffff);
	color: var(--rgpdcc-text, #111111);
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	padding: 18px 24px;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	font-size: 13.5px;
	line-height: 1.5;
}

.rgpdcc-banner[hidden] {
	display: none !important;
}

.rgpdcc-pos-bottom {
	bottom: 0;
}

.rgpdcc-pos-top {
	top: 0;
	border-top: none;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.rgpdcc-pos-bottom-left,
.rgpdcc-pos-bottom-right {
	left: auto;
	right: auto;
	bottom: 20px;
	max-width: 380px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
}

.rgpdcc-pos-bottom-left {
	left: 20px;
}

.rgpdcc-pos-bottom-right {
	right: 20px;
}

.rgpdcc-layout-box.rgpdcc-pos-bottom {
	left: 20px;
	right: auto;
	bottom: 20px;
	max-width: 380px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
}

.rgpdcc-banner-content {
	flex: 1 1 320px;
}

.rgpdcc-title {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 600;
	color: inherit;
	letter-spacing: -0.01em;
}

.rgpdcc-text {
	margin: 0;
	color: inherit;
	opacity: 0.7;
}

.rgpdcc-policy-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	opacity: 0.85;
	margin-left: 4px;
	white-space: nowrap;
}

.rgpdcc-banner-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.rgpdcc-btn {
	border: none;
	border-radius: 4px;
	padding: 9px 16px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	background: transparent;
	color: inherit;
	transition: opacity 0.15s ease, background-color 0.15s ease;
}

.rgpdcc-btn:hover {
	opacity: 0.75;
}

.rgpdcc-btn-accept {
	background: var(--rgpdcc-accept, #111111);
	color: #fff;
}

.rgpdcc-btn-accept:hover {
	opacity: 0.85;
}

.rgpdcc-btn-reject {
	color: inherit;
	opacity: 0.7;
}

.rgpdcc-btn-reject:hover {
	opacity: 1;
	background: rgba(0, 0, 0, 0.05);
}

.rgpdcc-btn-settings {
	color: inherit;
	opacity: 0.7;
	text-decoration: underline;
	text-underline-offset: 2px;
	padding-left: 4px;
	padding-right: 4px;
}

.rgpdcc-btn-settings:hover {
	opacity: 1;
	background: transparent;
}

/* Modal de configuración */

.rgpdcc-modal {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.35);
	padding: 16px;
}

.rgpdcc-modal[hidden] {
	display: none !important;
}

.rgpdcc-modal-inner {
	background: #fff;
	color: #111111;
	max-width: 480px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	border-radius: 10px;
	padding: 32px;
	position: relative;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.rgpdcc-modal-close {
	position: absolute;
	top: 16px;
	right: 18px;
	background: none;
	border: none;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #9ca3af;
	padding: 4px;
}

.rgpdcc-modal-close:hover {
	color: #111111;
}

.rgpdcc-modal-inner h2 {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.rgpdcc-modal-inner > p {
	margin: 0 0 24px;
	font-size: 13.5px;
	opacity: 0.7;
	line-height: 1.5;
}

.rgpdcc-categories {
	margin: 0 0 24px;
	display: flex;
	flex-direction: column;
}

.rgpdcc-category {
	padding: 16px 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.rgpdcc-category:last-child {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.rgpdcc-category-header {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rgpdcc-category-label {
	font-weight: 500;
	font-size: 13.5px;
}

.rgpdcc-badge {
	margin-left: auto;
	font-size: 11px;
	color: #9ca3af;
	font-weight: 400;
}

.rgpdcc-category-desc {
	margin: 6px 0 0;
	font-size: 12.5px;
	opacity: 0.6;
	line-height: 1.5;
}

.rgpdcc-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

.rgpdcc-modal-actions .rgpdcc-btn-reject {
	opacity: 0.7;
}

/* Switch (toggle) minimalista */

.rgpdcc-switch {
	position: relative;
	display: inline-block;
	width: 34px;
	height: 20px;
	flex-shrink: 0;
}

.rgpdcc-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.rgpdcc-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background-color: #e5e7eb;
	transition: 0.15s;
	border-radius: 999px;
}

.rgpdcc-slider::before {
	position: absolute;
	content: "";
	height: 14px;
	width: 14px;
	left: 3px;
	bottom: 3px;
	background-color: #fff;
	transition: 0.15s;
	border-radius: 50%;
}

.rgpdcc-switch input:checked + .rgpdcc-slider {
	background-color: #111111;
}

.rgpdcc-switch input:checked + .rgpdcc-slider::before {
	transform: translateX(14px);
}

.rgpdcc-switch input:disabled + .rgpdcc-slider {
	background-color: #d1d5db;
	cursor: not-allowed;
}

@media (max-width: 640px) {
	.rgpdcc-banner {
		flex-direction: column;
		align-items: stretch;
		padding: 16px 20px;
	}
	.rgpdcc-banner-actions {
		justify-content: flex-end;
	}
	.rgpdcc-modal-inner {
		padding: 24px 20px;
	}
}
