/**
 * Floretika Portal — aligns with Elementor global colors when present.
 */
.floretika-shell {
	/* CTA pill buttons (match header “Book a session”) */
	--floretika-cta: #d6a85f;
	--floretika-cta-hover: #b88945;
	--floretika-cta-active: #a87d38;
	--floretika-accent: var(--e-global-color-primary, #2d6a4f);
	--floretika-accent-hover: var(--e-global-color-secondary, #1b4332);
	--floretika-text: var(--e-global-color-text, #1f2937);
	--floretika-muted: var(--e-global-color-text, #6b7280);
	--floretika-surface: #ffffff;
	--floretika-border: rgba(0, 0, 0, 0.08);
	--floretika-radius: 14px;
	--floretika-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
	--floretika-font: inherit;

	color: var(--floretika-text);
	font-family: var(--floretika-font);
	margin-left: auto;
	margin-right: auto;
	padding: clamp(1rem, 4vw, 2.5rem) 1rem;
	box-sizing: border-box;
}

.floretika-shell *,
.floretika-shell *::before,
.floretika-shell *::after {
	box-sizing: border-box;
}

/*
 * Elementor class names + Floretika pill CTA (reference: #d6a85f, capsule radius, white label).
 * !important wins over Kit / widget CSS so portal matches the header button look.
 */
.floretika-shell a.elementor-button.elementor-button-link,
.floretika-shell button.elementor-button.elementor-button-link,
.floretika-shell input.elementor-button.elementor-button-link {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	background-color: var(--floretika-cta) !important;
	background-image: none !important;
	border: none !important;
	border-radius: 9999px !important;
	box-shadow: none !important;
	color: #fff !important;
	fill: #fff !important;
	font-family: inherit;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	text-decoration: none !important;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	padding: 0.55rem 1.5rem !important;
}

.floretika-shell a.elementor-button.elementor-button-link:visited,
.floretika-shell a.elementor-button.elementor-button-link:visited .elementor-button-text {
	color: #fff !important;
}

.floretika-shell .elementor-button.elementor-button-link:hover,
.floretika-shell .elementor-button.elementor-button-link:focus {
	background-color: var(--floretika-cta-hover) !important;
	color: #fff !important;
}

.floretika-shell .elementor-button.elementor-button-link:active {
	background-color: var(--floretika-cta-active) !important;
	color: #fff !important;
}

.floretika-shell .elementor-button-text {
	display: inline-block;
	color: inherit !important;
}

.floretika-shell .elementor-button.elementor-size-sm {
	min-height: 2.35rem;
	font-size: 0.9375rem;
}

.floretika-ebtn-block {
	width: 100%;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.floretika-shell--narrow {
	max-width: 28rem;
}

.floretika-shell--wide {
	max-width: 1040px;
}

/* Mentor dashboard: fill the theme content column (default --wide caps width at 1040px). */
.floretika-shell--wide.floretika-shell--mentor {
	max-width: none;
	width: 100%;
}

.floretika-hero {
	text-align: center;
	margin-bottom: 1.75rem;
}

.floretika-hero__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--floretika-text);
}

.floretika-hero__lead {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.55;
	color: var(--floretika-muted);
}

.floretika-hero--guest .floretika-hero__title {
	color: var(--floretika-accent);
}

.floretika-guest-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.5rem !important;
}

.floretika-guest-actions .elementor-button {
	justify-content: center;
}

.floretika-portal-wrap {
	max-width: 100%;
	margin: 0 auto;
	font-size: 1rem;
	line-height: 1.5;
}

.floretika-portal-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--floretika-border);
}

