/* =====================================================================
 * Favorites — heart button, header badge, registration modal, page.
 *
 * Enqueued site-wide (when the feature is enabled) by
 * /add-ons/utils/favorites-styles.php so the heart can render on any
 * template carrying a pet card.
 * =================================================================== */

/* ---------------------------------------------------------------------
 * 1. Heart toggle button (pet cards, gallery, inline)
 * ------------------------------------------------------------------- */
.pep-fav-toggle {
	--pep-fav-primary: #F26322;
	--pep-fav-primary-deep: #d14d16;
	position: absolute;
	top: 0.625rem;
	right: 0.625rem;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
	transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.pep-fav-toggle:hover {
	transform: scale(1.08);
	background: #fff;
	box-shadow: 0 4px 14px rgba(242, 99, 34, 0.25);
}

.pep-fav-toggle:focus-visible {
	outline: 0;
	box-shadow: 0 0 0 3px rgba(242, 99, 34, 0.35);
}

.pep-fav-toggle__icons {
	position: relative;
	width: 20px;
	height: 20px;
	display: inline-block;
}

.pep-fav-toggle__icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	line-height: 1;
	transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.pep-fav-toggle__icon--off {
	color: #374151;
	opacity: 1;
	transform: scale(1);
}

.pep-fav-toggle__icon--on {
	color: var(--pep-fav-primary);
	opacity: 0;
	transform: scale(0.4);
}

.pep-fav-toggle.is-active .pep-fav-toggle__icon--off {
	opacity: 0;
	transform: scale(0.4);
}

.pep-fav-toggle.is-active .pep-fav-toggle__icon--on {
	opacity: 1;
	transform: scale(1);
}

/* Heartbeat pulse on newly-toggled state */
.pep-fav-toggle.is-pulsing .pep-fav-toggle__icon--on {
	animation: pep-fav-pulse 0.6s ease-out;
}

@keyframes pep-fav-pulse {
	0%   { transform: scale(1); }
	30%  { transform: scale(1.45); }
	60%  { transform: scale(0.9); }
	100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.pep-fav-toggle, .pep-fav-toggle__icon {
		transition: none;
	}
	.pep-fav-toggle.is-pulsing .pep-fav-toggle__icon--on {
		animation: none;
	}
}

/* Gallery placement: slightly bigger + positioned over the image */
.pep-fav-toggle--gallery {
	width: 48px;
	height: 48px;
	top: 1rem;
	right: 1rem;
}

.pep-fav-toggle--gallery .pep-fav-toggle__icon {
	font-size: 24px;
}

/* Inline placement (no absolute positioning) */
.pep-fav-toggle--inline {
	position: static;
	display: inline-flex;
	vertical-align: middle;
}

/* ---------------------------------------------------------------------
 * 2. Header utility icon links — Favorites, Cart, Account.
 *
 *     theme-polish.css:727 forces a 38x38 circle on every
 *     `header > .container .nav.nav-underline.flex-nowrap .nav-link`
 *     with `padding: 0; margin: 0 2px`. That high-specificity rule was
 *     making the cart's "2" badge clip into the next sibling icon and
 *     was also clamping the Hello-chip account link to 38px wide.
 *
 *     The two rules below match the theme-polish selector exactly so
 *     specificity ties go to whichever loads later (favorites.css does)
 *     and add the breathing room we need:
 *       1. Bigger horizontal margin (8px each side → 16px between
 *          icons, plus the nav's `gap: 1rem` = 32px visible gap).
 *       2. Hello account link breaks out of the 38px-circle clamp so
 *          it can stretch around the "Hello, name" text and pill hover.
 * ------------------------------------------------------------------- */
header > .container .nav.nav-underline.flex-nowrap .site-favorites-link,
header > .container .nav.nav-underline.flex-nowrap .site-cart-link,
header > .container .nav.nav-underline.flex-nowrap .site-account-link {
	margin: 0 8px;
}

header > .container .nav.nav-underline.flex-nowrap .site-account-link.site-account-link--hello {
	width: auto;
	height: auto;
}

/* ---------------------------------------------------------------------
 * Header menu (the `<nav class="nav nav-underline small">`) —
 * tighten spacing so every page link fits on one line at common
 * desktop widths. Kills the parent's `gap: 1rem` and trims each link's
 * horizontal padding (theme-polish ships them at .65rem) so visible
 * whitespace between adjacent labels is ~15px (0.5rem padding × 2).
 * ------------------------------------------------------------------- */
header .nav.nav-underline.small {
	--bs-nav-underline-gap: 0;
	gap: 0;
}

header .nav.nav-underline.small .nav-link {
	padding-left: 0.5rem;
	padding-right: 0.5rem;
}

.site-favorites-link {
	color: inherit;
	position: relative;
	display: flex;
	align-items: center;
}

.site-favorites-link:hover {
	color: #F26322;
}

.site-favorites-link .bi {
	line-height: 1;
}

/* Header count chips for favorites + cart.
   Earlier rev placed the count in the corner of the icon as a tiny
   absolute-positioned bubble — but on the heart (and to a lesser extent
   the bag) that bubble landed right on top of the icon's silhouette and
   chewed up the part of the shape that makes it recognizable.

   New approach: lift the count out of the corner and seat it INLINE next
   to the icon as a small white pill. Icon stays fully visible and
   instantly readable; the count gets its own breathing room and reads
   as a designed chip rather than an overlapping label. */

.site-favorites-link,
.site-cart-link {
	gap: 0.4rem;
	padding-right: 0.5rem !important;
}

.site-favorites-badge,
.site-cart-badge {
	/* Strip every absolute-positioning utility Bootstrap layered on. */
	position: static !important;
	top: auto !important;
	right: auto !important;
	margin: 0 !important;

	/* Chip styling — white pill, brand-color text, defined edge so it
	   doesn't disappear into the page wash on either side. */
	background: #fff !important;
	color: #F26322 !important;
	font-weight: 700;
	font-size: 0.75rem;
	line-height: 1;
	min-width: 22px;
	height: 22px;
	padding: 0 0.45rem;
	border-radius: 999px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	letter-spacing: 0.01em;
	box-shadow:
		0 0 0 1.5px rgba( 255, 255, 255, 0.85 ),
		0 1px 3px rgba( 0, 0, 0, 0.18 );
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.site-favorites-link:hover .site-favorites-badge,
.site-cart-link:hover .site-cart-badge {
	transform: translateY( -1px );
	box-shadow:
		0 0 0 1.5px #fff,
		0 3px 8px rgba( 0, 0, 0, 0.22 );
}

/* Hide the chip when there's nothing to count — icon sits alone, no
   awkward empty pill. */
.site-favorites-badge[data-count="0"],
.site-cart-badge[data-count="0"] {
	display: none !important;
}

/* ---------------------------------------------------------------------
 * 2b. "Hello, {name}" greeting on the desktop My Account link.
 *     Pill hover treatment when the link contains the Hello chip.
 *     Padding comes from the symmetric rule above (uniform across all
 *     three icon links) so we don't override it here.
 * ------------------------------------------------------------------- */
.site-account-link.site-account-link--hello {
	border-radius: 999px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.site-account-link.site-account-link--hello:hover {
	background: rgba(242, 99, 34, 0.08);
	color: #F26322;
}

.site-account-hello {
	display: inline-flex;
	flex-direction: column;
	line-height: 1.1;
	text-align: left;
	max-width: 180px;
}

.site-account-hello__pre {
	font-size: 0.68rem;
	font-weight: 500;
	color: #6b7280;
	letter-spacing: 0.02em;
	text-transform: lowercase;
}

.site-account-link.site-account-link--hello:hover .site-account-hello__pre {
	color: inherit;
	opacity: 0.7;
}

.site-account-hello__name {
	font-size: 0.88rem;
	font-weight: 700;
	color: inherit;
	letter-spacing: -0.005em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 140px;
}

@media (max-width: 1199.98px) {
	/* Below xl the nav is already tight; keep the icon but hide the text. */
	.site-account-hello {
		display: none;
	}
}

/* ---------------------------------------------------------------------
 * 3. Soft toast — "Saved! Create an account to…"
 * Shown after an anonymous save below the gate threshold.
 * ------------------------------------------------------------------- */
.pep-fav-toast {
	position: fixed;
	bottom: 1.25rem;
	right: 1.25rem;
	max-width: 360px;
	background: #111;
	color: #fff;
	padding: 0.875rem 1.1rem;
	border-radius: 0.75rem;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
	z-index: 1080;
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	font-size: 0.925rem;
	line-height: 1.35;
	transform: translateY(20px);
	opacity: 0;
	transition: transform 0.25s ease, opacity 0.25s ease;
	pointer-events: none;
}

.pep-fav-toast.is-visible {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

.pep-fav-toast__icon {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #F26322, #d14d16);
	border-radius: 8px;
	color: #fff;
	font-size: 1rem;
}

.pep-fav-toast__body {
	flex: 1;
	min-width: 0;
}

.pep-fav-toast__body strong {
	display: block;
	font-weight: 700;
	margin-bottom: 0.125rem;
}

.pep-fav-toast__body a {
	color: #FFD5B8;
	text-decoration: underline;
	font-weight: 600;
}

.pep-fav-toast__body a:hover {
	color: #fff;
}

.pep-fav-toast__close {
	background: transparent;
	border: 0;
	color: rgba(255, 255, 255, 0.6);
	padding: 0.25rem;
	cursor: pointer;
	line-height: 1;
	flex-shrink: 0;
}

.pep-fav-toast__close:hover {
	color: #fff;
}

@media (max-width: 575.98px) {
	.pep-fav-toast {
		left: 1rem;
		right: 1rem;
		max-width: none;
	}
}

/* ---------------------------------------------------------------------
 * 4. Registration modal — shared library owns the rest (see /css/account.css).
 *     Favorites-specific preamble: a single tight pill that reads
 *     "♥ 4 pets saved on this device" as one phrase, sized so it fits
 *     above the benefits list without crowding the modal.
 * ------------------------------------------------------------------- */
.pep-fav-modal-preamble {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	background: rgba(242, 99, 34, 0.1);
	color: #4b5563;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.2;
}

.pep-fav-modal-preamble__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.4em;
	height: 1.4em;
	padding: 0 0.4em;
	background: #F26322;
	color: #fff;
	font-weight: 800;
	font-size: 0.72rem;
	border-radius: 999px;
}

/* ---------------------------------------------------------------------
 * 5. /favorites/ page
 * ------------------------------------------------------------------- */
body.page-template-page-favorites .favorites-page {
	padding: 2rem 0 3rem;
}

.favorites-page__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	padding-bottom: 1.25rem;
	margin-bottom: 1.75rem;
	border-bottom: 2px solid rgba(242, 99, 34, 0.18);
}

.favorites-page__title {
	font-size: clamp(1.5rem, 3.5vw, 2rem) !important;
	font-weight: 800 !important;
	color: #111 !important;
	letter-spacing: -0.015em;
	margin: 0 !important;
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
}

.favorites-page__title::before {
	display: none;
}

.favorites-page__title .bi {
	color: #F26322;
	font-size: 0.9em;
}

.favorites-page__count {
	font-size: 0.85rem;
	color: #6b7280;
	font-weight: 500;
	margin-left: 0.35rem;
}

.favorites-page__actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.favorites-page__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 1rem;
	background: #fff;
	color: #111;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.15s ease;
}

.favorites-page__btn:hover {
	color: #F26322;
	border-color: #F26322;
	box-shadow: 0 3px 10px rgba(242, 99, 34, 0.12);
	transform: translateY(-1px);
}

.favorites-page__btn--danger {
	color: #9ca3af;
}

.favorites-page__btn--danger:hover {
	color: #dc2626;
	border-color: #fecaca;
	box-shadow: 0 3px 10px rgba(220, 38, 38, 0.12);
}

.favorites-page__empty {
	text-align: center;
	padding: 3.5rem 1.25rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 1rem;
	max-width: 520px;
	margin: 2rem auto;
}

.favorites-page__empty-icon {
	font-size: 3.5rem;
	color: #F26322;
	opacity: 0.65;
	margin-bottom: 1rem;
}

.favorites-page__empty h2 {
	font-size: 1.35rem !important;
	font-weight: 800 !important;
	color: #111 !important;
	margin: 0 0 0.5rem !important;
}

.favorites-page__empty h2::before {
	display: none;
}

.favorites-page__empty p {
	color: #4b5563;
	line-height: 1.55;
	margin: 0 0 1.25rem;
}

.favorites-page__empty-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	background: #F26322;
	color: #fff !important;
	border-radius: 0.5rem;
	font-weight: 700;
	text-decoration: none !important;
	transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.favorites-page__empty-btn:hover {
	background: #d14d16;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(242, 99, 34, 0.3);
}

.favorites-page__disabled {
	text-align: center;
	padding: 2.5rem 1.25rem;
	color: #6b7280;
	font-size: 0.95rem;
}

/* ---------------------------------------------------------------------
 * 6. Compare selection banner (top of page while in compare mode)
 * ------------------------------------------------------------------- */
.pep-fav-compare-banner {
	position: sticky;
	top: 0.75rem;
	z-index: 50;
	margin: 0 0 1.25rem;
	padding: 0.9rem 1.25rem;
	background: linear-gradient(135deg, #111 0%, #2a1208 100%);
	color: #fff;
	border-radius: 0.875rem;
	box-shadow: 0 10px 30px rgba(242, 99, 34, 0.2);
	display: flex;
	align-items: center;
	gap: 0.875rem;
	flex-wrap: wrap;
	animation: pep-fav-banner-enter 0.3s ease-out both;
}

@keyframes pep-fav-banner-enter {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.pep-fav-compare-banner__icon {
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #F26322, #d14d16);
	border-radius: 10px;
	font-size: 1.15rem;
	box-shadow: 0 4px 12px rgba(242, 99, 34, 0.35);
}

.pep-fav-compare-banner__body {
	flex: 1;
	min-width: 0;
	line-height: 1.35;
}

.pep-fav-compare-banner__title {
	font-weight: 800;
	font-size: 0.95rem;
	letter-spacing: -0.005em;
	display: block;
}

.pep-fav-compare-banner__hint {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.7);
}

.pep-fav-compare-banner__hint strong {
	color: #FFD5B8;
	font-weight: 700;
}

/* ---------------------------------------------------------------------
 * 6b. Selection mode (compare) — dim unselected, spotlight selected
 * ------------------------------------------------------------------- */
.favorites-page.is-selecting .products .product {
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
	opacity: 0.55;
}

.favorites-page.is-selecting .products .product:hover {
	opacity: 0.9;
	transform: translateY(-2px);
}

.favorites-page.is-selecting .products .product::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 12px;
	border: 2px dashed rgba(242, 99, 34, 0.45);
	pointer-events: none;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.2s ease;
	z-index: 10;
}

.favorites-page.is-selecting .products .product.is-selected {
	opacity: 1;
	transform: translateY(-3px);
}

.favorites-page.is-selecting .products .product.is-selected::after {
	border-style: solid;
	border-width: 3px;
	border-color: #F26322;
	background: rgba(242, 99, 34, 0.06);
	box-shadow: 0 10px 28px rgba(242, 99, 34, 0.25);
}

/* "Select to compare" affordance shown on non-selected cards */
.favorites-page.is-selecting .products .product:not(.is-selected)::before {
	content: "Tap to compare";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(17, 17, 17, 0.9);
	color: #fff;
	padding: 0.55rem 1rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	z-index: 12;
	opacity: 0;
	transition: opacity 0.15s ease;
	pointer-events: none;
	white-space: nowrap;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.favorites-page.is-selecting .products .product:not(.is-selected):hover::before {
	opacity: 1;
}

/* Big round checkmark overlay on selected cards */
.favorites-page.is-selecting .products .product.is-selected::before {
	content: "\F26E"; /* bi-check-circle-fill */
	font-family: "bootstrap-icons";
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #F26322;
	color: #fff;
	font-size: 1.5rem;
	border-radius: 50%;
	z-index: 12;
	line-height: 1;
	box-shadow: 0 6px 18px rgba(242, 99, 34, 0.4);
	animation: pep-fav-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pep-fav-pop {
	0%   { transform: scale(0.2); opacity: 0; }
	70%  { transform: scale(1.15); opacity: 1; }
	100% { transform: scale(1); opacity: 1; }
}

/* Hide the heart + any action buttons while selecting — we're in a
 * different interaction mode and those clicks would confuse the user. */
.favorites-page.is-selecting .pep-fav-toggle {
	pointer-events: none;
	opacity: 0;
	transform: scale(0.7);
}

/* ---------------------------------------------------------------------
 * 7. Selection bar (floating bottom bar while in compare mode)
 * ------------------------------------------------------------------- */
#pep-fav-selection-bar {
	position: fixed;
	bottom: 1.25rem;
	left: 50%;
	transform: translateX(-50%) translateY(120%);
	z-index: 1070;
	background: #111;
	color: #fff;
	padding: 0.75rem 1.25rem;
	border-radius: 999px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
	display: flex;
	align-items: center;
	gap: 1rem;
	transition: transform 0.25s ease;
}

#pep-fav-selection-bar.is-visible {
	transform: translateX(-50%) translateY(0);
}

#pep-fav-selection-bar .pep-fav-sel-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	background: #F26322;
	border-radius: 999px;
	font-weight: 800;
}

