/* Static Cloudflare build — show crawled GHL layout without JS runtime */

/* GHL hides components until JS adds .hydrated — force visible for static hosting */
html.hydrated ion-app,
html.hydrated ion-content,
html.hydrated ion-header,
html.hydrated ion-footer,
html.hydrated ion-menu,
html.hydrated ion-router-outlet,
html.hydrated .hl_page-preview--content,
html.hydrated .hl_page-preview--content * {
  visibility: visible !important;
}

html.hydrated slot-fb {
  display: contents !important;
}

/* Remove GHL runtime UI only — do not hide main page sections */
chat-widget,
iframe[src*="leadconnectorhq"],
iframe[src*="msgsndr"],
iframe#google-one-tap,
#google-one-tap,
#google-one-tap1,
#hl_main_popup,
[id^="hl_main_popup"] {
  display: none !important;
}

/* GHL login / member gate (homepage sometimes crawls as login only) */
.hl-wrapper-container.full-screen.page .login-page-width,
.login-page-width {
  display: none !important;
}

/* Nuxt shell: keep SSR page content visible */
#__nuxt,
#app {
  display: block !important;
  min-height: auto !important;
  height: auto !important;
}

.hl_page-preview--content,
.preview-container {
  display: block !important;
  visibility: visible !important;
}

form.hl-form,
.hl-form-container,
.cform-IowSZlUqOL,
.form-IowSZlUqOL,
.store-checkout,
.hl-quantity-input-container,
.cart-nav-wrapper .store-nav-cart,
.cart-nav-wrapper [class*="StoreNavCart"] {
  display: none !important;
}

/* GHL NavMenu puts links inside .cart-nav-wrapper — must stay visible */
.cart-nav-wrapper {
  display: flex !important;
  flex-wrap: wrap;
  visibility: visible !important;
}

.nav-menu-wrapper .cart-nav-wrapper ul.nav-menu {
  display: flex !important;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  visibility: visible !important;
}

.nav-menu-wrapper .nav-menu .nav-menu-item {
  display: flex !important;
  visibility: visible !important;
}

/* Floating WhatsApp — icon + label, slow pulse */
@keyframes mal-wa-float-blink {
  0%,
  100% {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    opacity: 1;
  }
  50% {
    box-shadow:
      0 4px 18px rgba(0, 0, 0, 0.4),
      0 0 14px rgba(37, 211, 102, 0.55);
    opacity: 0.9;
  }
}

.mal-wa-float {
  align-items: center;
  animation: mal-wa-float-blink 2.8s ease-in-out infinite;
  background: #25d366;
  border-radius: 50px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  line-height: 1.2;
  min-height: 52px;
  padding: 10px 20px 10px 14px;
  position: fixed;
  right: calc(22px + env(safe-area-inset-right, 0));
  text-decoration: none;
  z-index: 99999;
}

.mal-wa-float__icon {
  display: flex;
  flex-shrink: 0;
  height: 28px;
  width: 28px;
}

.mal-wa-float__svg {
  display: block;
  height: 100%;
  width: 100%;
}

.mal-wa-float__text {
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.mal-wa-float:hover {
  animation-play-state: paused;
  filter: brightness(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .mal-wa-float {
    animation: none;
  }
}

/* Product pages only */
.mal-product-inquiry {
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: Arial, Helvetica, sans-serif;
  margin: 20px auto;
  max-width: 640px;
  padding: 20px;
  text-align: center;
}

.mal-product-inquiry .mal-wa {
  background: #25d366;
  border-radius: 8px;
  color: #fff;
  display: inline-block;
  font-weight: 600;
  margin-top: 8px;
  padding: 12px 20px;
  text-decoration: none;
}

@media (max-width: 480px) {
  .mal-wa-float {
    bottom: calc(14px + env(safe-area-inset-bottom, 0));
    font-size: 11px;
    gap: 8px;
    min-height: 48px;
    padding: 8px 14px 8px 12px;
    right: calc(14px + env(safe-area-inset-right, 0));
  }

  .mal-wa-float__icon {
    height: 24px;
    width: 24px;
  }

  body.mal-site-unified,
  body.mal-site-custom {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0));
  }
}

