/* =========================================================
   HrdWyr Cookie Consent — Stylesheet
   Drop this file in and link it in <head>.
   Colors are CSS variables so you can re-theme without
   touching the JS.
   ========================================================= */

:root {
  --hw-cc-bg: #ffffff;
  --hw-cc-text: #1a1a1a;
  --hw-cc-muted: #5c5c5c;
  --hw-cc-border: #e2e2e2;
  --hw-cc-accent: #0f6e5c;      /* primary action color */
  --hw-cc-accent-hover: #0c5a4b;
  --hw-cc-reject-bg: #f3f3f3;
  --hw-cc-reject-text: #1a1a1a;
  --hw-cc-radius: 10px;
  --hw-cc-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
  --hw-cc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --hw-cc-z: 999999;
}

/* ---------- Overlay banner ---------- */
#hw-cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--hw-cc-z);
  font-family: var(--hw-cc-font);
  background: var(--hw-cc-bg);
  color: var(--hw-cc-text);
  border-top: 1px solid var(--hw-cc-border);
  box-shadow: var(--hw-cc-shadow);
  padding: 20px 24px;
  transform: translateY(110%);
  transition: transform 0.35s ease;
}
#hw-cc-banner.hw-cc-visible {
  transform: translateY(0);
}

.hw-cc-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hw-cc-copy {
  flex: 1 1 420px;
  min-width: 240px;
}

.hw-cc-copy h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--hw-cc-text);
}

.hw-cc-copy p {
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
  color: var(--hw-cc-muted);
}

.hw-cc-copy a {
  color: var(--hw-cc-accent);
  text-decoration: underline;
  font-weight: 600;
}

.hw-cc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.hw-cc-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
}
.hw-cc-btn:active {
  transform: scale(0.98);
}

.hw-cc-btn-accept {
  background: var(--hw-cc-accent);
  color: #ffffff;
}
.hw-cc-btn-accept:hover {
  background: var(--hw-cc-accent-hover);
}

.hw-cc-btn-reject {
  background: var(--hw-cc-reject-bg);
  color: var(--hw-cc-reject-text);
  border-color: var(--hw-cc-border);
}
.hw-cc-btn-reject:hover {
  background: #e9e9e9;
}

.hw-cc-btn-customize {
  background: transparent;
  color: var(--hw-cc-text);
  border-color: var(--hw-cc-border);
}
.hw-cc-btn-customize:hover {
  background: #f6f6f6;
}

/* ---------- Modal (Personalize / Customize) ---------- */
#hw-cc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: calc(var(--hw-cc-z) + 1);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: var(--hw-cc-font);
}
#hw-cc-modal-overlay.hw-cc-visible {
  display: flex;
}

#hw-cc-modal {
  background: var(--hw-cc-bg);
  color: var(--hw-cc-text);
  border-radius: var(--hw-cc-radius);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--hw-cc-shadow);
}

.hw-cc-modal-header {
  padding: 22px 24px 12px;
  position: sticky;
  top: 0;
  background: var(--hw-cc-bg);
  border-bottom: 1px solid var(--hw-cc-border);
}

.hw-cc-modal-header h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.hw-cc-modal-header p {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--hw-cc-muted);
  line-height: 1.5;
}

.hw-cc-modal-body {
  padding: 8px 24px 4px;
}

.hw-cc-category {
  border-bottom: 1px solid var(--hw-cc-border);
  padding: 16px 0;
}
.hw-cc-category:last-child {
  border-bottom: none;
}

.hw-cc-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hw-cc-category-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.hw-cc-category-desc {
  font-size: 13px;
  color: var(--hw-cc-muted);
  line-height: 1.5;
  margin: 6px 0 0;
}

.hw-cc-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--hw-cc-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Toggle switch */
.hw-cc-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.hw-cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.hw-cc-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #d3d3d3;
  border-radius: 999px;
  transition: 0.2s;
}
.hw-cc-slider::before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.2s;
}
.hw-cc-switch input:checked + .hw-cc-slider {
  background-color: var(--hw-cc-accent);
}
.hw-cc-switch input:checked + .hw-cc-slider::before {
  transform: translateX(18px);
}
.hw-cc-switch input:disabled + .hw-cc-slider {
  background-color: var(--hw-cc-accent);
  opacity: 0.55;
  cursor: not-allowed;
}

.hw-cc-modal-footer {
  padding: 16px 24px 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  background: var(--hw-cc-bg);
  border-top: 1px solid var(--hw-cc-border);
}

/* ---------- Footer trigger link ---------- */
.hw-cc-settings-link {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 480px) {
  #hw-cc-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  #hw-cc-modal {
    max-width: 100%;
    max-height: 88vh;
    border-radius: var(--hw-cc-radius) var(--hw-cc-radius) 0 0;
  }
  .hw-cc-modal-footer {
    flex-direction: column;
  }
  .hw-cc-modal-footer .hw-cc-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  #hw-cc-banner {
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    /* stronger shadow so the banner reads as a distinct layer even
       when the page behind it is also white */
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.22);
  }
  .hw-cc-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .hw-cc-copy h2 {
    font-size: 14px;
  }
  .hw-cc-copy p {
    font-size: 13px;
  }
  .hw-cc-actions {
    justify-content: stretch;
    gap: 8px;
  }
  .hw-cc-actions .hw-cc-btn {
    flex: 1 1 auto;
    padding: 12px 10px;
    font-size: 13px;
  }
}
 
@media (max-width: 380px) {
  /* very small phones (SE, older Android): stack buttons instead of
     squeezing 3 across, so labels never get clipped or wrap awkwardly */
  .hw-cc-actions {
    flex-direction: column;
  }
}
