/**
 * Recipe Automation Studio — theme-independent front-end styles.
 *  - share bar (.mhk-share)
 *  - "Save Me" Pinterest overlay (.mhk-pin-wrap / .mhk-pin-save) + positions
 *  - hidden (layout-neutral) Pinterest pin images
 *  - optional public reference image
 * Self-contained: no theme variables required.
 */

/* ===== Share bar =========================================================== */
.mhk-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 1.6rem 0;
	padding: 14px 16px;
	border: 1px solid #ececec;
	border-radius: 12px;
	background: #fafafa;
}
.mhk-share__label { font-weight: 700; margin-right: 4px; }
.mhk-share__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.mhk-share__btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border-radius: 999px;
	border: 0;
	cursor: pointer;
	font: inherit;
	font-size: .9rem;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	text-decoration: none;
	transition: opacity .15s ease, transform .15s ease, background-color .15s ease;
}
.mhk-share__btn:hover { opacity: .9; transform: translateY(-1px); color: #fff; }
.mhk-share__btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.mhk-share__btn--pinterest { background: #bd081c; }
.mhk-share__btn--facebook  { background: #1877f2; }
.mhk-share__btn--whatsapp  { background: #25d366; }
.mhk-share__btn--email     { background: #6b7280; }
.mhk-share__btn--copy      { background: #374151; }
.mhk-share__btn--copy.is-copied { background: #1a7f37; }

@media (max-width: 600px) {
	.mhk-share__btns { width: 100%; }
	.mhk-share__btn span { display: none; }
	.mhk-share__btn { padding: 10px; }
	.mhk-share__btn--copy span { display: inline; }
}

/* ===== "Save Me" overlay =================================================== */
.mhk-pin-wrap { position: relative; display: block; }
.mhk-pin-wrap > img { display: block; width: 100%; height: auto; }
.mhk-pin-wrap::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .28);
	opacity: 0;
	transition: opacity .2s ease;
	pointer-events: none;
	border-radius: inherit;
	z-index: 1;
}
.mhk-pin-save {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #bd081c;
	color: #fff;
	padding: 11px 20px;
	border-radius: 999px;
	font-family: inherit;
	font-size: .95rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
	opacity: 0;
	transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}
.mhk-pin-save:hover, .mhk-pin-save:focus { color: #fff; background: #9c0617; }
.mhk-pin-save svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* Positions. */
.mhk-pin-save--center { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.mhk-pin-save--top_left { top: 12px; left: 12px; }
.mhk-pin-save--top_right { top: 12px; right: 12px; }
.mhk-pin-save--bottom_left { bottom: 12px; left: 12px; }
.mhk-pin-save--bottom_right { bottom: 12px; right: 12px; }

/* Desktop: reveal on hover / keyboard focus. */
.mhk-pin-wrap:hover::after { opacity: 1; }
.mhk-pin-wrap:hover .mhk-pin-save, .mhk-pin-save:focus { opacity: 1; }
.mhk-pin-wrap:hover .mhk-pin-save--center, .mhk-pin-save--center:focus { transform: translate(-50%, -50%) scale(1.03); }
.mhk-pin-wrap:hover .mhk-pin-save--top_left, .mhk-pin-save--top_left:focus,
.mhk-pin-wrap:hover .mhk-pin-save--top_right, .mhk-pin-save--top_right:focus,
.mhk-pin-wrap:hover .mhk-pin-save--bottom_left, .mhk-pin-save--bottom_left:focus,
.mhk-pin-wrap:hover .mhk-pin-save--bottom_right, .mhk-pin-save--bottom_right:focus { transform: scale(1.03); }

/* Touch devices: always visible. */
@media (hover: none) {
	.mhk-pin-wrap::after { opacity: 1; }
	.mhk-pin-save { opacity: 1; }
}

/* Compact pill inside the WPRM recipe card. */
.wprm-recipe-container .mhk-pin-save { padding: 7px 12px; font-size: .8rem; }

/* ===== Hidden pin images (present for Pinterest, no layout footprint) ====== */
.mhk-hidden-pinterest-images {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	margin: -1px;
	padding: 0;
	border: 0;
}

/* Optional public reference image. */
.mhk-reference-image { margin: 1.6rem 0; }
.mhk-reference-image img { width: 100%; height: auto; display: block; border-radius: 12px; }

/* Never print the overlay. */
@media print {
	.mhk-pin-save, .mhk-pin-wrap::after, .mhk-share { display: none !important; }
}

/* ===== Social Warfare tidy-up (only loaded when SW is the provider) ========
   Light, safe spacing/sizing so the SW button row matches the site without
   fighting SW's own button theme. No core SW files are touched. */
.swp_social_panel { margin: 1.4rem 0; clear: both; }
.swp_social_panel a { box-shadow: none !important; }
.swp_social_panel .nc_tweetContainer { margin: 4px 6px 4px 0 !important; }
/* Keep buttons from rendering oversized in narrow recipe content columns. */
.swp_social_panel .swp_count { font-size: .85rem; }
@media (max-width: 600px) {
	.swp_social_panel .nc_tweetContainer { margin: 4px 4px 4px 0 !important; }
}
/* Hide any leftover legacy custom bar if both somehow render (defensive). */
.swp_social_panel ~ .hk-share,
.swp_social_panel ~ .mhk-share { display: none; }
