.rowcc-root {
	--rowcc-bg: #fff;
	--rowcc-text: #1f2937;
	--rowcc-primary: #111827;
	--rowcc-primary-text: #fff;
	--rowcc-border: #d1d5db;
	position: relative;
	z-index: 2147483000;
	color: var(--rowcc-text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
}

.rowcc-root [hidden] { display: none !important; }
.rowcc-root *, .rowcc-root *::before, .rowcc-root *::after { box-sizing: border-box; }
.rowcc-modal-open { overflow: hidden; }

.rowcc-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	gap: 28px;
	justify-content: space-between;
	padding: 22px max(24px, calc((100vw - 1200px) / 2));
	background: var(--rowcc-bg);
	border-top: 1px solid var(--rowcc-border);
	box-shadow: 0 -12px 40px rgba(15, 23, 42, .12);
}

.rowcc-position-bottom-left .rowcc-banner,
.rowcc-position-bottom-right .rowcc-banner {
	left: 24px;
	right: auto;
	bottom: 24px;
	width: min(520px, calc(100vw - 48px));
	display: block;
	padding: 24px;
	border: 1px solid var(--rowcc-border);
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(15, 23, 42, .2);
}

.rowcc-position-bottom-right .rowcc-banner { left: auto; right: 24px; }
.rowcc-banner__copy { max-width: 760px; }
.rowcc-banner h2, .rowcc-modal h2, .rowcc-category h3 { margin: 0; color: var(--rowcc-text); font-family: inherit; }
.rowcc-banner h2 { font-size: 20px; line-height: 1.3; }
.rowcc-banner p { margin: 7px 0 0; color: var(--rowcc-text); }
.rowcc-actions { display: flex; flex: 0 0 auto; gap: 10px; align-items: center; }
.rowcc-position-bottom-left .rowcc-actions, .rowcc-position-bottom-right .rowcc-actions { margin-top: 18px; flex-wrap: wrap; }

.rowcc-button {
	appearance: none;
	min-height: 42px;
	margin: 0;
	padding: 9px 17px;
	border: 1px solid var(--rowcc-border);
	border-radius: 7px;
	background: var(--rowcc-bg);
	color: var(--rowcc-text);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.rowcc-button:hover { filter: brightness(.96); }
.rowcc-button:focus-visible, .rowcc-close:focus-visible, .rowcc-floating:focus-visible, .rowcc-switch input:focus-visible + span { outline: 2px solid var(--rowcc-primary); outline: 3px solid color-mix(in srgb, var(--rowcc-primary) 35%, transparent); outline-offset: 2px; }
.rowcc-button--primary { border-color: var(--rowcc-primary); background: var(--rowcc-primary); color: var(--rowcc-primary-text); }
.rowcc-button--link { padding-inline: 6px; border-color: transparent; text-decoration: underline; }
.rowcc-policy-links { display: flex; gap: 8px; margin-top: 8px; font-size: 13px; }
.rowcc-policy-links a { color: var(--rowcc-text); text-decoration: underline; }
.rowcc-settings-link { color: inherit; text-decoration: underline; cursor: pointer; }
.rowcc-footer-link-wrap { padding: 12px 20px; text-align: center; background: var(--rowcc-bg); color: var(--rowcc-text); font-size: 14px; }

.rowcc-overlay {
	position: fixed;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(15, 23, 42, .58);
}

.rowcc-modal {
	width: min(620px, 100%);
	max-height: calc(100vh - 40px);
	overflow: auto;
	padding: 26px;
	background: var(--rowcc-bg);
	border: 1px solid var(--rowcc-border);
	border-radius: 15px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.rowcc-modal__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.rowcc-modal h2 { font-size: 24px; line-height: 1.25; }
.rowcc-close { padding: 0; width: 40px; height: 40px; border: 0; background: transparent; color: var(--rowcc-text); font-size: 32px; line-height: 1; cursor: pointer; }
.rowcc-category { display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 18px 0; border-top: 1px solid var(--rowcc-border); }
.rowcc-category h3, .rowcc-category strong { display: block; font-size: 16px; line-height: 1.35; }
.rowcc-category p, .rowcc-category small { display: block; margin: 5px 0 0; color: var(--rowcc-text); font-size: 14px; line-height: 1.5; opacity: .82; }
.rowcc-category > label:first-child { cursor: pointer; }
.rowcc-always-active { flex: 0 0 auto; color: var(--rowcc-primary); font-size: 13px; font-weight: 700; }
.rowcc-modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

.rowcc-switch { position: relative; flex: 0 0 48px; width: 48px; height: 27px; }
.rowcc-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rowcc-switch span { display: block; width: 48px; height: 27px; border-radius: 20px; background: var(--rowcc-border); cursor: pointer; transition: background .18s ease; }
.rowcc-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); transition: transform .18s ease; }
.rowcc-switch input:checked + span { background: var(--rowcc-primary); }
.rowcc-switch input:checked + span::after { transform: translateX(21px); }

.rowcc-floating {
	position: fixed;
	left: 18px;
	bottom: 18px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 40px;
	padding: 8px 13px;
	border: 1px solid var(--rowcc-border);
	border-radius: 999px;
	background: var(--rowcc-bg);
	color: var(--rowcc-text);
	box-shadow: 0 5px 22px rgba(15, 23, 42, .16);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

@media (max-width: 780px) {
	.rowcc-banner { display: block; padding: 20px; }
	.rowcc-actions { margin-top: 16px; flex-wrap: wrap; }
	.rowcc-actions .rowcc-button { flex: 1 1 130px; }
	.rowcc-position-bottom-left .rowcc-banner, .rowcc-position-bottom-right .rowcc-banner { left: 12px; right: 12px; bottom: 12px; width: auto; }
	.rowcc-modal { padding: 20px; }
	.rowcc-modal__actions .rowcc-button { flex: 1; }
	.rowcc-floating span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
	.rowcc-floating { width: 44px; height: 44px; justify-content: center; padding: 0; border-radius: 50%; }
}

@media (prefers-reduced-motion: reduce) {
	.rowcc-root * { transition: none !important; scroll-behavior: auto !important; }
}
