/* O016 Hesap Silme (KVKK/GDPR) — S022 Hesap Ayarları + S023 Hesap Silme Onay Modalı. */

.kf-account,
.kf-delreq {
	box-sizing: border-box;
	max-width: 100%;
}
.kf-account *,
.kf-account *::before,
.kf-account *::after,
.kf-delreq * {
	box-sizing: border-box;
}
.kf-account [hidden],
.kf-delreq [hidden] {
	display: none !important;
}
.kf-account--admin {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid #c3c4c7;
}
.kf-account__title:focus,
.kf-account__notice:focus,
.kf-account__request:focus,
.kf-account-modal__title:focus,
.kf-delreq__title:focus,
.kf-account__done:focus {
	outline: none;
}
.kf-account__title:focus-visible,
.kf-delreq__title:focus-visible,
.kf-account__request:focus-visible,
.kf-account__done:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}
.kf-account__section {
	max-width: 46rem;
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #fff;
}
.kf-account__section > :first-child {
	margin-top: 0;
}
.kf-account__section > :last-child {
	margin-bottom: 0;
}
.kf-account__section--danger {
	border-color: #e6a5a6;
	border-left: 4px solid #d63638;
}
.kf-account__list {
	margin: 0 0 1rem 1.25rem;
	list-style: disc;
}
.kf-account__list li {
	margin: .25rem 0;
}
.kf-account__request {
	max-width: 46rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem 1rem;
	padding: .75rem 1rem;
}
.kf-account__request p {
	flex: 1 1 18rem;
	margin: 0;
	font-weight: 600;
}
.kf-account__request form {
	margin: 0;
}
.kf-account__done {
	padding: .75rem 1rem;
	border-left: 4px solid #00a32a;
	background: #edfaef;
}

/* Ön yüz bildirimleri */
.kf-account--front .notice,
.kf-account-modal .notice {
	margin: 0 0 1rem;
	padding: .6rem .9rem;
	border-left: 4px solid #2271b1;
	background: #f0f6fc;
}
.kf-account--front .notice p,
.kf-account-modal .notice p {
	margin: 0;
}
.kf-account--front .notice-success {
	border-color: #00a32a;
	background: #edfaef;
}
.kf-account--front .notice-error,
.kf-account-modal .notice-error {
	border-color: #d63638;
	background: #fcf0f1;
}
.kf-account--front .notice-warning {
	border-color: #dba617;
	background: #fcf9e8;
}
.kf-account-modal .notice-success {
	border-color: #00a32a;
	background: #edfaef;
}

/* Tehlikeli düğme (B035 / B018) */
.kf-account .kf-account__danger,
.kf-delreq .kf-account__danger {
	background: #d63638;
	border-color: #d63638;
	color: #fff;
}
.kf-account .kf-account__danger:hover,
.kf-account .kf-account__danger:focus,
.kf-delreq .kf-account__danger:hover,
.kf-delreq .kf-account__danger:focus {
	background: #b32d2e;
	border-color: #b32d2e;
	color: #fff;
}
.kf-account a.kf-button {
	text-decoration: none;
}
.kf-account .button:focus-visible,
.kf-account .kf-button:focus-visible,
.kf-account input:focus-visible,
.kf-account textarea:focus-visible,
.kf-delreq .button:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}
.kf-account .button.is-loading::after,
.kf-delreq .button.is-loading::after {
	content: "";
	display: inline-block;
	width: .9em;
	height: .9em;
	margin-left: .4em;
	vertical-align: -.1em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: kf-spin .7s linear infinite;
}

