/**
 * Zemexx — Guest Register CTA styles
 *
 * Баннер на /izbrannoe/ и sticky-toast на других страницах для гостей.
 * Призывает зарегистрироваться чтобы сохранить избранное.
 */

/* ─── Главный баннер (на /izbrannoe/) ─────────────────────────── */
.zfx-cta-banner-wrap {
  max-width: 1280px;
  margin: 16px auto 0;
  padding: 0 20px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.zfx-cta-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 60px 22px 24px;
  background: linear-gradient(135deg, rgba(0, 191, 63, 0.08), rgba(0, 191, 63, 0.03));
  border: 1px solid rgba(0, 191, 63, 0.28);
  border-radius: 18px;
  flex-wrap: wrap;
  font-family: 'TT Wellingtons', 'PT Sans', sans-serif;
}

.zfx-cta-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.zfx-cta-close:hover {
  background: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

.zfx-cta-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #00bf3f;
  color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 191, 63, 0.25);
}

.zfx-cta-text {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: #4a525c;
}
.zfx-cta-text b {
  font-size: 17px;
  font-weight: 700;
  color: #030813;
  letter-spacing: -0.2px;
}

.zfx-cta-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.zfx-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.15s, color 0.15s, transform 0.15s, border-color 0.15s;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}
.zfx-cta-btn--primary {
  background: #00bf3f;
  color: #ffffff !important;
}
.zfx-cta-btn--primary:hover {
  background: #00a836;
  transform: translateY(-1px);
}
.zfx-cta-btn--ghost {
  background: #ffffff;
  color: #030813 !important;
  border-color: #E8EAEE;
}
.zfx-cta-btn--ghost:hover {
  border-color: #00bf3f;
  color: #00bf3f !important;
}

/* ─── Sticky toast (на других страницах сайта) ─────────────────── */
.zfx-cta-toast-wrap {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9998;
  max-width: 380px;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.zfx-cta-toast-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.zfx-cta-toast {
  position: relative;
  background: #ffffff;
  border: 1px solid #E8EAEE;
  border-left: 4px solid #00bf3f;
  border-radius: 14px;
  padding: 16px 44px 16px 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
  font-family: 'TT Wellingtons', 'PT Sans', sans-serif;
}
.zfx-cta-toast .zfx-cta-close {
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  background: transparent;
}
.zfx-cta-toast-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  line-height: 1.4;
  color: #4a525c;
}
.zfx-cta-toast-body b {
  font-size: 14px;
  font-weight: 700;
  color: #030813;
}
.zfx-cta-toast-body a {
  color: #00bf3f;
  font-weight: 700;
  text-decoration: none;
}
.zfx-cta-toast-body a:hover {
  text-decoration: underline;
}

/* ─── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .zfx-cta-banner {
    padding: 18px 50px 18px 18px;
    gap: 14px;
  }
  .zfx-cta-icon {
    width: 44px;
    height: 44px;
  }
  .zfx-cta-text b {
    font-size: 15.5px;
  }
  .zfx-cta-text {
    font-size: 13px;
  }
  .zfx-cta-actions {
    width: 100%;
  }
  .zfx-cta-btn {
    flex: 1;
    text-align: center;
  }
  .zfx-cta-toast-wrap {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}
