/* ==========================================================================
   Hairstore · Consentimiento de cookies (inc/hb-cookies.php + js/hb-cookies.js)
   Mismo lenguaje que el resto del sitio (skin v4): Geist, negro #0a0a0a,
   grises #737373 / #e5e5e5, píldoras 999px, cajas blancas de 20px de radio.
   Aceptar y Rechazar tienen exactamente el mismo estilo (sin patrones oscuros).
   Los selectores van con #id para no heredar los estilos de botón de Storefront.
   ========================================================================== */

#hbcc-banner,
#hbcc-modal,
.hbcc-toast{
	--hbcc-ink: #0a0a0a;
	--hbcc-ink-2: #262626;
	--hbcc-muted: #5c5c5c;
	--hbcc-soft: #737373;
	--hbcc-line: #e5e5e5;
	--hbcc-bg-2: #f5f5f5;
	--hbcc-focus: 0 0 0 2px #fff, 0 0 0 4px #0a0a0a;
	font-family: "Geist", -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	color: var(--hbcc-ink);
	text-align: left;
	letter-spacing: normal;
}
#hbcc-banner *,
#hbcc-modal *{ box-sizing: border-box; }

/* ---------- Botones ---------- */
#hbcc-banner .hbcc-btn,
#hbcc-modal .hbcc-btn{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin: 0;
	padding: 0 22px;
	border-radius: 999px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-transform: none;
	letter-spacing: normal;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
#hbcc-banner .hbcc-btn--solid,
#hbcc-modal .hbcc-btn--solid{ background: var(--hbcc-ink); color: #fff; border: 1px solid var(--hbcc-ink); }
#hbcc-banner .hbcc-btn--solid:hover,
#hbcc-modal .hbcc-btn--solid:hover{ background: var(--hbcc-ink-2); border-color: var(--hbcc-ink-2); color: #fff; }
#hbcc-banner .hbcc-btn--line,
#hbcc-modal .hbcc-btn--line{ background: #fff; color: var(--hbcc-ink); border: 1px solid var(--hbcc-line); }
#hbcc-banner .hbcc-btn--line:hover,
#hbcc-modal .hbcc-btn--line:hover{ background: var(--hbcc-bg-2); color: var(--hbcc-ink); }
#hbcc-banner .hbcc-btn:focus-visible,
#hbcc-modal .hbcc-btn:focus-visible,
#hbcc-modal .hbcc-x:focus-visible,
#hbcc-modal summary:focus-visible,
#hbcc-banner a:focus-visible,
#hbcc-modal a:focus-visible{ outline: none; box-shadow: var(--hbcc-focus); }

/* ---------- Banner (primera capa) ---------- */
#hbcc-banner{
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 1100;
	width: 440px;
	max-width: calc(100vw - 48px);
	background: #fff;
	border: 1px solid var(--hbcc-line);
	border-radius: 20px;
	box-shadow: 0 24px 60px -24px rgba(10,10,10,.35), 0 2px 6px rgba(10,10,10,.04);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .24s ease, transform .24s ease;
}
#hbcc-banner.is-in{ opacity: 1; transform: none; }
#hbcc-banner .hbcc-banner-inner{ padding: 24px; }
#hbcc-banner .hbcc-b-title{
	margin: 0 0 8px;
	padding: 0;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--hbcc-ink);
	text-transform: none;
}
#hbcc-banner .hbcc-b-text{
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--hbcc-muted);
}
#hbcc-banner .hbcc-b-text a,
#hbcc-modal .hbcc-m-text a{ color: var(--hbcc-ink); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
#hbcc-banner .hbcc-b-text a:hover,
#hbcc-modal .hbcc-m-text a:hover{ color: #b3562e; }
#hbcc-banner .hbcc-b-actions{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
#hbcc-banner .hbcc-b-config{ grid-column: 1 / -1; }

