/* Cookie consent banner for packman-website.
 * Matches the navy (#2c2a59) + lime (#d2f801) palette used across the site.
 * Works with the existing RTL toggle — the inner flex layout is symmetric.
 */

.packman-consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.packman-consent-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.packman-consent-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  background: #fffef5;
  color: #2c2a59;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(44, 42, 89, 0.1);
  box-shadow: 0 18px 40px rgba(44, 42, 89, 0.12),
    0 2px 8px rgba(44, 42, 89, 0.06);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-family: inherit;
  line-height: 1.5;
}

.packman-consent-banner__text {
  flex: 1 1 280px;
  min-width: 260px;
}

.packman-consent-banner__text h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #2c2a59;
  letter-spacing: 0.01em;
}

.packman-consent-banner__text p {
  margin: 0;
  font-size: 14px;
  color: rgba(44, 42, 89, 0.85);
}

.packman-consent-banner__text a {
  color: #2c2a59;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.packman-consent-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.packman-consent-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  transition: transform 0.15s ease, background 0.15s ease,
    box-shadow 0.15s ease;
  line-height: 1;
}

.packman-consent-btn--primary {
  background: #d2f801;
  color: #2c2a59;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

.packman-consent-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12);
}

.packman-consent-btn--ghost {
  background: transparent;
  color: #2c2a59;
  border: 1px solid rgba(44, 42, 89, 0.3);
}

.packman-consent-btn--ghost:hover {
  background: rgba(44, 42, 89, 0.06);
}

.packman-consent-btn:focus-visible {
  outline: 2px solid #d2f801;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .packman-consent-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .packman-consent-banner__inner {
    padding: 16px;
    gap: 14px;
  }
  .packman-consent-banner__actions {
    width: 100%;
  }
  .packman-consent-btn {
    flex: 1;
  }
}