.floretika-nav-logout {
	margin-left: auto;
	align-self: center;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	color: var(--floretika-accent, #2d6a4f);
	white-space: nowrap;
}

.floretika-nav-logout:hover,
.floretika-nav-logout:focus {
	text-decoration: underline;
	color: var(--floretika-accent-hover, #1b4332);
}

.floretika-upgrade {
	padding: 1.35rem 1.35rem 1.5rem;
	background: var(--floretika-surface);
	border: 1px solid var(--floretika-border);
	border-radius: var(--floretika-radius);
	box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
}

.floretika-upgrade__title {
	margin-top: 0;
	margin-bottom: 0.35rem;
	font-size: 1.15rem;
	letter-spacing: -0.01em;
}

.floretika-upgrade-option {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--floretika-border);
}

.floretika-upgrade-option:first-of-type {
	margin-top: 0.75rem;
	padding-top: 0;
	border-top: none;
}

@media (min-width: 640px) {
	.floretika-upgrade {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
		column-gap: 1.25rem;
		align-items: start;
	}

	.floretika-upgrade .floretika-upgrade__title {
		grid-column: 1 / -1;
	}

	.floretika-upgrade-option {
		margin-top: 0;
		padding: 1rem 1rem 1.05rem;
		border: 1px solid var(--floretika-border);
		border-radius: calc(var(--floretika-radius) - 2px);
		background: var(--floretika-surface);
		box-shadow: 0 1px 8px rgba(15, 23, 42, 0.04);
	}

	.floretika-upgrade-option:first-of-type {
		margin-top: 0;
		padding-top: 1rem;
		border-top: none;
	}
}

.floretika-upgrade-option__title {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.floretika-upgrade-option__price {
	margin: 0 0 0.65rem;
}

.floretika-portal-card,
.floretika-portal-wrap .floretika-portal-card {
	background: var(--floretika-surface);
	border: 1px solid var(--floretika-border);
	border-radius: var(--floretika-radius);
	padding: 1.35rem 1.5rem;
	margin-bottom: 1rem;
	box-shadow: var(--floretika-shadow);
}

.floretika-auth-card {
	padding: 1.75rem 1.75rem 1.5rem;
}

.floretika-dashboard-cards {
	display: grid;
	gap: 1rem;
}

@media (min-width: 640px) {
	.floretika-dashboard-cards {
		grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	}
}

/* Full-width rows in the dashboard grid (free hero + upgrade + session CTA). */
.floretika-dashboard-cards > .floretika-dashboard-free,
.floretika-dashboard-cards > .floretika-upgrade,
.floretika-dashboard-cards > .floretika-card--sessions-cta {
	grid-column: 1 / -1;
}

/* Free plan: hero panel (replaces awkward “Upgrade” + “free” stack). */
.floretika-dashboard-free {
	margin: 0;
	padding: 1.5rem 1.35rem 1.6rem;
	border-radius: var(--floretika-radius);
	border: 1px solid rgba(45, 106, 79, 0.14);
	background: linear-gradient(
		145deg,
		rgba(45, 106, 79, 0.06) 0%,
		rgba(214, 168, 95, 0.07) 48%,
		var(--floretika-surface) 100%
	);
	box-shadow: 0 2px 20px rgba(15, 23, 42, 0.05);
	position: relative;
	overflow: hidden;
}

.floretika-dashboard-free::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 90% 70% at 100% 0%, rgba(214, 168, 95, 0.12), transparent 55%);
	pointer-events: none;
}

.floretika-dashboard-free__head {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.65rem 1rem;
	margin-bottom: 0.85rem;
}

.floretika-dashboard-free__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.65rem;
	border-radius: 9999px;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--floretika-accent, #2d6a4f);
	background: rgba(45, 106, 79, 0.1);
	border: 1px solid rgba(45, 106, 79, 0.15);
	flex-shrink: 0;
}

.floretika-dashboard-free__title {
	margin: 0;
	flex: 1 1 12rem;
	font-size: clamp(1.2rem, 2.8vw, 1.45rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--floretika-text);
}

.floretika-dashboard-free__lead {
	position: relative;
	margin: 0 0 1rem;
	font-size: 1.02rem;
	line-height: 1.6;
	color: var(--floretika-text);
	max-width: 52rem;
}

.floretika-dashboard-free__features {
	position: relative;
	margin: 0;
	padding: 1rem 1rem 1.05rem 1.1rem;
	border-radius: calc(var(--floretika-radius) - 4px);
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid var(--floretika-border);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
	border-left: 3px solid var(--floretika-accent, #2d6a4f);
}

.floretika-dashboard-free__features-label {
	margin: 0 0 0.4rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--floretika-accent, #2d6a4f);
}

.floretika-dashboard-free__features-text {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--floretika-muted);
}

.floretika-dashboard-plan-card__title {
	margin-top: 0;
}

.floretika-dashboard-plan-card__ends {
	margin-bottom: 0;
}

.floretika-card h3 {
	margin-top: 0;
}

.floretika-status {
	font-size: 1.25rem;
	font-weight: 700;
	text-transform: capitalize;
}

