/* WooCommerce bildirimleri — modal (pencere) görünümü */

html.mk-notice-modal-open {
	overflow: hidden;
}

.mk-notice-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px 16px;
}

.mk-notice-modal.is-open {
	display: flex;
}

.mk-notice-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 18, 16, .55);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.mk-notice-modal__box {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: 86vh;
	overflow-y: auto;
	padding: 22px;
	border-radius: var(--radius, 14px);
	background: var(--bg-white, #fff);
	border-top: 4px solid var(--accent, #b98a2e);
	box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
	animation: mkNoticePop .28s ease;
}

.mk-notice-modal--error .mk-notice-modal__box { border-top-color: #dc3545; }
.mk-notice-modal--info .mk-notice-modal__box { border-top-color: #17a2b8; }
.mk-notice-modal--success .mk-notice-modal__box { border-top-color: #28a745; }

@keyframes mkNoticePop {
	from { opacity: 0; transform: translateY(14px) scale(.97); }
	to   { opacity: 1; transform: none; }
}

.mk-notice-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	line-height: 1;
	padding: 0;
	font-size: 22px;
	border: none;
	border-radius: 50%;
	background: var(--bg-soft, #f4f1ec);
	color: var(--text-body, #57534e);
	cursor: pointer;
	transition: var(--transition, all .3s ease);
}

.mk-notice-modal__close:hover {
	background: #d63638;
	color: #fff;
}

.mk-notice-modal__body {
	padding-right: 28px;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--text-body, #57534e);
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* Modal içindeki taşınmış bildirim kutuları sadeleşir */
.mk-notice-modal__body .woocommerce-error,
.mk-notice-modal__body .woocommerce-info,
.mk-notice-modal__body .woocommerce-message,
.mk-notice-modal__body .wc-block-components-notice-banner {
	margin: 0 0 10px;
	padding: 0;
	border: none;
	background: transparent;
	color: inherit;
}

.mk-notice-modal__body .woocommerce-error:last-child,
.mk-notice-modal__body .woocommerce-info:last-child,
.mk-notice-modal__body .woocommerce-message:last-child {
	margin-bottom: 0;
}

.mk-notice-modal__body .woocommerce-error::before,
.mk-notice-modal__body .woocommerce-info::before,
.mk-notice-modal__body .woocommerce-message::before {
	content: none;
	display: none;
}

.mk-notice-modal__body ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mk-notice-modal__body ul li {
	margin: 0 0 4px;
	padding: 0;
	list-style: none;
}

.mk-notice-modal__body ul li:last-child {
	margin-bottom: 0;
}

.mk-notice-modal__body .button {
	float: none;
	display: inline-block;
	margin: 8px 8px 0 0;
	padding: 6px 14px;
	border: 1px solid currentColor;
	border-radius: 6px;
	background: transparent !important;
	color: inherit !important;
	font-size: 12.5px;
	text-decoration: none;
}

.mk-notice-modal__foot {
	display: flex;
	justify-content: flex-end;
	margin-top: 18px;
}

.mk-notice-modal__ok {
	padding: 10px 24px;
	border: none;
	border-radius: var(--radius-sm, 6px);
	background: var(--secondary-gradient, linear-gradient(135deg, #d4a03c, #b98a2e));
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--transition, all .3s ease);
}

.mk-notice-modal__ok:hover {
	filter: brightness(1.06);
}

@media (max-width: 480px) {
	.mk-notice-modal__box {
		padding: 18px;
	}
	.mk-notice-modal__ok {
		width: 100%;
	}
}
