/* Öznet Elektrik – Minimal çerez onay UI */

:root {
	--oznet-cookie-bg: rgba(22, 32, 52, 0.94);
	--oznet-cookie-primary: #243454;
	--oznet-cookie-accent: #0d71b9;
	--oznet-cookie-muted: #8b95a7;
	--oznet-cookie-border: #e8ecf2;
}

/* ── Banner ── */
.oznet-cookie-banner {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 10050;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: min(520px, calc(100% - 32px));
	width: auto;
	padding: 8px 10px 8px 12px;
	border-radius: 10px;
	background: var(--oznet-cookie-bg);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #fff;
	box-shadow: 0 4px 20px rgba(10, 16, 28, 0.18);
	font-family: "Roboto", sans-serif;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.oznet-cookie-banner.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.oznet-cookie-banner__text {
	margin: 0;
	flex: 1;
	min-width: 0;
	font-size: 11.5px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.9);
}

.oznet-cookie-banner__text a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
	font-weight: 500;
	white-space: nowrap;
}

.oznet-cookie-banner__actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.oznet-cookie-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	flex: 0 0 auto;
	min-height: 0;
	height: 26px;
	padding: 0 10px;
	border: none;
	border-radius: 6px;
	font-family: "Roboto", sans-serif;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.01em;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.18s ease, opacity 0.18s ease;
}

.oznet-cookie-btn:hover {
	opacity: 0.92;
}

.oznet-cookie-btn--settings {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.16);
}

.oznet-cookie-btn--settings:hover {
	background: rgba(255, 255, 255, 0.14);
}

.oznet-cookie-btn--accept {
	background: #fff;
	color: var(--oznet-cookie-primary);
}

.oznet-cookie-btn--accept:hover {
	background: #f0f3f7;
}

.oznet-cookie-btn__icon {
	display: inline-flex;
	width: 12px;
	height: 12px;
}

.oznet-cookie-btn__icon svg {
	width: 100%;
	height: 100%;
}

/* ── Modal ── */
.oznet-cookie-modal {
	position: fixed;
	inset: 0;
	z-index: 10060;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0;
	background: rgba(8, 14, 24, 0.45);
	backdrop-filter: blur(2px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s ease, visibility 0.22s ease;
}

.oznet-cookie-modal.is-visible {
	opacity: 1;
	visibility: visible;
}

.oznet-cookie-modal__dialog {
	width: min(400px, 100%);
	max-height: min(82vh, 520px);
	overflow: auto;
	background: #fff;
	border-radius: 14px 14px 0 0;
	box-shadow: 0 -4px 32px rgba(15, 22, 36, 0.16);
	padding: 16px 16px 14px;
	transform: translateY(100%);
	transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

.oznet-cookie-modal.is-visible .oznet-cookie-modal__dialog {
	transform: translateY(0);
}

.oznet-cookie-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.oznet-cookie-modal__title {
	margin: 0;
	font-family: "Chivo", sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #1a2438;
}

.oznet-cookie-modal__close {
	width: 26px;
	height: 26px;
	border: none;
	border-radius: 6px;
	background: #f2f4f7;
	color: #6b7689;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	flex-shrink: 0;
}

.oznet-cookie-modal__close:hover {
	background: #e8ecf2;
	color: #1a2438;
}

.oznet-cookie-modal__intro {
	margin: 0 0 4px;
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--oznet-cookie-muted);
}

.oznet-cookie-modal__policy-link {
	display: inline-block;
	margin-bottom: 10px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--oznet-cookie-accent);
	text-decoration: none;
}

.oznet-cookie-modal__policy-link:hover {
	text-decoration: underline;
}

.oznet-cookie-categories {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.oznet-cookie-category {
	border: 1px solid var(--oznet-cookie-border);
	border-radius: 8px;
	padding: 8px 10px;
	background: #fafbfc;
}

.oznet-cookie-category.is-required {
	border-color: rgba(13, 113, 185, 0.3);
	background: rgba(13, 113, 185, 0.04);
}

.oznet-cookie-category__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.oznet-cookie-category__head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px;
	min-width: 0;
}

.oznet-cookie-category__title {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	color: #1a2438;
	line-height: 1.3;
}

.oznet-cookie-category__badge {
	display: inline-block;
	padding: 1px 5px;
	border-radius: 3px;
	background: var(--oznet-cookie-accent);
	color: #fff;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.4;
}

.oznet-cookie-category__desc {
	margin: 3px 0 0;
	font-size: 10.5px;
	line-height: 1.4;
	color: var(--oznet-cookie-muted);
}

.oznet-cookie-switch {
	position: relative;
	flex: 0 0 32px;
	width: 32px;
	height: 18px;
}

.oznet-cookie-switch input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}

.oznet-cookie-switch__slider {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #d0d6e0;
	transition: background 0.2s ease;
	cursor: pointer;
}

.oznet-cookie-switch__slider::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 2px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
	transition: transform 0.2s ease;
}

.oznet-cookie-switch input:checked + .oznet-cookie-switch__slider {
	background: var(--oznet-cookie-accent);
}

.oznet-cookie-switch input:checked + .oznet-cookie-switch__slider::before {
	transform: translateX(14px);
}

.oznet-cookie-switch input:disabled + .oznet-cookie-switch__slider {
	opacity: 0.7;
	cursor: not-allowed;
}

.oznet-cookie-modal__footer {
	display: flex;
	justify-content: flex-end;
	gap: 6px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--oznet-cookie-border);
}

.oznet-cookie-modal__footer .oznet-cookie-btn {
	height: 28px;
	padding: 0 12px;
	font-size: 11px;
}

.oznet-cookie-btn--reject {
	background: #1a2438;
	color: #fff;
}

.oznet-cookie-btn--save {
	background: var(--oznet-cookie-primary);
	color: #fff;
}

body.oznet-cookie-modal-open {
	overflow: hidden;
}

/* ── Yeniden aç butonu ── */
.oznet-cookie-reopen {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 10040;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: var(--oznet-cookie-bg);
	backdrop-filter: blur(10px);
	color: #fff;
	box-shadow: 0 3px 12px rgba(10, 16, 28, 0.18);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: scale(0.9);
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.oznet-cookie-reopen.is-visible {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
}

.oznet-cookie-reopen:hover {
	transform: scale(1.05);
}

.oznet-cookie-reopen svg {
	width: 14px;
	height: 14px;
}

@media (min-width: 768px) {
	.oznet-cookie-modal {
		align-items: center;
		padding: 20px;
	}

	.oznet-cookie-modal__dialog {
		border-radius: 12px;
		transform: translateY(10px) scale(0.98);
	}

	.oznet-cookie-modal.is-visible .oznet-cookie-modal__dialog {
		transform: translateY(0) scale(1);
	}
}

@media (max-width: 480px) {
	.oznet-cookie-banner,
	.oznet-cookie-reopen {
		left: 10px;
		bottom: 68px;
	}

	.oznet-cookie-banner {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		width: calc(100% - 20px);
		max-width: none;
		padding: 10px 12px;
	}

	.oznet-cookie-banner__actions {
		justify-content: flex-end;
	}
}