.floretika-muted {
	color: var(--floretika-muted);
	font-size: 0.9rem;
}

/* Legacy plugin class (if any markup still references it) */
.floretika-shell .floretika-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1.5rem;
	border-radius: 9999px;
	border: 1px solid var(--floretika-border);
	background: var(--floretika-surface);
	cursor: pointer;
	font-weight: 600;
	margin: 0.25rem 0.5rem 0.25rem 0;
	text-decoration: none !important;
	color: var(--floretika-text) !important;
}

.floretika-shell .floretika-btn:hover {
	border-color: var(--floretika-cta-hover);
	color: var(--floretika-cta-hover) !important;
}

.floretika-shell .floretika-btn-primary {
	background: var(--floretika-cta);
	color: #fff !important;
	border: none;
}

.floretika-shell .floretika-btn-primary:hover {
	background: var(--floretika-cta-hover);
	color: #fff !important;
}

.floretika-auth-switch {
	text-align: center;
	margin: 1.25rem 0 0;
	font-size: 0.95rem;
	color: var(--floretika-muted);
}

.floretika-auth-switch a:not(.elementor-button) {
	color: var(--floretika-accent);
	font-weight: 600;
	text-decoration: none;
}

.floretika-auth-switch a:not(.elementor-button):hover {
	text-decoration: underline;
}

.floretika-auth-switch--btn .elementor-button {
	justify-content: center;
}

/* Registration fields */
.floretika-form--auth .floretika-form-field {
	margin-bottom: 1.1rem;
}

.floretika-form--auth label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.4rem;
	font-size: 0.9rem;
}

.floretika-input,
.floretika-form--auth input[type="text"],
.floretika-form--auth input[type="email"],
.floretika-form--auth input[type="password"] {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border-radius: 10px;
	border: 1px solid var(--floretika-border);
	font-size: 1rem;
	background: #fafafa;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.floretika-input:focus,
.floretika-form--auth input:focus {
	outline: none;
	border-color: var(--floretika-accent);
	box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
	background: #fff;
}

/* Core login form inside shortcode */
.floretika-login-card form {
	margin: 0;
}

.floretika-login-card .login-username,
.floretika-login-card .login-password,
.floretika-login-card .login-remember {
	margin-bottom: 1.1rem;
}

.floretika-login-card label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.4rem;
	font-size: 0.9rem;
}

.floretika-login-card input[type="text"],
.floretika-login-card input[type="password"] {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border-radius: 10px;
	border: 1px solid var(--floretika-border);
	font-size: 1rem;
	background: #fafafa;
}

.floretika-login-card input[type="text"]:focus,
.floretika-login-card input[type="password"]:focus {
	outline: none;
	border-color: var(--floretika-accent);
	box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
	background: #fff;
}

.floretika-login-card .login-remember label {
	display: inline;
	font-weight: 500;
	margin-left: 0.35rem;
}

.floretika-login-card .login-submit input[type="submit"]#floretika-wp-submit.elementor-button,
.floretika-login-card .login-submit input[type="submit"].elementor-button {
	width: 100%;
	margin-top: 0.25rem;
	text-align: center;
}

.floretika-form--auth button[type="submit"].elementor-button {
	width: 100%;
	justify-content: center;
	margin-top: 0.25rem;
}

.floretika-tag {
	display: inline-block;
	font-size: 0.75rem;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	background: rgba(45, 106, 79, 0.12);
	color: var(--floretika-accent-hover);
	margin-left: 0.35rem;
}

/*
 * Form viewer typography: Arial stack (system/local fonts only, no CDN).
 * Scoped to .floretika-form-render so portal nav/cards keep theme integration.
 */
.floretika-form-render {
	font-family: Arial, Helvetica, "Liberation Sans", sans-serif;
	color: #000000;
}

.floretika-form-render .floretika-form-title,
.floretika-form-render .floretika-form-desc,
.floretika-form-render .floretika-section-title,
.floretika-form-render .floretika-field label,
.floretika-form-render .floretika-field input,
.floretika-form-render .floretika-field textarea,
.floretika-form-render .floretika-field select,
.floretika-form-render .floretika-inline,
.floretika-form-render .floretika-form-info-image,
.floretika-form-render .floretika-form-info-image figcaption,
.floretika-form-render .floretika-form-info-text,
.floretika-form-render .floretika-grid-table {
	font-family: Arial, Helvetica, "Liberation Sans", sans-serif;
	color: #000000;
}

