/* DEXA PEPTIDES — Floating Contact Widget & Age Verification Modal */

/* ===== Floating Contact Widget (bottom-left) ===== */
.contact-widget {
	position: fixed;
	left: 1.5rem;
	bottom: 1.5rem;
	z-index: 1000;
	display: flex;
	flex-direction: column-reverse;
	align-items: flex-start;
	gap: 0.85rem;
}

.contact-widget-toggle {
	width: 56px;
	height: 56px;
	border: none;
	border-radius: 50%;
	background-color: var(--brand-primary-red);
	color: var(--brand-white);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
	transition:
		transform 0.2s ease,
		background-color 0.2s ease;
}

.contact-widget-toggle:hover {
	transform: scale(1.06);
	background-color: #9c0a0e;
}

.contact-widget-toggle svg {
	width: 26px;
	height: 26px;
}

.contact-widget-toggle .icon-close {
	display: none;
}

.contact-widget.open .contact-widget-toggle .icon-chat {
	display: none;
}

.contact-widget.open .contact-widget-toggle .icon-close {
	display: block;
}

.contact-widget-menu {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
}

.contact-widget.open .contact-widget-menu {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.contact-widget-option {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.6rem 1rem 0.6rem 0.65rem;
	background-color: var(--brand-white);
	color: var(--brand-dark-gray);
	border: 1px solid var(--brand-off-white);
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	transition:
		transform 0.15s ease,
		box-shadow 0.15s ease;
	white-space: nowrap;
}

.contact-widget-option:hover {
	transform: translateX(3px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.contact-widget-option .option-icon {
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--brand-white);
}

.contact-widget-option .option-icon svg {
	width: 19px;
	height: 19px;
}

.contact-widget-option.whatsapp .option-icon {
	background-color: #25d366;
}

.contact-widget-option.email .option-icon {
	background-color: var(--brand-medium-gray);
}

.contact-widget-option.chatbot .option-icon {
	background-color: var(--brand-primary-red);
}

/* ===== AI Chatbot Placeholder Panel ===== */
.chatbot-panel {
	position: fixed;
	left: 1.5rem;
	bottom: 6.25rem;
	z-index: 1001;
	width: 340px;
	max-width: calc(100vw - 3rem);
	height: 460px;
	max-height: calc(100vh - 8rem);
	background-color: var(--brand-white);
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	opacity: 0;
	transform: translateY(16px) scale(0.98);
	pointer-events: none;
	transition:
		opacity 0.22s ease,
		transform 0.22s ease;
}

.chatbot-panel.open {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.chatbot-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.1rem;
	background-color: var(--brand-primary-red);
	color: var(--brand-white);
}

.chatbot-header-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.chatbot-header-avatar svg {
	width: 20px;
	height: 20px;
}

.chatbot-header-text {
	flex: 1;
	line-height: 1.3;
}

.chatbot-header-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--brand-white);
}

.chatbot-header-status {
	font-size: 0.75rem;
	opacity: 0.9;
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.chatbot-header-status::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background-color: #25d366;
	display: inline-block;
}

.chatbot-close {
	background: none;
	border: none;
	color: var(--brand-white);
	cursor: pointer;
	padding: 4px;
	display: flex;
	border-radius: 6px;
	transition: background-color 0.15s ease;
}

.chatbot-close:hover {
	background-color: rgba(255, 255, 255, 0.18);
}

.chatbot-close svg {
	width: 20px;
	height: 20px;
}

.chatbot-body {
	flex: 1;
	padding: 1.1rem;
	overflow-y: auto;
	background-color: #f7f7f7;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.chatbot-message {
	max-width: 85%;
	padding: 0.65rem 0.9rem;
	border-radius: 14px;
	font-size: 0.88rem;
	line-height: 1.5;
}

.chatbot-message.bot {
	align-self: flex-start;
	background-color: var(--brand-white);
	border: 1px solid var(--brand-off-white);
	border-bottom-left-radius: 4px;
}

.chatbot-message.placeholder-note {
	align-self: center;
	background: none;
	border: none;
	color: var(--brand-medium-gray);
	font-size: 0.78rem;
	font-style: italic;
	text-align: center;
}

.chatbot-message.user {
	align-self: flex-end;
	background-color: var(--brand-primary-red);
	color: var(--brand-white);
	border-bottom-right-radius: 4px;
}

/* Link buttons inside a bot reply */
.chatbot-links {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-top: 0.65rem;
}

.chatbot-link {
	display: inline-block;
	padding: 0.45rem 0.8rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--brand-primary-red);
	text-decoration: none;
	border: 1px solid var(--brand-off-white);
	border-radius: 999px;
	background-color: var(--brand-white);
	transition:
		border-color 0.15s ease,
		background-color 0.15s ease;
}

