/* ── Chat chips layout (ai-chat page) — full width, GPT-style wrap ── */
.astro-ai-chat__msg--answer-toolbar,
.astro-ai-chat__msg--chips-actions,
.astro-ai-chat__msg--chips-followup {
	max-width: 100%;
	padding: 6px 0 8px !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}
.astro-ai-chat__msg--answer-toolbar,
.astro-ai-chat__msg--chips-actions {
	direction: ltr !important;
	text-align: left;
}
.astro-ai-chat__msg--chips-followup {
	direction: rtl !important;
	text-align: right;
}
body.astro-ai-chat-page-mode .astro-ai-chat__msg-row--answer-toolbar .astro-ai-chat__msg,
.astro-ai-chat.astro-ai-chat--page .astro-ai-chat__msg-row--answer-toolbar .astro-ai-chat__msg,
body.astro-ai-chat-page-mode .astro-ai-chat__msg-row--chips-followup .astro-ai-chat__msg,
.astro-ai-chat.astro-ai-chat--page .astro-ai-chat__msg-row--chips-followup .astro-ai-chat__msg {
	flex: 1 1 auto !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
}

/* Toolbar: 👍👎 left · refine pills right */
.astro-ai-chat__answer-toolbar {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-width: 0;
	direction: ltr !important;
}
.astro-ai-chat__answer-toolbar__actions.astro-ai-chat__suggestions-row,
.astro-ai-chat__suggestions-row--actions,
.astro-ai-chat__suggestions-row--followup {
	display: flex !important;
}
.astro-ai-chat__answer-toolbar__feedback {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 4px;
	direction: ltr;
}
.astro-ai-chat__answer-toolbar__actions {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	direction: rtl;
	justify-content: flex-end;
	margin: 0 !important;
}

/* After 👎 — feedback grows left (ltr so pills cluster left), action chips stay right */
.astro-ai-chat__answer-toolbar.is-feedback-reasons {
	align-items: center;
}
.astro-ai-chat__answer-toolbar.is-feedback-reasons .astro-ai-chat__answer-toolbar__feedback {
	flex: 1 1 auto;
	direction: ltr;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 6px;
}

.astro-ai-chat__suggestions-row--actions,
.astro-ai-chat__suggestions-row--followup {
	flex-wrap: wrap;
	gap: 8px;
	overflow: visible;
	padding-bottom: 0;
}
.astro-ai-chat__suggestions-title--followup {
	margin: 0 0 8px 0 !important;
	color: #666;
	font-size: 13px;
	font-weight: 400;
	text-align: right;
}

