/* New Year footer tree and greeting. Port of src/widgets/footer/ui/FooterTree.vue from the landing. */
.site-footer-tree {
  position: relative;
  display: flex;
}

.site-footer-tree__button {
  display: flex;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.site-footer-tree__button:hover {
  opacity: 0.8;
}

.site-footer-tree__button:focus-visible {
  outline: 2px solid var(--pmp-brand);
  outline-offset: 2px;
}

.site-footer-tree__button svg {
  display: block;
  width: 32px;
  height: 32px;
}

.site-footer-tree__greeting {
  position: absolute;
  bottom: calc(100% + 15px);
  left: -104px;
  /* above the New Year effects layers (snow 50, fireworks 40) */
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: max-content;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 26, 77, 0.12);
  font-family: var(--pmp-font-body);
  color: #000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.site-footer-tree__greeting.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.site-footer-tree__title {
  margin: 0;
  font-size: 18px;
  line-height: 21px;
}

.site-footer-tree__text {
  margin: 0;
  font-size: 14px;
  line-height: 18px;
}

/* theme and Vuetify base button rules override single-class selectors */
.site-footer button.site-footer-tree__close {
  width: 100%;
  padding: 8px 24px;
  border: 0;
  border-radius: 4px;
  background: var(--pmp-brand);
  font-family: var(--pmp-font-body);
  font-size: 14px;
  line-height: 16px;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.site-footer button.site-footer-tree__close:hover {
  background: #a657ee;
}

@media (max-width: 991.98px) {
  .site-footer-tree__button svg {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer-tree__greeting {
    transition: none;
  }
}
