/* plg_system_bflyshopbutton · @author Andy Wunderlich - Joomla Upgrade! Service · (C) 2026 · GNU GPL v2 or later */
/* plg_system_bflyshopbutton – Farben über --bfly-buy / --bfly-buy-hover (Plugin-Einstellungen) */
/* Shop-Links im Inhalt als Button */
a.bfly-buy-inline{display:inline-flex;align-items:center;gap:.4em;background:var(--bfly-buy,#800080);color:#fff!important;font-weight:700;font-size:15px;padding:.6em 1.1em;border-radius:6px;text-decoration:none!important;margin:.3em 0;box-shadow:0 2px 6px rgba(0,0,0,.15)}
a.bfly-buy-inline *{color:inherit!important;font-size:inherit!important}
a.bfly-buy-inline:after{content:"›";font-size:1.2em;line-height:1}
a.bfly-buy-inline:hover,a.bfly-buy-inline:focus{background:var(--bfly-buy-hover,#5e005e)}
/* Schwebebutton */
.bfly-buy{position:fixed;right:22px;bottom:22px;z-index:9000;font-family:inherit}
.bfly-buy__btn{display:flex;align-items:center;gap:.55em;background:var(--bfly-buy,#800080);color:#fff!important;border:0;border-radius:40px;padding:.85em 1.4em;font-size:16px;font-weight:700;cursor:pointer;text-decoration:none!important;box-shadow:0 6px 18px rgba(0,0,0,.28)}
.bfly-buy__btn small{font-weight:400;opacity:.9;font-size:13px;border-left:1px solid rgba(255,255,255,.45);padding-left:.6em}
.bfly-buy__btn:hover,.bfly-buy__btn:focus{background:var(--bfly-buy-hover,#5e005e)}
.bfly-buy__icon{flex:none}
.bfly-buy__panel{position:absolute;right:0;bottom:calc(100% + 10px);width:320px;max-height:calc(100vh - 120px);overflow-y:auto;background:#fff;border-radius:10px;box-shadow:0 8px 28px rgba(0,0,0,.25)}
.bfly-buy__panel[hidden]{display:none}
.bfly-buy__head{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;background:#f4eef4;color:#333;font-weight:700;padding:.7em 1em;font-size:14px}
.bfly-buy__x{background:none;border:0;font-size:22px;line-height:1;cursor:pointer;color:#555}
.bfly-buy__panel ul{list-style:none;margin:0;padding:0}
.bfly-buy__panel li{margin:0;padding:0;background:none}
.bfly-buy__panel li:before{display:none}
.bfly-buy__panel li a{display:grid;grid-template-columns:1fr auto auto;gap:.6em;align-items:center;padding:.8em 1em;border-top:1px solid #eee;color:#222!important;text-decoration:none!important;font-size:14px}
.bfly-buy__panel li a:hover{background:#faf5fa}
.bfly-buy__panel li span{color:var(--bfly-buy,#800080);font-weight:700;white-space:nowrap}
.bfly-buy__panel li em{font-style:normal;color:var(--bfly-buy,#800080);font-size:1.3em}
@media (max-width:767px){
  .bfly-buy{left:0;right:0;bottom:0}
  .bfly-buy__btn{width:100%;justify-content:center;border-radius:0;padding:1em;box-shadow:0 -3px 12px rgba(0,0,0,.2)}
  .bfly-buy__panel{width:auto;left:8px;right:8px;bottom:calc(100% + 8px);max-height:calc(100vh - 90px)}
  body.has-bfly-buy{padding-bottom:58px}
}
@media print{.bfly-buy{display:none}}