#pep-fav-selection-bar button {
	padding: 0.45rem 1rem;
	background: #F26322;
	color: #fff;
	border: 0;
	border-radius: 999px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}

#pep-fav-selection-bar button:hover:not(:disabled) {
	background: #d14d16;
}

#pep-fav-selection-bar button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

#pep-fav-selection-bar .pep-fav-sel-cancel {
	background: transparent;
	color: rgba(255, 255, 255, 0.7);
	padding: 0.35rem 0.6rem;
}

#pep-fav-selection-bar .pep-fav-sel-cancel:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

/* ---------------------------------------------------------------------
 * 8. Compare modal
 * ------------------------------------------------------------------- */
#pepFavCompareModal .modal-dialog {
	max-width: 1100px;
}

#pepFavCompareModal .modal-content {
	border-radius: 14px;
	border: 0;
	overflow: hidden;
}

#pepFavCompareModal .modal-header {
	background: linear-gradient(135deg, #F26322 0%, #d14d16 100%);
	color: #fff;
	border: 0;
	padding: 1rem 1.5rem;
}

#pepFavCompareModal .modal-title {
	font-weight: 800;
	letter-spacing: -0.01em;
	font-size: 1.15rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

#pepFavCompareModal .btn-close {
	filter: brightness(0) invert(1);
	opacity: 0.9;
}

