/* Плашка «Фото створено ШІ» на галереї товару. */
.dap-gallery-wrap { position: relative; }
.dap-badge {
	position: absolute; top: 12px; left: 12px; z-index: 20;
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 10px; border-radius: 999px;
	background: rgba(7, 7, 7, .78); color: #fff;
	font-size: 12px; line-height: 1; letter-spacing: .02em; font-weight: 400;
	cursor: pointer; outline: none;
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.dap-badge svg { flex: 0 0 auto; }
.dap-badge:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #070707; }
.dap-tip {
	position: absolute; top: calc(100% + 8px); left: 0;
	width: max-content; max-width: min(280px, 80vw);
	padding: 10px 12px; border-radius: 8px;
	background: #fff; color: #070707;
	font-size: 12px; line-height: 1.45; letter-spacing: 0; white-space: normal; text-align: left;
	box-shadow: 0 6px 24px rgba(7, 7, 7, .18);
	opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none;
	transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}
.dap-badge:hover .dap-tip,
.dap-badge:focus .dap-tip { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dap-note { margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: #6b6560; }

/* Мітка в картці каталогу. */
.dap-loop-wrap { position: relative; }
.dap-loop {
	position: absolute; top: 8px; right: 8px; z-index: 5;
	padding: 3px 7px; background: rgba(7, 7, 7, .78); color: #fff;
	font-size: 10px; font-weight: 600; line-height: 1.4; pointer-events: auto;
}
.product-badge.dap-loop-badge { margin-top: 4px; background: rgba(7, 7, 7, .78); color: #fff; }
li.product .dap-loop { top: 8px; left: 8px; right: auto; }

@media (max-width: 767px) {
	.dap-badge { top: 8px; left: 8px; padding: 5px 8px; font-size: 11px; }
}
