/* Βοηθός αγορών, the floating chat (mu-plugin 118). Bottom LEFT (owner 2026-10-22): the right
 * corner has the «back to top» button. Brand: purple #2e0c64, buy green #00b900,
 * link blue #1e73be, Manrope. Below the sticky header (z 9999) on desktop; full screen on phones. */

#adp-asst {
	--asst-purple: #2e0c64;
	--asst-green: #00b900;
	--asst-link: #1e73be;
	--asst-ink: #1d1d1f;
	--asst-mute: #6b6b76;
	--asst-line: #e6e3ee;
	--asst-soft: #f5f3fa;
	font-family: Manrope, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--asst-ink);
	font-size: 15px;
	line-height: 1.45;
}

.adp-asst-bubble {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 9998;
	width: 56px;
	height: 56px;
	border: 0;
	border-radius: 50%;
	background: var(--asst-purple);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba(46, 12, 100, .35);
	cursor: pointer;
	transition: transform .15s ease;
}
.adp-asst-bubble:hover { transform: scale(1.05); }
/* The theme sizes svg inside buttons; ours keep their own size. */
#adp-asst .adp-asst-bubble svg { width: 26px; height: 26px; flex: none; }
#adp-asst .adp-asst-send svg { width: 20px; height: 20px; flex: none; }
.adp-asst-bubble:focus-visible { outline: 3px solid #b9a6e6; outline-offset: 2px; }
#adp-asst.is-open .adp-asst-bubble { display: none; }

.adp-asst-win {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 9998;
	width: 384px;
	height: 620px;
	max-height: calc(100vh - 140px);
	display: none;
	flex-direction: column;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(20, 10, 50, .22);
	overflow: hidden;
}
#adp-asst.is-open .adp-asst-win { display: flex; }

.adp-asst-head {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 8px 10px 16px;
	background: var(--asst-purple);
	color: #fff;
}
.adp-asst-title { flex: 1; font-size: 16px; font-weight: 700; }
.adp-asst-icon {
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
}
.adp-asst-icon:hover { background: rgba(255, 255, 255, .14); }

.adp-asst-list {
	flex: 1;
	overflow-y: auto;
	padding: 14px 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	overscroll-behavior: contain;
}

.adp-asst-msg { display: flex; flex-direction: column; max-width: 100%; }
.adp-asst-msg.is-user { align-items: flex-end; }
.adp-asst-bubble-text {
	padding: 9px 12px;
	border-radius: 14px;
	max-width: 88%;
	word-wrap: break-word;
}
.adp-asst-msg.is-user .adp-asst-bubble-text { background: var(--asst-purple); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
/* The answer is plain text on the window, not a box: its cards are then the only padded layer inside. */
.adp-asst-msg.is-bot .adp-asst-bubble-text { padding: 2px 2px; max-width: 100%; }
.adp-asst-msg.is-wait .adp-asst-bubble-text { color: var(--asst-mute); font-style: italic; }
.adp-asst-bubble-text p { margin: 0 0 6px; }
.adp-asst-bubble-text p:last-child { margin-bottom: 0; }
.adp-asst-bubble-text ul { margin: 4px 0 6px 18px; padding: 0; }
.adp-asst-bubble-text a { color: var(--asst-link); text-decoration: underline; }

.adp-asst-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.adp-asst-chip {
	min-height: 40px;
	padding: 6px 12px;
	border: 1px solid var(--asst-line);
	border-radius: 20px;
	background: #fff;
	color: var(--asst-purple);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}
.adp-asst-chip:hover { border-color: var(--asst-purple); }

/* A question's answer options (latest reply only): a tap answers. */
.adp-asst-choices { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.adp-asst-choices .adp-asst-chip { min-height: 44px; }

.adp-asst-cards { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.adp-asst-card {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	align-items: center;
	gap: 10px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--asst-line);
	border-radius: 12px;
}
.adp-asst-card-img img { display: block; width: 64px; height: 64px; object-fit: contain; border-radius: 8px; }
.adp-asst-card-body { min-width: 0; }
.adp-asst-card-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13px;
	font-weight: 600;
	color: var(--asst-ink) !important;
	text-decoration: none !important;
}
.adp-asst-card-price { font-size: 14px; margin-top: 2px; }
.adp-asst-card-price s { color: var(--asst-mute); margin-right: 6px; font-size: 12px; }
.adp-asst-card-add,
.adp-asst-card-view {
	min-width: 44px;
	min-height: 44px;
	padding: 0 10px;
	border: 0;
	border-radius: 10px;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	text-decoration: none !important;
	white-space: nowrap;
}
.adp-asst-card-add { background: var(--asst-green); color: #fff; }
.adp-asst-card-add.is-done { background: #e6f7e6; color: #0a7d0a; }
.adp-asst-card-add:disabled:not(.is-done) { opacity: .6; }
.adp-asst-card-view { background: var(--asst-soft); color: var(--asst-purple) !important; }

/* «Δες περισσότερα»: under the cards, to the category listing with the customer's filters. */
.adp-asst-more {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 44px;
	margin: 6px 0 2px;
	padding: 8px 12px;
	border: 1px solid var(--asst-purple);
	border-radius: 10px;
	color: var(--asst-purple) !important;
	font-weight: 700;
	text-decoration: none !important;
}
.adp-asst-more small { font-weight: 400; color: var(--asst-mute); font-size: 12px; }
.adp-asst-more:hover { background: var(--asst-soft); }

.adp-asst-cat {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin: 4px 0;
	padding: 8px 12px;
	background: #fff;
	border: 1px solid var(--asst-line);
	border-radius: 10px;
	color: var(--asst-purple) !important;
	font-weight: 600;
	text-decoration: none !important;
}
.adp-asst-cat small { color: var(--asst-mute); font-weight: 400; white-space: nowrap; }

.adp-asst-form {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 10px 12px;
	border-top: 1px solid var(--asst-line);
	background: #fff;
}
.adp-asst-input {
	flex: 1;
	resize: none;
	min-height: 44px;
	max-height: 120px;
	padding: 11px 12px;
	border: 1px solid var(--asst-line);
	border-radius: 12px;
	font: inherit;
	font-size: 16px; /* under 16px iOS zooms the page on focus */
	line-height: 1.35;
	color: var(--asst-ink);
	background: #fff;
}
.adp-asst-input:focus { outline: 0; border-color: var(--asst-purple); }
.adp-asst-send {
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	border: 0;
	border-radius: 12px;
	background: var(--asst-purple);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.adp-asst-send:disabled { opacity: .5; cursor: default; }

@media (max-width: 600px) {
	.adp-asst-bubble { left: 16px; bottom: 16px; }
	.adp-asst-win {
		inset: 0;
		width: auto;
		height: auto;
		max-height: none;
		border-radius: 0;
		z-index: 100001; /* over the sticky header: the chat is the whole screen here */
	}
	.adp-asst-head { padding-top: max(10px, env(safe-area-inset-top)); }
	.adp-asst-form { padding-bottom: 6px; }
	html.adp-asst-lock, html.adp-asst-lock body { overflow: hidden; }
}

/* «Σε βοήθησε; Ναι · Όχι» at the bottom of the window: small grey text, no icons. */
.adp-asst-feedback { padding: 2px 14px 0; font-size: 12px; color: #666; }
.adp-asst-feedback-btn { min-height: 32px; padding: 0 4px; border: 0; background: transparent; color: #666; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
#adp-asst .adp-asst-feedback-btn:hover, #adp-asst .adp-asst-feedback-btn:focus-visible { background: transparent; color: #333; }

/* «Απαντήσεις από AI … χωρίς δέσμευση», always under the input: small grey text. */
.adp-asst-legal { padding: 0 14px 8px; font-size: 11px; line-height: 1.35; color: #666; background: #fff; }
.adp-asst-legal a { color: #666 !important; text-decoration: underline; }
@media (max-width: 600px) { .adp-asst-legal { padding-bottom: max(8px, env(safe-area-inset-bottom)); } }

/* Hover colours of every button here. The site's `button:hover { background: rgba(46,12,100,.8) }`
 * (theme inline styles) otherwise turned the options dark purple behind dark purple text and the
 * green «Στο καλάθι» purple (2026-10-22). #adp-asst outranks it. */
#adp-asst .adp-asst-bubble:hover { background: var(--asst-purple); color: #fff; }
#adp-asst .adp-asst-chip:hover,
#adp-asst .adp-asst-chip:focus-visible { background: var(--asst-soft); border-color: var(--asst-purple); color: var(--asst-purple); }
#adp-asst .adp-asst-card-add:hover { background: #009a00; color: #fff; }
#adp-asst .adp-asst-card-add.is-done:hover { background: #e6f7e6; color: #0a7d0a; }
#adp-asst .adp-asst-send:hover:not(:disabled) { background: #43198c; color: #fff; }
#adp-asst .adp-asst-send:disabled:hover { background: var(--asst-purple); }
#adp-asst .adp-asst-icon:hover { background: rgba(255, 255, 255, .14); color: #fff; }