.pep-fav-compare {
	padding: 1rem 0.5rem;
}

.pep-fav-compare__grid {
	display: grid;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.pep-fav-compare__grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.pep-fav-compare__grid[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
.pep-fav-compare__grid[data-count="4"] { grid-template-columns: repeat(4, 1fr); }
.pep-fav-compare__grid[data-count="5"] { grid-template-columns: repeat(5, 1fr); }
.pep-fav-compare__grid[data-count="6"] { grid-template-columns: repeat(6, 1fr); }

.pep-fav-compare__card {
	text-align: center;
}

.pep-fav-compare__thumb {
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	overflow: hidden;
	background: #f3f4f6;
	margin-bottom: 0.5rem;
	border: 1px solid #e5e7eb;
}

.pep-fav-compare__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pep-fav-compare__name {
	font-weight: 700;
	color: #111;
	text-decoration: none;
	font-size: 0.95rem;
	letter-spacing: -0.005em;
	display: block;
	line-height: 1.25;
}

.pep-fav-compare__name:hover {
	color: #F26322;
}

.pep-fav-compare__meta {
	font-size: 0.76rem;
	color: #6b7280;
	margin-top: 0.15rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-transform: capitalize;
}

.pep-fav-compare__table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin-top: 0.5rem;
	font-size: 0.9rem;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
}

.pep-fav-compare__table th,
.pep-fav-compare__table td {
	padding: 0.7rem 0.9rem;
	border-bottom: 1px solid #f3f4f6;
	vertical-align: top;
}

.pep-fav-compare__table tr:last-child th,
.pep-fav-compare__table tr:last-child td {
	border-bottom: 0;
}

.pep-fav-compare__table th {
	background: #f9fafb;
	color: #6b7280;
	text-transform: uppercase;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-align: left;
	width: 110px;
	white-space: nowrap;
}

.pep-fav-compare__table td {
	color: #1f2937;
	text-transform: capitalize;
}

.pep-fav-compare__dash {
	color: #d1d5db;
}

.pep-fav-compare__footer {
	margin-top: 1rem;
	display: grid;
	gap: 0.5rem;
}

.pep-fav-compare__footer[style*="none"] { display: none; }

.pep-fav-compare__cta {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.625rem 1rem;
	background: #fff;
	color: #111;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	font-weight: 600;
	text-decoration: none;
	font-size: 0.9rem;
	transition: all 0.15s ease;
}

.pep-fav-compare__cta:hover {
	border-color: #F26322;
	color: #F26322;
	transform: translateY(-1px);
	box-shadow: 0 3px 10px rgba(242, 99, 34, 0.12);
}

.pep-fav-compare__cta .bi {
	color: #F26322;
}

.pep-fav-compare__empty {
	padding: 2rem;
	text-align: center;
	color: #6b7280;
	font-style: italic;
}

@media (max-width: 768px) {
	.pep-fav-compare__grid[data-count="3"],
	.pep-fav-compare__grid[data-count="4"],
	.pep-fav-compare__grid[data-count="5"],
	.pep-fav-compare__grid[data-count="6"] {
		grid-template-columns: repeat(2, 1fr);
	}
	.pep-fav-compare__table { font-size: 0.8rem; }
	.pep-fav-compare__table th { width: 88px; }
}

/* ---------------------------------------------------------------------
 * 9. Email-friend modal + Share modal
 * ------------------------------------------------------------------- */
#pepFavFriendModal .modal-content,
#pepFavShareModal .modal-content {
	border-radius: 14px;
	border: 0;
	overflow: hidden;
}

