/* ===== Cookie Banner (full-width bottom bar) ===== */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  display: flex;
  justify-content: center;
  pointer-events: auto;
}

/* Inner content row */
.cookie-bar-inner {
  width: 100%;
  max-width: 1550px;
  margin: 0 auto;
  box-sizing: border-box;
  background: #fff;
  border-top: 1px solid #eef0f3;
  box-shadow: 0 -2px 20px rgba(18, 26, 46, 0.12);
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  display: flex;
  gap: 16px;
  align-items: center;
}

.cookie-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.cky-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #212121;
}
.cky-desc {
  margin: 0;
  font-size: 13px;
  color: #444744;
  line-height: 1.35;
}

.cookie-action { flex: 0 0 auto; }

:root { --chat-bubble-avoid: 96px; }

.cookie-bar-inner {
  padding-right: calc(20px + var(--chat-bubble-avoid));
}

#btn-accept {
  appearance: none;
  border: 0;
  background: #1863DC;
  color: #fff;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(24,99,220,0.18);
}
#btn-accept:active { transform: translateY(1px) scale(.995); }

#cookie-banner.hidden { display: none !important; }

@media (max-width: 640px) {
  .cookie-bar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  }
  #btn-accept {
    width: 100%;
    padding: 12px;
  }
}

/* Consent card (moved from inline styles) */
#consent-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 980px;
  margin: 24px auto;
  min-height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eef0f3;
  box-shadow: 0 12px 40px rgba(18, 26, 46, 0.10);
  position: relative;
  z-index: 5;
}

#consent-card .consent-inner {
  max-width: 720px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.consent-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937; 
  letter-spacing: .1px;
}

.consent-desc {
  margin: 0;
  color: #4b5563; 
  line-height: 1.5;
  font-size: 14px;
}

.consent-actions {
  margin-top: 6px;
  text-align: right;
}

.consent-btn {
  appearance: none;
  border: 0;
  background: #1863DC;
  color: #fff;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(24,99,220,0.18);
  transition: transform .05s ease, box-shadow .15s ease, background-color .15s ease;
}

.consent-btn:hover { filter: brightness(0.95); }
.consent-btn:active { transform: translateY(1px) scale(.995); }
.consent-btn:focus-visible {
  outline: 2px solid #1863DC;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(24,99,220,0.18);
}

@media (max-width: 640px) {
   #consent-card {
    margin: 12px;
    padding: 20px;
    min-height: 160px;
  }
  .consent-actions { text-align: center; }
  .consent-btn { width: 100%; padding: 12px; }
}
