/* DjimlyStore Digital v2.40.03
 * Message Center alignment hotfix
 * Direct account Game Coins reliability + One State
 */

/* Center the Message Center search exactly inside the same content rail as the hero/list. */
html body #djs-portal #djs-screen-chat.djs-message-center:not(.is-thread) .djs-mc-home-search-wrap-v24002{
  box-sizing:border-box!important;width:100%!important;max-width:760px!important;margin-left:auto!important;margin-right:auto!important;
  padding-left:0!important;padding-right:0!important;transform:none!important
}
html body #djs-portal #djs-screen-chat.djs-message-center:not(.is-thread) .djs-mc-home-search-wrap-v24002 .djs-mc-home-filter{
  box-sizing:border-box!important;width:100%!important;margin:0!important;padding-right:64px!important
}
html body #djs-portal #djs-screen-chat.djs-message-center:not(.is-thread) .djs-mc-search-submit-v24002{
  right:7px!important;left:auto!important;transform:none!important
}

/* Manual-account games must show the dedicated yellow Top Up support icon, never the old global logo bubble. */
html body:has(#djs-screen-game.djs-manual-direct-v24002.djs-screen.active) #djs-support-float{display:none!important}

/* Make the direct Game Coins header unmistakably visible even when older game CSS is cached. */
html body #djs-portal #djs-screen-game.djs-manual-direct-v24002 .djs-manual-game-head-v24002{
  display:block!important;visibility:visible!important;opacity:1!important;position:relative!important;z-index:2!important
}
html body #djs-portal #djs-screen-game.djs-manual-direct-v24002 .djs-game-pack-title,
html body #djs-portal #djs-screen-game.djs-manual-direct-v24002 .djs-game-region-block,
html body #djs-portal #djs-screen-game.djs-manual-direct-v24002 #djs-topup-btn{display:none!important}

/* One State gets its requested midnight-blue / premium-gold accent while keeping DjimlyStore blue controls. */
html body #djs-portal #djs-screen-game.djs-one-state-direct-v24003 .djs-manual-product-image-v24002{
  background:#071425!important;border:1px solid rgba(193,146,48,.22)!important
}
html body #djs-portal #djs-screen-game.djs-one-state-direct-v24003 .djs-manual-star-v24002{
  background:linear-gradient(135deg,#f6cf55,#c99a22)!important;color:#111827!important
}
html body #djs-portal #djs-screen-game.djs-one-state-direct-v24003 .djs-manual-promo-v24002{
  background:linear-gradient(90deg,#fff9e8,#f3fbff)!important;border-color:#f1deb0!important;color:#8a6414!important
}
html body #djs-portal #djs-screen-game.djs-one-state-direct-v24003 .djs-manual-promo-v24002>.ms{background:#fff0bc!important;color:#9b6c09!important}

/* Keep all pack rows and the buy bar clear of iOS/Safari and the support bubble. */
html body #djs-portal #djs-screen-game.djs-manual-direct-v24002 .djs-scroller{
  padding-bottom:calc(132px + env(safe-area-inset-bottom) + var(--djs-browser-toolbar,0px))!important
}
html body #djs-portal #djs-screen-game.djs-manual-direct-v24002 #djs-game-packs.djs-manual-pack-grid-v24002{
  padding-bottom:18px!important
}

@media (min-width:760px){
  html body #djs-portal #djs-screen-chat.djs-message-center:not(.is-thread) .djs-mc-home-search-wrap-v24002{max-width:820px!important}
}
@media (max-width:520px){
  html body #djs-portal #djs-screen-chat.djs-message-center:not(.is-thread) .djs-mc-home-search-wrap-v24002{
    width:100%!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important
  }
  html body #djs-portal #djs-screen-chat.djs-message-center:not(.is-thread) .djs-mc-home-search-wrap-v24002 .djs-mc-home-filter{padding-left:17px!important;padding-right:58px!important}
}