.floretika-form-render .floretika-field input::placeholder,
.floretika-form-render .floretika-field textarea::placeholder {
	color: #333333;
	opacity: 1;
}

/* Form viewer: shared header logo (PDF-style branding, once per screen — not in JSON) */
.floretika-form-chrome {
	margin: 0 0 1.35rem;
	padding-bottom: 1.15rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.floretika-form-chrome__logo {
	display: block;
	max-height: 104px;
	max-width: min(320px, 85vw);
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: left center;
}

.floretika-form-title {
	margin: 0 0 0.5rem;
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: var(--floretika-text);
}

.floretika-form-render .floretika-form-title {
	color: #000000;
}

.floretika-form-desc {
	margin-bottom: 1rem;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--floretika-muted);
}

.floretika-form-render .floretika-form-desc {
	color: #000000;
}

.floretika-form-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto auto;
	align-items: center;
	column-gap: clamp(0.65rem, 2vw, 1.15rem);
	row-gap: 0.45rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--floretika-border);
}

.floretika-form-row__title {
	min-width: 0;
}

.floretika-form-row__heading {
	display: block;
	font-weight: 700;
	font-size: inherit;
	line-height: 1.35;
	margin: 0;
	overflow-wrap: anywhere;
}

.floretika-form-row__meta {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-width: 0;
}

.floretika-form-row__meta .floretika-tag {
	white-space: nowrap;
	margin-left: 0;
}

.floretika-form-row__action {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	flex-shrink: 0;
}

.floretika-fieldset {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1rem;
	align-items: flex-start;
}

.floretika-field {
	flex: 1 1 100%;
	min-width: 0;
	margin-bottom: 1rem;
	box-sizing: border-box;
}

.floretika-field--width-half {
	flex: 1 1 calc(50% - 0.5rem);
	min-width: min(100%, 12rem);
}

.floretika-field > label:first-of-type,
.floretika-field > label.floretika-field__legend {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

/* Radio / checkbox option rows: not full-width block labels (avoids control stretched to the right) */
.floretika-field .floretika-choice-list .floretika-choice-label {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	width: auto;
	max-width: 100%;
	margin: 0;
	font-weight: 500;
	line-height: 1.35;
	cursor: pointer;
}

.floretika-field .floretika-choice-list--vertical .floretika-choice-label {
	align-items: flex-start;
}

.floretika-field input:not([type='radio']):not([type='checkbox']),
.floretika-field textarea,
.floretika-field select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.5rem 0.65rem;
	border-radius: 10px;
	border: 1px solid var(--floretika-border);
}

.floretika-field .floretika-choice-label input[type='radio'],
.floretika-field .floretika-choice-label input[type='checkbox'] {
	width: auto;
	min-width: 0;
	max-width: none;
	flex-shrink: 0;
	margin: 0.2rem 0 0;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	accent-color: var(--floretika-accent, #2d6a4f);
}

.floretika-form-info-text {
	flex: 1 1 100%;
	margin: 0 0 1.15rem;
	padding: 0.85rem 1rem;
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: rgba(45, 106, 79, 0.06);
}

.floretika-form-info-text__title {
	font-weight: 700;
	font-size: 1rem;
	margin: 0 0 0.4rem;
	color: #000000;
}

.floretika-form-info-text__body {
	font-size: 0.95rem;
	line-height: 1.55;
	color: #000000;
}

.floretika-form-info-text__body p {
	margin: 0 0 0.5rem;
}

/* Default: options in a row (inline); use --vertical to stack */
.floretika-choice-list {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	align-content: flex-start;
	gap: 0.5rem 1.25rem;
}

.floretika-choice-list--vertical {
	flex-direction: column;
	align-items: stretch;
	align-content: stretch;
	gap: 0.45rem;
}

/* Legacy: older markup used --inline for row layout */
.floretika-choice-list--inline {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	align-content: flex-start;
	gap: 0.5rem 1.25rem;
}

.floretika-choice-list--inline .floretika-choice-label,
.floretika-choice-list:not(.floretika-choice-list--vertical) .floretika-choice-label {
	white-space: normal;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	max-width: 100%;
	flex: 0 1 auto;
}

/*
 * Client portal: Elementor / themes often force labels to block + full width, which stacks
 * radio/checkbox options vertically. These rules must win over third-party form CSS.
 */
.floretika-form-render .floretika-field .floretika-choice-list:not(.floretika-choice-list--vertical) {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	align-content: flex-start !important;
	gap: 0.5rem 1.25rem !important;
	width: 100%;
	box-sizing: border-box;
}

.floretika-form-render .floretika-field .floretika-choice-list:not(.floretika-choice-list--vertical) .floretika-choice-label {
	display: inline-flex !important;
	align-items: center !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: 100% !important;
	flex: 0 1 auto !important;
	margin: 0 !important;
}

.floretika-field__select-wrap--inline {
	display: inline-block;
	width: auto;
	max-width: 100%;
}

.floretika-field__select-wrap--inline select {
	width: auto;
	min-width: min(100%, 14rem);
}

.floretika-grid-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0.25rem 0 0;
}

