/* Footer component styles for City Mall PL */
.cm-footer {
  margin-top: 3rem;
  background: #040b12;
  color: #d8e2f2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cm-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 2fr);
  gap: 2.5rem;
}

.cm-footer__brand {
  max-width: 380px;
}

.cm-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.cm-footer__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: radial-gradient(circle at 20% 20%, #4fd1ff 0%, #1b84ff 38%, #0b5bd1 72%, #03070d 100%);
}

.cm-footer__logo-text {
  font-family: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cm-footer__tagline {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: #9fb1cb;
}

.cm-footer__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.cm-footer__heading {
  margin: 0 0 0.7rem;
  font-family: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f2f6ff;
}

.cm-footer__link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cm-footer__link-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: #c5d3ea;
  text-decoration: none;
  padding: 0.15rem 0;
}

.cm-footer__link-list a::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(113, 184, 255, 0.9);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.16s ease-out, transform 0.16s ease-out;
}

.cm-footer__link-list a:hover,
.cm-footer__link-list a:focus-visible {
  color: #ffffff;
}

.cm-footer__link-list a:hover::before,
.cm-footer__link-list a:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.cm-footer__link-list a:focus-visible {
  outline: 2px solid #4fd1ff;
  outline-offset: 3px;
}

.cm-footer__base {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.9rem 1.5rem 1.3rem;
}

.cm-footer__copy {
  max-width: 1200px;
  margin: 0 auto;
  font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: #8c9fb8;
}

/* Cookie banner */
.cm-cookie {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1300;
  display: none;
  justify-content: center;
  align-items: flex-end;
  padding: 0.75rem 0.75rem 0.9rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
}

.cm-cookie--visible {
  display: flex;
}

.cm-cookie--hidden {
  animation: cm-cookie-slide-out 0.3s ease-in forwards;
}

.cm-cookie__panel {
  width: 100%;
  max-width: 960px;
  background: #050b13;
  border-radius: 14px;
  box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(125, 178, 255, 0.4);
  padding: 1rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
}

.cm-cookie__content {
  flex: 1 1 260px;
}

.cm-cookie__title {
  margin: 0 0 0.2rem;
  font-family: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  color: #ffffff;
}

.cm-cookie__text {
  margin: 0 0 0.35rem;
  font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
  color: #c1d0e9;
}

.cm-cookie__link {
  font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  color: #79c5ff;
  text-decoration: underline;
}

.cm-cookie__link:hover,
.cm-cookie__link:focus-visible {
  color: #b5e1ff;
}

.cm-cookie__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
  align-items: center;
}

.cm-cookie__btn {
  min-width: 7.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.4rem 0.9rem;
  font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.18s ease-out, color 0.18s ease-out, border-color 0.18s ease-out, box-shadow 0.18s ease-out, transform 0.1s ease-out;
}

.cm-cookie__btn--primary {
  background: linear-gradient(135deg, #4fd1ff, #1b84ff);
  color: #04101d;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
}

.cm-cookie__btn--primary:hover,
.cm-cookie__btn--primary:focus-visible {
  background: linear-gradient(135deg, #6ae0ff, #2a90ff);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

.cm-cookie__btn--secondary {
  background: rgba(9, 22, 40, 0.9);
  color: #e1ecff;
  border-color: rgba(144, 191, 255, 0.65);
}

.cm-cookie__btn--secondary:hover,
.cm-cookie__btn--secondary:focus-visible {
  background: rgba(18, 34, 55, 0.95);
}

.cm-cookie__btn:focus-visible {
  outline: 2px solid #4fd1ff;
  outline-offset: 2px;
}

@keyframes cm-cookie-slide-out {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(110%);
  }
}

@media (max-width: 900px) {
  .cm-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 1.5rem;
  }

  .cm-footer__links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cm-footer__inner {
    padding-inline: 1.25rem;
  }

  .cm-footer__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cm-footer__links-column:last-child {
    grid-column: 1 / -1;
  }

  .cm-cookie__panel {
    padding: 0.85rem 0.9rem 0.9rem;
  }

  .cm-cookie__actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .cm-footer__inner {
    padding-inline: 1rem;
  }

  .cm-footer__links {
    grid-template-columns: minmax(0, 1fr);
  }

  .cm-cookie__panel {
    flex-direction: column;
    align-items: stretch;
  }

  .cm-cookie__actions {
    justify-content: stretch;
  }

  .cm-cookie__btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
