/* Addyz Order Assistant - widget styles */

.aoa-btn {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 99998;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--aoa-accent, #2f9e6e);
	color: #fff;
	border: 0;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	line-height: 1;
}
.aoa-btn:hover { filter: brightness(1.08); }

.aoa-win {
	position: fixed;
	right: 18px;
	bottom: 88px;
	z-index: 99999;
	width: 360px;
	max-width: calc(100vw - 24px);
	height: 520px;
	max-height: calc(100vh - 120px);
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	display: none;
	flex-direction: column;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: #1c2733;
}
.aoa-win.aoa-open { display: flex; }

.aoa-head {
	background: var(--aoa-accent, #2f9e6e);
	color: #fff;
	padding: 12px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.aoa-head b { font-size: 15px; }
.aoa-close {
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	line-height: 1;
	padding: 0 4px;
}

.aoa-body {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	background: #f6f8fa;
}

.aoa-msg { margin: 0 0 10px; display: flex; }
.aoa-msg.aoa-user { justify-content: flex-end; }
.aoa-bubble {
	max-width: 82%;
	padding: 9px 12px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.45;
	background: #fff;
	color: #1c2733;
	border: 1px solid #e6ebf0;
	word-break: break-word;
}
.aoa-msg.aoa-user .aoa-bubble {
	background: var(--aoa-accent, #2f9e6e);
	color: #fff;
	border-color: transparent;
}

.aoa-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.aoa-quick button {
	background: #fff;
	border: 1px solid var(--aoa-accent, #2f9e6e);
	color: var(--aoa-accent, #2f9e6e);
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 13px;
	cursor: pointer;
}
.aoa-quick button:hover { background: var(--aoa-accent, #2f9e6e); color: #fff; }

.aoa-card {
	background: #fff;
	border: 1px solid #e6ebf0;
	border-radius: 12px;
	padding: 8px;
	margin: 0 0 10px;
	display: flex;
	gap: 10px;
}
.aoa-card img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
	background: #eef2f5;
	flex: 0 0 56px;
}
.aoa-card .aoa-info { flex: 1; min-width: 0; }
.aoa-card .aoa-name { font-size: 13.5px; font-weight: 600; margin: 0 0 2px; }
.aoa-card .aoa-meta { font-size: 12px; color: #6b7a88; margin: 0 0 3px; }
.aoa-card .aoa-price { font-size: 13.5px; font-weight: 700; }
.aoa-card .aoa-actions { margin-top: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.aoa-card .aoa-actions > button {
	border: 0;
	border-radius: 8px;
	padding: 6px 10px;
	font-size: 12.5px;
	cursor: pointer;
	background: var(--aoa-accent, #2f9e6e);
	color: #fff;
}
.aoa-card .aoa-actions > button:disabled { opacity: .6; cursor: default; }
.aoa-card .aoa-actions a { font-size: 12.5px; color: #3d8bfd; text-decoration: none; }

/* Quantity selector */
.aoa-card .aoa-actions .aoa-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid #d7dee5;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}
.aoa-card .aoa-actions .aoa-qty button {
	background: #eef2f5;
	color: #1c2733;
	border: 0;
	width: 28px;
	height: 28px;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	border-radius: 0;
}
.aoa-card .aoa-actions .aoa-qv {
	min-width: 26px;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: #1c2733;
}

.aoa-cart-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	padding: 6px 0;
	border-bottom: 1px dashed #e6ebf0;
}
.aoa-cart-item > span:first-child { flex: 1; min-width: 0; }
.aoa-cart-item > span:last-child { white-space: nowrap; text-align: right; }
.aoa-cart-item button {
	background: transparent;
	border: 0;
	color: #d9534f;
	cursor: pointer;
	font-size: 12px;
	padding: 0;
	white-space: nowrap;
	margin-left: 4px;
}
.aoa-total { font-weight: 700; font-size: 14px; margin-top: 8px; text-align: right; }
.aoa-cart-line { font-size: 12.5px; color: #3a4a58; margin-top: 4px; text-align: right; }
.aoa-muted { color: #8a97a3; }

.aoa-foot {
	border-top: 1px solid #e6ebf0;
	padding: 8px;
	display: flex;
	gap: 8px;
	background: #fff;
}
.aoa-foot input {
	flex: 1;
	border: 1px solid #d7dee5;
	border-radius: 10px;
	padding: 10px;
	font-size: 14px;
	outline: none;
	min-width: 0;
}
.aoa-foot button {
	background: var(--aoa-accent, #2f9e6e);
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 0 16px;
	font-size: 15px;
	cursor: pointer;
}

@media (max-width: 480px) {
	.aoa-win.aoa-open {
		right: 0;
		bottom: 0;
		left: 0;
		top: 0;
		width: auto;
		height: auto;
		max-width: none;
		max-height: none;
		border-radius: 0;
	}
}

/* Cart layout (v2.0.5) */
.aoa-cart-item { display: block; padding: 8px 0; border-bottom: 1px dashed #e6ebf0; font-size: 13px; }
.aoa-ci-name { margin-bottom: 6px; }
.aoa-ci-ctrl { display: flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.aoa-ci-line { font-weight: 600; }
.aoa-ci-remove { background: transparent; border: 0; color: #d9534f; cursor: pointer; font-size: 12px; padding: 0; white-space: nowrap; }
.aoa-cart-item .aoa-qty { display: inline-flex; align-items: center; border: 1px solid #d7dee5; border-radius: 8px; overflow: hidden; background: #fff; }
.aoa-cart-item .aoa-qty button { background: #eef2f5; color: #1c2733; border: 0; width: 26px; height: 26px; font-size: 15px; line-height: 1; cursor: pointer; padding: 0; border-radius: 0; }
.aoa-cart-item .aoa-qv { min-width: 24px; text-align: center; font-size: 13px; font-weight: 600; color: #1c2733; }
.aoa-est-total { font-weight: 700; font-size: 14px; margin-top: 6px; text-align: right; color: var(--aoa-accent, #2f9e6e); }
.aoa-checkout-hint { margin-top: 10px; font-size: 12px; color: #6b7a88; border-top: 1px dashed #e6ebf0; padding-top: 8px; line-height: 1.4; }

/* Links (v2.0.6) */
.aoa-card .aoa-thumb { flex: 0 0 56px; display: block; }
.aoa-card .aoa-name { display: block; color: #1c2733; text-decoration: none; }
.aoa-card .aoa-name:hover { text-decoration: underline; }
.aoa-ci-name a { color: #1c2733; text-decoration: none; }
.aoa-ci-name a:hover { text-decoration: underline; }
