/* Banner: ikon sutunu (box / cloud / bar) — masaustu flex. */
#cc-main .cm__body.wnmcookies-cm-body {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	padding: 0 1.5rem;
	gap: 0.75rem;
}

#cc-main .wnmcookies-cm-icon-col {
	flex: 0 0 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	min-height: 100%;
}

#cc-main .wnmcookies-consent-icon {
	display: block;
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	object-fit: contain;
	background: #30363c29;
	padding: 0.5rem;
	border-radius: 50%;
}

/* Aciklama: scroll yok; metin alana sigar. */
#cc-main .cm__desc,
#cc-main .cm--cloud .cm__desc {
	color: var(--cc-secondary-color);
	font-size: 0.8em;
	line-height: 1.45;
	max-height: none !important;
	overflow: visible !important;
	overflow-x: visible !important;
	overflow-y: visible !important;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding-bottom: 0.5em;
	overscroll-behavior: none;
}

#cc-main .cm__desc::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

/*
 * Mobil (<=640px):
 * - #cc-main sadece ALT BAR (height:auto) — full-viewport shell YOK
 * - Scroll'da JS style yazilmaz → takilma yok
 * - .cm relative; parent fixed bottom
 */
@media screen and (max-width: 640px) {
	#cc-main,
	#cc-main.wnmcookies-mobile-shell {
		--cc-modal-margin: 0px;
		--cc-modal-transition-duration: 0s;
		position: fixed !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		top: auto !important;
		width: 100% !important;
		height: auto !important;
		max-height: none !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: visible !important;
		transform: translateZ(0) !important;
		-webkit-transform: translateZ(0) !important;
		pointer-events: none;
		-webkit-backface-visibility: hidden;
		backface-visibility: hidden;
	}

	#cc-main .cm,
	#cc-main .cm__btn,
	#cc-main .cm__btns,
	#cc-main .pm {
		pointer-events: auto;
	}

	#cc-main .cm-wrapper {
		position: static !important;
		inset: auto !important;
		width: 100% !important;
		height: auto !important;
		pointer-events: none;
		transform: none !important;
	}

	#cc-main .cm.cm--cloud.cm--bottom.cm--center,
	#cc-main .cm.cm--cloud.cm--bottom,
	#cc-main .cm.cm--bottom.cm--center,
	#cc-main .cm.cm--bottom,
	#cc-main .cm {
		position: relative !important;
		bottom: auto !important;
		left: auto !important;
		right: auto !important;
		top: auto !important;
		margin: 0 !important;
		width: 100% !important;
		max-width: none !important;
		border-radius: 0 !important;
		transform: none !important;
		transition: none !important;
		opacity: 1 !important;
		visibility: visible !important;
		padding-bottom: env(safe-area-inset-bottom, 0px);
		-webkit-backface-visibility: hidden;
		backface-visibility: hidden;
		pointer-events: auto;
	}

	.show--consent #cc-main .cc--anim .cm,
	.show--consent #cc-main .cc--anim .cm--bottom,
	.show--consent #cc-main .cc--anim .cm--cloud,
	.show--consent #cc-main .cc--anim .cm-wrapper {
		transform: none !important;
		transition: none !important;
		opacity: 1 !important;
	}

	#cc-main .cm__body.wnmcookies-cm-body {
		display: grid !important;
		grid-template-columns: 44px minmax(0, 1fr) !important;
		grid-template-areas: "icon texts" "btns btns" !important;
		align-items: center !important;
		padding: 0.75rem 1.1rem 0 !important;
		column-gap: 0.65rem !important;
		row-gap: 0 !important;
	}

	#cc-main .wnmcookies-cm-icon-col {
		grid-area: icon;
		flex: none;
		align-self: center;
		min-height: 0;
		padding-top: 0;
	}

	#cc-main .wnmcookies-consent-icon {
		width: 36px;
		height: 36px;
		padding: 0.35rem;
	}

	#cc-main .cm__body.wnmcookies-cm-body > .cm__texts {
		grid-area: texts;
		min-width: 0;
		padding-top: 0 !important;
	}

	#cc-main .cm__body.wnmcookies-cm-body .cm__title {
		padding-left: 0 !important;
		padding-right: 0 !important;
		font-size: 0.85em !important;
		line-height: 1.3 !important;
		word-break: break-word;
		overflow-wrap: anywhere;
	}

	#cc-main .cm__body.wnmcookies-cm-body .cm__desc {
		padding-left: 0 !important;
		padding-right: 0 !important;
		max-height: none !important;
		overflow: visible !important;
		font-size: 0.68em !important;
		line-height: 1.4 !important;
		word-break: break-word;
		overflow-wrap: anywhere;
		hyphens: auto;
	}

	#cc-main .cm__body.wnmcookies-cm-body > .cm__btns {
		grid-area: btns;
		margin-left: -1.1rem;
		margin-right: -1.1rem;
		width: calc(100% + 2.2rem);
		max-width: none !important;
		padding-left: 1.1rem !important;
		padding-right: 1.1rem !important;
	}
}

/* Kabul Et */
#cc-main .cm__btn[data-role="all"],
#cc-main .cm__btn[data-role="all"]:hover,
#cc-main .cm__btn[data-role="all"]:focus,
#cc-main .cm__btn[data-role="all"]:active {
	background: #1d4dd8 !important;
	color: #fff !important;
	border-color: #1d4dd8 !important;
}

/* Reddet */
#cc-main .cm__btn[data-role="necessary"],
#cc-main .cm__btn[data-role="necessary"]:hover,
#cc-main .cm__btn[data-role="necessary"]:focus,
#cc-main .cm__btn[data-role="necessary"]:active {
	background: #fff !important;
	color: #333 !important;
	border: 1px solid #333 !important;
}
