/* PetGig popup. Every rule is scoped under #petgig-root and resets inherited theme styles. */
#petgig-root {
	--petgig-accent: #f27947;
	position: fixed;
	bottom: 16px;
	z-index: 99990;
	width: 360px;
	max-width: calc(100vw - 32px);
	margin: 0;
	padding: 0;
	pointer-events: none;
	font-size: 16px;
	line-height: 1.3;
}
#petgig-root.petgig-pos-left { left: 16px; }
#petgig-root.petgig-pos-right { right: 16px; }

#petgig-root .petgig-card,
#petgig-root .petgig-card * {
	all: initial;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	text-transform: none;
	letter-spacing: normal;
	text-shadow: none;
}

#petgig-root .petgig-card {
	display: block;
	position: relative;
	pointer-events: auto;
	background: #fff;
	color: #1f2937;
	border-radius: 14px;
	box-shadow: 0 8px 30px rgba(17, 24, 39, 0.18), 0 1px 3px rgba(17, 24, 39, 0.1);
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.35s ease, transform 0.35s ease;
}
#petgig-root .petgig-card.petgig-in {
	opacity: 1;
	transform: none;
}

#petgig-root .petgig-link {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 40px 14px 14px;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	border-radius: 14px;
}
/* The reset above puts every child back to cursor: auto, which shows the text
   I-beam over the words. The whole card is one link, so it is a hand
   everywhere and its words are not selected by a click. */
#petgig-root .petgig-link,
#petgig-root .petgig-link * {
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
}
#petgig-root .petgig-link:focus-visible {
	outline: 2px solid var(--petgig-accent);
	outline-offset: 2px;
}

#petgig-root .petgig-icon {
	display: block;
	flex: 0 0 auto;
	font-size: 26px;
	line-height: 1.1;
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
/* WordPress's emoji script swaps the emoji for an <img> that it sizes at 1em
   with !important; the reset above put that img back to the initial 16px. */
#petgig-root .petgig-icon img.emoji {
	display: inline;
	font-size: 26px;
	width: 1em;
	height: 1em;
	margin: 0;
	vertical-align: -0.1em;
	background: none;
	border: 0;
	box-shadow: none;
}
#petgig-root .petgig-body {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
}
#petgig-root .petgig-head {
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: #111827;
}
#petgig-root .petgig-sub {
	display: block;
	margin-top: 3px;
	font-size: 13.5px;
	line-height: 1.4;
	color: #4b5563;
}
#petgig-root .petgig-cta {
	display: block;
	margin-top: 8px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--petgig-accent);
}
#petgig-root .petgig-link:hover .petgig-cta { text-decoration: underline; }

#petgig-root .petgig-close {
	display: block;
	position: absolute;
	top: 6px;
	right: 6px;
	width: 28px;
	height: 28px;
	padding: 0;
	border-radius: 50%;
	background: transparent;
	color: #6b7280;
	font-size: 22px;
	line-height: 26px;
	text-align: center;
	cursor: pointer;
}
#petgig-root .petgig-close:hover { background: #f3f4f6; color: #111827; }
#petgig-root .petgig-close:focus-visible {
	outline: 2px solid var(--petgig-accent);
	outline-offset: 1px;
}

@media (max-width: 480px) {
	#petgig-root {
		bottom: 12px;
		width: auto;
		max-width: none;
	}
	#petgig-root.petgig-pos-left,
	#petgig-root.petgig-pos-right { left: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	#petgig-root .petgig-card { transition: none; transform: none; }
}
