/* Petji VET Widget — scoped unter .pvet, erbt die Theme-Typografie */
.pvet {
	--pvet-red: #ae2724;
	--pvet-red-dark: #8b1f1c;
	--pvet-sage: #55906c;
	--pvet-sage-light: #e2efe6;
	--pvet-ink: #2a2522;

	max-width: 680px;
	margin: 0 auto;
	border: 1px solid #e8e0db;
	border-radius: 18px;
	overflow: hidden;
	background: #fff;
	font-family: inherit;
	color: var(--pvet-ink);
	box-shadow: 0 8px 30px rgba(43, 20, 14, 0.08);
}

/* Header */
.pvet-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	background: var(--pvet-red);
	color: #fff;
}
.pvet-logo { font-size: 26px; line-height: 1; }
.pvet-title { margin: 0; font-weight: 700; font-size: 16px; color: #fff; }
.pvet-subtitle { margin: 0; font-size: 12.5px; opacity: 0.85; color: #fff; }

/* Tier-Auswahl */
.pvet-step-animal { padding: 22px 20px; }
.pvet-label { margin: 0 0 12px; font-weight: 600; }
.pvet-animals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pvet-animal {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 14px 6px;
	font-size: 26px;
	background: var(--pvet-sage-light);
	border: 2px solid transparent;
	border-radius: 14px;
	cursor: pointer;
	transition: transform 0.12s ease;
}
.pvet-animal span { font-size: 13px; font-weight: 600; color: var(--pvet-ink); }
.pvet-animal:hover { transform: translateY(-2px); border-color: var(--pvet-sage); }
.pvet-animal:focus-visible { outline: 3px solid var(--pvet-sage); outline-offset: 2px; }
.pvet-animal:active { transform: translateY(0); }

/* Chat */
.pvet-messages {
	max-height: 420px;
	min-height: 180px;
	overflow-y: auto;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: linear-gradient(180deg, #fdfaf8, #fff);
}
.pvet-msg { display: flex; }
.pvet-msg--user { justify-content: flex-end; }
.pvet-bubble {
	max-width: 85%;
	padding: 10px 14px;
	border-radius: 14px;
	font-size: 14.5px;
	line-height: 1.55;
	white-space: pre-wrap;
	word-break: break-word;
}
.pvet-msg--user .pvet-bubble { background: var(--pvet-red); color: #fff; border-bottom-right-radius: 4px; }
.pvet-msg--assistant .pvet-bubble { background: var(--pvet-sage-light); border-bottom-left-radius: 4px; }
.pvet-bubble--typing::after { content: '▍'; animation: pvet-blink 1s steps(1) infinite; opacity: 0.6; }
@keyframes pvet-blink { 50% { opacity: 0; } }

/* Dringlichkeits-Badge */
.pvet-urgency {
	align-self: flex-start;
	font-size: 13px;
	font-weight: 700;
	padding: 7px 12px;
	border-radius: 999px;
}
.pvet-urgency--green { background: #e3f3e6; color: #1f6b34; }
.pvet-urgency--yellow { background: #fdf3d7; color: #8a6400; }
.pvet-urgency--red { background: #fde3e1; color: #a31712; }

/* Notfall-Banner */
.pvet-emergency {
	margin: 0 18px 12px;
	padding: 12px 14px;
	background: #fde3e1;
	border: 1px solid #f3b9b4;
	border-radius: 12px;
	color: #a31712;
	font-size: 14px;
	font-weight: 600;
}

/* Eingabe */
.pvet-form { display: flex; gap: 10px; padding: 14px 18px 18px; border-top: 1px solid #f0e9e4; }
.pvet-form textarea {
	flex: 1;
	resize: none;
	border: 1.5px solid #ddd2cb;
	border-radius: 12px;
	padding: 10px 12px;
	font-family: inherit;
	font-size: 14.5px;
}
.pvet-form textarea:focus-visible { outline: 3px solid var(--pvet-sage); outline-offset: 1px; border-color: var(--pvet-sage); }
.pvet-send {
	align-self: flex-end;
	background: var(--pvet-red);
	color: #fff;
	border: 0;
	border-radius: 12px;
	padding: 11px 20px;
	font-weight: 700;
	font-size: 14.5px;
	cursor: pointer;
	transition: transform 0.12s ease, opacity 0.12s ease;
}
.pvet-send:hover { transform: translateY(-1px); }
.pvet-send:focus-visible { outline: 3px solid var(--pvet-red-dark); outline-offset: 2px; }
.pvet-send:active { transform: translateY(0); }
.pvet-send:disabled { opacity: 0.55; cursor: wait; transform: none; }

/* Disclaimer */
.pvet-disclaimer {
	margin: 0;
	padding: 12px 20px 16px;
	font-size: 12px;
	color: #8d7f76;
	border-top: 1px solid #f0e9e4;
	background: #fdfaf8;
}

@media (max-width: 520px) {
	.pvet-animals { grid-template-columns: repeat(2, 1fr); }
	.pvet-messages { max-height: 340px; }
}

/* ── Produktkarte im Chat ────────────────────────────────── */
.pvet-product {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 85%;
	padding: 12px 14px;
	background: #fff;
	border: 1.5px solid var(--pvet-sage);
	border-radius: 14px;
	text-decoration: none !important;
	color: var(--pvet-ink) !important;
	transition: transform 0.12s ease;
}
.pvet-product:hover { transform: translateY(-2px); }
.pvet-product:focus-visible { outline: 3px solid var(--pvet-sage); outline-offset: 2px; }
.pvet-product:active { transform: translateY(0); }
.pvet-product-img {
	width: 76px;
	height: 76px;
	object-fit: contain;
	border-radius: 10px;
	background: var(--pvet-sage-light);
	flex-shrink: 0;
}
.pvet-product-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pvet-product-hint {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--pvet-sage);
}
.pvet-product-name { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.pvet-product-meta { font-size: 12.5px; color: #8d7f76; }
.pvet-product-cta { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--pvet-red); }

/* ── Theme-Overrides (WoodMart stylt button/textarea global) ── */
.pvet button.pvet-animal,
.pvet button.pvet-animal:focus {
	background: var(--pvet-sage-light) !important;
	color: var(--pvet-ink) !important;
	border: 2px solid transparent !important;
	box-shadow: none !important;
	text-transform: none !important;
}
.pvet button.pvet-animal:hover { background: var(--pvet-sage-light) !important; border-color: var(--pvet-sage) !important; }
.pvet button.pvet-send,
.pvet button.pvet-send:focus {
	background: var(--pvet-red) !important;
	color: #fff !important;
	border: 0 !important;
	text-transform: none !important;
}
.pvet button.pvet-send:hover { background: var(--pvet-red-dark) !important; }
.pvet .pvet-form textarea {
	height: auto !important;
	min-height: 56px !important;
	max-height: 120px !important;
	background: #fff !important;
}

/* ── Rechtliche Disclaimer (Kanzlei-Vorgabe) ─────────────────── */
.pvet-pre-disclaimer {
	margin: 0 0 12px;
	padding: 10px 13px;
	font-size: 12px;
	line-height: 1.5;
	color: #6b5e54;
	background: #fbf6ef;
	border: 1px solid #efe3d6;
	border-radius: 10px;
}
.pvet-answer-disclaimer {
	align-self: stretch;
	margin: 2px 0 4px;
	padding: 9px 12px;
	font-size: 11.5px;
	line-height: 1.5;
	color: #7a6a3a;
	background: #fdf6e3;
	border: 1px solid #efe2bf;
	border-radius: 10px;
}

/* ── Einwilligungs-Gate (KI-Hinweis + Nutzungsbedingungen) ────── */
.pvet-consent { padding: 22px 20px; }
.pvet-consent-title { margin: 0 0 10px; font-weight: 700; font-size: 15px; }
.pvet-consent-text {
	margin: 0 0 14px;
	padding: 10px 13px;
	font-size: 12.5px;
	line-height: 1.5;
	color: #6b5e54;
	background: #fbf6ef;
	border: 1px solid #efe3d6;
	border-radius: 10px;
}
.pvet-consent-check {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 0 0 14px;
	font-size: 13.5px;
	line-height: 1.45;
	cursor: pointer;
}
.pvet-consent-check input { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--pvet-sage); }
.pvet-consent-check a { color: var(--pvet-red); font-weight: 600; }
.pvet-consent-btn {
	width: 100%;
	background: var(--pvet-red);
	color: #fff;
	border: 0;
	border-radius: 12px;
	padding: 12px 20px;
	font-weight: 700;
	font-size: 14.5px;
	cursor: pointer;
	transition: transform 0.12s ease, opacity 0.12s ease;
}
.pvet-consent-btn:hover:not(:disabled) { transform: translateY(-1px); }
.pvet-consent-btn:focus-visible { outline: 3px solid var(--pvet-red-dark); outline-offset: 2px; }
.pvet-consent-btn:disabled { opacity: 0.5; cursor: not-allowed; }
/* Theme-Override (WoodMart stylt button global) */
.pvet button.pvet-consent-btn,
.pvet button.pvet-consent-btn:focus {
	background: var(--pvet-red) !important;
	color: #fff !important;
	border: 0 !important;
	text-transform: none !important;
	box-shadow: none !important;
}
.pvet button.pvet-consent-btn:hover:not(:disabled) { background: var(--pvet-red-dark) !important; }
.pvet button.pvet-consent-btn:disabled { opacity: 0.5 !important; }

/* ── Tabs (Fragen ↔ Futtermenge) ─────────────────────────────── */
.pvet-tabs { display: flex; gap: 6px; padding: 12px 18px 0; }
.pvet-tab {
	flex: 1;
	padding: 9px 12px;
	font-size: 13.5px;
	font-weight: 700;
	color: #8d7f76;
	background: #f4ede7;
	border: 1.5px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.pvet-tab:hover { transform: translateY(-1px); }
.pvet-tab:focus-visible { outline: 3px solid var(--pvet-sage); outline-offset: 2px; }
.pvet-tab:active { transform: translateY(0); }
.pvet-tab.is-active { background: var(--pvet-sage-light); color: var(--pvet-ink); border-color: var(--pvet-sage); }
/* Theme-Override (WoodMart stylt button global) */
.pvet button.pvet-tab,
.pvet button.pvet-tab:focus { box-shadow: none !important; text-transform: none !important; }

/* ── Futtermengen-Rechner (Panel im Widget) ──────────────────── */
.pvet-feed { padding: 18px; }
.pvet-feed-title { margin: 0; font-weight: 700; font-size: 15px; }
.pvet-feed-sub { margin: 2px 0 14px; font-size: 12.5px; color: #8d7f76; }
.pvet-feed-row { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.pvet-feed-row label { font-size: 13px; font-weight: 600; }
.pvet-feed select,
.pvet-feed input {
	border: 1.5px solid #ddd2cb;
	border-radius: 10px;
	padding: 9px 11px;
	font-family: inherit;
	font-size: 14.5px;
	background: #fff;
}
.pvet-feed select:focus-visible,
.pvet-feed input:focus-visible { outline: 3px solid var(--pvet-sage); outline-offset: 1px; border-color: var(--pvet-sage); }
.pvet-feed-btn {
	background: var(--pvet-red);
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 11px 20px;
	font-weight: 700;
	font-size: 14.5px;
	cursor: pointer;
	transition: transform 0.12s ease;
}
.pvet-feed-btn:hover { transform: translateY(-1px); }
.pvet-feed-btn:focus-visible { outline: 3px solid var(--pvet-red-dark); outline-offset: 2px; }
.pvet-feed-btn:active { transform: translateY(0); }
.pvet button.pvet-feed-btn,
.pvet button.pvet-feed-btn:focus { background: var(--pvet-red) !important; color: #fff !important; border: 0 !important; text-transform: none !important; box-shadow: none !important; }
.pvet button.pvet-feed-btn:hover { background: var(--pvet-red-dark) !important; }
.pvet-feed-result { margin-top: 12px; font-size: 14.5px; line-height: 1.5; }
.pvet-feed-result strong { font-size: 18px; }
.pvet-feed-empty {
	margin: 6px 0 12px;
	padding: 10px 12px;
	background: #fbf6ef;
	border: 1px solid #efe3d6;
	border-radius: 10px;
	font-size: 13px;
	color: #6b5e54;
}
.pvet-feed-disclaimer { margin: 14px 0 0; font-size: 11.5px; line-height: 1.5; color: #8d7f76; }
.pvet-feed-unit { margin-top: 6px; font-size: 12px; line-height: 1.45; color: #8d7f76; }
.pvet-feed-product { max-width: none; margin-top: 14px; }
