/* AI Store Plus — AIStore Asistan (aistore-assistant.php). Sürüm ASP_AS_VERSION ile ?ver= olarak yüklenir. */

.asp-as[hidden] {
	display: none !important;
}
.asp-as {
	--asp-as-bg: #0f0c27;
	--asp-as-surface: #1a1542;
	--asp-as-line: rgba(255, 255, 255, .08);
	--asp-as-text: #eceaff;
	--asp-as-muted: #a9a4cf;
	--asp-as-accent: #6d4eec;
	color: var(--asp-as-text);
	font-size: 14px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.asp-as *,
.asp-as *::before,
.asp-as *::after {
	box-sizing: border-box;
}
.asp-as svg {
	display: block;
	overflow: visible;
}

/* ------------------------------------------------------------------ Kenar sekmesi (kapalı) */

.asp-as .asp-as__tab {
	position: fixed;
	top: 50%;
	left: 0;
	z-index: 386; /* WoodMart: araç çubuğu 350, fırsat kartı 380, yapışkan header 390, yan paneller 500 */
	display: block;
	width: 22px;
	min-width: 0;
	height: 112px;
	min-height: 0;
	margin: -56px 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
	transition: opacity .25s ease, visibility 0s linear 0s;
	-webkit-tap-highlight-color: transparent;
}
/* WoodMart düğme süsü (:is(button, [type=button]):hover → gri zemin) bu sekmeye uygulanmaz. */
.asp-as button.asp-as__tab:hover,
.asp-as button.asp-as__tab:focus,
.asp-as button.asp-as__tab:active {
	border: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	outline: none;
}
.asp-as__edge {
	position: absolute;
	top: 14px;
	left: 0;
	width: 6px;
	height: 84px;
	border-radius: 0 8px 8px 0;
	background: linear-gradient(180deg, #a78bfa, #6d4eec 48%, #ec4899);
	box-shadow: 0 0 14px rgba(109, 78, 236, .6), 0 0 2px rgba(255, 255, 255, .5) inset;
	transition: width .25s ease, box-shadow .25s ease;
}
.asp-as__head {
	position: absolute;
	top: 22px;
	left: 0;
	width: 66px;
	height: 66px;
	transform: translateX(-76px) rotate(-14deg);
	transform-origin: 0 50%;
	transition: transform .5s cubic-bezier(.2, 1.35, .4, 1);
	filter: drop-shadow(0 8px 16px rgba(40, 22, 120, .45));
	pointer-events: none;
}
.asp-as__label {
	position: absolute;
	top: 50%;
	left: 76px;
	padding: 7px 12px 7px 10px;
	border-radius: 999px;
	background: #120f2e;
	box-shadow: 0 10px 26px -8px rgba(12, 8, 40, .6), inset 0 0 0 1px rgba(167, 139, 250, .35);
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .01em;
	white-space: nowrap;
	opacity: 0;
	transform: translate(-8px, -50%);
	transition: opacity .25s ease, transform .3s ease;
	pointer-events: none;
}
.asp-as__label::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 7px;
	border-radius: 50%;
	background: #34d399;
	box-shadow: 0 0 0 3px rgba(52, 211, 153, .18);
	vertical-align: 1px;
}
@media (hover: hover) {
	.asp-as .asp-as__tab:hover .asp-as__head {
		transform: translateX(6px) rotate(8deg);
	}
	.asp-as .asp-as__tab:hover .asp-as__label {
		opacity: 1;
		transform: translate(0, -50%);
		transition-delay: .12s;
	}
	.asp-as .asp-as__tab:hover .asp-as__edge {
		width: 4px;
	}
}
.asp-as .asp-as__tab:focus-visible .asp-as__head,
.asp-as.is-peek .asp-as__head {
	transform: translateX(6px) rotate(8deg);
}
.asp-as .asp-as__tab:focus-visible .asp-as__label,
.asp-as.is-peek .asp-as__label {
	opacity: 1;
	transform: translate(0, -50%);
}
.asp-as .asp-as__tab:focus-visible .asp-as__edge {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #6d4eec;
}
.asp-as.is-open .asp-as__tab {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease, visibility 0s linear .2s;
}

/* ------------------------------------------------------------------ Karşılama balonu (sayfa açılınca, assistant.js) */

/* Kafa çıkınca iki kez sallanır (el sallar gibi); --asp-as-hx: çıkmış kafanın kayması (telefonda 2 px). */
.asp-as.is-greet .asp-as__head {
	animation: asp-as-wave 1.3s ease-in-out .55s 2;
}
@keyframes asp-as-wave {
	0%, 100% {
		transform: translateX(var(--asp-as-hx, 6px)) rotate(8deg);
	}
	25% {
		transform: translateX(var(--asp-as-hx, 6px)) rotate(-7deg);
	}
	55% {
		transform: translateX(var(--asp-as-hx, 6px)) rotate(13deg);
	}
	80% {
		transform: translateX(var(--asp-as-hx, 6px)) rotate(2deg);
	}
}
/* Telefonda ara sıra kıpırdama: kenardan bakan kafa (-15 px, 12°) biraz çıkar, sallanır, geri döner. */
@keyframes asp-as-nudge {
	0%, 100% {
		transform: translateX(-15px) rotate(12deg);
	}
	22% {
		transform: translateX(-3px) rotate(-6deg);
	}
	48% {
		transform: translateX(-3px) rotate(14deg);
	}
	72% {
		transform: translateX(-6px) rotate(3deg);
	}
}
/* Balon "● AIStore Asistan" etiketinin yerini alır. */
.asp-as.is-greet .asp-as__label {
	opacity: 0 !important;
	transition: none;
}
.asp-as__greet {
	position: fixed;
	top: 50%;
	left: 84px;
	z-index: 387; /* sekmenin (386) üstünde, yapışkan header'ın (390) altında */
	display: flex;
	align-items: flex-start;
	width: max-content;
	max-width: 290px;
	border-radius: 16px;
	background-color: #120f2e;
	background-image: linear-gradient(135deg, rgba(109, 78, 236, .28), rgba(236, 72, 153, .08) 70%, rgba(236, 72, 153, 0));
	box-shadow: 0 18px 44px -14px rgba(10, 6, 40, .75), 0 4px 12px rgba(10, 6, 40, .25), inset 0 0 0 1px rgba(167, 139, 250, .4);
	opacity: 0;
	visibility: hidden;
	transform: translate(-12px, -50%) scale(.95);
	transform-origin: 0 50%;
	transition: opacity .25s ease, transform .3s ease, visibility 0s linear .3s;
}
/* Kafaya bakan kuyruk */
.asp-as__greet::before {
	content: "";
	position: absolute;
	top: 50%;
	left: -6px;
	width: 12px;
	height: 12px;
	margin-top: -6px;
	border-bottom: 1px solid rgba(167, 139, 250, .4);
	border-left: 1px solid rgba(167, 139, 250, .4);
	border-radius: 0 0 0 3px;
	background: #221a50;
	transform: rotate(45deg);
}
.asp-as.is-greet .asp-as__greet {
	opacity: 1;
	visibility: visible;
	transform: translate(0, -50%) scale(1);
	transition: opacity .3s ease .3s, transform .45s cubic-bezier(.2, 1.3, .4, 1) .3s, visibility 0s;
}
.asp-as .asp-as__gmsg {
	display: block;
	flex: 1;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 12px 4px 13px 15px;
	border: 0;
	border-radius: 16px 0 0 16px;
	background: none;
	box-shadow: none;
	color: #efeaff;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
	white-space: normal;
	cursor: pointer;
}
/* WoodMart düğme süsü (:is(button, [type=button]):hover → gri zemin) balona uygulanmaz. */
.asp-as button.asp-as__gmsg:hover,
.asp-as button.asp-as__gmsg:focus,
.asp-as button.asp-as__gmsg:active {
	border: 0;
	background: none;
	box-shadow: none;
	color: #fff;
	outline: none;
}
.asp-as button.asp-as__gmsg:focus-visible {
	outline: 2px solid #c4b5fd;
	outline-offset: -2px;
}
.asp-as__gname {
	display: block;
	margin-bottom: 3px;
	color: #fff;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .01em;
}
.asp-as__gname::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 7px;
	border-radius: 50%;
	background: #34d399;
	box-shadow: 0 0 0 3px rgba(52, 211, 153, .18);
	vertical-align: 1px;
}
.asp-as__gtext {
	display: block;
}
.asp-as .asp-as__gx {
	display: grid;
	flex: none;
	place-items: center;
	width: 28px;
	min-width: 0;
	height: 28px;
	min-height: 0;
	margin: 8px 8px 0 0;
	padding: 0;
	border: 0;
	border-radius: 9px;
	background: rgba(255, 255, 255, .07);
	box-shadow: none;
	color: #d6d0ff;
	line-height: 1;
	cursor: pointer;
}
.asp-as button.asp-as__gx:hover,
.asp-as button.asp-as__gx:focus-visible {
	border: 0;
	background: rgba(167, 139, 250, .25);
	box-shadow: none;
	color: #fff;
	outline: none;
}
.asp-as button.asp-as__gx:focus-visible {
	outline: 2px solid #c4b5fd;
	outline-offset: 1px;
}
.asp-as__gx svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Maskot: göz kırpma ve kıvılcım */
.asp-as-eyes {
	transform-box: fill-box;
	transform-origin: center;
	animation: asp-as-blink 5.2s infinite;
}
.asp-as-spark {
	transform-box: fill-box;
	transform-origin: center;
	animation: asp-as-twinkle 2.6s ease-in-out infinite;
}
@keyframes asp-as-blink {
	0%, 90%, 100% {
		transform: scaleY(1);
	}
	93% {
		transform: scaleY(.12);
	}
	96% {
		transform: scaleY(1);
	}
}
@keyframes asp-as-twinkle {
	0%, 100% {
		transform: scale(1) rotate(0deg);
		opacity: 1;
	}
	50% {
		transform: scale(.72) rotate(45deg);
		opacity: .75;
	}
}

