/* Global glass capsule overlays the menu. WooCommerce owns dismissal. */
body p.woocommerce-store-notice.demo_store {
  position: fixed;
  inset: calc(var(--wp-admin--admin-bar--height, 0px) + max(12px, env(safe-area-inset-top))) auto auto 50%;
  transform: translateX(-50%);
  width: 96%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 9px 8px 24px;
  border: 1px solid;
  border-color: #b6b6b6;
  border-radius: 999px;
  background: rgba(80, 165, 246, 0.4);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.18),
    inset 0 -1px 2px rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.28);
  color: #f5f5f5;
  font-family: Raleway, sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  text-shadow: none;
  /* Inspiro header is 1000; overlay it while staying below modal dialogs. */
  z-index: 1001;
}

/* Native backdrop refraction where supported; blur above remains the fallback.
 * Unlike filter:, backdrop-filter never distorts the notice's text or control. */
@supports (backdrop-filter: url("#lens")) and (not (-webkit-backdrop-filter: blur(1px))) {
  body p.woocommerce-store-notice.demo_store {
    backdrop-filter: var(--t3x2r-glass-filter, blur(2.2px)) blur(7px) saturate(140%);
  }
}

body .t3x2r-store-notice__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

body .t3x2r-store-notice__text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

body .woocommerce-store-notice.demo_store .woocommerce-store-notice__dismiss-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  min-width: 20px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #bedefc;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

body .woocommerce-store-notice.demo_store .woocommerce-store-notice__dismiss-link:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #f5f5f5;
}

body .woocommerce-store-notice.demo_store .woocommerce-store-notice__dismiss-link:focus-visible {
  outline: 2px solid #50a5f6;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  body p.woocommerce-store-notice.demo_store {
    padding-left: 20px;
    font-size: 20px;
    min-height: 60px;
  }

  body .t3x2r-store-notice__inner {
    gap: 12px;
  }

  body .woocommerce-store-notice.demo_store .woocommerce-store-notice__dismiss-link {
    padding: 0 12px;
  }
}

@media (forced-colors: active) {
  body p.woocommerce-store-notice.demo_store {
    background: Canvas;
    color: CanvasText;
    border-color: CanvasText;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body .woocommerce-store-notice.demo_store .woocommerce-store-notice__dismiss-link {
    color: LinkText;
    border-color: LinkText;
  }
}
