/* ETX Christians compact cookie-consent bar */
.etx-consent-layer {
  position: fixed;
  inset: auto 0 0;
  z-index: 10000;
  width: 100%;
  pointer-events: none;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #20322a;
}
.etx-consent-layer[hidden] { display: none !important; }
.etx-consent-panel,
.etx-consent-panel * { box-sizing: border-box; }
.etx-consent-panel {
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 10px max(18px, calc((100vw - 1180px) / 2));
  border: 0;
  border-top: 1px solid #d8d2c6;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -8px 24px rgba(16, 47, 70, 0.16);
  backdrop-filter: blur(8px);
}
.etx-consent-top { display: block; min-width: 0; }
.etx-consent-copy {
  display: flex;
  align-items: center;
  gap: 6px 12px;
  min-width: 0;
}
.etx-consent-copy h2 {
  flex: 0 0 auto;
  margin: 0;
  color: #173f36;
  font: 700 1rem/1.2 Georgia, "Times New Roman", serif;
  white-space: nowrap;
}
.etx-consent-copy p {
  flex: 1 1 520px;
  min-width: 260px;
  margin: 0;
  color: #52635b;
  font-size: 0.8rem;
  line-height: 1.35;
}
.etx-consent-copy a {
  color: #1d6570;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.etx-consent-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf4ef;
  color: #315b43;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}
.etx-consent-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.etx-consent-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0;
}
.etx-consent-btn {
  appearance: none;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 12px;
  font: 800 0.78rem/1 "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.etx-consent-btn:hover { transform: translateY(-1px); }
.etx-consent-btn:focus-visible,
.etx-consent-close:focus-visible,
.etx-cookie-preferences:focus-visible {
  outline: 3px solid #e0b45d;
  outline-offset: 3px;
}
.etx-consent-btn-primary {
  background: #315b43;
  color: #fff;
  box-shadow: 0 4px 10px rgba(49, 91, 67, 0.18);
}
.etx-consent-btn-secondary {
  border-color: #b9c8bd;
  background: #fff;
  color: #315b43;
}
.etx-consent-close {
  appearance: none;
  position: absolute;
  top: 5px;
  right: 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #5f6d65;
  font-size: 1.15rem;
  line-height: 1;
  padding: 3px;
  cursor: pointer;
}
.etx-cookie-preferences {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.etx-cookie-preferences:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 850px) {
  .etx-consent-panel {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 9px 14px 10px;
  }
  .etx-consent-copy { align-items: flex-start; }
  .etx-consent-copy h2 { padding-top: 1px; }
  .etx-consent-copy p { min-width: 0; }
  .etx-consent-actions { justify-content: flex-end; }
}

@media (max-width: 560px) {
  .etx-consent-copy {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 8px;
  }
  .etx-consent-copy h2 { white-space: normal; }
  .etx-consent-copy p {
    grid-column: 1 / -1;
    font-size: 0.76rem;
    line-height: 1.3;
  }
  .etx-consent-status { display: none; }
  .etx-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .etx-consent-btn {
    width: 100%;
    min-height: 35px;
    padding: 8px 9px;
    font-size: 0.74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .etx-consent-btn { transition: none; }
}
