/* Sticky call-to-action bar on brand guides (inc/sticky-cta.php). */

.tmf-sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 998;
  display: flex;
  width: min(560px, calc(100% - 32px));
  transform: translateX(-50%);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .22);
}

.tmf-sticky-cta__button {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 20px;
  background: #5EAD39;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease;
}

.tmf-sticky-cta__button:hover,
.tmf-sticky-cta__button:focus-visible {
  background: #4d9130;
  color: #fff;
}

.tmf-sticky-cta__button:has(.tmf-sticky-cta__logo) { padding-left: 12px; }

.tmf-sticky-cta__logo {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .6);
}
.tmf-sticky-cta__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

.tmf-sticky-cta__icon { font-size: 15px; }

@media (max-width: 640px) {
  .tmf-sticky-cta {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 20px);
  }
  .tmf-sticky-cta__button { font-size: 14px; padding: 11px 14px; }
  .tmf-sticky-cta__logo { flex-basis: 28px; width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .tmf-sticky-cta__button { transition: none; }
}
