body[data-account-section-state='loading'] :is(
  .account-status-side-ad,
  .account-status-mobile-bottom-ad
):has(.fdc-shared-ad-slot:is(
  :not([data-ad-state]),
  [data-ad-state='placeholder'],
  [data-ad-state='demo']
)),
body.shop-owner-dashboard-page[data-shop-dashboard-auth='pending'] :is(
  .dashboard-status-side-ad,
  .dashboard-status-mobile-bottom-ad
):has(.fdc-shared-ad-slot:is(
  :not([data-ad-state]),
  [data-ad-state='placeholder'],
  [data-ad-state='demo']
)),
body:has(#profileLoadingState.is-visible) :is(
  .fdc-status-page-side-ad,
  .fdc-status-mobile-bottom-ad
):has(.fdc-shared-ad-slot:is(
  :not([data-ad-state]),
  [data-ad-state='placeholder'],
  [data-ad-state='demo']
)),
body:has(
  #pendingShell:not([hidden]),
  #loadingPanel:not([hidden])
) :is(
  .notifications-side-ad,
  .notifications-mobile-bottom-ad
):has(.fdc-shared-ad-slot:is(
  :not([data-ad-state]),
  [data-ad-state='placeholder'],
  [data-ad-state='demo']
)),
body.calendar-page:has(#calendarList .fdc-loading-stack) :is(
  .calendar-side-ad,
  .calendar-responsive-bottom-ad
):has(
  .fdc-shared-ad-slot:is(
    :not([data-ad-state]),
    [data-ad-state='placeholder'],
    [data-ad-state='demo']
  )
),
body.calendar-event-page:has(.calendar-event-page-grid--state .fdc-loading-stack) .calendar-event-side-ad:has(.fdc-shared-ad-slot:is(
  :not([data-ad-state]),
  [data-ad-state='placeholder'],
  [data-ad-state='demo']
)),
body.legal-page:not([data-legal-doc-ready='1']) :is(
  .legal-side-ad,
  .legal-responsive-bottom-ad
):has(
  .fdc-shared-ad-slot:is(
    :not([data-ad-state]),
    [data-ad-state='placeholder'],
    [data-ad-state='demo']
  )
),
body:has(#initialLoadingOverlay:not([hidden])) .map-bottom-ad:has(
  .fdc-shared-ad-slot:is(
    :not([data-ad-state]),
    [data-ad-state='placeholder'],
    [data-ad-state='demo']
  )
),
body.tcg-links-page:not([data-tcg-links-ready='1']) :is(
  .tcg-links-side-ad,
  .tcg-links-mobile-bottom-ad
):has(.fdc-shared-ad-slot:is(
  :not([data-ad-state]),
  [data-ad-state='placeholder'],
  [data-ad-state='demo']
)),
body.chat-dm-page:has(
  #supportChatLoadingState:not([hidden]),
  #supportChatListState:not([hidden]) .fdc-loading-stack
) :is(
  .fdc-chat-side-ad,
  .fdc-chat-mobile-bottom-ad
):has(.fdc-shared-ad-slot:is(
  :not([data-ad-state]),
  [data-ad-state='placeholder'],
  [data-ad-state='demo']
)) {
  display: none !important;
}

@media (max-width: 1399px) {
  :is(
    body[data-account-section-state='loading'],
    body.shop-owner-dashboard-page[data-shop-dashboard-auth='pending'],
    body:has(#profileLoadingState.is-visible),
    body:has(#pendingShell:not([hidden]), #loadingPanel:not([hidden])),
    body.calendar-page:has(#calendarList .fdc-loading-stack),
    body.legal-page:not([data-legal-doc-ready='1']),
    body:has(#initialLoadingOverlay:not([hidden])),
    body.tcg-links-page:not([data-tcg-links-ready='1']),
    body.chat-dm-page:has(#supportChatLoadingState:not([hidden]), #supportChatListState:not([hidden]) .fdc-loading-stack)
  ) .fdc-mobile-fixed-bottom-ad:has(.fdc-shared-ad-slot:is(
    :not([data-ad-state]),
    [data-ad-state='placeholder'],
    [data-ad-state='demo']
  )) {
    display: block !important;
  }

  :is(
    body[data-account-section-state='loading'],
    body.shop-owner-dashboard-page[data-shop-dashboard-auth='pending'],
    body:has(#profileLoadingState.is-visible),
    body:has(#pendingShell:not([hidden]), #loadingPanel:not([hidden])),
    body.calendar-page:has(#calendarList .fdc-loading-stack),
    body.legal-page:not([data-legal-doc-ready='1']),
    body:has(#initialLoadingOverlay:not([hidden])),
    body.tcg-links-page:not([data-tcg-links-ready='1']),
    body.chat-dm-page:has(#supportChatLoadingState:not([hidden]), #supportChatListState:not([hidden]) .fdc-loading-stack)
  ) .fdc-mobile-fixed-bottom-ad .fdc-shared-ad-slot {
    visibility: hidden;
  }

  :is(
    body[data-account-section-state='loading'],
    body.shop-owner-dashboard-page[data-shop-dashboard-auth='pending'],
    body:has(#profileLoadingState.is-visible),
    body:has(#pendingShell:not([hidden]), #loadingPanel:not([hidden])),
    body.calendar-page:has(#calendarList .fdc-loading-stack),
    body.legal-page:not([data-legal-doc-ready='1']),
    body:has(#initialLoadingOverlay:not([hidden])),
    body.tcg-links-page:not([data-tcg-links-ready='1']),
    body.chat-dm-page:has(#supportChatLoadingState:not([hidden]), #supportChatListState:not([hidden]) .fdc-loading-stack)
  ) .fdc-mobile-fixed-bottom-ad {
    background: transparent;
    box-shadow: none;
  }
}

body[data-account-section-state='loading'] [data-fdc-ad-slot][data-ad-state='rendering'] .fdc-shared-ad-slot__placeholder,
body.shop-owner-dashboard-page[data-shop-dashboard-auth='pending'] [data-fdc-ad-slot][data-ad-state='rendering'] .fdc-shared-ad-slot__placeholder,
body:has(#profileLoadingState.is-visible) [data-fdc-ad-slot][data-ad-state='rendering'] .fdc-shared-ad-slot__placeholder,
body:has(#pendingShell:not([hidden]), #loadingPanel:not([hidden])) [data-fdc-ad-slot][data-ad-state='rendering'] .fdc-shared-ad-slot__placeholder,
body.calendar-page:has(#calendarList .fdc-loading-stack) [data-fdc-ad-slot][data-ad-state='rendering'] .fdc-shared-ad-slot__placeholder,
body.calendar-event-page:has(.calendar-event-page-grid--state .fdc-loading-stack) [data-fdc-ad-slot][data-ad-state='rendering'] .fdc-shared-ad-slot__placeholder,
body.legal-page:not([data-legal-doc-ready='1']) [data-fdc-ad-slot][data-ad-state='rendering'] .fdc-shared-ad-slot__placeholder,
body:has(#initialLoadingOverlay:not([hidden])) [data-fdc-ad-slot][data-ad-state='rendering'] .fdc-shared-ad-slot__placeholder,
body.tcg-links-page:not([data-tcg-links-ready='1']) [data-fdc-ad-slot][data-ad-state='rendering'] .fdc-shared-ad-slot__placeholder,
body.chat-dm-page:has(#supportChatLoadingState:not([hidden]), #supportChatListState:not([hidden]) .fdc-loading-stack) [data-fdc-ad-slot][data-ad-state='rendering'] .fdc-shared-ad-slot__placeholder {
  visibility: hidden;
}
