/* TuneGrizzy V18: one desktop page boundary and an in-flow footer.
   Scope all rules to homepage: do not disrupt store, cart, player or other pages. */
@media (min-width:980px){
  /* Legacy Beat Cube homepage positions the last checkout row around 2950px. 
     Give these absolute children a matching containing block, not a 3000px footer margin. */
  .tg-home-main {position:relative!important; box-sizing:border-box!important;
      height:auto!important; min-height:0!important; padding-top:2970px!important;
      margin:0 auto!important; overflow:visible!important;}
  .tg-home-main > #Html21,.tg-home-main > #Html22,.tg-home-main > #Html23 {
      box-sizing:border-box!important;overflow:visible!important;min-height:65px!important;
      padding:4px!important;}
  body:has(.tg-home-main) #footer {
      display:block!important;position:relative!important;top:auto!important;bottom:auto!important;
      left:auto!important;right:auto!important;float:none!important;clear:both!important;
      margin:0 auto!important;transform:none!important;
      box-sizing:border-box!important;width:100%!important;
      height:315px!important;min-height:315px!important;max-height:315px!important;
      padding:12px 0 10px!important;overflow:hidden!important;
      border-top:3px solid #d11a36!important;background:linear-gradient(125deg,#191519,#100e11)!important;}
  body:has(.tg-home-main) #footer_Container {position:relative!important;height:290px!important;max-width:1200px!important;}
  body:has(.tg-home-main) #Layer2 {display:none!important;}
}
/* For tablet and phones, the existing V11 stylesheet creates a column layout.
   Explicitly cancel every desktop height/margin rule inherited from older sheets. */
@media (max-width:979px){
  .tg-home-main{height:auto!important;min-height:0!important;max-height:none!important;}
  body:has(.tg-home-main) #footer{position:relative!important;top:auto!important;left:auto!important;
      margin:20px auto 0!important;height:auto!important;min-height:0!important;max-height:none!important;}
  body:has(.tg-home-main) #Layer2{display:none!important;}
}

/* V19: footer belongs in the same flow as the checkout section.
   Desktop legacy positioned children remain anchored to the 2970px main content region. */
@media (min-width:980px){
 body:has(.tg-home-main) .tg-home-main{box-sizing:border-box!important;padding-top:2970px!important;padding-bottom:0!important;height:auto!important;min-height:0!important;max-height:none!important;}
 body:has(.tg-home-main) .tg-home-main > #footer{margin:0!important;position:relative!important;top:auto!important;}
 body:has(.tg-home-main) .tg-home-main > #Layer2{display:none!important;}
}
@media (max-width:979px){
 body:has(.tg-home-main) .tg-home-main{padding-top:0!important;padding-bottom:0!important;}
 body:has(.tg-home-main) #footer{height:auto!important;max-height:none!important;}
}
