/* Terra Rhona – Assistant FAQ */
.tr27a-btn,
.tr27a-panel {
	--tr27a-bx: #631b31;
	--tr27a-ink: #221c20;
	--tr27a-txt: "Century Gothic", "Avenir Next", Futura, "Segoe UI", sans-serif;
	box-sizing: border-box;
}

.tr27a-panel *,
.tr27a-panel *::before,
.tr27a-panel *::after {
	box-sizing: border-box;
}

.tr27a-btn {
	position: fixed;
	right: 18px;
	bottom: 76px;
	z-index: 99;
	padding: 11px 20px;
	border: 2px solid var(--tr27a-bx);
	border-radius: 100px;
	background: #fff;
	color: var(--tr27a-bx);
	font-family: var(--wp--preset--font-family--terra-rhona), sans-serif;
	font-size: 14px;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.tr27a-btn:hover,
.tr27a-btn:focus-visible,
.tr27a-btn[aria-expanded="true"] {
	background: var(--tr27a-bx);
	color: #fff;
	outline: none;
}

.tr27a-btn:focus-visible {
	outline: 2px solid var(--tr27a-bx);
	outline-offset: 3px;
}

.tr27a-panel {
	position: fixed;
	right: 18px;
	bottom: 130px;
	z-index: 100;
	display: flex;
	flex-direction: column;
	width: min(380px, calc(100vw - 32px));
	max-height: min(560px, calc(100vh - 170px));
	border-radius: 14px;
	background: #fff;
	color: var(--tr27a-ink);
	font-family: var(--tr27a-txt);
	font-size: 15px;
	line-height: 1.4;
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
	overflow: hidden;
}

.tr27a-panel[hidden] {
	display: none;
}

.tr27a-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	background: var(--tr27a-bx);
	color: #fff;
}

.tr27a-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--terra-rhona), sans-serif;
	font-size: 16px;
	text-transform: uppercase;
}

.tr27a-close {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.tr27a-close:hover,
.tr27a-close:focus-visible {
	background: rgba(255, 255, 255, 0.18);
	outline: none;
}

.tr27a-log {
	flex: 1;
	min-height: 120px;
	padding: 12px;
	overflow-y: auto;
	background: #f8f5f6;
}

.tr27a-msg {
	max-width: 92%;
	margin: 0 0 10px;
	padding: 9px 12px;
	border-radius: 12px;
	overflow-wrap: anywhere;
}

.tr27a-msg p {
	margin: 0 0 6px;
}

.tr27a-msg p:last-child {
	margin-bottom: 0;
}

.tr27a-bot {
	background: #fff;
	border: 1px solid #eadfe3;
	border-bottom-left-radius: 4px;
}

.tr27a-user {
	margin-left: auto;
	background: var(--tr27a-bx);
	color: #fff;
	border-bottom-right-radius: 4px;
}

.tr27a-intro {
	font-weight: 600;
}

.tr27a-answer {
	margin: 8px 0;
	padding: 8px 10px;
	border-left: 3px solid var(--tr27a-bx);
	background: #fbf8f9;
}

.tr27a-q {
	color: var(--tr27a-bx);
	font-weight: 700;
}

.tr27a-answer a,
.tr27a-msg a {
	color: var(--tr27a-bx);
	text-decoration: underline;
}

.tr27a-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.tr27a-chip {
	padding: 6px 12px;
	border: 1px solid var(--tr27a-bx);
	border-radius: 100px;
	background: #fff;
	color: var(--tr27a-bx);
	font-family: var(--tr27a-txt);
	font-size: 13px;
	cursor: pointer;
}

.tr27a-chip:hover,
.tr27a-chip:focus-visible {
	background: var(--tr27a-bx);
	color: #fff;
	outline: none;
}

.tr27a-ask {
	display: flex;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid #eadfe3;
	background: #fff;
}

.tr27a-input,
.tr27a-field input,
.tr27a-field textarea {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid #d8cdd1;
	border-radius: 8px;
	background: #fff;
	color: var(--tr27a-ink);
	font-family: var(--tr27a-txt);
	font-size: 15px;
}

.tr27a-input:focus-visible,
.tr27a-field input:focus-visible,
.tr27a-field textarea:focus-visible {
	outline: 2px solid var(--tr27a-bx);
	outline-offset: 0;
	border-color: var(--tr27a-bx);
}

.tr27a-send {
	flex: none;
	padding: 9px 14px;
	border: 0;
	border-radius: 8px;
	background: var(--tr27a-bx);
	color: #fff;
	font-family: var(--tr27a-txt);
	font-size: 14px;
	cursor: pointer;
}

.tr27a-send:hover,
.tr27a-send:focus-visible {
	background: #8b1e33;
	outline: none;
}

.tr27a-send[disabled] {
	opacity: 0.6;
	cursor: wait;
}

.tr27a-mail {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 8px;
}

.tr27a-field {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin: 0;
	font-size: 13px;
}

.tr27a-mail .tr27a-send {
	align-self: flex-end;
}

.tr27a-trap {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}

.tr27a-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (max-width: 600px) {
	.tr27a-btn {
		right: 12px;
		bottom: 72px;
		padding: 10px 16px;
	}

	.tr27a-panel {
		right: 8px;
		left: 8px;
		bottom: 8px;
		width: auto;
		max-height: calc(100vh - 90px);
	}

	body.tr27a-open .tr27-float,
	body.tr27a-open .tr27a-btn,
	body.tr27a-open .cky-btn-revisit-wrapper {
		display: none;
	}
}
