
.premium-app-swal { z-index: 10020 !important; }
/* Match the shared customer-site header dimensions used on the homepage. */

/* Consistent colorful feedback for buttons across customer-facing pages. */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
[role="button"],
a.button,
a.btn,
.btn {
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, outline-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  button:not(:disabled):hover,
  input[type="button"]:hover,
  input[type="submit"]:hover,
  input[type="reset"]:hover,
  [role="button"]:hover,
  a.button:hover,
  a.btn:hover,
  .btn:hover {
    filter: saturate(1.22) brightness(1.035);
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(14, 165, 233, .22), 0 0 0 1px rgba(56, 189, 248, .28);
  }

  /* Partner is a text-style nav item, not a raised action button. */
  #partnerTopNavLink:not(:disabled):hover {
    background-color: transparent !important;
    filter: none !important;
    transform: none !important;
    box-shadow: none !important;
  }

  /* Keep the destructive logout action red; don't apply the global blue hover glow. */
  #navLogoutButton:hover {
    background-color: #fff1f2 !important;
    color: #e11d48 !important;
    filter: none !important;
    transform: none !important;
    box-shadow: inset 3px 0 0 #fb7185 !important;
  }
}

#navLogoutButton:active {
  background-color: #ffe4e6 !important;
  color: #be123c !important;
  filter: none !important;
  transform: none !important;
  box-shadow: inset 3px 0 0 #e11d48 !important;
}

#partnerTopNavLink:active {
  background-color: transparent !important;
  filter: none !important;
  transform: none !important;
  box-shadow: none !important;
}

#navLogoutButton:focus-visible {
  outline: 2px solid rgba(244, 63, 94, .45) !important;
  outline-offset: -2px;
}

button:not(:disabled):active,
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active,
[role="button"]:active,
a.button:active,
a.btn:active,
.btn:active {
  filter: saturate(1.3) brightness(.98);
  transform: translateY(0) scale(.97);
  box-shadow: 0 2px 8px rgba(14, 165, 233, .24);
}

button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible,
[role="button"]:focus-visible,
a.button:focus-visible,
a.btn:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgba(14, 165, 233, .42);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  [role="button"],
  a.button,
  a.btn,
  .btn { transition: none; }
}

header.sticky > .storefront-header-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 58px;
  min-height: 58px;
  padding-inline: clamp(12px, 2.4vw, 34px);
  gap: 12px;
}

.storefront-header-inner > a:first-child { flex: 0 0 auto; }
.storefront-header-inner .storefront-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: url("/luckyfamily-logo.png?v=1") center / contain no-repeat !important;
  background-color: transparent !important;
  box-shadow: none !important;
}
.storefront-header-inner .storefront-brand-mark > i { display: none !important; }
.storefront-header-inner .storefront-brand-mark > img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  background: transparent !important;
  border-radius: 0 !important;
}
.storefront-header-inner .storefront-brand-name {
  font-size: 20px;
  line-height: 1.15;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}
