/* Floating contact — reference-style edge slide-out pills */

.cc-float-contact {
	--cc-float-accent: var(--ts-primary-color, #c6a37b);
	--cc-float-dark: var(--ts-btn-bg, #1a1a1a);
	--cc-float-dark-hover: var(--ts-btn-hover-bg, #2a2a2a);
	--cc-float-accent-deep: color-mix(in srgb, var(--cc-float-accent) 55%, var(--cc-float-dark));
	--cc-float-accent-soft: color-mix(in srgb, var(--cc-float-accent) 78%, #fff);
	--cc-float-peek: 50px;
	--cc-float-height: 46px;

	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 99990;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	padding: 0;
}

.cc-float-contact__list {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cc-float-contact__btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	height: var(--cc-float-height);
	padding: 0 22px 0 16px;
	border: 0;
	border-radius: calc(var(--cc-float-height) / 2) 0 0 calc(var(--cc-float-height) / 2);
	color: #fff !important;
	text-decoration: none;
	font-size: 0.84rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: capitalize;
	box-shadow: -4px 4px 16px rgba(0, 0, 0, 0.18);
	transform: translateX(calc(100% - var(--cc-float-peek)));
	transition: transform 0.32s ease, box-shadow 0.32s ease;
	white-space: nowrap;
	will-change: transform;
	cursor: pointer;
	font-family: inherit;
}

.cc-float-contact__btn:hover,
.cc-float-contact__btn:focus-visible {
	color: #fff !important;
	text-decoration: none;
	transform: translateX(0);
	box-shadow: -6px 6px 22px rgba(0, 0, 0, 0.24);
}

.cc-float-contact__btn:hover .cc-float-contact__icon,
.cc-float-contact__btn:hover .cc-float-contact__icon i,
.cc-float-contact__btn:hover .cc-float-contact__label,
.cc-float-contact__btn:focus-visible .cc-float-contact__icon,
.cc-float-contact__btn:focus-visible .cc-float-contact__icon i,
.cc-float-contact__btn:focus-visible .cc-float-contact__label {
	color: #fff !important;
}

.cc-float-contact__icon,
.cc-float-contact__icon i,
.cc-float-contact__label {
	color: #fff !important;
}

.cc-float-contact__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	flex-shrink: 0;
	font-size: 1.05rem;
	line-height: 1;
}

.cc-float-contact__label {
	line-height: 1;
	padding-right: 2px;
}

/* Theme colors only — accent + dark palette */
.cc-float-contact__btn--online {
	background: var(--cc-float-accent);
}

.cc-float-contact__btn--contact {
	background: var(--cc-float-dark);
}

.cc-float-contact__btn--email {
	background: var(--cc-float-accent-deep);
}

.cc-float-contact__btn--whatsapp {
	background: var(--cc-float-accent-soft);
}

.cc-float-contact__btn--online:hover,
.cc-float-contact__btn--online:focus-visible {
	background: var(--cc-float-accent) !important;
}

.cc-float-contact__btn--contact:hover,
.cc-float-contact__btn--contact:focus-visible {
	background: var(--cc-float-dark) !important;
}

.cc-float-contact__btn--email:hover,
.cc-float-contact__btn--email:focus-visible {
	background: var(--cc-float-accent-deep) !important;
}

.cc-float-contact__btn--whatsapp:hover,
.cc-float-contact__btn--whatsapp:focus-visible {
	background: var(--cc-float-accent-soft) !important;
}

@media (max-width: 767px) {
	.cc-float-contact {
		top: auto;
		bottom: 96px;
		transform: none;
		--cc-float-peek: 46px;
		--cc-float-height: 42px;
	}

	.cc-float-contact__btn {
		font-size: 0.8rem;
		padding: 0 18px 0 14px;
	}
}

/* Pop-up cards — phone & email */
body.cc-float-modal-open {
	overflow: hidden;
}

.cc-float-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.cc-float-popup[hidden] {
	display: none !important;
}

.cc-float-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.cc-float-popup__card {
	position: relative;
	width: min(100%, 380px);
	padding: 32px 28px 28px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
	text-align: center;
}

.cc-float-popup__close,
.cc-float-chatbot__close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: #f3f3f3;
	color: #333;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.cc-float-popup__icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f7f3ee;
	color: #1a1a1a;
	font-size: 1.25rem;
}

.cc-float-popup__title {
	margin: 0 0 8px;
	font-family: var(--ts-heading-font-family, serif);
	font-size: 1.35rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #1a1a1a;
}

.cc-float-popup__label {
	margin: 0 0 6px;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #888;
}

.cc-float-popup__value {
	margin: 0 0 22px;
	font-size: 1.05rem;
	font-weight: 600;
	color: #1a1a1a;
	word-break: break-word;
}

.cc-float-popup__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cc-float-popup__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	font-family: inherit;
}

.cc-float-popup__action--primary {
	background: #1a1a1a;
	color: #fff !important;
	border: 1px solid #1a1a1a;
}

.cc-float-popup__action--ghost {
	background: transparent;
	color: #1a1a1a;
	border: 1px solid #ddd;
}

/* Online chatbot */
.cc-float-chatbot {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	padding: 20px;
}

.cc-float-chatbot[hidden] {
	display: none !important;
}

.cc-float-chatbot__panel {
	position: relative;
	width: min(100%, 360px);
	max-height: min(78vh, 560px);
	display: flex;
	flex-direction: column;
	border-radius: 18px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.cc-float-chatbot__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	background: #1a1a1a;
	color: #fff;
}

.cc-float-chatbot__header-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: left;
}

