/* =====================================================
   Master Lawyer - Live demo extras
   Styles for js/demo.js (the customizer tip). Only used by the online
   preview; not part of the download.
   ===================================================== */

.customizer-hint {
  position: fixed;
  left: 72px;
  bottom: 16px;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(360px, calc(100vw - 96px));
  padding: 12px 12px 12px 16px;
  border: 1px solid rgb(var(--gold-rgb) / 45%);
  border-radius: 10px;
  background: #111;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  font-family: var(--font-body);
  font-size: calc(14px * var(--font-body-scale) * var(--screen-type));
  line-height: 1.45;
  color: #d0cdc7;
  opacity: 0;
  transform: translate3d(-8px, 0, 0);
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.customizer-hint.is-visible {
  opacity: 1;
  transform: none;
}

/* Small pointer towards the button. */
.customizer-hint::before {
  content: "";
  position: absolute;
  left: -6px;
  bottom: 16px;
  width: 10px;
  height: 10px;
  border-left: 1px solid rgb(var(--gold-rgb) / 45%);
  border-bottom: 1px solid rgb(var(--gold-rgb) / 45%);
  background: #111;
  transform: rotate(45deg);
}

.customizer-hint__text {
  margin: 0;
}

.customizer-hint__text strong {
  color: #fff;
}

.customizer-hint__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
}

.customizer-hint__try {
  padding: 7px 14px;
  border: 0;
  border-radius: 6px;
  background: var(--gold);
  font-family: var(--font-label);
  font-weight: var(--font-label-weight);
  font-stretch: var(--font-label-stretch);
  font-size: calc(13px * var(--font-label-scale) * var(--screen-type));
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000;
  cursor: pointer;
  transition: background-color 0.25s ease-out;
}

.customizer-hint__try:hover {
  background: #d6a54a;
}

.customizer-hint__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  font-size: 16px;
  color: #9a958c;
  cursor: pointer;
  transition: color 0.25s ease-out;
}

.customizer-hint__close:hover {
  color: #fff;
}

/* Soft gold pulse on the button while the hint shows. */
.customizer-toggle.is-hinting {
  animation: customizerPulse 2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes customizerPulse {
  0% {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 0 0 rgb(var(--gold-rgb) / 55%);
  }

  70% {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 0 14px rgb(var(--gold-rgb) / 0%);
  }

  100% {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 0 0 rgb(var(--gold-rgb) / 0%);
  }
}

html.menu-open .customizer-hint {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .customizer-hint {
    transition: none;
  }

  .customizer-toggle.is-hinting {
    animation: none;
  }
}