.storefront-header-inner .storefront-nav {
  flex: 0 1 auto;
  gap: clamp(8px, 1.5vw, 22px);
  font-size: 12px;
  white-space: nowrap;
}
.storefront-header-inner .storefront-search-wrap {
  width: clamp(180px, 20vw, 340px);
  flex: 0 1 clamp(180px, 20vw, 340px);
  min-width: 0;
}
.storefront-header-inner .storefront-search { min-width: 0; }
.storefront-search-wrap { position: relative; z-index: 60; }
.storefront-search-panel {
  position: absolute;
  z-index: 100;
  top: calc(100% + 8px);
  left: 0;
  width: min(420px, calc(100vw - 24px));
  max-height: min(68vh, 560px);
  overflow: auto;
  padding: 8px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #fff;
  color: #1e293b;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .2);
}
.storefront-search-panel[hidden] { display: none !important; }
.storefront-search-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}
.storefront-search-heading i { color: #0ea5e9; }
.storefront-search-result {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  gap: 10px;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.storefront-search-result:hover,
.storefront-search-result:focus-visible { background: #f0f9ff; outline: none; }
.storefront-search-result > img {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 10px;
  background: #f1f5f9;
  object-fit: cover;
}
.storefront-search-result-copy {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 3px;
}
.storefront-search-result-name,
.storefront-search-result-subtitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.storefront-search-result-name { color: #1e293b; font-size: 12px; font-weight: 800; }
.storefront-search-result-subtitle { color: #94a3b8; font-size: 10px; }
.storefront-search-result-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-size: 9px;
  font-weight: 800;
}
.storefront-search-empty { padding: 16px 10px; color: #94a3b8; font-size: 11px; text-align: center; }
.storefront-search-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding: 10px;
  border-top: 1px solid #e2e8f0;
  color: #0284c7;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.storefront-search-footer:hover { color: #0369a1; }
.storefront-header-inner #navAuthContainer {
  flex: 0 0 auto;
  gap: 8px;
}

@media (max-width: 767px) {
  header.sticky > .storefront-header-inner {
    height: 56px !important;
    min-height: 56px !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding: 6px 12px !important;
  }
  .storefront-header-inner > a:first-child { min-width: 0; gap: 8px !important; }
  .storefront-header-inner > a:first-child > div:last-child { min-width: 0; }
  .storefront-header-inner .storefront-brand-mark {
    width: 34px;
    height: 34px;
  }
  .storefront-header-inner .storefront-brand-name { font-size: 17px; }
  .storefront-header-inner > a:first-child > div:last-child > p { display: none; }
  .storefront-header-inner .storefront-search-wrap,
  .storefront-header-inner .storefront-search { display: none !important; }
  .storefront-header-inner #navAuthContainer { flex: 0 0 auto; margin-left: auto; }
  .storefront-header-inner #navAuthContainer > a[href="rewards.html"],
  .storefront-header-inner #navAuthContainer > a[href="topup.html"] { display: none !important; }
  .storefront-header-inner #navAuthContainer > #navUserMenuContainer { flex: 0 0 auto; }
  .storefront-header-inner #navAuthContainer > #navUserMenuContainer > #navUserMenuBtn {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 4px !important;
  }
  .storefront-header-inner #navAuthContainer > #navUserMenuContainer > #navUserMenuBtn > span,
  .storefront-header-inner #navAuthContainer > #navUserMenuContainer > #navUserMenuBtn > i { display: none; }
  .storefront-header-inner #navAuthContainer > #navUserMenuContainer > #navUserMenuBtn > div { width: 30px; height: 30px; }
  .lf-mobile-nav {
    position: fixed !important;
    inset: auto 0 0 !important;
    width: 100% !important;
    z-index: 10001 !important;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    contain: layout paint;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 2px !important;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .lf-mobile-nav a,
  .lf-mobile-nav .lf-theme-toggle-nav { min-height: 50px; }
  .lf-mobile-nav a { font-size: 10px; }
}

/* Reflow the shared navbar before its search field can collide with account balances. */
@media (min-width: 768px) and (max-width: 1399px) {
  header.sticky > .storefront-header-inner {
    height: auto !important;
    min-height: 58px;
    flex-wrap: wrap;
    row-gap: 4px;
    padding: 7px 12px !important;
  }
  .storefront-header-inner > a:first-child { order: 1; }
  .storefront-header-inner .storefront-search-wrap { order: 2; }
  .storefront-header-inner #navAuthContainer { order: 3; }
  .storefront-header-inner .storefront-brand-name { font-size: 17px; }
  .storefront-header-inner .storefront-nav {
    display: flex !important;
    order: 4;
    flex: 1 0 100%;
    justify-content: center;
    gap: clamp(8px, 1.2vw, 16px);
    font-size: 11px;
    padding: 2px 0;
  }
  .storefront-header-inner .storefront-search-wrap {
    width: clamp(150px, 18vw, 220px);
    flex: 1 1 150px;
  }
  .storefront-header-inner #navAuthContainer { gap: 4px; }
  .storefront-header-inner #navAuthContainer > a:first-child,
  .storefront-header-inner #navAuthContainer > a:nth-child(2) { padding-inline: 7px; }
  .storefront-header-inner #navAuthContainer > a:first-child > span:first-of-type { display: none !important; }
}

@media (min-width: 768px) and (max-width: 959px) {
  .storefront-header-inner .storefront-search-wrap { display: none !important; }
  .storefront-header-inner #navAuthContainer > a:nth-child(3) { display: none !important; }
}

/* Keep the desktop navbar on a single line on standard laptop-sized viewports. */
@media (min-width: 960px) and (max-width: 1399px) {
  header.sticky > .storefront-header-inner {
    height: 58px !important;
    min-height: 58px;
    flex-wrap: nowrap !important;
    gap: 8px;
    padding: 6px 12px !important;
  }
  .storefront-header-inner > a:first-child { order: 1; gap: 8px; }
  .storefront-header-inner .storefront-search-wrap { display: none !important; }
  .storefront-header-inner .storefront-nav {
    display: flex !important;
    order: 2;
    flex: 1 1 auto;
    justify-content: center;
    gap: clamp(5px, .7vw, 10px);
    font-size: 10px;
    padding: 0;
  }
  .storefront-header-inner #navAuthContainer { order: 3; gap: 4px; }
  .storefront-header-inner .storefront-brand-name { font-size: 16px; }
}

@media (max-width: 767px) {
  .storefront-header-inner #navAuthContainer { gap: 4px !important; }
  .storefront-header-inner #navAuthContainer > a:first-child,
  .storefront-header-inner #navAuthContainer > a:nth-child(2) { padding: 6px 7px !important; }
  .storefront-header-inner #navAuthContainer > a:first-child > span:first-of-type { display: none !important; }
}

@media (max-width: 480px) {
  .storefront-header-inner { gap: 6px !important; padding-inline: 8px !important; }
  .storefront-header-inner .storefront-brand-mark { width: 31px; height: 31px; }
  .storefront-header-inner .storefront-brand-name { font-size: 15px; }
  .storefront-header-inner > a:first-child > div > div > span.text-xs { display: none; }
  .storefront-header-inner #navAuthContainer > a:first-child > span:last-of-type,
  .storefront-header-inner #navAuthContainer > a:nth-child(2) > span:last-of-type { display: none !important; }
  .storefront-header-inner #navAuthContainer > a:first-child,
  .storefront-header-inner #navAuthContainer > a:nth-child(2) { padding: 7px !important; }
}

@media (max-width: 390px) {
  .storefront-header-inner { gap: 4px !important; padding-inline: 5px !important; }
  .storefront-header-inner .storefront-brand-mark { width: 27px; height: 27px; }
  .storefront-header-inner .storefront-brand-name { font-size: 13px; }
  .storefront-header-inner > a:first-child { gap: 7px !important; }
  .storefront-header-inner > a:first-child > p,
  .storefront-header-inner > a:first-child > div > div > span.text-xs { display: none !important; }
  .storefront-header-inner #navAuthContainer > a:first-child { display: none !important; }
  .storefront-header-inner #navAuthContainer > div button > span { max-width: 45px !important; }
}

@media (max-width: 360px) {
  .storefront-header-inner .storefront-brand-name { font-size: 14px; }
  .lf-mobile-nav { padding-inline: 3px !important; gap: 1px !important; }
  .lf-mobile-nav a,
  .lf-mobile-nav .lf-theme-toggle-nav { font-size: 9px; }
}
