/* =========================================================
   OSBEATS DIGITAL CREATOR STORE UI FIXES V2E
   ========================================================= */

/*
  Creator Studio has older global button/image rules that can
  override HTML's hidden state. Force Digital Store hidden
  controls to actually remain hidden until JavaScript enables
  them.
*/

.digital-store-panel [hidden]{
  display:none !important;
}


/*
  Never show an empty image element or alt-text/broken-image
  placeholder inside the product-cover preview.
*/

.digital-store-cover-preview img:not([src]),
.digital-store-cover-preview img[src=""]{
  display:none !important;
}


/*
  Preserve the intended square placeholder whenever there is
  no selected/generated cover.
*/

.digital-store-cover-placeholder{
  min-height:100%;
}


/*
  Clear disabled state for buttons that are temporarily busy.
*/

.digital-store-panel button:disabled,
.digital-store-panel .btn:disabled{
  opacity:.48 !important;
  cursor:not-allowed !important;
  pointer-events:none !important;
}


/*
  Keep the active Store buttons legible.
*/

.digital-store-panel .btn.primary:not(:disabled){
  color:#fff !important;
}

.digital-store-panel .btn.ghost:not(:disabled){
  color:#fff !important;
}


/*
  Prevent the cover preview from displaying stray text.
*/

.digital-store-cover-preview{
  line-height:0;
}


/*
  Improve form button spacing on narrow screens.
*/

@media(max-width:620px){

  .digital-store-form-actions{
    flex-direction:column;
  }

  .digital-store-form-actions .btn{
    width:100%;
  }

}

/* END OSBEATS DIGITAL CREATOR STORE UI FIXES V2E */
