/* Makesy — ürün seçenekleri modalı (kf-options-modal) */

body.theme-makesy .kf-options-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.22s ease, visibility 0.22s ease;
}

body.theme-makesy .kf-options-modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

body.theme-makesy .kf-options-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(45, 28, 22, 0.45);
	backdrop-filter: blur(3px);
}

body.theme-makesy .kf-options-modal__dialog {
	position: relative;
	width: min(480px, 100%);
	max-height: min(90vh, 680px);
	overflow: auto;
	background: var(--mk-bg, #fff);
	border-radius: 14px;
	box-shadow: 0 24px 56px rgba(45, 28, 22, 0.18);
	padding: 18px 18px 16px;
	outline: none;
	color: var(--mk-brown, #502c1e);
	font-family: var(--mk-font);
}

body.theme-makesy .kf-options-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 1px solid var(--mk-border, #e5e0db);
	border-radius: 50%;
	background: #fff;
	color: var(--mk-brown, #502c1e);
	cursor: pointer;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-size: 22px;
	line-height: 1;
}

body.theme-makesy .kf-options-modal__close i {
	display: none;
}

body.theme-makesy .kf-options-modal__close::before {
	content: "×";
}

body.theme-makesy .kf-options-modal__product {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 14px;
	padding-right: 40px;
}

body.theme-makesy .kf-options-modal__image {
	width: 72px;
	height: 90px;
	object-fit: cover;
	border-radius: 8px;
	background: #f0ebe6;
	flex-shrink: 0;
}

body.theme-makesy .kf-options-modal__title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--mk-brown, #502c1e);
}

body.theme-makesy .kf-options-modal__link {
	font-size: 12px;
	color: var(--mk-muted, #5c4035);
	text-decoration: underline;
	text-underline-offset: 2px;
}

body.theme-makesy .kf-options-modal__fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 4px;
}

body.theme-makesy .kf-options-modal__fields .kf-product-option-field,
body.theme-makesy .kf-options-modal__fields .mk-pdp-option-field {
	margin: 0;
}

body.theme-makesy .kf-options-modal__fields .kf-product-field__label,
body.theme-makesy .kf-options-modal__fields .mk-pdp-option__label,
body.theme-makesy .kf-options-modal__fields label.admin-label {
	display: block;
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--mk-brown, #502c1e);
}

body.theme-makesy .kf-options-modal__fields .kf-product-option-list,
body.theme-makesy .kf-options-modal__fields .mk-pdp-option__values,
body.theme-makesy .kf-options-modal__fields .size-list,
body.theme-makesy .kf-options-modal__fields .color-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.theme-makesy .kf-options-modal__fields .kf-product-option-item {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: stretch;
	max-width: 100%;
}

body.theme-makesy .kf-options-modal__fields .kf-product-option-btn {
	width: auto !important;
	height: auto !important;
	min-height: 40px;
	padding: 6px 12px;
	border: 1px solid var(--mk-border, #e5e0db);
	border-radius: 4px;
	background: #fff;
	font-size: 13px;
	color: var(--mk-brown, #502c1e);
}

body.theme-makesy .kf-options-modal__fields .kf-product-option-btn--image {
	width: 5.5rem !important;
	min-width: 5.5rem;
	max-width: 5.5rem;
	padding: 6px;
	flex-direction: column;
	gap: 6px;
}

body.theme-makesy .kf-options-modal__fields .kf-product-option-btn--image .kf-product-option-btn__thumb {
	width: 100%;
	aspect-ratio: 1;
	border-radius: 4px;
	overflow: hidden;
}

body.theme-makesy .kf-options-modal__fields .kf-product-option-btn--image .kf-product-option-btn__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.theme-makesy .kf-options-modal__fields .kf-product-option-btn--color {
	width: 2.25rem !important;
	min-width: 2.25rem !important;
	height: 2.25rem !important;
	min-height: 2.25rem !important;
	padding: 0 !important;
	border-radius: 50%;
}

body.theme-makesy .kf-options-modal__fields .kf-product-option-btn.is-selected,
body.theme-makesy .kf-options-modal__fields .kf-product-option-btn.active {
	border-color: var(--mk-brown, #502c1e);
	background: var(--mk-brown, #502c1e);
	color: #fff;
}

body.theme-makesy .kf-options-modal__fields .kf-product-option-choice__inner {
	padding: 6px 12px;
	border: 1px solid var(--mk-border, #e5e0db);
	border-radius: 4px;
	background: #fff;
}

body.theme-makesy .kf-options-modal__fields .form-select,
body.theme-makesy .kf-options-modal__fields .kf-product-field__select,
body.theme-makesy .kf-options-modal__fields select.kf-product-option-input {
	width: 100%;
	max-width: 100%;
	min-height: 40px;
	padding: 8px 12px;
	border: 1px solid var(--mk-border, #e5e0db);
	border-radius: 4px;
	font-size: 13px;
	background: #fff;
	color: var(--mk-brown, #502c1e);
}

body.theme-makesy .kf-options-modal__footer {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px 16px;
	align-items: end;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--mk-border, #e5e0db);
}

body.theme-makesy .kf-options-modal__qty {
	grid-column: 1;
}

body.theme-makesy .kf-options-modal__qty .kf-qty-stepper__control {
	display: flex;
	align-items: center;
	border: 1px solid var(--mk-border, #e5e0db);
	border-radius: 4px;
	overflow: hidden;
	max-width: 140px;
}

body.theme-makesy .kf-options-modal__qty .kf-qty-stepper__btn {
	width: 36px;
	height: 40px;
	border: none;
	background: #fff;
	font-size: 16px;
	color: var(--mk-brown, #502c1e);
}

body.theme-makesy .kf-options-modal__qty .kf-qty-stepper__input {
	width: 48px;
	height: 40px;
	border: none;
	border-left: 1px solid var(--mk-border, #e5e0db);
	border-right: 1px solid var(--mk-border, #e5e0db);
	text-align: center;
	font-size: 14px;
}

body.theme-makesy .kf-options-modal__price-wrap {
	grid-column: 2;
	text-align: right;
}

body.theme-makesy .kf-options-modal__price-label {
	display: block;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--mk-muted, #5c4035);
	margin-bottom: 2px;
}

body.theme-makesy .kf-options-modal__price {
	font-size: 18px;
	font-weight: 600;
	color: var(--mk-brown, #502c1e);
}

body.theme-makesy .kf-options-modal__submit {
	grid-column: 1 / -1;
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 18px;
	border: none;
	border-radius: 4px;
	background: var(--mk-brown, #502c1e);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.18s ease;
}

body.theme-makesy .kf-options-modal__submit i {
	display: none;
}

body.theme-makesy .kf-options-modal__submit:hover:not(:disabled) {
	background: #3d2116;
}

body.theme-makesy .kf-options-modal__submit:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

body.theme-makesy .kf-options-modal.is-loading .kf-options-modal__fields {
	opacity: 0.5;
	pointer-events: none;
}

@media (max-width: 576px) {
	body.theme-makesy .kf-options-modal__footer {
		grid-template-columns: 1fr;
	}

	body.theme-makesy .kf-options-modal__price-wrap {
		grid-column: 1;
		text-align: left;
	}
}