#pepFavFriendModal .modal-header,
#pepFavShareModal .modal-header {
	background: linear-gradient(135deg, #F26322 0%, #d14d16 100%);
	color: #fff;
	border: 0;
	padding: 1rem 1.5rem;
}

#pepFavFriendModal .modal-title,
#pepFavShareModal .modal-title {
	font-weight: 800;
	letter-spacing: -0.01em;
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

#pepFavFriendModal .btn-close,
#pepFavShareModal .btn-close {
	filter: brightness(0) invert(1);
	opacity: 0.9;
}

#pepFavFriendForm {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

#pepFavFriendForm label {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #4b5563;
	display: block;
	margin-bottom: 0.35rem;
}

#pepFavFriendForm input,
#pepFavFriendForm textarea {
	width: 100%;
	padding: 0.7rem 0.875rem;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	font-size: 0.95rem;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#pepFavFriendForm input:focus,
#pepFavFriendForm textarea:focus {
	outline: none;
	border-color: #F26322;
	box-shadow: 0 0 0 3px rgba(242, 99, 34, 0.15);
}

#pepFavFriendForm textarea {
	min-height: 90px;
	resize: vertical;
}

#pepFavFriendForm button[type="submit"] {
	margin-top: 0.25rem;
	padding: 0.75rem 1.25rem;
	background: linear-gradient(135deg, #F26322 0%, #d14d16 100%);
	color: #fff;
	border: 0;
	border-radius: 0.5rem;
	font-weight: 800;
	cursor: pointer;
	min-height: 48px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

#pepFavFriendForm button[type="submit"]:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(242, 99, 34, 0.35);
}