/* Custom artwork gallery grids (static lightbox) */
.gallery-grid .gallery-item {
  cursor: pointer;
}

/* Gallery index labels (grouping workflow) — off unless .mal-gallery-index-mode */
.mal-gallery-index-banner {
  position: sticky;
  top: 0;
  z-index: 9000;
  margin: 12px 0;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #1f2a2d;
  background: #fff3cd;
  border: 1px solid #e6c200;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mal-gallery-index-banner code {
  font-size: 12px;
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 4px;
  border-radius: 3px;
}

html.mal-gallery-index-mode .gallery-panel #gallery-grid {
  counter-reset: mal-gallery-index;
}

html.mal-gallery-index-mode .gallery-panel #gallery-grid .gallery-item::after {
  counter-increment: mal-gallery-index;
  content: "#" counter(mal-gallery-index);
  display: block;
  margin-top: 4px;
  padding: 3px 0 2px;
  font: 700 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-align: center;
  color: #0d5c63;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.02em;
}

html.mal-gallery-index-mode .gallery-panel #gallery-grid .gallery-item {
  outline: 1px solid rgba(13, 92, 99, 0.15);
}

/* In-grid section titles (artworks gallery) */
.gallery-section-title {
  grid-column: 1 / -1;
  font-size: 1rem;
  font-weight: 700;
  color: #0d5c63;
  margin: 20px 0 8px;
  padding: 10px 0 6px;
  border-bottom: 2px solid rgba(31, 42, 45, 0.12);
  line-height: 1.35;
}

.gallery-panel .gallery-section-title:first-child {
  margin-top: 0;
}

html.mal-lightbox-open {
  overflow: hidden;
}

.lightbox-overlay.is-open {
  display: flex !important;
}

/* GHL FAQ accordion (static) — complements per-page #faq-* rules */
.hl-faq-child-heading {
  cursor: pointer;
  user-select: none;
}

.hl-faq-child-heading:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.hl-faq-child-panel {
  box-sizing: border-box;
  transition:
    height 0.35s ease,
    opacity 0.28s ease,
    padding 0.35s ease;
}

/* Chevron: SVG fallback when Font Awesome webfont is absent */
.hl-faq-child-heading-icon.right.fa {
  align-items: center;
  display: inline-flex;
  flex-shrink: 0;
  height: 1.1rem;
  justify-content: center;
  margin-left: 0.5rem;
  width: 1.1rem;
}

.hl-faq-child-heading-icon.right.fa::before {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "" !important;
  display: block;
  font-family: inherit !important;
  height: 0.45em;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  width: 0.45em;
}

.hl-faq-child-heading.active .hl-faq-child-heading-icon.right.fa::before {
  transform: rotate(-135deg);
}

.faq-separated-child.hl-faq-child.active {
  border-color: rgba(0, 0, 0, 0.12);
}

.hl-faq-child.active .hl-faq-child-panel,
.hl-faq-child.mal-faq-open .hl-faq-child-panel {
  display: flex;
}

@media (prefers-reduced-motion: reduce) {
  .hl-faq-child-panel {
    transition: none;
  }

  .hl-faq-child-heading-icon.right.fa::before {
    transition: none;
  }
}

/* Phase 1: legacy duplicate home URL notice */
.mal-duplicate-home-notice a {
  color: inherit;
  font-weight: 600;
}

/* Phase 3: AI-readable identity + page signals */
.mal-identity {
  background: #f8f6f2;
  border-bottom: 1px solid #e0d8cc;
  padding: 1.25rem 1rem;
}

.mal-identity__inner {
  max-width: 960px;
  margin: 0 auto;
}

.mal-identity__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.35;
}

.mal-identity__en,
.mal-identity__zh {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #1a1a1a;
}

.mal-identity__zh {
  margin-bottom: 0;
}

.mal-content-signal {
  max-width: 960px;
  margin: 0.75rem auto 1rem;
  padding: 0.85rem 1rem;
  background: #f3f7fa;
  border-left: 4px solid #188bf6;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #1a1a1a;
}

.mal-content-signal p {
  margin: 0 0 0.5rem;
}

.mal-content-signal p:last-child {
  margin-bottom: 0;
}
