/* Footer resource links use the same colors and spacing as the footer. */
.footer-area .footer-resource-strip {
  padding: 20px 0;
  background: rgba(12, 8, 24, 0.12);
}

.footer-area .footer-resource-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.footer-area .footer-resource-nav > a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.footer-area .footer-resource-nav > a > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-area .footer-resource-nav > a > i {
  flex-shrink: 0;
  color: #ff84ca;
  font-size: 18px;
}

.footer-area .footer-resource-nav > a > i:last-child {
  font-size: 15px;
}

.footer-area .footer-resource-nav > a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 132, 202, 0.7);
}

.footer-area .footer-resource-nav > a:focus-visible {
  outline: 2px solid #ff84ca;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .footer-area .footer-resource-nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-area .footer-resource-nav > a { transition: none; }
}

/* Public navigation and mobile notice layout. Keep real content within its own container. */
.rose-alert-wrap,
.rose-alert-wrap.pos-right,
.rose-alert-wrap.pos-center {
  position: fixed !important;
  left: 14px !important;
  right: auto !important;
  bottom: var(--kb-toast-bottom, 112px) !important;
  width: min(440px, calc(100vw - 28px));
  max-width: 440px;
  margin: 0;
  padding: 0;
  justify-content: flex-start !important;
  z-index: 12001 !important;
}

.rose-alert-wrap .rose-alert:not(.is-show) {
  visibility: hidden;
  pointer-events: none;
}

.wa-mini-support {
  position: fixed !important;
  left: 14px !important;
  right: auto !important;
  bottom: var(--kb-support-bottom, 18px) !important;
  width: 280px !important;
  max-width: calc(100vw - 28px) !important;
  margin: 0;
  z-index: 12000 !important;
}

@media (min-width: 992px) {
  nav.desktop-category-nav > .container {
    min-width: 0;
  }

  nav.desktop-category-nav .navbar-collapse {
    min-width: 0;
    max-width: 100%;
  }

  nav.desktop-category-nav ul.desktop-category-list {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px 8px !important;
    position: relative !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    flex: 1 1 auto !important;
  }

  nav.desktop-category-nav li.desktop-category-item {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  nav.desktop-category-nav li.desktop-category-item.dropdown {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  nav.desktop-category-nav li.desktop-category-item.dropdown::after {
    display: none !important;
  }

  nav.desktop-category-nav .desktop-category-link-group {
    max-width: 100% !important;
  }

  nav.desktop-category-nav a.desktop-category-link {
    min-width: 0;
    white-space: normal !important;
    overflow-wrap: anywhere;
    line-height: 1.25 !important;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .mobile-bottom-menu {
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .cookie-consent {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 8px 10px !important;
  }

  .cookie-consent .cookie-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .cookie-consent .cookie-content span {
    min-width: 0;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 400;
  }

  .cookie-consent button {
    flex: 0 0 auto;
    min-width: 64px;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 12px;
  }

  /* The optional status message stays in document flow, clear of the bottom menu. */
  .rose-alert-wrap,
  .rose-alert-wrap.pos-right,
  .rose-alert-wrap.pos-center {
    position: fixed !important;
    left: 10px !important;
    right: auto !important;
    bottom: var(--kb-toast-bottom, 190px) !important;
    width: calc(100vw - 20px);
    max-width: 440px;
    margin: 0;
    padding: 0;
    justify-content: flex-start !important;
    z-index: 12001 !important;
  }

  .rose-alert-wrap .rose-alert {
    max-width: 100%;
    grid-template-columns: 34px minmax(0, 1fr) 28px;
    gap: 8px;
    padding: 10px;
  }

  .rose-alert-wrap .rose-alert__icon {
    width: 30px;
    height: 30px;
  }

  .rose-alert-wrap .rose-alert__title {
    font-size: 13px;
    line-height: 1.35;
  }

  .rose-alert-wrap .rose-alert__text {
    font-size: 12px;
    line-height: 1.4;
  }

  .wa-mini-support {
    left: 10px !important;
    right: auto !important;
    bottom: var(--kb-support-bottom, calc(84px + env(safe-area-inset-bottom, 0px))) !important;
    width: 280px !important;
    max-width: calc(100vw - 20px) !important;
  }

  .kb-instagram-feed .kb-instagram-feed__actions {
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
    gap: 12px;
  }

  .kb-instagram-feed .kb-instagram-feed__profile {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
  }

  .kb-instagram-feed .kb-instagram-feed__controls {
    flex: 0 0 auto;
  }
}