.pep-fav-form-status {
	padding: 0.7rem 0.875rem;
	border-radius: 0.5rem;
	font-size: 0.9rem;
}

.pep-fav-form-status.is-error   { background: #fee2e2; color: #991b1b; border-left: 3px solid #dc2626; }
.pep-fav-form-status.is-success { background: #f0fdf4; color: #166534; border-left: 3px solid #16a34a; }

.pep-fav-share-url {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.pep-fav-share-url input {
	flex: 1;
	padding: 0.65rem 0.875rem;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	font-size: 0.9rem;
	background: #f9fafb;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	color: #1f2937;
}

.pep-fav-share-url button {
	padding: 0.6rem 1rem;
	background: #111;
	color: #fff;
	border: 0;
	border-radius: 0.5rem;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease;
}

.pep-fav-share-url button:hover {
	background: #F26322;
}

.pep-fav-share-socials {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.75rem;
	flex-wrap: wrap;
}

.pep-fav-share-socials a {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.55rem 0.875rem;
	background: #fff;
	color: #111;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	min-width: 130px;
	transition: all 0.15s ease;
}

.pep-fav-share-socials a:hover {
	border-color: #F26322;
	color: #F26322;
}

/* ---------------------------------------------------------------------
 * 10. Toolbar + action buttons on favorites page
 * ------------------------------------------------------------------- */
.favorites-page__toolbar {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 0.75rem 1rem;
	margin-bottom: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.favorites-page__toolbar-label {
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #6b7280;
	margin-right: 0.25rem;
}

.favorites-page__toolbar .favorites-page__btn {
	background: #fdf4ee;
	border-color: rgba(242, 99, 34, 0.2);
	color: #111;
}

.favorites-page__toolbar .favorites-page__btn:hover {
	background: #fff;
	border-color: #F26322;
	color: #F26322;
}

/* ---------------------------------------------------------------------
 * 11. Favorites page — grid layout
 *     (Reserve button styling lives in the pet card, not here.)
 * ------------------------------------------------------------------- */
.favorites-page__grid > .product {
	display: flex;
	flex-direction: column;
	position: relative;
}

.favorites-page__grid > .product > .card,
.favorites-page__grid > .product .card {
	flex: 1 1 auto;
}

/* ---------------------------------------------------------------------
 * 12. Floating status pill (action feedback)
 * ------------------------------------------------------------------- */
.pep-fav-status-pill {
	position: fixed;
	bottom: 1.25rem;
	left: 50%;
	transform: translateX(-50%) translateY(120%);
	background: #111;
	color: #fff;
	padding: 0.7rem 1.25rem;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
	z-index: 1080;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
	transition: transform 0.25s ease;
	max-width: calc(100vw - 2rem);
	text-align: center;
}

.pep-fav-status-pill.is-visible {
	transform: translateX(-50%) translateY(0);
}

.pep-fav-status-pill.is-error {
	background: #991b1b;
}

.pep-fav-status-pill.is-success {
	background: #166534;
}