/* ---------- Panel de preferencias (segunda capa) ---------- */
#hbcc-modal{
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
#hbcc-modal .hbcc-overlay{
	position: absolute;
	inset: 0;
	background: rgba(28,21,34,.6);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	opacity: 0;
	transition: opacity .2s ease;
}
#hbcc-modal .hbcc-dialog{
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 620px;
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 30px 80px -30px rgba(10,10,10,.5);
	opacity: 0;
	transform: translateY(12px) scale(.985);
	transition: opacity .2s ease, transform .2s ease;
	outline: none;
}
#hbcc-modal.is-in .hbcc-overlay,
#hbcc-modal.is-in .hbcc-dialog{ opacity: 1; transform: none; }
#hbcc-modal .hbcc-m-head{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 24px 14px 28px;
}
#hbcc-modal .hbcc-m-title{
	margin: 0;
	padding: 0;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--hbcc-ink);
}
#hbcc-modal .hbcc-x{
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--hbcc-ink);
	cursor: pointer;
}
#hbcc-modal .hbcc-x:hover{ background: var(--hbcc-bg-2); }
#hbcc-modal .hbcc-m-body{
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0 28px 8px;
}
#hbcc-modal .hbcc-m-text{
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--hbcc-muted);
}
#hbcc-modal .hbcc-cat{
	border: 1px solid var(--hbcc-line);
	border-radius: 16px;
	padding: 16px 18px;
	margin: 0 0 10px;
}
#hbcc-modal .hbcc-cat-head{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
#hbcc-modal .hbcc-cat-title{
	margin: 0;
	padding: 0;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 600;
	color: var(--hbcc-ink);
	letter-spacing: -0.01em;
}
#hbcc-modal .hbcc-cat-desc{
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--hbcc-soft);
}
#hbcc-modal .hbcc-always{
	flex: 0 0 auto;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--hbcc-bg-2);
	font-size: 12px;
	line-height: 1.2;
	font-weight: 500;
	color: var(--hbcc-muted);
	white-space: nowrap;
}

/* Interruptor */
#hbcc-modal .hbcc-switch{
	position: relative;
	flex: 0 0 auto;
	display: inline-block;
	width: 44px;
	height: 26px;
	margin: 0;
	cursor: pointer;
}
#hbcc-modal .hbcc-switch input{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}
#hbcc-modal .hbcc-switch-track{
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #d4d4d4;
	transition: background-color .18s ease;
}
#hbcc-modal .hbcc-switch-track::after{
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,.25);
	transition: transform .18s ease;
}
#hbcc-modal .hbcc-switch input:checked + .hbcc-switch-track{ background: var(--hbcc-ink); }
#hbcc-modal .hbcc-switch input:checked + .hbcc-switch-track::after{ transform: translateX(18px); }
#hbcc-modal .hbcc-switch input:focus-visible + .hbcc-switch-track{ box-shadow: var(--hbcc-focus); }

