/* Çerez onayı: banner ve tercih penceresi */
.no55-consent[hidden],
.no55-consent-modal[hidden] {
	display: none !important;
}

.no55-consent {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1300;
	background: #fff;
	border-top: 1px solid #e8e7e4;
	box-shadow: 0 -6px 24px rgba(11, 11, 11, .12);
	font-size: 13px;
	line-height: 1.55;
	color: #222;
}

.no55-consent__inner {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 18px 24px;
}

.no55-consent__title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 600;
	color: #7C150C;
}

.no55-consent__text p {
	margin: 0;
}

.no55-consent__text a,
.no55-consent__link {
	color: #111111;
	font-weight: 600;
	text-decoration: underline;
}

.no55-consent__link {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.no55-consent__actions {
	display: flex;
	flex: none;
	gap: 10px;
}

.no55-consent__btn {
	min-width: 120px;
	padding: 10px 20px;
	border: 1px solid #111111;
	border-radius: 4px;
	background: #111111;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.no55-consent__btn:hover {
	opacity: .9;
}

.no55-consent__btn--ghost {
	background: #fff;
	color: #111111;
}

.no55-consent__btn:focus-visible,
.no55-consent__link:focus-visible {
	outline: 2px solid #7C150C;
	outline-offset: 2px;
}

/* Tercih penceresi */
.no55-consent-modal {
	position: fixed;
	inset: 0;
	z-index: 1400;
	display: grid;
	place-items: center;
	padding: 16px;
}

.no55-consent-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(11, 11, 11, .55);
}

.no55-consent-modal__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	background: #fff;
	border-radius: 6px;
	font-size: 14px;
	color: #222;
}

.no55-consent-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	border-bottom: 1px solid #e8e7e4;
}

.no55-consent-modal__head h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.no55-consent-modal__x {
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: #f5f4f1;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.no55-consent-modal__body {
	padding: 18px 22px;
	overflow-y: auto;
}

.no55-consent-modal__body > p {
	margin: 0 0 16px;
	color: #555;
}

.no55-consent-cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-top: 1px solid #f1efed;
}

.no55-consent-cat__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.no55-consent-cat__text span {
	font-size: 13px;
	color: #666;
}

.no55-consent-modal__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	padding: 16px 22px;
	border-top: 1px solid #e8e7e4;
}

.no55-consent-modal__foot .no55-consent__btn {
	min-width: 0;
}

html.no55-consent-open {
	overflow: hidden;
}

/* Anahtar */
.no55-switch {
	position: relative;
	flex: none;
	display: inline-block;
	width: 44px;
	height: 24px;
}

.no55-switch input {
	position: absolute;
	inset: 0;
	z-index: 1;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.no55-switch input:disabled {
	cursor: not-allowed;
}

.no55-switch__track {
	position: absolute;
	inset: 0;
	border-radius: 24px;
	background: #cdccc9;
	transition: background .15s;
}

.no55-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform .15s;
}

.no55-switch input:checked + .no55-switch__track {
	background: #7C150C;
}

.no55-switch input:checked + .no55-switch__track::after {
	transform: translateX(20px);
}

.no55-switch input:disabled + .no55-switch__track {
	opacity: .6;
}

.no55-switch input:focus-visible + .no55-switch__track {
	outline: 2px solid #111111;
	outline-offset: 2px;
}

@media (max-width: 720px) {
	.no55-consent__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		padding: 14px 16px;
	}

	.no55-consent__actions .no55-consent__btn {
		flex: 1;
		min-width: 0;
	}

	.no55-consent-modal__foot .no55-consent__btn {
		flex: 1 1 100%;
	}
}
