/* ── InvoiceGenie Cookie Consent v1.0.0 ── */

/* Banner */
.ig-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #1a1a2e;
  color: #f0eeff;
  padding: 16px 24px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.88rem;
  line-height: 1.5;
  /* Hidden by default — JS removes 'hidden' attr and adds ig-visible */
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity  0.35s ease;
  opacity: 0;
}

.ig-cookie-banner.ig-visible {
  transform: translateY(0);
  opacity: 1;
}

.ig-cookie-banner.ig-hiding {
  transform: translateY(100%);
  opacity: 0;
}

.ig-cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* Icon + text row */
.ig-cookie-text {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 280px;
}

.ig-cookie-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: #a78bfa;
}

.ig-cookie-text span {
  color: #d4cff0;
}

.ig-cookie-link {
  color: #a78bfa;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ig-cookie-link:hover {
  color: #c4b5fd;
}

/* Action buttons */
.ig-cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ig-cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1;
  border: 2px solid transparent;
  box-sizing: border-box;
  /* Reset native <button> defaults */
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  font-family: inherit;
}

.ig-cookie-btn--primary {
  background: #6c3ecc;
  color: #fff;
  border-color: #6c3ecc;
}

.ig-cookie-btn--primary:hover {
  background: #5a30b0;
  border-color: #5a30b0;
}

.ig-cookie-btn--secondary {
  background: transparent;
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.4);
}

.ig-cookie-btn--secondary:hover {
  background: rgba(167, 139, 250, 0.1);
  border-color: #a78bfa;
}

/* Mobile */
@media (max-width: 600px) {
  .ig-cookie-banner {
    padding: 14px 16px 20px;
  }
  .ig-cookie-inner {
    flex-direction: column;
    align-items: stretch;    /* override center so nothing stretches vertically */
    justify-content: flex-start; /* override space-between — no gaps */
    gap: 12px;
  }
  .ig-cookie-text {
    flex: none;              /* remove the 280px min-width that inflates height */
  }
  .ig-cookie-actions {
    width: 100%;
    justify-content: stretch;
    gap: 8px;
  }
  .ig-cookie-btn {
    flex: 1;
    min-width: 0;
    width: auto;
  }
}

/* ── Privacy page styles ── */
.ig-privacy-page {
  max-width: 820px !important;
  margin: 0 auto !important;
  padding: 40px 24px 80px !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a2e;
  line-height: 1.75;
}

.ig-privacy-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #120d2b;
}

.ig-privacy-page h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #120d2b;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8e0ff;
}

.ig-privacy-page h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #3d2b80;
  margin-top: 20px;
  margin-bottom: 8px;
}

.ig-privacy-page p,
.ig-privacy-page li {
  font-size: 0.95rem;
  color: #444;
}

.ig-privacy-page a {
  color: #6c3ecc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ig-privacy-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 16px 0;
}

.ig-privacy-page table th,
.ig-privacy-page table td {
  padding: 10px 14px;
  border: 1px solid #e0d9f7;
  text-align: left;
}

.ig-privacy-page table thead th {
  background: #f4f0ff;
  font-weight: 700;
  color: #120d2b;
}