/* Lista de cookies de cada categoría */
#hbcc-modal .hbcc-details{ margin: 10px 0 0; }
#hbcc-modal .hbcc-details summary{
	display: inline-flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	font-size: 13px;
	font-weight: 500;
	color: var(--hbcc-ink);
	cursor: pointer;
	border-radius: 6px;
}
#hbcc-modal .hbcc-details summary::-webkit-details-marker{ display: none; }
#hbcc-modal .hbcc-details summary::after{
	content: "";
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform .15s ease;
}
#hbcc-modal .hbcc-details[open] summary::after{ transform: translateY(1px) rotate(-135deg); }
#hbcc-modal .hbcc-mtable-wrap{ margin: 10px 0 0; overflow-x: auto; }
#hbcc-modal .hbcc-mtable{
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	border: 0;
	font-size: 12.5px;
	line-height: 1.45;
	background: none;
}
#hbcc-modal .hbcc-mtable th,
#hbcc-modal .hbcc-mtable td{
	padding: 8px 10px 8px 0;
	border: 0;
	border-top: 1px solid var(--hbcc-line);
	background: none;
	text-align: left;
	vertical-align: top;
	color: var(--hbcc-muted);
}
#hbcc-modal .hbcc-mtable th{ border-top: 0; font-weight: 600; color: var(--hbcc-ink); font-size: 12px; }
#hbcc-modal .hbcc-mtable code{
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px;
	color: var(--hbcc-ink);
	background: none;
	padding: 0;
	word-break: break-word;
}
#hbcc-modal .hbcc-own{ display: block; margin-top: 2px; font-size: 11.5px; color: var(--hbcc-soft); }
#hbcc-modal .hbcc-mpolicy{ margin: 8px 0 0; font-size: 12.5px; }
#hbcc-modal .hbcc-mpolicy a{ color: var(--hbcc-ink); text-decoration: underline; text-underline-offset: 2px; }
#hbcc-modal .hbcc-meta{
	margin: 14px 0 6px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--hbcc-soft);
}
#hbcc-modal .hbcc-meta code{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; background: none; padding: 0; color: var(--hbcc-muted); word-break: break-all; }

#hbcc-modal .hbcc-m-foot{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 16px 28px 22px;
	border-top: 1px solid var(--hbcc-line);
}
#hbcc-modal .hbcc-m-foot-main{ display: flex; gap: 10px; }

/* Bloqueo de scroll con el panel abierto */
html.hbcc-modal-open,
html.hbcc-modal-open body{ overflow: hidden; }

/* ---------- Aviso breve tras guardar ---------- */
.hbcc-toast{
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 1300;
	padding: 12px 20px;
	border-radius: 999px;
	background: #0a0a0a;
	color: #fff;
	font-size: 14px;
	line-height: 1.3;
	font-weight: 500;
	box-shadow: 0 16px 40px -16px rgba(10,10,10,.5);
	opacity: 0;
	transform: translate(-50%, 10px);
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: none;
}
.hbcc-toast.is-in{ opacity: 1; transform: translate(-50%, 0); }

