.rk-cookie {
	--rk-cookie-text: #433228;
	--rk-cookie-muted: #b8b1ac;
	--rk-cookie-line: #ded7d0;
	--rk-cookie-accent: #faa61a;
	position: fixed;
	right: 32px;
	bottom: 32px;
	z-index: 2147483647;
	font-family: 'Montserrat', Arial, sans-serif;
	color: var(--rk-cookie-text);
	box-sizing: border-box;
}

.rk-cookie *,
.rk-cookie *::before,
.rk-cookie *::after {
	box-sizing: border-box;
}

.rk-cookie[hidden],
.rk-cookie [hidden] {
	display: none !important;
}

.rk-cookie button {
	font: inherit;
}

.rk-cookie__compact,
.rk-cookie__settings {
	background: #fff;
	border-radius: 22px;
	box-shadow: 0 2px 8px rgba(67, 50, 40, 0.28);
	overflow: hidden;
}

.rk-cookie__compact {
	width: min(532px, calc(100vw - 32px));
	padding: 18px 20px;
}

.rk-cookie__compact-text h2,
.rk-cookie__intro h2 {
	margin: 0;
	color: var(--rk-cookie-text);
	font-size: 21px;
	line-height: 1.28;
	font-weight: 500;
	letter-spacing: 0;
}

.rk-cookie__compact-text p,
.rk-cookie__intro p,
.rk-cookie__item-panel p {
	margin: 6px 0 0;
	color: var(--rk-cookie-text);
	font-size: 15px;
	line-height: 1.45;
	font-weight: 400;
	letter-spacing: 0;
}

.rk-cookie__compact-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-top: 20px;
}

.rk-cookie__button,
.rk-cookie__settings-link,
.rk-cookie__back,
.rk-cookie__item-head {
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	padding: 0;
}

.rk-cookie__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 36px;
	padding: 8px 21px;
	border-radius: 999px;
	background: var(--rk-cookie-accent);
	color: #433228;
	font-size: 13px;
	line-height: 1.1;
	font-weight: 700;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.rk-cookie__button:hover {
	background: #e53333;
	color: #fcf1eb;
}

.rk-cookie__button:hover svg path {
	fill: currentColor;
}

.rk-cookie__settings-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	font-size: 13px;
	line-height: 1.2;
	font-weight: 700;
	white-space: nowrap;
}

.rk-cookie__settings-link svg {
	width: 20px;
	height: 20px;
}

.rk-cookie__settings {
	width: min(402px, calc(100vw - 32px));
	height: initial;
	display: flex;
	flex-direction: column;
}

.rk-cookie__settings.has-open {
	max-height: calc(100vh - 64px);
}

.rk-cookie__settings-header {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 56px;
	padding: 14px 20px;
	border: 0;
	border-bottom: 1px solid #f3f0ed;
	box-shadow: 0 4px 14px rgba(67, 50, 40, 0.08);
	background: #fff;
	color: #c5bfbb;
	cursor: pointer;
	font-size: 17px;
	line-height: 1.2;
	font-weight: 400;
	flex: 0 0 auto;
	text-align: left;
	width: 100%;
}

.rk-cookie__back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
}

.rk-cookie__settings-body {
	padding: 30px 20px 32px;
	overflow-y: auto;
	min-height: 0;
	scrollbar-width: thin;
	scrollbar-color: #9d9d9d transparent;
}

.rk-cookie__settings-body::-webkit-scrollbar {
	width: 10px;
}

.rk-cookie__settings-body::-webkit-scrollbar-thumb {
	background: #9d9d9d;
	border-radius: 10px;
	border: 3px solid #fff;
}

.rk-cookie__intro {
	margin-bottom: 30px;
}

.rk-cookie__intro h2 {
	margin-bottom: 16px;
	font-size: 24px;
}

.rk-cookie__intro p {
	margin-top: 0;
	font-size: 17px;
	line-height: 1.5;
}

.rk-cookie__item {
	border-top: 1px solid var(--rk-cookie-line);
	padding: 13px 0 15px;
}

.rk-cookie__item:last-child {
	border-bottom: 1px solid var(--rk-cookie-line);
}

.rk-cookie__item-row {
	display: block;
}

.rk-cookie__item-head {
	display: grid;
	grid-template-columns: 14px minmax(0, 1fr);
	align-items: center;
	gap: 9px;
	width: 100%;
	text-align: left;
	font-size: 17px;
	line-height: 1.25;
	font-weight: 400;
	letter-spacing: 0;
}

.rk-cookie__mark {
	position: relative;
	display: block;
	width: 11px;
	height: 11px;
}

.rk-cookie__mark::before,
.rk-cookie__mark::after {
	content: "";
	position: absolute;
	left: 0;
	top: 5px;
	width: 11px;
	height: 1px;
	background: #433228;
}

.rk-cookie__mark::after {
	transform: rotate(90deg);
}

.rk-cookie__item.is-open .rk-cookie__mark::after {
	opacity: 0;
}

.rk-cookie__state {
	margin: 3px 0 0 23px;
	color: var(--rk-cookie-muted);
	font-size: 11px;
	line-height: 1.3;
	font-weight: 400;
}

.rk-cookie__state-control {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 3px 0 0 23px;
}

.rk-cookie__state-control .rk-cookie__state {
	margin: 0;
}

.rk-cookie__state_allowed,
.rk-cookie__state.is-allowed {
	color: #8295ff;
}

.rk-cookie__item-panel {
	display: none;
	margin-top: 17px;
	padding-left: 23px;
}

.rk-cookie__item.is-open .rk-cookie__item-panel {
	display: block;
}

.rk-cookie__item-panel p {
	margin: 0;
	font-size: 16px;
	line-height: 1.42;
}

.rk-cookie__switch {
	position: relative;
	display: inline-flex;
	width: 48px;
	height: 24px;
	cursor: pointer;
}

.rk-cookie__switch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.rk-cookie__switch span {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #bdbdbd;
	transition: background-color 0.2s ease;
}

.rk-cookie__switch span::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 2px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.rk-cookie__switch input:checked + span {
	background: #b8c2ff;
}

.rk-cookie__switch input:checked + span::before {
	background: #2f63ff;
	transform: translateX(24px);
}

.rk-cookie__settings-footer {
	flex: 0 0 auto;
	padding: 16px 20px;
	background: #fff;
	box-shadow: 0 -4px 14px rgba(67, 50, 40, 0.08);
}

.rk-cookie__settings-footer .rk-cookie__button {
	min-width: 90px;
	font-size: 14px;
}

@media (max-width: 640px) {
	.rk-cookie {
		right: 16px;
		bottom: 16px;
		left: 16px;
	}

	.rk-cookie__compact,
	.rk-cookie__settings {
		width: 100%;
	}

	.rk-cookie__compact-actions {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}

	.rk-cookie__settings {
		height: initial;
	}

	.rk-cookie__settings.has-open {
		max-height: calc(100vh - 32px);
	}

	.rk-cookie button {
    width: 100%;
    justify-content: center;
	font-size: 12px;
    min-height: 16px;
    padding: 4px 10px;
  }

  .rk-cookie__compact-text h2, .rk-cookie__intro h2 {
    font-size: 12px;
  }
  .rk-cookie__compact-text p, .rk-cookie__intro p, .rk-cookie__item-panel p {
	font-size: 12px;
  }

  .rk-cookie__compact-actions {
	margin-top: 10px;
  }
  .rk-cookie__button svg {
	width: 14px;
  }
  .rk-cookie__settings-link svg {
	width: 12px;
  }
}