.floretika-field--grid {
	flex: 1 1 100%;
}

.floretika-field__grid-label {
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.floretika-grid-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
	background: #fff;
}

.floretika-grid-table th,
.floretika-grid-table td {
	border: 1px solid rgba(0, 0, 0, 0.12);
	padding: 0.4rem 0.5rem;
	vertical-align: top;
}

.floretika-grid-table__head,
.floretika-grid-table__rowhead {
	background: rgba(45, 106, 79, 0.08);
	font-weight: 600;
	text-align: left;
}

.floretika-grid-cell-input {
	width: 100%;
	min-width: 6rem;
	box-sizing: border-box;
	font: inherit;
	padding: 0.35rem 0.45rem;
	border-radius: 8px;
	border: 1px solid var(--floretika-border);
}

.floretika-form-open-toolbar {
	margin-bottom: 0.75rem;
}

.floretika-form-back-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	font: inherit;
	font-weight: 600;
	font-size: 0.9rem;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	border: 1px solid var(--floretika-border);
	background: var(--floretika-surface);
	color: var(--floretika-accent);
	cursor: pointer;
}

.floretika-form-back-btn:hover {
	background: rgba(45, 106, 79, 0.06);
}

.floretika-form-render--open {
	outline: 2px solid rgba(45, 106, 79, 0.2);
	outline-offset: 4px;
	border-radius: var(--floretika-radius);
	padding: 0.5rem 0.25rem;
}

.floretika-form-success {
	padding: 1rem 1.15rem;
}

.floretika-form-success__msg {
	margin: 0;
	font-weight: 600;
}

.floretika-form-success__score {
	margin: 0.65rem 0 0;
	font-size: 1rem;
}

.floretika-form-info-image {
	margin: 0 0 1.15rem;
	max-width: 100%;
}

.floretika-form-info-image__heading {
	font-weight: 600;
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
}

.floretika-form-info-image img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	border: 1px solid var(--floretika-border);
}

.floretika-form-info-image__caption {
	margin-top: 0.45rem;
	font-size: 0.875rem;
	line-height: 1.45;
}

.floretika-section-title {
	margin-top: 1.25rem;
}

