/*
 * Cookie consent UI for BLOG-12.
 */

.miraclest-consent[hidden],
.miraclest-consent-dialog[hidden],
.miraclest-consent-reopen[hidden] {
	display: none !important;
}

.miraclest-consent {
	position: fixed;
	z-index: 99998;
	right: 16px;
	bottom: 16px;
	left: 16px;
	margin: auto;
	max-width: 920px;
	color: #17202a;
	background: #fff;
	border: 1px solid rgba(9, 45, 74, 0.18);
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(9, 45, 74, 0.24);
}

.miraclest-consent__body {
	padding: 20px;
}

.miraclest-consent__title {
	margin: 0 0 8px;
	font-size: 1.1rem;
	font-weight: 700;
}

.miraclest-consent__text {
	margin: 0;
	line-height: 1.7;
}

.miraclest-consent__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 16px;
}

.miraclest-consent__button,
.miraclest-consent-reopen {
	padding: 10px 16px;
	color: #fff;
	font: inherit;
	font-weight: 600;
	background: #006f9e;
	border: 1px solid #006f9e;
	border-radius: 8px;
	cursor: pointer;
}

.miraclest-consent__button--secondary {
	color: #092d4a;
	background: #fff;
	border-color: #78909c;
}

.miraclest-consent__button:hover,
.miraclest-consent__button:focus-visible,
.miraclest-consent-reopen:hover,
.miraclest-consent-reopen:focus-visible {
	filter: brightness(0.92);
	outline: 3px solid rgba(0, 163, 221, 0.3);
	outline-offset: 2px;
}

.miraclest-consent-dialog {
	position: fixed;
	z-index: 99999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(9, 24, 38, 0.64);
}

.miraclest-consent-dialog__panel {
	width: min(100%, 620px);
	max-height: calc(100vh - 40px);
	overflow: auto;
	padding: 24px;
	color: #17202a;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.miraclest-consent-dialog__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.miraclest-consent-dialog__header h2 {
	margin: 0;
	font-size: 1.35rem;
}

.miraclest-consent-dialog__close {
	padding: 4px 10px;
	font-size: 1.6rem;
	line-height: 1;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.miraclest-consent-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 18px;
	padding: 16px 0 0;
	border-top: 1px solid #d7e0e5;
}

.miraclest-consent-option strong,
.miraclest-consent-option span {
	display: block;
}

.miraclest-consent-option p,
.miraclest-consent-option span span {
	margin: 4px 0 0;
	font-size: 0.9rem;
	line-height: 1.6;
}

.miraclest-consent-option input {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
}

.miraclest-consent-option__required {
	flex: 0 0 auto;
	font-size: 0.85rem;
	font-weight: 600;
}

.miraclest-consent-reopen {
	position: fixed;
	z-index: 99997;
	right: 12px;
	bottom: 12px;
	padding: 8px 12px;
	font-size: 0.8rem;
}

body.miraclest-consent-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.miraclest-consent {
		right: 8px;
		bottom: 8px;
		left: 8px;
	}

	.miraclest-consent__body,
	.miraclest-consent-dialog__panel {
		padding: 16px;
	}

	.miraclest-consent__actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.miraclest-consent__button {
		width: 100%;
	}
}
