/**
 * Baby Market Shop — cookie consent banner (Catalogo Premium).
 */

.bms-consent {
	--bms-c-ink: #1c2430;
	--bms-c-muted: #5f6b7a;
	--bms-c-paper: #f7f9fc;
	--bms-c-white: #ffffff;
	--bms-c-sky: #2f6fad;
	--bms-c-sky-deep: #245a8f;
	--bms-c-line: #e2e8f0;
	--bms-c-radius: 18px;
	--bms-c-font: "Outfit", system-ui, sans-serif;
	--bms-c-display: "Fraunces", Georgia, serif;
	font-family: var(--bms-c-font);
	color: var(--bms-c-ink);
	z-index: 100000;
}

.bms-consent[hidden] {
	display: none !important;
}

.bms-consent__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(28, 36, 48, 0.42);
	z-index: 100001;
}

.bms-consent__backdrop[hidden] {
	display: none !important;
}

.bms-consent__bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100002;
	padding: 1rem;
	pointer-events: none;
}

.bms-consent__bar[hidden] {
	display: none !important;
}

.bms-consent__inner {
	pointer-events: auto;
	width: min(1180px, 100%);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.4fr auto;
	gap: 1rem 1.5rem;
	align-items: center;
	padding: 1.15rem 1.25rem;
	background: var(--bms-c-white);
	border: 1px solid var(--bms-c-line);
	border-radius: var(--bms-c-radius);
	box-shadow: 0 18px 50px rgba(28, 36, 48, 0.14);
}

.bms-consent__eyebrow {
	margin: 0 0 0.35rem;
	font-family: var(--bms-c-display);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--bms-c-ink);
}

.bms-consent__lead {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--bms-c-muted);
}

.bms-consent__links {
	margin: 0.55rem 0 0;
	font-size: 0.82rem;
}

.bms-consent__links a {
	color: var(--bms-c-sky-deep);
	font-weight: 600;
	text-decoration: none;
}

.bms-consent__links a:hover {
	text-decoration: underline;
}

.bms-consent__links span {
	color: var(--bms-c-line);
	margin: 0 0.45rem;
}

.bms-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: flex-end;
}

.bms-consent__btn {
	appearance: none;
	border: 1px solid var(--bms-c-line);
	border-radius: 999px;
	background: var(--bms-c-white);
	color: var(--bms-c-ink);
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.2;
	padding: 0.7rem 1.1rem;
	min-height: 44px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bms-consent__btn:hover {
	border-color: #c5d0dc;
}

.bms-consent__btn--primary {
	background: var(--bms-c-sky-deep);
	border-color: var(--bms-c-sky-deep);
	color: #fff;
}

.bms-consent__btn--primary:hover {
	background: var(--bms-c-sky);
	border-color: var(--bms-c-sky);
	color: #fff;
}

.bms-consent__btn--ghost {
	background: var(--bms-c-paper);
}

.bms-consent__panel {
	position: fixed;
	inset: 0;
	z-index: 100003;
	display: grid;
	place-items: center;
	padding: 1rem;
}

.bms-consent__panel[hidden] {
	display: none !important;
}

.bms-consent__panel-card {
	width: min(32rem, 100%);
	max-height: min(88vh, 40rem);
	overflow: auto;
	background: var(--bms-c-white);
	border: 1px solid var(--bms-c-line);
	border-radius: var(--bms-c-radius);
	box-shadow: 0 24px 60px rgba(28, 36, 48, 0.18);
	padding: 1.25rem 1.3rem 1.2rem;
}

.bms-consent__panel-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0 0 1rem;
}

.bms-consent__panel-head h2 {
	margin: 0;
	font-family: var(--bms-c-display);
	font-size: 1.35rem;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.bms-consent__icon-btn {
	appearance: none;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid var(--bms-c-line);
	border-radius: 999px;
	background: var(--bms-c-paper);
	color: var(--bms-c-ink);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	flex: 0 0 auto;
}

.bms-consent__cats {
	display: grid;
	gap: 0.75rem;
}

.bms-consent__cat {
	padding: 0.9rem 1rem;
	border: 1px solid var(--bms-c-line);
	border-radius: 14px;
	background: var(--bms-c-paper);
}

.bms-consent__cat-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.bms-consent__cat-label {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--bms-c-ink);
}

.bms-consent__cat-help {
	margin: 0.35rem 0 0;
	font-size: 0.82rem;
	line-height: 1.45;
	color: var(--bms-c-muted);
}

.bms-consent__switch {
	position: relative;
	width: 2.75rem;
	height: 1.55rem;
	flex: 0 0 auto;
}

.bms-consent__switch input {
	position: absolute;
	inset: 0;
	opacity: 0;
	margin: 0;
	cursor: pointer;
}

.bms-consent__switch input:disabled {
	cursor: not-allowed;
}

.bms-consent__switch span {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 999px;
	background: #c5d0dc;
	transition: background 0.15s ease;
	pointer-events: none;
}

.bms-consent__switch span::after {
	content: "";
	position: absolute;
	top: 0.18rem;
	left: 0.18rem;
	width: 1.2rem;
	height: 1.2rem;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(28, 36, 48, 0.18);
	transition: transform 0.15s ease;
}

.bms-consent__switch input:checked + span {
	background: var(--bms-c-sky-deep);
}

.bms-consent__switch input:checked + span::after {
	transform: translateX(1.15rem);
}

.bms-consent__switch input:disabled + span {
	opacity: 0.7;
	background: var(--bms-c-sky-deep);
}

.bms-consent__panel-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: flex-end;
	margin-top: 1.15rem;
	padding-top: 1rem;
	border-top: 1px solid var(--bms-c-line);
}

.bms-consent__reopen {
	position: fixed;
	left: 1rem;
	bottom: 1rem;
	z-index: 100000;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	border: 1px solid var(--bms-c-line);
	background: var(--bms-c-white);
	box-shadow: 0 10px 28px rgba(28, 36, 48, 0.12);
	cursor: pointer;
	color: transparent;
	font-size: 0;
	line-height: 0;
	padding: 0;
}

.bms-consent__reopen::before {
	content: "";
	display: block;
	width: 1.2rem;
	height: 1.2rem;
	margin: 0 auto;
	background-color: var(--bms-c-sky-deep);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M12 3a7 7 0 0 0-4.9 11.9A3.5 3.5 0 0 1 9 18.5V20a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1.5a3.5 3.5 0 0 1 1.9-3.1A7 7 0 0 0 12 3z'/%3E%3Cpath stroke='%23000' stroke-width='1.8' stroke-linecap='round' d='M9.5 21h5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M12 3a7 7 0 0 0-4.9 11.9A3.5 3.5 0 0 1 9 18.5V20a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1.5a3.5 3.5 0 0 1 1.9-3.1A7 7 0 0 0 12 3z'/%3E%3Cpath stroke='%23000' stroke-width='1.8' stroke-linecap='round' d='M9.5 21h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bms-consent__reopen[hidden] {
	display: none !important;
}

.bms-consent__reopen:hover {
	border-color: var(--bms-c-sky);
}

@media (max-width: 767px) {
	.bms-consent__inner {
		grid-template-columns: 1fr;
		padding: 1rem 1.05rem 1.05rem;
	}

	.bms-consent__actions {
		justify-content: stretch;
	}

	.bms-consent__actions .bms-consent__btn {
		flex: 1 1 auto;
		justify-content: center;
	}

	.bms-consent__btn--primary {
		order: -1;
		flex: 1 1 100%;
	}

	.bms-consent__reopen {
		left: 0.75rem;
		bottom: 0.75rem;
	}
}