.floretika-actions {
	margin-top: 1rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.floretika-thread {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	max-height: 420px;
	overflow-y: auto;
	border: 1px solid var(--floretika-border);
	border-radius: 10px;
	padding: 0.85rem;
	margin-bottom: 0.75rem;
	background: #f4f4f6;
}

.floretika-msg {
	display: flex;
	flex-direction: column;
	max-width: min(92%, 26rem);
	align-self: flex-start;
}

.floretika-msg-me {
	align-self: flex-end;
}

.floretika-msg__meta {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.35rem 0.65rem;
	margin-bottom: 0.25rem;
	font-size: 0.75rem;
	color: #64748b;
}

.floretika-msg-them .floretika-msg__meta {
	justify-content: flex-start;
}

.floretika-msg-me .floretika-msg__meta {
	flex-direction: row-reverse;
	justify-content: flex-end;
}

.floretika-msg__who {
	font-weight: 600;
	color: #475569;
}

.floretika-msg__time {
	font-variant-numeric: tabular-nums;
}

.floretika-msg__bubble {
	padding: 0.55rem 0.75rem;
	border-radius: 12px;
	border: 1px solid var(--floretika-border);
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.floretika-msg-me .floretika-msg__bubble {
	background: linear-gradient(165deg, rgba(214, 168, 95, 0.28) 0%, #fffbf5 100%);
	border-color: rgba(214, 168, 95, 0.5);
}

.floretika-msg-them .floretika-msg__bubble {
	background: #fff;
	border-color: #e2e8f0;
}

.floretika-msg-html {
	font-size: 0.95rem;
	line-height: 1.45;
	word-break: break-word;
}

.floretika-msg-files {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
}

.floretika-msg-files__item {
	margin-top: 0.35rem;
	font-size: 0.85rem;
}

.floretika-msg-files__thumb {
	max-width: 220px;
	margin-bottom: 0.25rem;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--floretika-border);
}

.floretika-msg-files__thumb img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
}

.floretika-msg-files__item a {
	color: #1d4ed8;
	text-decoration: underline;
}

.floretika-msg-composer {
	margin-top: 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.floretika-msg-composer__tools {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.floretika-msg-composer__file {
	position: absolute;
	width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	z-index: -1;
}

.floretika-msg-composer__attach-btn.elementor-button {
	margin: 0;
}

.floretika-msg-composer__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	min-height: 0;
}

.floretika-msg-composer__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.2rem 0.45rem;
	background: #f1f5f9;
	border-radius: 6px;
	font-size: 0.8rem;
	color: #334155;
}

.floretika-msg-composer__chip-remove {
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 0 0.15rem;
	line-height: 1;
	color: #64748b;
	font-size: 1rem;
}

.floretika-msg-composer__input {
	width: 100%;
	box-sizing: border-box;
}

.floretika-msg-empty {
	margin: 0 0 0.5rem;
	color: #64748b;
}

.floretika-paypal-btn {
	min-height: 45px;
	margin: 0.5rem 0 1rem;
}

.floretika-error {
	color: #b91c1c;
}

.floretika-cal-wrap iframe {
	max-width: 100%;
	border-radius: 10px;
}

/* Cal inline embed: height:100% needs a defined parent; avoid zero-height container. */
.floretika-cal-wrap [id^="my-cal-inline"] {
	min-height: min(85vh, 760px);
}

.floretika-cal-wrap--shortcode {
	min-height: min(85vh, 760px);
}

/* Account tab — calmer, premium layout (aligned with CTA gold) */
.floretika-account.floretika-portal-card.floretika-account--ready {
	padding: 0;
	background: linear-gradient(165deg, #fdfcfa 0%, #ffffff 42%, #faf9f7 100%);
	border-color: rgba(214, 168, 95, 0.18);
	box-shadow:
		0 10px 44px rgba(0, 0, 0, 0.055),
		0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.floretika-account-inner {
	padding: clamp(1.4rem, 3.2vw, 2.15rem) clamp(1.35rem, 3.5vw, 2.5rem);
	max-width: 44rem;
}

.floretika-account-section {
	margin: 0;
}

.floretika-account-section__header {
	margin-bottom: 1.35rem;
}

.floretika-account-section__title {
	position: relative;
	margin: 0 0 0.5rem;
	padding-bottom: 0.7rem;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--floretika-text);
}

.floretika-account-section__title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 2.75rem;
	height: 3px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--floretika-cta), rgba(214, 168, 95, 0.25));
}

.floretika-account-section__lead {
	margin: 0.35rem 0 0;
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--floretika-muted);
	max-width: 38rem;
}

.floretika-account-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.15rem 1.4rem;
	margin-bottom: 1.45rem;
}

@media (min-width: 640px) {
	.floretika-account-grid:not(.floretika-account-grid--password) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.floretika-account-field--full {
		grid-column: 1 / -1;
	}

	.floretika-account-grid--password {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.floretika-account-label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--floretika-text);
	margin-bottom: 0.45rem;
}

.floretika-account .floretika-input,
.floretika-account .floretika-account-select {
	width: 100%;
	max-width: 100%;
	background: #faf9f7;
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: 12px;
	padding: 0.72rem 1rem;
	font-size: 1rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.floretika-account .floretika-input:focus,
.floretika-account .floretika-account-select:focus {
	outline: none;
	border-color: rgba(214, 168, 95, 0.7);
	box-shadow: 0 0 0 3px rgba(214, 168, 95, 0.16);
	background: #fff;
}

.floretika-account .floretika-input--readonly {
	background: linear-gradient(180deg, #f3f2ef 0%, #faf9f7 100%);
	color: var(--floretika-muted);
	cursor: default;
}

.floretika-account .floretika-account-select {
	cursor: pointer;
	appearance: auto;
}

.floretika-account-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	margin-top: 0.15rem;
}

.floretika-account-divider {
	height: 1px;
	margin: 1.85rem 0;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(214, 168, 95, 0.28) 18%,
		rgba(214, 168, 95, 0.28) 82%,
		transparent 100%
	);
}

