/* FSF Modal layer — tüm .fsf-modal bileşenleri için tek kaynak */
#fsf-modal-root {
	position: relative;
	z-index: 1055;
}

.fsf-modal {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1055;
	display: none;
	width: 100%;
	height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	outline: 0;
}

.fsf-modal.show {
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.fsf-modal .modal-dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	margin: 0;
	flex-shrink: 0;
}

.fsf-modal .modal-dialog.modal-lg {
	max-width: 720px;
}

.fsf-modal .modal-dialog.modal-sm {
	max-width: 400px;
}

.fsf-modal .modal-content {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-height: calc(100vh - 2rem);
	background-color: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 0.75rem;
	box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
	overflow: hidden;
}

.fsf-modal .modal-header,
.fsf-modal .modal-body,
.fsf-modal .modal-footer {
	padding: 1rem 1.25rem;
}

.fsf-modal .modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.fsf-modal .modal-body {
	overflow-y: auto;
}

.fsf-modal .modal-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.fsf-modal .modal-title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 600;
}

.fsf-modal-backdrop,
.modal-backdrop.fsf-modal-backdrop {
	z-index: 1050 !important;
}

body.modal-open {
	overflow: hidden;
}

/* Form elemanları (adres modal vb.) */
.fsf-modal .fsf-modal-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.fsf-modal .fsf-modal-grid-col {
	flex: 1 1 calc(50% - 0.5rem);
	min-width: 200px;
}

.fsf-modal .form-group {
	margin-bottom: 1rem;
}

.fsf-modal label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
}

.fsf-modal .form-control,
.fsf-modal .form-select,
.fsf-modal select,
.fsf-modal textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #e5e5e5;
	border-radius: 0.75rem;
	font-size: 0.875rem;
	outline: none;
	background: #fff;
}

.fsf-modal .form-control:focus,
.fsf-modal .form-select:focus,
.fsf-modal select:focus,
.fsf-modal textarea:focus {
	border-color: #000;
}

.fsf-modal .fsf-modal-btn,
.fsf-modal .btn {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: 0.5rem;
	border: 1px solid transparent;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

/* Pixio tema .btn::after hover efekti modal içinde tüm alanı kaplayıp tıklamaları yutuyor */
.fsf-modal .fsf-modal-btn::after,
.fsf-modal .btn::after {
	content: none !important;
	display: none !important;
}

.fsf-modal .fsf-modal-btn-default,
.fsf-modal .btn-default {
	background: #fff;
	border-color: rgba(0, 0, 0, 0.1);
	color: #333;
}

.fsf-modal .fsf-modal-btn-primary,
.fsf-modal .btn-primary {
	color: #fff;
	background-color: #000;
	border-color: #000;
}

.fsf-modal .fsf-modal-btn-success,
.fsf-modal .btn-success {
	color: #fff;
	background-color: #198754;
	border-color: #198754;
}

.fsf-modal .fsf-modal-btn[disabled],
.fsf-modal .btn[disabled] {
	opacity: 0.65;
	cursor: not-allowed;
	pointer-events: none;
}

.fsf-modal .btn-close {
	border: 0;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.6;
}

.fsf-modal .btn-close:hover {
	opacity: 1;
}

.fsf-modal .text-muted-danger {
	color: #dc3545;
	font-size: 0.8125rem;
}

/* Onay penceresi */
.fsf-confirm-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background-color: rgba(0, 0, 0, 0.5);
}

.fsf-confirm-dialog {
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 0.75rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
	padding: 1.5rem;
}

.fsf-confirm-message {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: #333;
	margin-bottom: 1.25rem;
}

.fsf-confirm-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem;
}

.fsf-confirm-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: 0.5rem;
	border: 1px solid transparent;
	cursor: pointer;
}

.fsf-confirm-yes {
	color: #fff;
	background-color: #000;
	border-color: #000;
}

.fsf-confirm-no {
	color: #fff;
	background-color: #dc3545;
	border-color: #dc3545;
}
