:root {
	--mmcc-accent: #1f6feb;
	--mmcc-bg: #ffffff;
	--mmcc-text: #172033;
	--mmcc-muted: #5b667a;
	--mmcc-border: #d8dde7;
	--mmcc-shadow: 0 14px 34px rgba(23, 32, 51, 0.16);
}

.mmcc-banner,
.mmcc-modal,
.mmcc-floating-button {
	box-sizing: border-box;
	font-family: inherit;
}

.mmcc-banner *,
.mmcc-modal *,
.mmcc-floating-button * {
	box-sizing: border-box;
}

.mmcc-banner {
	position: fixed;
	right: 14px;
	bottom: 14px;
	left: 14px;
	z-index: 999998;
	color: var(--mmcc-text);
}

.mmcc-banner__content {
	max-width: 980px;
	margin: 0 auto;
	padding: 14px;
	background: var(--mmcc-bg);
	border: 1px solid var(--mmcc-border);
	border-radius: 8px;
	box-shadow: var(--mmcc-shadow);
	display: flex;
	gap: 14px;
	align-items: center;
	justify-content: space-between;
}

.mmcc-banner__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
}

.mmcc-banner__actions,
.mmcc-modal__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
}

.mmcc-button {
	appearance: none;
	border: 1px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	min-height: 36px;
	padding: 8px 11px;
	text-align: center;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.mmcc-button:focus-visible,
.mmcc-modal__close:focus-visible,
.mmcc-floating-button:focus-visible {
	outline: 3px solid rgba(31, 111, 235, 0.35);
	outline-offset: 2px;
}

.mmcc-button--primary {
	background: var(--mmcc-accent);
	color: #ffffff;
}

.mmcc-button--primary:hover {
	filter: brightness(0.94);
}

.mmcc-button--secondary {
	background: #172033;
	color: #ffffff;
}

.mmcc-button--ghost {
	background: #ffffff;
	border-color: var(--mmcc-border);
	color: var(--mmcc-text);
}

.mmcc-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	color: var(--mmcc-text);
}

.mmcc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.56);
}

.mmcc-modal__dialog {
	position: relative;
	width: min(640px, calc(100% - 28px));
	max-height: calc(100dvh - 32px);
	margin: 16px auto;
	padding: 18px;
	overflow: auto;
	background: var(--mmcc-bg);
	border-radius: 8px;
	box-shadow: var(--mmcc-shadow);
}

.mmcc-modal__header {
	display: flex;
	gap: 12px;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 14px;
}

.mmcc-modal__header h2,
.mmcc-category h3 {
	margin: 0 0 6px;
	line-height: 1.2;
}

.mmcc-modal__header h2 {
	font-size: 20px;
}

.mmcc-category h3 {
	font-size: 15px;
}

.mmcc-modal__header p,
.mmcc-category p {
	margin: 0;
	color: var(--mmcc-muted);
	font-size: 13px;
	line-height: 1.45;
}

.mmcc-modal__close {
	width: 34px;
	height: 34px;
	border: 1px solid var(--mmcc-border);
	border-radius: 8px;
	background: #ffffff;
	color: var(--mmcc-text);
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
}

.mmcc-categories {
	display: grid;
	gap: 10px;
}

.mmcc-category {
	padding: 12px;
	border: 1px solid var(--mmcc-border);
	border-radius: 8px;
	background: #ffffff;
}

.mmcc-category__header {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	justify-content: space-between;
}

.mmcc-switch {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	white-space: nowrap;
	font-size: 13px;
	font-weight: 700;
}

.mmcc-switch input {
	width: 18px;
	height: 18px;
	accent-color: var(--mmcc-accent);
}

.mmcc-cookie-list {
	display: grid;
	gap: 8px;
	margin-top: 12px;
}

.mmcc-cookie {
	padding: 8px;
	border-radius: 8px;
	background: #f6f8fb;
	color: var(--mmcc-text);
}

.mmcc-cookie strong {
	display: block;
	margin-bottom: 3px;
	font-size: 13px;
}

.mmcc-cookie span {
	display: block;
	color: var(--mmcc-muted);
	font-size: 13px;
	line-height: 1.4;
}

.mmcc-cookie-list:empty::before {
	content: "Inga cookies upptäckta just nu.";
	display: block;
	color: var(--mmcc-muted);
	font-size: 13px;
}

.mmcc-modal__links {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin: 16px 0;
}

.mmcc-modal__links a {
	color: var(--mmcc-accent);
	font-weight: 700;
}

.mmcc-floating-button {
	position: fixed;
	right: 14px;
	bottom: 14px;
	z-index: 999997;
	max-width: calc(100vw - 32px);
	padding: 9px 12px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 8px;
	background: var(--mmcc-accent);
	color: #ffffff;
	box-shadow: 0 10px 26px rgba(23, 32, 51, 0.22);
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
}

body.mmcc-modal-open {
	overflow: hidden;
}

@media (max-width: 760px) {
	.mmcc-banner__content {
		align-items: stretch;
		flex-direction: column;
	}

	.mmcc-banner__actions,
	.mmcc-modal__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.mmcc-button {
		width: 100%;
	}

	.mmcc-category__header {
		flex-direction: column;
	}

	.mmcc-switch {
		width: 100%;
		justify-content: space-between;
	}
}