.chatbot-link:hover {
	border-color: var(--brand-primary-red);
	background-color: #fff5f5;
}

/* One-tap topic chips */
.chatbot-quick {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-self: flex-start;
	max-width: 100%;
}

.chatbot-quick-chip {
	padding: 0.4rem 0.75rem;
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--brand-dark-gray);
	background-color: var(--brand-white);
	border: 1px solid var(--brand-off-white);
	border-radius: 999px;
	cursor: pointer;
	transition:
		border-color 0.15s ease,
		color 0.15s ease;
}

.chatbot-quick-chip:hover {
	border-color: var(--brand-primary-red);
	color: var(--brand-primary-red);
}

/* Typing indicator */
.chatbot-typing {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	width: fit-content;
}

.chatbot-typing span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var(--brand-light-gray);
	animation: dexa-typing 1s infinite ease-in-out;
}

.chatbot-typing span:nth-child(2) {
	animation-delay: 0.15s;
}

.chatbot-typing span:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes dexa-typing {
	0%,
	60%,
	100% {
		transform: translateY(0);
		opacity: 0.5;
	}
	30% {
		transform: translateY(-4px);
		opacity: 1;
	}
}

.chatbot-footer {
	display: flex;
	gap: 0.5rem;
	padding: 0.75rem;
	border-top: 1px solid var(--brand-off-white);
	background-color: var(--brand-white);
}

.chatbot-footer input {
	flex: 1;
	border: 1px solid var(--brand-off-white);
	border-radius: 999px;
	padding: 0.55rem 0.95rem;
	font-family: inherit;
	font-size: 0.88rem;
	color: var(--brand-dark-gray);
	outline: none;
}

.chatbot-footer input:focus {
	border-color: var(--brand-primary-red);
}

.chatbot-send {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border: none;
	border-radius: 50%;
	background-color: var(--brand-primary-red);
	color: var(--brand-white);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s ease;
}

.chatbot-send:hover {
	background-color: #9c0a0e;
}

.chatbot-send svg {
	width: 18px;
	height: 18px;
}

/* ===== Age Verification Modal ===== */
.age-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 2000;
	background-color: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.25s ease,
		visibility 0.25s ease;
}

.age-modal-overlay.show {
	opacity: 1;
	visibility: visible;
}

.age-modal {
	background-color: var(--brand-white);
	border-radius: 16px;
	max-width: 440px;
	width: 100%;
	padding: 2.5rem 2rem;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
	transform: translateY(20px) scale(0.97);
	transition: transform 0.25s ease;
}

.age-modal-overlay.show .age-modal {
	transform: translateY(0) scale(1);
}

.age-modal-logo {
	width: 64px;
	height: 64px;
	margin: 0 auto 1.25rem;
	border-radius: 50%;
	background-color: var(--brand-primary-red);
	display: flex;
	align-items: center;
	justify-content: center;
}

.age-modal-logo svg {
	width: 32px;
	height: 32px;
	color: var(--brand-white);
}

.age-modal h2 {
	font-size: 1.5rem;
	color: var(--brand-black);
	margin-bottom: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.age-modal p {
	font-size: 0.95rem;
	color: var(--brand-medium-gray);
	line-height: 1.6;
	margin-bottom: 1.75rem;
}

.age-modal-actions {
	display: flex;
	gap: 0.85rem;
}

.age-modal-btn {
	flex: 1;
	padding: 0.85rem 1rem;
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition:
		background-color 0.15s ease,
		color 0.15s ease,
		border-color 0.15s ease;
}

.age-modal-btn.confirm {
	background-color: var(--brand-primary-red);
	color: var(--brand-white);
	border: 2px solid var(--brand-primary-red);
}

.age-modal-btn.confirm:hover {
	background-color: #9c0a0e;
	border-color: #9c0a0e;
}

.age-modal-btn.deny {
	background-color: transparent;
	color: var(--brand-medium-gray);
	border: 2px solid var(--brand-off-white);
}

.age-modal-btn.deny:hover {
	border-color: var(--brand-medium-gray);
	color: var(--brand-dark-gray);
}

.age-modal-denied {
	display: none;
}

.age-modal-overlay.denied .age-modal-content {
	display: none;
}

.age-modal-overlay.denied .age-modal-denied {
	display: block;
}

.age-modal-disclaimer {
	margin-top: 1.5rem;
	font-size: 0.75rem;
	color: var(--brand-light-gray);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
	.contact-widget {
		left: 1rem;
		bottom: 1rem;
	}

	.chatbot-panel {
		left: 1rem;
		right: 1rem;
		width: auto;
		bottom: 5.5rem;
	}
}
