/**
 * Web to App Converter Pro — Public CSS
 * Indiatics (www.indiatics.com)
 * Version: 1.7.0
 */

/* ── Install Wrapper ────────────────────────────────────── */
.wtacp-install-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  line-height: 1;
}

/* ── Install Button ─────────────────────────────────────── */
.wtacp-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  border: none;
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  text-decoration: none;
  transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
  position: relative;
  white-space: nowrap;
  /* Prevent any inherited font size from injecting extra content */
  letter-spacing: 0.01em;
}

.wtacp-install-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.wtacp-install-btn:active {
  filter: brightness(0.95);
  transform: translateY(0);
}

.wtacp-install-btn:disabled {
  opacity: 0.75;
  cursor: wait;
  transform: none;
  filter: none;
}

/* ── Single SVG icon inside button ─────────────────────── */
.wtacp-install-btn .wtacp-icon {
  flex-shrink: 0;
  display: block;
  /* Make sure no theme injects content before/after */
  width: 18px;
  height: 18px;
}

/* Kill any emoji the button text might have inherited */
.wtacp-install-btn .wtacp-btn-text {
  display: inline;
  line-height: 1;
}

/* ── Button style variants ──────────────────────────────── */
.wtacp-btn-style-modern {
  box-shadow: 0 3px 12px rgba(0,0,0,0.18), 0 1px 4px rgba(0,0,0,0.12);
}
.wtacp-btn-style-modern:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
}

.wtacp-btn-style-flat { box-shadow: none !important; }

.wtacp-btn-style-pill { border-radius: 999px !important; }

.wtacp-btn-style-gradient {
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%) !important;
}

/* ── Hover animations ───────────────────────────────────── */
@keyframes wtacp-pulse-ring {
  0%   { box-shadow: 0 0 0 0   rgba(26,115,232,0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(26,115,232,0); }
  100% { box-shadow: 0 0 0 0   rgba(26,115,232,0); }
}
.wtacp-btn-anim-pulse { animation: wtacp-pulse-ring 2.2s ease-out infinite; }

@keyframes wtacp-shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-4px) rotate(-1deg); }
  40%      { transform: translateX(4px)  rotate(1deg); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX(3px); }
}
.wtacp-btn-anim-shake:hover { animation: wtacp-shake .45s ease; }

.wtacp-btn-anim-scale:hover { transform: scale(1.06) !important; }

@keyframes wtacp-bounce-up {
  0%,100% { transform: translateY(0); }
  35%     { transform: translateY(-7px); }
  65%     { transform: translateY(-3px); }
}
.wtacp-btn-anim-bounce:hover { animation: wtacp-bounce-up .5s ease; }

/* ── Loading state ──────────────────────────────────────── */
.wtacp-install-loading {
  display: none;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

@keyframes wtacp-spin {
  to { transform: rotate(360deg); }
}
.wtacp-spinner-svg {
  animation: wtacp-spin .75s linear infinite;
  display: block;
  flex-shrink: 0;
}

/* ── Success state ──────────────────────────────────────── */
.wtacp-install-success {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #0f9d58;
}

/* ── Inline guidance message ────────────────────────────── */
.wtacp-inline-msg {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 380px;
}

/* ── Install Banner (bottom of screen) ─────────────────── */
.wtacp-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #1e293b;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.22);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(0.34,1.56,0.64,1);
}

.wtacp-install-banner.wtacp-banner-show {
  transform: translateY(0);
}

.wtacp-banner-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.wtacp-banner-content {
  flex: 1;
  min-width: 0;
}

.wtacp-banner-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wtacp-banner-text {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wtacp-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.wtacp-banner-install-btn {
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
  white-space: nowrap;
}
.wtacp-banner-install-btn:hover { background: #1557b0; }

.wtacp-banner-close-btn {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
  white-space: nowrap;
}
.wtacp-banner-close-btn:hover { background: rgba(255,255,255,0.2); }

@media (max-width: 480px) {
  .wtacp-install-banner { flex-wrap: wrap; padding: 12px 16px 16px; }
  .wtacp-banner-actions  { width: 100%; justify-content: flex-end; }
}

/* ── Floating Badge ─────────────────────────────────────── */
.wtacp-badge {
  position: fixed;
  z-index: 99998;
  background: #1e293b;
  color: #fff;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.wtacp-badge:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 28px rgba(0,0,0,0.3);
}
.wtacp-badge-bottom-right { bottom: 20px; right: 20px; }
.wtacp-badge-bottom-left  { bottom: 20px; left: 20px; }
.wtacp-badge-top-right    { top: 80px;    right: 20px; }

.wtacp-badge-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.wtacp-badge-btn img {
  border-radius: 8px;
  display: block;
}

.wtacp-badge-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  line-height: 1;
}

/* ── App info shortcode ─────────────────────────────────── */
.wtacp-app-info { font-size: 14px; line-height: 1.6; }
.wtacp-app-info p { margin: 0 0 6px; }