.floretika-account-btn {
	margin-top: 0.15rem;
}

.floretika-account-contract {
	margin-top: 0.25rem;
	padding-top: 0.55rem;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.floretika-account-contract__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0 0 0.65rem;
}

.floretika-account-contract__pdf {
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--floretika-accent, #2d6a4f);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.floretika-account-contract__pdf:hover {
	text-decoration: none;
}

.floretika-account-contract__lead {
	margin: 0 0 0.65rem;
	font-size: 0.9rem;
	line-height: 1.5;
}

.floretika-account-contract__agree {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.9375rem;
	line-height: 1.45;
	cursor: pointer;
	margin: 0;
	max-width: 40rem;
}

.floretika-account-contract__agree input[type='checkbox'] {
	margin-top: 0.2rem;
	flex-shrink: 0;
}

.floretika-account-contract__status {
	margin: 0.35rem 0 0;
	font-size: 0.9rem;
	line-height: 1.5;
	max-width: 40rem;
}

/* —— Mobile: client portal, forms, messages —— */
@media screen and (max-width: 639px) {
	.floretika-shell {
		padding-left: max(0.65rem, env(safe-area-inset-left, 0px));
		padding-right: max(0.65rem, env(safe-area-inset-right, 0px));
		padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
	}

	.floretika-shell--wide {
		max-width: 100%;
	}

	.floretika-portal-nav {
		gap: 0.4rem;
		row-gap: 0.45rem;
	}

	.floretika-portal-nav .floretika-nav-btn {
		font-size: 0.8125rem !important;
		padding: 0.45rem 0.7rem !important;
		min-height: 2.5rem;
	}

	.floretika-nav-logout {
		flex-basis: 100%;
		width: 100%;
		margin-left: 0;
		margin-top: 0.15rem;
		padding-top: 0.5rem;
		border-top: 1px solid var(--floretika-border);
		text-align: center;
	}

	.floretika-portal-card,
	.floretika-portal-wrap .floretika-portal-card {
		padding: 1rem 0.85rem;
	}

	.floretika-portal-wrap {
		max-width: 100%;
		min-width: 0;
	}

	.floretika-form-render {
		max-width: 100%;
		min-width: 0;
		overflow-x: hidden;
	}

	.floretika-fieldset {
		min-width: 0;
		flex-direction: column;
	}

	.floretika-field--width-half {
		flex: 1 1 100%;
		min-width: 0;
	}

	/* Reduces iOS zoom-on-focus on inputs */
	.floretika-form-render .floretika-field input,
	.floretika-form-render .floretika-field textarea,
	.floretika-form-render .floretika-field select {
		font-size: 16px;
		min-height: 2.75rem;
	}

	.floretika-form-render .floretika-field textarea {
		min-height: 6rem;
	}

	.floretika-form-row {
		grid-template-columns: 1fr;
		row-gap: 0.65rem;
	}

	.floretika-form-row__action {
		justify-content: stretch;
	}

	.floretika-form-row .elementor-button {
		width: 100%;
		justify-content: center !important;
	}

	.floretika-actions .elementor-button {
		flex: 1 1 auto;
		min-width: min(100%, 10rem);
		justify-content: center !important;
	}

	.floretika-thread {
		max-height: min(50vh, 22rem);
	}

	.floretika-cal-wrap {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		max-width: 100%;
	}

	.floretika-dashboard-cards {
		grid-template-columns: 1fr;
	}
}

/* Last-resort: beat late-loaded theme/Elementor form rules (ID + shell scope). */
.floretika-shell #floretika-form-render.floretika-form-render .floretika-field .floretika-choice-list:not(.floretika-choice-list--vertical) {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center !important;
}

.floretika-shell #floretika-form-render.floretika-form-render .floretika-field .floretika-choice-list:not(.floretika-choice-list--vertical) .floretika-choice-label {
	display: inline-flex !important;
	width: auto !important;
	flex: 0 1 auto !important;
}
