/* Frontend: Post Elements bar */
.post-footer-elements{
    display:flex;
    flex-wrap:wrap;
    align-items:flex-end;
    gap:12px;
    margin:20px 0;
    padding:12px 0 0;
    border-top:1px solid #e5e5e5;
    /* Visual baseline shim to match the views chip’s shadow */
    --pfe-baseline-shim: 2px;
}

/* Top placement tweaks */
.post-footer-elements[data-placement="top"]{
    margin-top:0;
    padding:0 0 12px;
    border-top:none;
    border-bottom:1px solid #e5e5e5;
}

.post-footer-elements > *{
	display:inline-flex;
	align-items:center;
}

/* Normalize margins from source plugins */
.post-footer-elements .pvc-view-counter{ margin:0; }
.post-footer-elements .wpfav-inline{ margin:0; }
.post-footer-elements .wpfav-btn{ margin:0; }

/* Normalize typographic baseline inside footer */
.post-footer-elements .wpfav-btn,
.post-footer-elements .wpulike .wp_ulike_general_class,
.post-footer-elements .pvc-view-counter{ line-height:1; }

@media (max-width: 768px){
	.post-footer-elements{ gap:8px; }
}

/* Footer-only: remove hover shadow on favorites to stabilize visual baseline */
.post-footer-elements .wpfav-btn:hover{ box-shadow: none; }


/* WP ULike normalization */
.post-footer-elements .wpulike{ margin:0; padding:0; display:inline-flex; align-items:center; line-height:1; }
.post-footer-elements .wpulike .wp_ulike_general_class{ margin:0; }

/* Remove the counter’s global top margin only in the footer */
.post-footer-elements .pvc-view-counter{ margin-top:0; }

/* Visual baseline shim for simpler items to match the chip’s shadow */
.post-footer-elements .wpfav-inline,
.post-footer-elements .wpulike{ margin-bottom: var(--pfe-baseline-shim); }

/* Scoped unified box and segment spacing (mirrors inline) */
.post-footer-elements[data-pfe="1"] > *{ padding:6px 12px; }
.post-footer-elements[data-pfe="1"] .wpulike-default .count-box{ margin-left:4px; }
.post-footer-elements[data-pfe="1"] .wpulike-default .count-box:before{ display:none; }

/* Share: launcher gets the chip, wrapper stays transparent (prevents double border) */
.post-footer-elements[data-pfe="1"] .pfe-share{ border:0; background:transparent; }
.post-footer-elements[data-pfe="1"] .pfe-share .pfe-share__launcher,
.post-footer-elements[data-pfe="1"] .pfe-share a,
.post-footer-elements[data-pfe="1"] .pfe-share button{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:11px 16px;
    background:#fff;
    border:1px solid #e5e5e5;
    border-radius:12px;
    box-shadow:none;
    font:600 14px/1 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
    text-align:center;
    min-width:120px;
	min-height:44px;
	box-sizing:border-box;
    margin:0 -3px;
}
.post-footer-elements[data-pfe="1"] .pfe-share svg{ width:20px; height:20px; display:block; }

/* Favorites: match chip height and alignment */
.post-footer-elements[data-pfe="1"] .wpfav-btn{
	display:inline-flex;
	align-items:center;
	gap:6px;
	min-height:44px;
	box-sizing:border-box;
}
.post-footer-elements[data-pfe="1"] .wpfav-btn .wpfav-btn__icon{ width:20px; height:20px; display:block; }
.post-footer-elements[data-pfe="1"] .wpfav-btn .wpfav-btn__count{ line-height:1; }

/* Phones */
@media (max-width: 430px){
	/* Favorites: hide text only */
	.post-footer-elements[data-pfe="1"] .wpfav-btn .wpfav-btn__text{ display:none !important; }

	/* Share: hide label only */
	.post-footer-elements[data-pfe="1"] .pfe-share__launcher-label{ display:none !important; }

	/* WhatsApp social button: icon-only on phones */
	.post-footer-elements[data-pfe="1"] .pfe-social-whatsapp .pfe-social-text{ display:none !important; }
	.post-footer-elements[data-pfe="1"] .pfe-social-telegram .pfe-social-text{ display:none !important; }
	.post-footer-elements[data-pfe="1"] .pfe-social-x .pfe-social-text{ display:none !important; }
	.post-footer-elements[data-pfe="1"] .pfe-social-email .pfe-social-text{ display:none !important; }
	.post-footer-elements[data-pfe="1"] .pfe-social-other .pfe-social-text{ display:none !important; }

    /* Shrink buttons on phones */
    .post-footer-elements[data-pfe="1"] .wpfav-btn{ min-width:auto !important; padding:7px 12px !important; }
    .post-footer-elements[data-pfe="1"] .pfe-share .pfe-share__launcher,
    .post-footer-elements[data-pfe="1"] .pfe-share a,
.post-footer-elements[data-pfe="1"] .pfe-share button{ min-width:auto !important; padding:11px 16px !important; min-height:44px !important; box-sizing:border-box; margin:0 -3px !important; }
}

.post-footer-elements[data-pfe="1"] .pfe-social-btn{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:8px;
	padding:7px 14px;
	min-height:44px;
	box-sizing:border-box;
	border-radius:12px;
	background-color:#ffffff;
	border:1px solid #e5e5e5;
	color:inherit;
	text-decoration:none;
	box-shadow:none;
	transition:background-color 160ms ease,border-color 160ms ease,transform 160ms ease,box-shadow 160ms ease;
	font:600 14px/1 system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial;
}

.post-footer-elements[data-pfe="1"] .pfe-social-btn .pfe-social-icon{
	line-height:0;
	font-size:16px;
	display:inline-flex;
	align-items:center;
	justify-content:center;
}

.post-footer-elements[data-pfe="1"] .pfe-social-btn:hover,
.post-footer-elements[data-pfe="1"] .pfe-social-btn:focus-visible{
	border-color:#d8d8d8;
	transform:translateY(-1px) scale(1.02);
	box-shadow:0 6px 16px rgba(15,23,42,0.12);
	text-decoration:none;
}

.post-footer-elements[data-pfe="1"] .pfe-social-whatsapp .fab.fa-whatsapp{
	font-size:1.1em;
	color:#25d366;
}

.post-footer-elements[data-pfe="1"] .pfe-social-telegram .fab.fa-telegram-plane{
	font-size:1.1em;
	color:#229ed9;
}

.post-footer-elements[data-pfe="1"] .pfe-social-email .fas.fa-envelope{
	font-size:1.1em;
	color:#2563eb;
}

.post-footer-elements[data-pfe="1"] .pfe-social-email--icon-only .pfe-social-text{
	display:none !important;
}

.post-footer-elements[data-pfe="1"] .pfe-social-other .fas.fa-link{
	font-size:1.1em;
	color:#6366f1;
}

.post-footer-elements[data-pfe="1"] .pfe-social-x .fab.fa-x-twitter,
.post-footer-elements[data-pfe="1"] .pfe-social-x .fab.fa-twitter{
	font-size:1.1em;
	color:#14171a;
}
