/* Premium Pinballs theme: additions to the demo styles (site.css) for WordPress/WooCommerce. */
.hicons a{position:relative}
.cartn{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--red);color:#fff;font:800 11px/20px system-ui,sans-serif;text-align:center;border:2px solid var(--paper,#FFF6EA)}
.cartn[hidden]{display:none}
.pp-notices:empty{display:none}
.pp-notices{margin:16px 0 0}
.pp-notices .woocommerce-message,.pp-notices .woocommerce-error,.pp-notices .woocommerce-info,.pp-notices .wc-block-components-notice-banner{list-style:none;margin:0 0 12px;padding:14px 18px;border:2px solid var(--ink);border-radius:14px;background:#fff;font-weight:600;display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;box-shadow:4px 4px 0 var(--ink)}
.pp-notices .woocommerce-message{border-color:#138a3e;box-shadow:4px 4px 0 #138a3e}
.pp-notices .woocommerce-error{border-color:var(--red);box-shadow:4px 4px 0 var(--red)}
.pp-notices .woocommerce-error li{list-style:none}
.pp-notices a.button,.pp-notices .button{order:2;margin-left:auto;padding:8px 14px;border-radius:999px;background:var(--ink);color:#fff;text-decoration:none;font-weight:700}
.admin-bar header.top{top:32px}
@media (max-width:782px){.admin-bar header.top{top:46px}}
.cta form.cart{display:contents}
input[name="website"]{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.pp-termdesc .prose{margin:0 auto}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
/* Live site's Crisp chat bubble sits bottom-right: keep the call-back button to its left. */
:root:has(.crisp-client) .fab{right:100px}
@media (max-width:560px){:root:has(.crisp-client) .fab{right:84px}}

/* Product page columns must be able to shrink: with many photos the thumbnail row pushed the page wider than a phone screen. */
.phero > *, .pbody > * { min-width: 0; }

/* Home pinball cabinet: the side panels (lamps, jackpot, coupon, bumpers) need ~100px each. On tall screens the table
   grew so wide that it squeezed them and the labels stuck out; cap the table by the cabinet width instead. */
@media (min-width:621px){
  .hero .deck{container-type:inline-size}
  .hero #table{max-height:calc((100cqw - 226px) * 1.6);min-height:min(380px, calc((100cqw - 226px) * 1.6))}
  .deck .side{min-width:100px}
  .mdmd.slot2{font-size:12px;padding:9px 4px}
  .mdmd.sm{padding:9px 4px}
}
/* 621-1180px: the demo already uses smaller panel fonts here, so 88px panels are enough and the table gets more room. */
@media (min-width:621px) and (max-width:1180px){
  .hero #table{max-height:calc((100cqw - 200px) * 1.6);min-height:min(380px, calc((100cqw - 200px) * 1.6))}
  .deck .side{min-width:88px}
}

/* Narrow phones (360px): four 42px header icons pushed into the logo text. Make them a little smaller. */
@media (max-width:400px){
  .hicons{gap:6px}
  .hicons a,.hicons button{width:38px;height:38px}
  .brand{gap:8px}
  .brand img{width:40px}
}

/* Short laptop screens (e.g. 1536x730): the cabinet's bottom buttons (Plunge, Nudge) fell below the fold. Pin the
   cabinet to the top of the hero and also cap the table by the screen height. */
@media (min-width:621px) and (max-height:900px){
  .hero .cab{align-self:start}
  .hero #table{max-height:min(calc((100cqw - 226px) * 1.6), max(300px, calc(100vh - 340px)));min-height:min(380px, calc((100cqw - 226px) * 1.6), max(300px, calc(100vh - 340px)))}
}
@media (min-width:621px) and (max-width:1180px) and (max-height:900px){
  .hero #table{max-height:min(calc((100cqw - 200px) * 1.6), max(300px, calc(100vh - 340px)));min-height:min(380px, calc((100cqw - 200px) * 1.6), max(300px, calc(100vh - 340px)))}
}

/* Home "Popular models": the machine photos have a drop-shadow filter, which paints them above the "by Stern"
   badge (same on the demo). Keep the badge on top. */
.pm .by{z-index:2}