/* ------------------------------------------------------------------ Panel */

.asp-as__panel {
	position: fixed;
	top: 50%;
	left: 20px;
	z-index: 450;
	display: flex;
	flex-direction: column;
	width: 384px;
	height: 560px;
	max-height: calc(100vh - 40px);
	overflow: hidden;
	border-radius: 22px;
	background-color: var(--asp-as-bg);
	background-image: radial-gradient(120% 60% at 0% 0%, rgba(109, 78, 236, .30), rgba(109, 78, 236, 0) 60%), radial-gradient(90% 50% at 100% 100%, rgba(236, 72, 153, .12), rgba(236, 72, 153, 0) 60%);
	box-shadow: 0 34px 80px -24px rgba(10, 6, 40, .7), 0 6px 18px rgba(10, 6, 40, .25), inset 0 0 0 1px var(--asp-as-line);
	opacity: 0;
	visibility: hidden;
	transform: translate(-18px, -50%) scale(.985);
	transform-origin: 0 50%;
	transition: opacity .28s ease, transform .32s cubic-bezier(.2, .9, .3, 1), visibility 0s linear .32s;
}
.asp-as.is-open .asp-as__panel {
	opacity: 1;
	visibility: visible;
	transform: translate(0, -50%);
	transition: opacity .28s ease, transform .32s cubic-bezier(.2, .9, .3, 1), visibility 0s;
}
.asp-as__hd {
	display: flex;
	flex: none;
	align-items: center;
	gap: 12px;
	padding: 14px 12px 13px 16px;
	border-bottom: 1px solid var(--asp-as-line);
	background: linear-gradient(135deg, rgba(109, 78, 236, .34), rgba(236, 72, 153, .10) 70%, rgba(236, 72, 153, 0));
}
.asp-as__avatar {
	position: relative;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 3px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .07);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.asp-as__avatar::after {
	content: "";
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #34d399;
	box-shadow: 0 0 0 2.5px #1c1645;
}
.asp-as__who {
	flex: 1;
	min-width: 0;
}
.asp-as .asp-as__title {
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: 15.5px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: .005em;
	text-transform: none;
}
.asp-as__st {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 2px;
	overflow: hidden;
	color: var(--asp-as-muted);
	font-size: 12px;
	line-height: 1.3;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.asp-as__st b {
	color: #6ee7b7;
	font-weight: 700;
}
.asp-as .asp-as__ib {
	display: grid;
	flex: none;
	place-items: center;
	width: 36px;
	min-width: 0;
	height: 36px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 11px;
	background: rgba(255, 255, 255, .06);
	box-shadow: none;
	color: #e7e3ff;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
.asp-as .asp-as__ib:hover,
.asp-as .asp-as__ib:focus-visible {
	background: rgba(167, 139, 250, .22);
	color: #fff;
}
.asp-as .asp-as__ib:focus-visible,
.asp-as .asp-as__send:focus-visible,
.asp-as .asp-as__chip:focus-visible,
.asp-as .asp-as__card:focus-visible,
.asp-as__bubble a:focus-visible {
	outline: 2px solid #c4b5fd;
	outline-offset: 2px;
}
.asp-as__ib svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Mesajlar */
.asp-as__log {
	position: relative; /* mesajların offsetTop'u bu kaba göre */
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	min-height: 0;
	padding: 16px 14px 10px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: rgba(167, 139, 250, .35) transparent;
	-webkit-overflow-scrolling: touch;
}
.asp-as__msg {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	max-width: 100%;
	animation: asp-as-in .28s ease both;
}
@keyframes asp-as-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
.asp-as__msg--u {
	justify-content: flex-end;
}
.asp-as__mini {
	flex: none;
	width: 28px;
	height: 28px;
	margin-bottom: 2px;
}
.asp-as__bubble {
	min-width: 0;
	max-width: calc(100% - 40px);
	padding: 10px 13px;
	border-radius: 16px 16px 16px 5px;
	background: var(--asp-as-surface);
	box-shadow: inset 0 0 0 1px var(--asp-as-line);
	color: var(--asp-as-text);
	font-size: 14px;
	line-height: 1.55;
	overflow-wrap: anywhere;
}
.asp-as__msg--u .asp-as__bubble {
	max-width: 86%;
	border-radius: 16px 16px 5px 16px;
	background: linear-gradient(135deg, #8064ff, #6d4eec 55%, #5a3de0);
	box-shadow: 0 6px 16px -8px rgba(109, 78, 236, .8);
	color: #fff;
	white-space: pre-wrap;
}
.asp-as__msg--e .asp-as__bubble {
	background: rgba(251, 146, 60, .12);
	box-shadow: inset 0 0 0 1px rgba(251, 146, 60, .38);
	color: #fed7aa;
}
.asp-as .asp-as__bubble p {
	margin: 0 0 8px;
	padding: 0;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}
.asp-as .asp-as__bubble ul,
.asp-as .asp-as__bubble ol {
	margin: 2px 0 8px;
	padding: 0 0 0 18px;
	color: inherit;
}
.asp-as .asp-as__bubble li {
	margin: 0 0 4px;
	padding: 0;
	color: inherit;
	list-style: disc;
}
.asp-as .asp-as__bubble ol li {
	list-style: decimal;
}
.asp-as .asp-as__bubble > :last-child,
.asp-as .asp-as__bubble li:last-child {
	margin-bottom: 0;
}
.asp-as .asp-as__bubble strong {
	color: #fff;
	font-weight: 700;
}
.asp-as .asp-as__bubble a,
.asp-as .asp-as__bubble a:visited {
	color: #c9b8ff;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(201, 184, 255, .5);
	text-underline-offset: 2px;
}
.asp-as .asp-as__bubble a:hover {
	color: #fff;
	text-decoration-color: #fff;
}

/* Ürün kartları (yanıtta geçen ürünler) */
.asp-as__cards {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 10px;
}
.asp-as .asp-as__bubble a.asp-as__card,
.asp-as .asp-as__bubble a.asp-as__card:visited {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px 8px 12px;
	border-radius: 12px;
	background: rgba(109, 78, 236, .16);
	box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .30);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color .2s ease;
}
.asp-as .asp-as__bubble a.asp-as__card:hover {
	background: rgba(109, 78, 236, .32);
	color: #fff;
	text-decoration: none;
}
.asp-as__card .asp-as__cn {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	font-weight: 700;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.asp-as__card .asp-as__cp {
	flex: none;
	color: #fff;
	font-style: normal;
	font-weight: 800;
	white-space: nowrap;
}
.asp-as__card .asp-as__cp.is-out {
	color: var(--asp-as-muted);
	font-weight: 600;
}
.asp-as__card svg {
	flex: none;
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: .8;
}

/* Yazıyor göstergesi */
.asp-as__dots {
	display: inline-flex;
	gap: 4px;
	padding: 5px 2px;
}
.asp-as__dots i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #b9a7ff;
	animation: asp-as-dot 1.2s infinite ease-in-out;
}
.asp-as__dots i:nth-child(2) {
	animation-delay: .15s;
}
.asp-as__dots i:nth-child(3) {
	animation-delay: .3s;
}
@keyframes asp-as-dot {
	0%, 80%, 100% {
		opacity: .35;
		transform: translateY(0);
	}
	40% {
		opacity: 1;
		transform: translateY(-4px);
	}
}
.asp-as .asp-as__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Öneri çipleri */
.asp-as__chips {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	gap: 7px;
	padding: 0 14px 12px;
}
.asp-as__chips[hidden] {
	display: none;
}
.asp-as .asp-as__chip {
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 8px 12px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .05);
	box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .42);
	color: #ece7ff;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.25;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background-color .2s ease, box-shadow .2s ease;
}
.asp-as .asp-as__chip:hover {
	background: rgba(109, 78, 236, .38);
	box-shadow: inset 0 0 0 1px rgba(196, 181, 253, .7);
	color: #fff;
}
.asp-as .asp-as__chip.is-product {
	background: linear-gradient(90deg, rgba(109, 78, 236, .45), rgba(219, 39, 119, .25));
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.asp-as .asp-as__chip.is-product:hover {
	background: linear-gradient(90deg, rgba(109, 78, 236, .7), rgba(219, 39, 119, .4));
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
}

/* Yazma alanı */
.asp-as__form {
	display: flex;
	flex: none;
	align-items: flex-end;
	gap: 8px;
	margin: 0;
	padding: 10px 12px 8px;
	border-top: 1px solid var(--asp-as-line);
	background: rgba(6, 4, 20, .32);
}
.asp-as .asp-as__input {
	flex: 1;
	width: auto;
	min-width: 0;
	height: 44px;
	min-height: 44px;
	max-height: 128px;
	margin: 0;
	padding: 11px 14px;
	border: 0;
	border-radius: 14px;
	background: var(--asp-as-surface);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
	color: #fff;
	font-family: inherit;
	font-size: 14.5px;
	line-height: 1.45;
	resize: none;
	transition: box-shadow .2s ease;
}
.asp-as .asp-as__input::placeholder {
	color: #8f8ab8;
	opacity: 1;
}
.asp-as .asp-as__input:focus {
	outline: none;
	background: var(--asp-as-surface);
	box-shadow: inset 0 0 0 1px #8b6cff, 0 0 0 3px rgba(139, 108, 255, .25);
	color: #fff;
}
.asp-as .asp-as__send {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	min-width: 0;
	height: 44px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, #8b6cff, #6d4eec 58%, #db2777);
	box-shadow: 0 8px 18px -8px rgba(109, 78, 236, .9);
	color: #fff;
	cursor: pointer;
	transition: transform .15s ease, opacity .2s ease, filter .2s ease;
}
.asp-as .asp-as__send:hover,
.asp-as .asp-as__send:focus {
	background: linear-gradient(135deg, #8b6cff, #6d4eec 58%, #db2777);
	filter: brightness(1.08);
	color: #fff;
}
.asp-as .asp-as__send:active {
	transform: scale(.95);
}
.asp-as .asp-as__send:disabled {
	opacity: .45;
	cursor: default;
	filter: none;
}
.asp-as__send svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.asp-as__foot {
	flex: none;
	margin: 0;
	padding: 0 14px 11px;
	background: rgba(6, 4, 20, .32);
	color: #8b86b4;
	font-size: 11px;
	line-height: 1.35;
}
.asp-as .asp-as__foot a {
	color: #b7a8f5;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Panel açıkken sol alttaki fırsat kartı (aistore-promo.php) gizlenir: ikisi aynı köşede çakışmasın. */
body.asp-as-open .asp-deal {
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
/* Telefonda tam ekran panelin üstüne dil bayrakları (alt tema, position:absolute) binmesin. */
@media (max-width: 768px) {
	body.asp-as-open .asp-header-lang-switcher {
		visibility: hidden !important;
	}
}

/* Kısa ekran (masaüstü): panel ekrana sığsın. */
@media (max-height: 640px) and (min-width: 769px) {
	.asp-as__panel {
		height: calc(100vh - 24px);
		max-height: none;
	}
	.asp-as .asp-as__tab {
		height: 96px;
		margin-top: -48px;
	}
}

/* ------------------------------------------------------------------ Telefon ve tablet (≤768 px): tam ekran yardımcı */

@media (max-width: 768px) {
	.asp-as .asp-as__tab {
		width: 34px;
		height: 62px;
		margin-top: -31px;
	}
	.asp-as__edge {
		top: 8px;
		width: 5px;
		height: 46px;
	}
	.asp-as__head {
		top: 7px;
		width: 48px;
		height: 48px;
		transform: translateX(-15px) rotate(12deg); /* iki göz de görünsün: kenardan bakan kafa */
	}
	.asp-as .asp-as__tab:focus-visible .asp-as__head,
	.asp-as.is-peek .asp-as__head {
		transform: translateX(2px) rotate(8deg);
	}
	.asp-as__head {
		--asp-as-hx: 2px;
	}
	.asp-as__label {
		display: none;
	}
	/* Telefonda karşılama balonu yok (assistant.js); kafa ara sıra kenardan kıpırdar. */
	.asp-as__greet {
		display: none !important;
	}
	.asp-as.is-wiggle .asp-as__head {
		animation: asp-as-nudge 1.4s ease-in-out;
	}
	.asp-as__panel {
		top: var(--asp-as-vt, 0px);
		right: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		height: var(--asp-as-vh, 100dvh);
		max-height: none;
		border-radius: 0;
		transform: translateY(14px);
		transform-origin: 50% 100%;
	}
	.asp-as.is-open .asp-as__panel {
		transform: none;
	}
	.asp-as__hd {
		padding: max(12px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 12px max(14px, env(safe-area-inset-left));
	}
	.asp-as__log {
		padding: 16px max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left));
	}
	.asp-as__bubble {
		font-size: 15px;
	}
	.asp-as__chips {
		padding: 0 max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left));
	}
	.asp-as .asp-as__chip {
		padding: 9px 13px;
		font-size: 13.5px;
	}
	.asp-as__form {
		padding: 10px max(10px, env(safe-area-inset-right)) 8px max(10px, env(safe-area-inset-left));
	}
	.asp-as .asp-as__input {
		font-size: 16px; /* iOS odakta yakınlaştırmasın */
	}
	.asp-as__foot {
		padding: 0 max(14px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
	}
}
/* Açıkken sayfa kaydırması kilitli (telefon). */
html.asp-as-lock,
html.asp-as-lock body {
	overflow: hidden !important;
}
html.asp-as-lock body {
	position: fixed;
	right: 0;
	left: 0;
	width: 100%;
}

/* ------------------------------------------------------------------ Ürün sayfası: "AIStore Asistan'a sor" düğmesi */
/* Seçenekli üründe seçeneklerin hemen altında, ötekilerde sepete ekle bölümünden sonra (aistore-assistant.php).
   Ürün özeti açık zeminde olabilir: düğme kendi koyu zeminini taşır. Maskot JS ile çizilir. */

.asp-as-ask {
	margin: 14px 0 16px;
	clear: both;
}
.asp-as-ask button.asp-as-ask__btn {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-width: 0;
	min-height: 66px;
	margin: 0;
	padding: 10px 12px 10px 10px;
	border: 0;
	border-radius: 16px;
	background: linear-gradient(135deg, #2a2063, #161b36);
	box-shadow: 0 12px 26px -16px rgba(42, 32, 99, .95), inset 0 0 0 1px rgba(167, 139, 250, .38);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
	cursor: pointer;
	transition: box-shadow .2s ease, filter .2s ease, transform .15s ease;
	-webkit-tap-highlight-color: transparent;
}
.asp-as-ask button.asp-as-ask__btn:hover,
.asp-as-ask button.asp-as-ask__btn:focus {
	background: linear-gradient(135deg, #2a2063, #161b36);
	box-shadow: 0 14px 30px -14px rgba(42, 32, 99, 1), inset 0 0 0 1px rgba(196, 181, 253, .7);
	color: #fff;
	filter: brightness(1.1);
	outline: none;
}
.asp-as-ask button.asp-as-ask__btn:focus-visible {
	outline: 2px solid #8b6cff;
	outline-offset: 2px;
}
.asp-as-ask button.asp-as-ask__btn:active {
	transform: scale(.99);
}
.asp-as-ask__ico {
	flex: none;
	width: 46px;
	height: 46px;
	padding: 3px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .08);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.asp-as-ask__ico svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}
.asp-as-ask__txt {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.asp-as-ask__txt b {
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.25;
}
.asp-as-ask__txt small {
	overflow: hidden;
	color: #cfc8f7;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.35;
	text-overflow: ellipsis;
}
.asp-as-ask__go {
	display: grid;
	flex: none;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	background: linear-gradient(135deg, #8b6cff, #6d4eec 58%, #db2777);
	box-shadow: 0 8px 18px -8px rgba(109, 78, 236, .9);
}
.asp-as-ask__go svg {
	display: block;
	width: 16px;
	height: 16px;
	fill: none;
	stroke: #fff;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
	.asp-as__head,
	.asp-as__label,
	.asp-as__panel,
	.asp-as.is-open .asp-as__panel,
	.asp-as__greet,
	.asp-as.is-greet .asp-as__greet,
	.asp-as__msg {
		transition: none !important;
		animation: none !important;
	}
	.asp-as.is-greet .asp-as__head,
	.asp-as.is-wiggle .asp-as__head,
	.asp-as-eyes,
	.asp-as-spark,
	.asp-as__dots i {
		animation: none !important;
	}
	.asp-as-ask button.asp-as-ask__btn {
		transition: none;
	}
}
@media print {
	.asp-as,
	.asp-as-ask {
		display: none !important;
	}
}
