/* Astro Astrology Consultation — front styles */

body.astro-ac-modal-open {
	overflow: hidden;
}

.astro-ac-floating-btn {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 99990;
	padding: 12px 16px;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	font-weight: 600;
	background: #6b21a8;
	color: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.astro-ac-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(17, 24, 39, 0.55);
	z-index: 99991;
}

.astro-ac-modal {
	position: fixed;
	inset: 0;
	z-index: 99992;
	display: grid;
	place-items: center;
	padding: 24px;
}

.astro-ac-modal.is-inline {
	position: relative;
	inset: auto;
	z-index: 1;
	display: block;
	padding: 0;
}

.astro-ac-modal-inner {
	width: min(920px, 100%);
	max-height: min(88vh, 900px);
	overflow: auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

.astro-ac-inline .astro-ac-modal-inner {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.astro-ac-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	border-bottom: 1px solid #eee;
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 2;
}

.astro-ac-head h2 {
	margin: 0;
	font-size: 1.25rem;
}

.astro-ac-close {
	border: none;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.astro-ac-tabs {
	display: flex;
	gap: 8px;
	padding: 10px 12px;
	border-bottom: 1px solid #eee;
	flex-wrap: wrap;
}

.astro-ac-tabs button {
	border: 1px solid #ddd;
	background: #fafafa;
	padding: 8px 12px;
	border-radius: 8px;
	cursor: pointer;
}

.astro-ac-tabs button.is-active {
	border-color: #6b21a8;
	background: #f5f3ff;
	font-weight: 600;
}

.astro-ac-panel {
	padding: 16px 18px 22px;
}

.astro-ac-panel input[type="text"],
.astro-ac-panel input[type="email"],
.astro-ac-panel input[type="tel"],
.astro-ac-panel input[type="date"],
.astro-ac-panel input[type="time"],
.astro-ac-panel select,
.astro-ac-panel textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.astro-ac-chat-intro {
	font-size: 0.875rem;
	line-height: 1.45;
	color: #4b5563;
	margin: 0 0 10px;
	padding: 10px 12px;
	background: #fafaf9;
	border-left: 3px solid #6b21a8;
	border-radius: 4px;
}

.astro-ac-wallet-hint {
	font-size: 0.9rem;
	color: #4b5563;
	margin: 0 0 10px;
	padding: 8px 10px;
	background: #f3f4f6;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
}

.astro-ac-chat-thread {
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 12px;
	min-height: 160px;
	max-height: 260px;
	overflow: auto;
	background: #fafafa;
	margin-bottom: 12px;
}

.astro-ac-bubble {
	display: flex;
	margin-bottom: 10px;
}

.astro-ac-bubble.is-you {
	justify-content: flex-end;
}

.astro-ac-bubble-inner {
	max-width: 82%;
	padding: 10px 12px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #e5e7eb;
}

.astro-ac-bubble.is-you .astro-ac-bubble-inner {
	background: #ede9fe;
	border-color: #ddd6fe;
}

.astro-ac-pay-box {
	border: 1px dashed #c4b5fd;
	padding: 12px;
	border-radius: 10px;
	background: #faf5ff;
	margin-top: 12px;
}

.astro-ac-msg {
	color: #374151;
	min-height: 1.25em;
}

.astro-ac-field-invalid {
	border-color: #dc2626 !important;
	box-shadow: 0 0 0 1px #dc2626 !important;
}

.astro-ac-field-error {
	display: block;
	margin-top: 5px;
	color: #b91c1c;
	font-size: 0.82rem;
	line-height: 1.3;
}

.astro-ac-history-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.astro-ac-history-list li {
	padding: 12px 0;
	border-bottom: 1px solid #eee;
}

.astro-ac-tag {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: #fee2e2;
	color: #991b1b;
	font-size: 12px;
}

.astro-ac-remedy-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
	margin-top: 12px;
}

.astro-ac-remedy-cards article {
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 12px;
	background: #fff;
}

.astro-ac-remedy-cart .button {
	margin-right: 8px;
	margin-top: 6px;
	display: inline-block;
}

.astro-ac-error {
	color: #b91c1c;
}

.astro-ac-thankyou-answer,
.astro-ac-order-box {
	border: 1px solid #e9d5ff;
	background: #faf5ff;
	padding: 14px;
	border-radius: 10px;
	margin: 12px 0;
}

@media (max-width: 600px) {
	.astro-ac-floating-btn {
		right: 12px;
		bottom: 12px;
	}
}

/*
 * Force readable text inside the modal (Elementor / dark themes often set label/form color to white).
 * Scoped to #astro-ac-root so site chrome is unaffected.
 */
#astro-ac-root .astro-ac-modal-inner {
	color: #111827;
}

#astro-ac-root .astro-ac-modal-inner fieldset,
#astro-ac-root .astro-ac-modal-inner legend,
#astro-ac-root .astro-ac-modal-inner label:not(.screen-reader-text),
#astro-ac-root .astro-ac-modal-inner .astro-ac-lang {
	color: #111827 !important;
}

#astro-ac-root .astro-ac-head h2 {
	color: #111827 !important;
}

#astro-ac-root .astro-ac-tabs button {
	color: #111827 !important;
}

#astro-ac-root .astro-ac-tabs button.is-active {
	color: #4c1d95 !important;
}

#astro-ac-root .astro-ac-close {
	color: #374151 !important;
}

#astro-ac-root .astro-ac-modal-inner input[type="text"],
#astro-ac-root .astro-ac-modal-inner input[type="email"],
#astro-ac-root .astro-ac-modal-inner input[type="tel"],
#astro-ac-root .astro-ac-modal-inner input[type="date"],
#astro-ac-root .astro-ac-modal-inner input[type="time"],
#astro-ac-root .astro-ac-modal-inner select,
#astro-ac-root .astro-ac-modal-inner textarea {
	color: #111827 !important;
	background-color: #ffffff !important;
	border: 1px solid #d1d5db !important;
}

#astro-ac-root .astro-ac-modal-inner select option {
	color: #111827;
	background-color: #ffffff;
}

#astro-ac-root .astro-ac-pay-box,
#astro-ac-root .astro-ac-pay-box p,
#astro-ac-root #astro-ac-pay-text {
	color: #111827 !important;
}

#astro-ac-root .astro-ac-chat-thread,
#astro-ac-root .astro-ac-bubble-inner {
	color: #111827 !important;
}

#astro-ac-root .astro-ac-history-list,
#astro-ac-root .astro-ac-history-list li {
	color: #111827 !important;
}

#astro-ac-root .astro-ac-chat-intro {
	color: #374151 !important;
	background-color: #fafaf9 !important;
	border-left-color: #6b21a8 !important;
}

#astro-ac-root .astro-ac-wallet-hint {
	color: #374151 !important;
	background-color: #f3f4f6 !important;
	border-color: #e5e7eb !important;
}

/* Remedy shortcode (separate root id) */
#astro-ac-remedy-root.astro-ac-remedy,
#astro-ac-remedy-root.astro-ac-remedy label,
#astro-ac-remedy-root.astro-ac-remedy p,
#astro-ac-remedy-output {
	color: #111827 !important;
}

#astro-ac-remedy-root.astro-ac-remedy input,
#astro-ac-remedy-root.astro-ac-remedy select,
#astro-ac-remedy-root.astro-ac-remedy textarea {
	color: #111827 !important;
	background-color: #ffffff !important;
	border: 1px solid #d1d5db !important;
}

.astro-ac-remedy-cards article,
.astro-ac-remedy-cards article h4,
.astro-ac-remedy-cards article p {
	color: #111827 !important;
}