/* Base chip reset — shared */
.astro-ai-chat .astro-ai-chat__chip--action,
.astro-ai-chat .astro-ai-chat__chip--followup,
.astro-ai-chat .astro-ai-chat__msg--suggestions .astro-ai-chat__chip,
.astro-ai-chat .astro-ai-chat__fb-reason {
	appearance: none;
	-webkit-appearance: none;
	border-radius: 20px;
	font-family: inherit;
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
/* 1) Feedback reasons (לא נכון, מבולבל…) — compact neutral gray */
.astro-ai-chat .astro-ai-chat__fb-reason {
	border: 1px solid rgba(0, 0, 0, 0.13) !important;
	background: #f2f3f5 !important;
	color: #444 !important;
	font-size: 12px;
	padding: 2px 10px;
	box-shadow: none;
}
.astro-ai-chat .astro-ai-chat__fb-reason:hover,
.astro-ai-chat .astro-ai-chat__fb-reason:focus-visible {
	background: #e6e8ed !important;
	border-color: rgba(0, 0, 0, 0.22) !important;
	color: #222 !important;
	outline: none;
}
/* 2) Action / refine chips (תרחיב, פשט…) — blue accent */
.astro-ai-chat .astro-ai-chat__chip--action {
	border: 1px solid rgba(53, 155, 220, 0.30) !important;
	background: rgba(53, 155, 220, 0.06) !important;
	color: #2a2a2a !important;
	font-size: 12px;
	padding: 2px 10px;
	box-shadow: 0 1px 2px rgba(53, 155, 220, 0.07);
}
.astro-ai-chat .astro-ai-chat__chip--action:hover,
.astro-ai-chat .astro-ai-chat__chip--action:focus-visible {
	background: rgba(53, 155, 220, 0.13) !important;
	border-color: rgba(53, 155, 220, 0.48) !important;
	color: #1e80bb !important;
	box-shadow: 0 2px 5px rgba(53, 155, 220, 0.13);
	outline: none;
}
/* 3) Followup / welcome suggestion chips — rose brand */
.astro-ai-chat .astro-ai-chat__chip--followup,
.astro-ai-chat .astro-ai-chat__msg--suggestions .astro-ai-chat__chip {
	border: 1px solid rgba(180, 67, 123, 0.24) !important;
	background: rgba(180, 67, 123, 0.05) !important;
	color: #2a2a2a !important;
	font-size: 12px;
	padding: 2px 10px;
	box-shadow: 0 1px 3px rgba(180, 67, 123, 0.07);
}
.astro-ai-chat .astro-ai-chat__chip--followup:hover,
.astro-ai-chat .astro-ai-chat__chip--followup:focus-visible,
.astro-ai-chat .astro-ai-chat__msg--suggestions .astro-ai-chat__chip:hover,
.astro-ai-chat .astro-ai-chat__msg--suggestions .astro-ai-chat__chip:focus-visible {
	background: rgba(180, 67, 123, 0.11) !important;
	border-color: rgba(180, 67, 123, 0.42) !important;
	color: #b4437b !important;
	box-shadow: 0 2px 6px rgba(180, 67, 123, 0.12);
	outline: none;
}
.astro-ai-chat__chip.is-loading,
.astro-ai-chat__chip:disabled {
	opacity: 0.5;
	cursor: default;
	box-shadow: none;
}

@media (max-width: 719px) {
	.astro-ai-chat__suggestions-row--actions,
	.astro-ai-chat__suggestions-row--followup {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 2px;
	}
	.astro-ai-chat__suggestions-row--actions::-webkit-scrollbar,
	.astro-ai-chat__suggestions-row--followup::-webkit-scrollbar {
		display: none;
	}
}
/* Conversion CTA chip (single, accent-bordered) — soft-wall to register / paid upgrade. */
.astro-ai-chat__msg--chips-conversion {
	max-width: min(92%, calc(100% - 36px));
	padding: 4px 8px 8px !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}
.astro-ai-chat__suggestions-row--conversion {
	display: flex !important;
	flex-wrap: wrap;
	gap: 6px;
}
.astro-ai-chat__chip--cta {
	flex: 0 1 auto;
	padding: 7px 14px;
	font-size: 12.5px;
	font-weight: 600;
	color: #fff;
	background: #b4437b;
	border-color: #b4437b;
	text-decoration: none;
}
.astro-ai-chat__chip--cta:hover,
.astro-ai-chat__chip--cta:focus-visible {
	color: #fff;
	background: #9b3669;
	border-color: #9b3669;
	box-shadow: 0 1px 4px rgba(180, 67, 123, 0.25);
	text-decoration: none;
}
.astro-ai-chat__msg--feedback {
	padding: 4px 12px !important;
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
}
.astro-ai-chat__msg--proactive-hook {
	background: linear-gradient(135deg, #fff 0%, #fbf3f7 100%) !important;
	border: 1px solid #f0d6e3 !important;
}
.astro-ai-chat__hook-label {
	margin: 0 0 4px 0 !important;
	font-size: 12px;
	color: #b4437b;
	font-weight: 600;
	letter-spacing: 0.02em;
}
.astro-ai-chat__hook-text {
	margin: 0 !important;
	font-size: 14px;
	line-height: 1.55;
	color: #222;
}
.astro-ai-chat__feedback {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	font-size: 13px;
	color: #555;
	direction: rtl;
}
.astro-ai-chat__answer-toolbar__feedback.astro-ai-chat__feedback {
	direction: ltr;
	text-align: left;
	justify-content: flex-start;
	flex-wrap: nowrap;
}
.astro-ai-chat__answer-toolbar__feedback.astro-ai-chat__feedback[data-feedback-stage="reasons"] {
	flex: 1 1 auto;
	direction: ltr;
	justify-content: flex-start;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	row-gap: 6px;
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
}
.astro-ai-chat__answer-toolbar__feedback.astro-ai-chat__feedback[data-feedback-stage="reasons"] .astro-ai-chat__fb-label {
	margin: 0;
	padding: 0;
	color: #666;
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
}
.astro-ai-chat__fb-btn {
	background: transparent;
	border: none;
	border-radius: 8px;
	width: 32px;
	height: 32px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 17px;
	line-height: 1;
	opacity: 0.55;
	box-shadow: none;
	transition: opacity 0.15s ease, background-color 0.15s ease;
}
.astro-ai-chat__fb-btn:hover,
.astro-ai-chat__fb-btn:focus-visible {
	opacity: 1;
	background: #ececf1;
	outline: none;
	transform: none;
}
.astro-ai-chat__fb-label {
	color: #666;
	margin-inline-end: 4px;
}
.astro-ai-chat .astro-ai-chat__fb-reason {
	cursor: pointer;
	font-family: inherit;
}
.astro-ai-chat__fb-thanks {
	color: #666;
	font-weight: 500;
	font-size: 13px;
}
.astro-ai-chat__msg--error p {
	margin: 0 0 8px 0;
}
.astro-ai-chat__retry {
	margin: 0;
	padding: 6px 14px;
	border: 1px solid #dcdce8;
	border-radius: 8px;
	background: #fff;
	color: #359bdc;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}
.astro-ai-chat__retry:hover,
.astro-ai-chat__retry:focus-visible {
	border-color: #359bdc;
	outline: none;
}
.astro-ai-chat__typing-label {
	display: block;
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	color: #666;
	white-space: normal;
}
.astro-ai-chat__form-actions {
	display: none;
}
.astro-ai-chat__limit-footer {
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	border-top: 1px solid #ef9a9a;
	background: #ffebee;
	text-align: center;
	font-size: 13px;
	color: #b71c1c;
	line-height: 1.45;
	direction: rtl;
}
.astro-ai-chat__limit-footer__title {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 700;
	color: #b4437b;
}
.astro-ai-chat__limit-footer p {
	margin: 0 0 8px;
}
.astro-ai-chat__form textarea:disabled {
	background: #ececf3;
	color: #666;
	cursor: not-allowed;
}
.astro-ai-chat__form button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}
.astro-ai-chat__form {
	display: block;
	padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
	border-top: 1px solid #dcdce8;
	background: linear-gradient(180deg, #f6f7fb 0%, #fff 100%);
}
.astro-ai-chat__composer {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	position: relative;
}
.astro-ai-chat__form textarea {
	flex: 1 1 auto;
	width: auto;
	min-height: 44px;
	max-height: 120px;
	resize: none;
	border: 1px solid #dcdce8;
	border-radius: 12px;
	padding: 10px 12px;
	color: #222;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
	text-align: start;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.astro-ai-chat__form textarea:focus {
	outline: none;
	border-color: #359bdc;
	box-shadow: 0 0 0 3px rgba(53, 155, 220, 0.15);
}
.astro-ai-chat__form button[data-chat-submit] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: linear-gradient(180deg, #b4437b 0%, #9f3d6e 100%);
	color: #fff !important;
	cursor: pointer;
	font-weight: bold;
	text-decoration: none !important;
	padding: 0;
	box-shadow: 0 2px 8px rgba(180, 67, 123, 0.28);
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.astro-ai-chat__form button[data-chat-submit]:hover:not(:disabled),
.astro-ai-chat__form button[data-chat-submit]:focus-visible:not(:disabled) {
	transform: translateY(-1px);
	filter: saturate(1.05);
	box-shadow: 0 4px 12px rgba(180, 67, 123, 0.34);
	outline: none;
}
.astro-ai-chat__send-icon {
	display: block;
	width: 16px;
	height: 16px;
	position: relative;
}
.astro-ai-chat__send-icon::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 1px;
	width: 10px;
	height: 10px;
	border-top: 2px solid currentColor;
	border-left: 2px solid currentColor;
	transform: rotate(-45deg);
	box-sizing: border-box;
}
@media (min-width: 641px) {
	.astro-free-chart-save-nudge__actions {
		flex-direction: row;
		align-items: stretch;
	}
	.astro-free-chart-save-nudge__reg,
	.astro-free-chart-save-nudge__google {
		flex: 1 1 0;
		min-width: 0;
	}
}
@media (max-width: 640px) {
	body:not(.logged-in).astro-free-chart-has-chat .astro-inline-chat-cta {
		display: block;
	}
	body:not(.logged-in).astro-free-chart-has-chat .astro-ai-chat:not(.astro-ai-chat--site-wide) .astro-ai-chat__bubble,
	body:not(.logged-in).astro-free-chart-has-chat .astro-ai-chat:not(.astro-ai-chat--site-wide) .astro-ai-chat__tooltip {
		display: none !important;
	}
	body:not(.logged-in) .astro-inline-chat-cta {
		display: block;
	}
	body.page-free-signs:not(.logged-in) .freesign,
	body.page-template-page-horoscope-daily-all-php:not(.logged-in) .astro-horoscope-daily-all {
		padding-bottom: 72px;
	}
	.astro-ai-chat {
		right: 0;
		left: 0;
		bottom: calc(12px + env(safe-area-inset-bottom));
		pointer-events: none;
	}
	.astro-ai-chat__bubble {
		width: auto;
		max-width: calc(100% - 24px);
		justify-content: center;
		margin: 0 12px;
		pointer-events: auto;
		box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
		gap: 7px;
		padding: 10px 14px 10px 12px;
		font-size: 15px;
	}
	.astro-ai-chat__bubble-icon {
		width: 22px;
		height: 22px;
		font-size: 15px;
		flex: 0 0 22px;
	}
	.astro-ai-chat__bubble-badge {
		height: 20px;
		min-width: 36px;
		padding: 0 7px;
		font-size: 9px;
	}
	.astro-ai-chat__header-avatar {
		flex: 0 0 32px;
		width: 32px;
		height: 32px;
		font-size: 14px;
	}
	.astro-ai-chat__header-meta {
		gap: 4px;
	}
	.astro-ai-chat__panel {
		position: fixed;
		right: 0;
		left: 0;
		top: 72px;
		bottom: 0;
		width: 100%;
		height: auto;
		max-width: none;
		max-height: none;
		border-radius: 18px 18px 0 0;
		border: 0;
		pointer-events: auto;
		box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.2);
	}
	@supports (height: 100dvh) {
		.astro-ai-chat__panel {
			top: calc(100dvh - min(88dvh, 760px));
		}
	}
	.astro-ai-chat__expand {
		display: none;
	}
	.astro-ai-chat__tooltip {
		right: 12px;
		white-space: normal;
		max-width: calc(100vw - 48px);
		text-align: right;
		transform: translateY(6px);
	}
	.astro-ai-chat__tooltip.is-visible {
		transform: translateY(0);
	}
	.astro-ai-chat__tooltip::after {
		right: 18px;
		transform: rotate(-45deg);
	}
	.astro-ai-chat__messages {
		min-height: 0;
	}
	.astro-ai-chat.astro-ai-chat--page,
	body.astro-ai-chat-page-mode .astro-ai-chat {
		position: static !important;
		right: auto !important;
		left: auto !important;
		bottom: auto !important;
		pointer-events: auto !important;
	}
	.astro-ai-chat.astro-ai-chat--page .astro-ai-chat__panel,
	body.astro-ai-chat-page-mode .astro-ai-chat__panel {
		position: relative !important;
		top: auto !important;
		bottom: auto !important;
		left: auto !important;
		right: auto !important;
		width: 100% !important;
		max-width: none !important;
		border-radius: 12px !important;
		box-shadow: none !important;
		border: 1px solid #dcdce8 !important;
	}
	.astro-free-chart-save-nudge__button {
		display: block;
		width: 100%;
		box-sizing: border-box;
		text-align: center;
	}
	.user_reg.astro-free-map-save-legacy .astro-free-map-save-legacy__actions {
		grid-template-columns: 1fr;
	}
}
@media (min-width: 641px) {
	.user_reg.astro-free-map-save-legacy .astro-free-map-save-legacy__actions {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}
/* .astro-report-tabs moved to style.css (shared: used on /birth-chart + /ai-chat) */
.astro-legacy-details {
	margin: 8px 0 14px 0;
	border: 1px solid #dcdce8;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}
.astro-legacy-details__summary {
	cursor: pointer;
	padding: 10px 12px;
	font-weight: bold;
	color: #2a63c7;
	background: #f6f7fb;
	list-style: none;
}
.astro-legacy-details__summary::-webkit-details-marker {
	display: none;
}
.astro-legacy-details__summary:before {
	content: "+ ";
	color: #b4437b;
}
.astro-legacy-details[open] .astro-legacy-details__summary:before {
	content: "- ";
}
.astro-legacy-details__body {
	padding: 10px 12px 6px;
	position: relative;
}
.astro-legacy-details:not([open]) .astro-legacy-details__body {
	max-height: 130px;
	overflow: hidden;
}
.astro-legacy-details:not([open]) .astro-legacy-details__body:after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 48px;
	background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}
.freesign { width:450px; float:right; text-align:right; padding:10px 8px; box-sizing:border-box; color:black; font-size:14px; }
.freesign p { margin:0; padding:0 3px; }
.freesign img { float:right; padding:0 0 10px 10px}
.freesign span { font-weight:bold; font-size:20px}
.freesign .signdate { font-weight:bold; font-size:13px;}
.freesign__chart-cta { clear: both; width: 100%; max-width: 100%; }