.cc-float-chatbot__header-text strong {
	font-size: 0.95rem;
	font-weight: 600;
}

.cc-float-chatbot__header-text span {
	font-size: 0.72rem;
	opacity: 0.75;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cc-float-chatbot__close {
	position: static;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	line-height: 1;
}

.cc-float-chatbot__messages {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 18px;
	background: #faf7f2;
}

.cc-float-chatbot__bubble {
	max-width: 88%;
	margin: 0 0 12px;
	padding: 12px 14px;
	border-radius: 14px 14px 14px 4px;
	background: #fff;
	color: #333;
	font-size: 0.88rem;
	line-height: 1.55;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.cc-float-chatbot__bubble.is-user {
	margin-left: auto;
	border-radius: 14px 14px 4px 14px;
	background: #1a1a1a;
	color: #fff;
}

.cc-float-chatbot__form {
	padding: 14px 16px 16px;
	border-top: 1px solid #eee;
	background: #fff;
}

/* After submit: hide the form, show only messages */
.cc-float-chatbot__panel.is-submitted .cc-float-chatbot__form {
	display: none;
}

.cc-float-chatbot__panel.is-submitted .cc-float-chatbot__messages {
	flex: 1 1 auto;
}

.cc-float-chatbot__fields {
	display: grid;
	gap: 8px;
	margin-bottom: 10px;
}

.cc-float-chatbot__fields input,
.cc-float-chatbot__fields textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	font: inherit;
	font-size: 0.88rem;
	resize: vertical;
}

.cc-float-chatbot__submit {
	width: 100%;
	min-height: 42px;
	border: 0;
	border-radius: 999px;
	background: var(--cc-float-accent, #c6a37b);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
}

.cc-float-chatbot__submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

.cc-float-chatbot__status {
	margin: 10px 0 0;
	font-size: 0.8rem;
	line-height: 1.4;
	display: none;
}

.cc-float-chatbot__status.is-success {
	color: #1f7a3b;
}

.cc-float-chatbot__status.is-error {
	color: #b42318;
}

@media (max-width: 767px) {
	.cc-float-chatbot {
		padding: 0;
		align-items: stretch;
	}

	.cc-float-chatbot__panel {
		width: 100%;
		max-height: 100%;
		border-radius: 18px 18px 0 0;
	}
}
