/* KVKK Cookie Manager - Original Slide-Over Drawer Styles */
.kcm-banner[hidden],
.kcm-backdrop[hidden],
.kcm-reopen-btn[hidden],
.kcm-acc-content[hidden] {
	display: none !important;
}

/* Floating Bottom Banner */
.kcm-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 999990;
	max-width: 1180px;
	margin: 0 auto;
	background: var(--kcm-bg, #0f2942);
	color: var(--kcm-text, #ffffff);
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
	font-size: 13.5px;
	line-height: 1.55;
}

.kcm-banner-inner {
	padding: 16px 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
}

.kcm-banner-text {
	flex: 1 1 auto;
	color: var(--kcm-text, #ffffff);
}

.kcm-inline-link {
	color: #7dd3fc;
	text-decoration: underline;
	text-underline-offset: 2px;
	font-weight: 600;
	cursor: pointer;
}

.kcm-inline-link:hover {
	color: #ffffff;
}

.kcm-btn-link {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
}

.kcm-banner-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.kcm-settings-trigger {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 8px;
	padding: 9px 16px;
	color: #ffffff;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.kcm-settings-trigger:hover {
	background: rgba(255, 255, 255, 0.2);
}

.kcm-btn-primary,
.kcm-btn-outline {
	border-radius: 8px;
	padding: 10px 18px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.3;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.kcm-btn-primary {
	background: var(--kcm-accent, #0077b6);
	color: #ffffff;
	border: 1px solid transparent;
}

.kcm-btn-primary:hover {
	background: var(--kcm-accent-hover, #005f92);
}

.kcm-btn-outline {
	background: #ffffff;
	color: var(--kcm-accent, #0077b6);
	border: 1px solid var(--kcm-accent, #0077b6);
}

.kcm-btn-outline:hover {
	background: var(--kcm-accent, #0077b6);
	color: #ffffff;
}

/* Floating Reopen Button */
.kcm-reopen-btn {
	position: fixed;
	bottom: 20px;
	z-index: 999985;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	border: 0;
	background: var(--kcm-bg, #0f2942);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28);
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.kcm-reopen-btn:hover {
	background: var(--kcm-accent, #0077b6);
	transform: translateY(-2px);
}

.kcm-reopen-left {
	left: 20px;
}

.kcm-reopen-right {
	right: 75px;
}

/* Centered Modern Popup Modal */
@keyframes kcmFadeScale {
	from {
		opacity: 0;
		transform: scale(0.96);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

.kcm-backdrop {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(15, 23, 42, 0.54);
	backdrop-filter: blur(2px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.kcm-modal {
	width: 50%;
	max-height: 88vh;
	background: #f8fafc;
	color: #1e293b;
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
	animation: kcmFadeScale 0.18s ease-out;
	font-size: 13.5px;
	line-height: 1.5;
}

.kcm-modal-header {
	background: var(--kcm-bg, #0f2942);
	color: #ffffff;
	padding: 18px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.kcm-modal-heading-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.kcm-modal-icon {
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.14);
	display: flex;
	align-items: center;
	justify-content: center;
}

.kcm-modal-title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: #ffffff;
}

.kcm-close-btn {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.12);
	border: 0;
	font-size: 22px;
	line-height: 1;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.kcm-close-btn:hover {
	background: rgba(255, 255, 255, 0.24);
}

/* Stacked Category Cards */
.kcm-modal-body {
	padding: 16px;
	overflow-y: auto;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.kcm-cat-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 15px 16px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.kcm-cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.kcm-cat-title {
	margin: 0;
	font-size: 14.5px;
	font-weight: 700;
	color: #0f172a;
}

.kcm-always-active {
	font-size: 11.5px;
	font-weight: 600;
	color: #0f766e;
	background: #ccfbf1;
	padding: 3px 9px;
	border-radius: 20px;
	white-space: nowrap;
}

.kcm-cat-desc {
	margin: 0 0 12px;
	font-size: 12.8px;
	color: #475569;
}

/* Toggle Switch */
.kcm-toggle-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.kcm-switch {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 22px;
}

.kcm-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.kcm-slider {
	position: absolute;
	inset: 0;
	background: #cbd5e1;
	border-radius: 22px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.kcm-slider::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease;
}

.kcm-switch input:checked+.kcm-slider {
	background: var(--kcm-accent, #0077b6);
}

.kcm-switch input:checked+.kcm-slider::before {
	transform: translateX(20px);
}

.kcm-toggle-status {
	font-size: 11.5px;
	font-weight: 600;
	color: #64748b;
}

.kcm-toggle-status.is-on {
	color: var(--kcm-accent, #0077b6);
}

/* Accordion & Cookie Items */
.kcm-acc-trigger {
	width: 100%;
	background: #f1f5f9;
	border: 0;
	border-radius: 7px;
	padding: 8px 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12.5px;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
}

.kcm-acc-trigger[aria-expanded="true"] {
	background: #e0f2fe;
	color: #0369a1;
}

.kcm-acc-content {
	padding-top: 8px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.kcm-cookie-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 12px;
}

.kcm-cookie-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 3px;
}

.kcm-cookie-name {
	color: #0f172a;
	word-break: break-word;
}

.kcm-cookie-dur {
	font-size: 11px;
	color: var(--kcm-accent, #0077b6);
	font-weight: 600;
	flex-shrink: 0;
}

.kcm-cookie-provider {
	color: #64748b;
	font-size: 11.5px;
	margin-bottom: 4px;
}

.kcm-cookie-purpose {
	color: #334155;
	line-height: 1.45;
}

/* Drawer Footer */
.kcm-modal-footer {
	background: #ffffff;
	padding: 14px 18px;
	border-top: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.kcm-footer-brand {
	font-size: 12px;
	color: #64748b;
	text-align: center;
}

.kcm-footer-btns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.kcm-consent-id-bar {
	background: #f1f5f9;
	border-top: 1px solid #e2e8f0;
	padding: 8px 14px;
	text-align: center;
	font-size: 11px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color: #475569;
	word-break: break-all;
}

@media (max-width: 767px) {
	.kcm-banner {
		left: 10px;
		right: 10px;
		bottom: 10px;
	}

	.kcm-banner-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding: 14px 16px;
	}

	.kcm-banner-actions {
		width: 100%;
		justify-content: flex-end;
	}

	.kcm-reopen-right {
		right: 68px;
	}

	.kcm-modal {
		width: 100%;
	}

	.kcm-cat-title {
		font-size: 18px !important;
	}

	.kcm-cookie-head {
		flex-direction: column;
	}
}