/* Stoherbat footer styles */

.stoherbat-footer {
  background-color: #f4f6f1;
}

.stoherbat-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: var(--space-24);
  padding-top: var(--space-24);
}

@media (max-width: 768px) {
  .stoherbat-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: var(--space-20);
  }
}

.stoherbat-footer__title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-8);
}

.stoherbat-footer__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  max-width: 32rem;
}

.stoherbat-footer__nav-title {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-8);
}

.stoherbat-footer__nav-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1.25rem;
  font-size: var(--font-size-sm);
}

@media (max-width: 480px) {
  .stoherbat-footer__nav-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.stoherbat-footer__nav-list a {
  color: var(--color-text-muted);
}

.stoherbat-footer__nav-list a:hover {
  color: var(--color-primary-dark);
}

.stoherbat-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-16);
}

@media (max-width: 768px) {
  .stoherbat-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }
}

.stoherbat-footer__copy {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Cookie consent banner */

.stoherbat-cookie {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: var(--space-8);
  background: linear-gradient(to top, rgba(15, 23, 42, 0.08), transparent);
}

.stoherbat-cookie[hidden] {
  display: none;
}

.stoherbat-cookie__inner {
  width: 100%;
  max-width: 960px;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-12) var(--space-16);
  display: flex;
  gap: var(--space-16);
  align-items: center;
}

@media (max-width: 768px) {
  .stoherbat-cookie__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.stoherbat-cookie__title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-4);
}

.stoherbat-cookie__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.stoherbat-cookie__links {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.stoherbat-cookie__links a {
  text-decoration: underline;
}

.stoherbat-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .stoherbat-cookie__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.stoherbat-cookie__button {
  font-size: var(--font-size-sm);
}

/* Hide animation */

.stoherbat-cookie--hiding {
  animation: stoherbat-cookie-slide-down 0.25s ease-out forwards;
}

@keyframes stoherbat-cookie-slide-down {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(12px);
  }
}