/* S023 modal */
.kf-account-modal {
	width: min(34rem, calc(100vw - 2rem));
	max-height: calc(100vh - 2rem);
	max-height: calc(100dvh - 2rem);
	overflow: auto;
	padding: 1.25rem 1.5rem;
	border: 0;
	border-top: 4px solid #d63638;
	border-radius: 8px;
	background: #fff;
	color: #1d2327;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}
.kf-account-modal::backdrop {
	background: rgba(0, 0, 0, .55);
}
/* JS yoksa (open, modal değil) sayfada satır içi gösterilir. */
.kf-account-modal[open]:not(:modal) {
	position: static;
	display: block;
	width: auto;
	max-width: 46rem;
	margin: 0 0 1.5rem;
	box-shadow: none;
	border: 1px solid #e6a5a6;
	border-top: 4px solid #d63638;
}
.kf-account-modal__title {
	margin: 0 0 .75rem;
	font-size: 1.25rem;
	line-height: 1.35;
}
.kf-account-modal__field label {
	display: block;
	font-weight: 600;
	margin-bottom: .25rem;
}
.kf-account-modal__field input,
.kf-account-modal__field textarea {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: .4rem .6rem;
	font: inherit;
}
.kf-account-modal__field .description {
	display: block;
	margin-top: .2rem;
	font-size: .875em;
	color: #50575e;
}
.kf-account-modal__export {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	padding: .6rem .75rem;
	border-radius: 4px;
	background: #f6f7f7;
}
.kf-account-modal__check {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: .5rem;
}
.kf-account-modal__check input {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	margin: .15rem 0 0;
}
.kf-account-modal__check label {
	flex: 1 1 0;
	min-width: 0;
}
.kf-account-modal__check .kf-account__error {
	flex-basis: 100%;
}
.kf-account__error {
	display: block;
	margin-top: .2rem;
	color: #d63638;
}
.kf-account [aria-invalid="true"] {
	border-color: #d63638;
}
.kf-account-modal__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: .5rem;
	margin: 1rem 0 0;
}
.kf-account-modal__actions .button,
.kf-account-modal__actions .kf-button,
.kf-account-modal__export .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
}

/* S022 yönetici talepleri */
.kf-delreq {
	margin: 2rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid #c3c4c7;
}
.kf-delreq__filters {
	float: none;
	margin: 0 0 .75rem;
}
.kf-delreq__table {
	clear: both;
}
.kf-delreq__table tbody th {
	font-weight: 600;
}
.kf-delreq__hint {
	display: block;
	margin-top: .2rem;
	font-weight: normal;
	font-size: .85em;
	color: #8a5a00;
}
.kf-delreq__status {
	display: inline-block;
	padding: 0 .5rem;
	border-radius: 999px;
	font-size: .85em;
	line-height: 1.7;
	background: #f0f0f1;
	color: #3c434a;
}
.kf-delreq__status--scheduled,
.kf-delreq__status--review {
	background: #fcf9e8;
	color: #6b4b00;
}
.kf-delreq__status--completed {
	background: #fcf0f1;
	color: #8a2424;
}
.kf-delreq__status--failed {
	background: #d63638;
	color: #fff;
}
.kf-delreq__reason {
	max-width: 22rem;
	overflow-wrap: anywhere;
}
.kf-delreq__actions {
	white-space: nowrap;
}
.kf-delreq__actions .button {
	margin: 0 .25rem .25rem 0;
}
.kf-delreq__pages {
	display: flex;
	gap: .35rem;
	margin: 1rem 0;
}

@media (prefers-reduced-motion: reduce) {
	.kf-account .button.is-loading::after,
	.kf-delreq .button.is-loading::after {
		animation: none;
	}
}

/* Mobil */
@media (max-width: 782px) {
	.kf-account__section .button,
	.kf-account__section .kf-button,
	.kf-account__request .button,
	.kf-account__request .kf-button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 44px;
	}
	.kf-account__request form {
		width: 100%;
	}
	.kf-account-modal:modal {
		width: 100vw;
		max-width: 100vw;
		max-height: 92dvh;
		margin: auto 0 0;
		border-radius: 12px 12px 0 0;
		padding: 1rem;
	}
	.kf-account-modal__actions {
		flex-direction: column-reverse;
	}
	.kf-account-modal__actions .button,
	.kf-account-modal__actions .kf-button {
		width: 100%;
	}
	.kf-delreq__table thead {
		display: none;
	}
	.kf-delreq__table,
	.kf-delreq__table tbody,
	.kf-delreq__table tr,
	.kf-delreq__table td,
	.kf-delreq__table tbody th {
		display: block;
		width: 100% !important;
	}
	.kf-delreq__table tr[data-id] {
		padding: .75rem .5rem;
		border-bottom: 1px solid #dcdcde;
	}
	.kf-delreq .kf-delreq__table tr[data-id] > * {
		padding: .15rem 0 !important;
	}
	.kf-delreq__table td[data-label]::before {
		content: attr(data-label);
		display: block;
		font-size: .8em;
		font-weight: 600;
		color: #646970;
	}
	.kf-delreq__actions .button {
		min-height: 44px;
		flex: 1 1 8rem;
	}
	.kf-delreq__actions {
		display: flex !important;
		flex-wrap: wrap;
		gap: .5rem;
	}
}