/* ---------- Móvil ---------- */
@media (max-width: 640px){
	#hbcc-banner{
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		max-width: none;
		border-radius: 20px 20px 0 0;
		border-width: 1px 0 0;
		box-shadow: 0 -18px 48px -24px rgba(10,10,10,.45);
	}
	#hbcc-banner .hbcc-banner-inner{ padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); }
	#hbcc-banner .hbcc-b-title{ font-size: 17px; }
	#hbcc-banner .hbcc-b-text{ font-size: 13.5px; margin-bottom: 16px; }
	#hbcc-banner .hbcc-btn{ padding: 0 12px; font-size: 14.5px; }

	#hbcc-modal{ padding: 0; align-items: flex-end; }
	#hbcc-modal .hbcc-dialog{
		max-width: none;
		max-height: 92vh;
		max-height: 92dvh;
		border-radius: 20px 20px 0 0;
		transform: translateY(24px);
	}
	#hbcc-modal .hbcc-m-head{ padding: 18px 12px 10px 20px; }
	#hbcc-modal .hbcc-m-title{ font-size: 19px; }
	#hbcc-modal .hbcc-m-body{ padding: 0 16px 6px; }
	#hbcc-modal .hbcc-cat{ padding: 14px; }
	#hbcc-modal .hbcc-m-foot{
		flex-direction: column-reverse;
		align-items: stretch;
		padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
	}
	#hbcc-modal .hbcc-m-foot-main{ display: grid; grid-template-columns: 1fr 1fr; }
	#hbcc-modal .hbcc-btn{ padding: 0 12px; font-size: 14.5px; }
	#hbcc-modal .hbcc-mtable thead{ display: none; }
	#hbcc-modal .hbcc-mtable tr{ display: block; padding: 8px 0; border-top: 1px solid var(--hbcc-line); }
	#hbcc-modal .hbcc-mtable td{ display: block; padding: 1px 0; border: 0; }
	.hbcc-toast{ bottom: calc(96px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce){
	#hbcc-banner,
	#hbcc-modal .hbcc-overlay,
	#hbcc-modal .hbcc-dialog,
	.hbcc-toast{ transition: none; }
}

/* ---------- Contenido bloqueado (mapas, vídeos) ---------- */
.hbcc-embed{
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 300px;
	padding: 28px 20px;
	border-radius: var(--hb-img-radius, 12px);
	background: #f6f5f4;
	border: 1px solid #e5e5e5;
	color: #0a0a0a;
	text-align: center;
	font-family: "Geist", -apple-system, "Segoe UI", sans-serif;
}
.hbcc-embed-box{ max-width: 380px; }
.hbcc-embed-box svg{ display: inline-block; color: #0a0a0a; margin: 0 auto 10px; }
.hbcc-embed .hbcc-embed-title{ margin: 0 0 6px; font-size: 16px; line-height: 1.3; font-weight: 600; color: #0a0a0a; }
.hbcc-embed .hbcc-embed-text{ margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: #5c5c5c; }
.hbcc-embed .hbcc-embed-actions{ display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; }
.hbcc-embed .hbcc-embed-btn,
.hbcc-settings-btn{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 0 22px;
	border: 1px solid #0a0a0a;
	border-radius: 999px;
	background: #0a0a0a;
	color: #fff;
	font: 500 15px/1.2 "Geist", -apple-system, "Segoe UI", sans-serif;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	box-shadow: none;
}
.hbcc-embed .hbcc-embed-btn:hover,
.hbcc-settings-btn:hover{ background: #262626; border-color: #262626; color: #fff; }
.hbcc-embed .hbcc-embed-btn:focus-visible,
.hbcc-settings-btn:focus-visible,
.hbcc-embed .hbcc-embed-link:focus-visible{ outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0a0a0a; }
.hbcc-embed .hbcc-embed-link{ font-size: 14px; font-weight: 500; color: #0a0a0a; text-decoration: underline; text-underline-offset: 2px; }
.hbcc-embed .hbcc-embed-link:hover{ color: #b3562e; }
.hbcc-embed .hbcc-embed-note{ margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: #737373; }

/* ---------- Enlace permanente del pie ---------- */
.hbf-legal .hbf-cookie-btn{
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #737373;
	font: inherit;
	text-transform: none;
	letter-spacing: inherit;
	cursor: pointer;
	box-shadow: none;
}
.hbf-legal .hbf-cookie-btn:hover{ color: #0a0a0a; background: none; }
.hbf-legal .hbf-cookie-btn:focus-visible{ outline: 2px solid #0a0a0a; outline-offset: 2px; border-radius: 2px; }

/* ---------- Política de cookies: tabla de inventario ---------- */
.hbcc-settings-wrap{ margin: 8px 0 24px; }
.hbcc-table-wrap{ margin: 12px 0 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.hbcc-table{
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.5;
	background: #fff;
}
table.hbcc-table th,
table.hbcc-table td{
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid #e5e5e5;
	background: #fff;
	text-align: left;
	vertical-align: top;
	color: #404040;
}
table.hbcc-table thead th{ background: #f6f5f4; color: #0a0a0a; font-weight: 600; font-size: 13px; }
table.hbcc-table tbody tr:last-child td{ border-bottom: 0; }
table.hbcc-table code{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; background: none; padding: 0; color: #0a0a0a; word-break: break-word; }
.hbcc-table-note{ font-size: 14px; }
@media (max-width: 640px){
	table.hbcc-table{ border: 0; }
	table.hbcc-table thead{ display: none; }
	table.hbcc-table tr{ display: block; padding: 12px 0; border-top: 1px solid #e5e5e5; }
	table.hbcc-table td{ display: block; padding: 2px 0; border: 0; }
	table.hbcc-table td:first-child{ margin-bottom: 2px; }
}
