/* Knife Upsell Popup – neutralne style, kolory/fonty dziedziczone z motywu */
body.ku-open { overflow: hidden; }

.ku-overlay {
	position: fixed; inset: 0; z-index: 99999;
	display: flex; align-items: center; justify-content: center;
	padding: 16px; background: rgba(0, 0, 0, .55);
	animation: ku-fade .15s ease-out;
}
.ku-modal {
	position: relative; width: 100%; max-width: 760px; max-height: calc(100vh - 32px);
	overflow-y: auto; background: #fff; color: inherit;
	border-radius: 8px; padding: 28px 24px 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.ku-close {
	position: absolute; top: 8px; right: 10px;
	background: none !important; border: 0 !important; padding: 4px 8px !important;
	font-size: 28px; line-height: 1; color: #555 !important; cursor: pointer;
}
.ku-added { margin: 0 32px 20px 0; font-size: 1.05em; }
.ku-check { display: inline-block; color: #2e7d32; font-weight: 700; margin-right: 6px; }

.ku-section { border-top: 1px solid #e5e5e5; padding-top: 16px; margin-top: 16px; }
.ku-heading { margin: 0 0 12px; font-size: 1.1em; }

/* Grawer */
.ku-engraving-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.ku-engraving-head img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.ku-engraving-form form.cart { margin: 0 !important; }
.ku-engraving-form .quantity { display: none !important; } /* zawsze 1 szt. */
.ku-engraving.is-added .single_add_to_cart_button { opacity: .6; }
.ku-msg:empty { display: none; }
.ku-msg { margin-top: 10px; }
.ku-msg .woocommerce-error { margin: 0; padding: 10px 12px; list-style: none; }
.ku-ok { color: #2e7d32; font-weight: 600; }
.ku-field { margin: 0 0 12px; }
.ku-field input { width: 100%; }
.ku-field small { display: block; margin-top: 4px; opacity: .75; }

/* Ostrzałki */
.ku-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.ku-item { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.ku-thumb img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.ku-item .ku-name { font-size: .9em; line-height: 1.3; }
.ku-item .price { font-size: .9em; font-weight: 600; }
.ku-item .button { margin-top: auto; font-size: .85em; padding: 8px 10px; }
.ku-item .added_to_cart { font-size: .8em; }

/* Przyciski */
.ku-actions {
	display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap;
	border-top: 1px solid #e5e5e5; margin-top: 20px; padding-top: 16px;
}

@media (max-width: 640px) {
	.ku-modal { padding: 24px 16px 16px; }
	.ku-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ku-actions { flex-direction: column-reverse; }
	.ku-actions .button { width: 100%; text-align: center; }
}

@keyframes ku-fade { from { opacity: 0; } to { opacity: 1; } }
