/* MAHAHANG999 mobile fix — load LAST so it beats Nuxt/scoped CSS */
@media (max-width: 768px) {
  html body .btn-unified.btn-unified-type11.bt11-md,
  html body .btn-unified.bt11-primary.bt11-md,
  html body .btn-unified.bt11-secondary.bt11-md,
  html body .layout-header-wrapper .btn-unified,
  html body .layout-chrome-header .btn-unified,
  html body header .btn-unified.bt11-md {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: auto !important;
    flex: 1 1 0 !important;
    letter-spacing: 0 !important;
  }

  html body .btn-unified.bt11-md .btn-unified-content,
  html body .layout-header-wrapper .btn-unified-content,
  html body header .btn-unified-content {
    font-size: 13px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    max-height: 100% !important;
    max-width: 100% !important;
  }

  html body .layout-header-wrapper .flex.gap-2.p-2,
  html body .layout-chrome-header .flex.gap-2.p-2 {
    gap: 8px !important;
    padding: 8px 6px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  html body .layout-header-wrapper img[src*="logo"],
  html body .layout-chrome-header img[src*="logo"] {
    max-height: 44px !important;
    width: auto !important;
  }

  html body .event-card-label {
    font-size: 10px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow: hidden !important;
    word-break: keep-all !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    max-height: 2.4em !important;
  }

  /* ลอยกระทงทับเมนู — ปิดบนมือถือ */
  html body .festival-ambient-host,
  html body .festival-ambient-layer,
  html body .festival-sky-lantern,
  html body .festival-float-up,
  html body .festival-header-decoration,
  html body .festival-banner-tree,
  html body .festival-footer-corners,
  html body [class*="festival-footer"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }

  /* คืนปุ่มกลางฝาก/ถอน */
  html body .center-float-btn,
  html body [class*="center-float-btn"] {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
  }
}
