/* ==========================================================================
   Monolith General Construction — cookie consent UI
   Matches the site: dark #111 surfaces, #F2A900 accent, Titillium Web / Raleway,
   square corners, thin lines.
   ========================================================================== */

.gc-cc, .gc-cc * { box-sizing: border-box; }

.gc-cc {
  --gc-accent: #F2A900;
  --gc-ink: #111111;
  --gc-dark: #0f0f0f;
  --gc-panel: #161616;
  --gc-line: #2c2c2c;
  --gc-muted: #a3a3a3;
  --gc-light: #d5dade;
  font-family: "Raleway", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gc-light);
}

.gc-cc button { font: inherit; }

/* ---------- Banner ---------- */
.gc-cc-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2147483000;
  background: var(--gc-dark);
  border-top: 3px solid var(--gc-accent);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .35);
  animation: gc-cc-in .35s ease-out both;
}
.gc-cc-banner__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
.gc-cc-banner__text { flex: 1 1 auto; min-width: 0; }
.gc-cc-title {
  margin: 0 0 4px;
  font-family: "Titillium Web", Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}
.gc-cc-desc { margin: 0; color: var(--gc-muted); font-size: 14px; }
.gc-cc-desc a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.gc-cc-desc a:hover { color: var(--gc-accent); }

.gc-cc-banner__actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.gc-cc-btnrow { display: flex; gap: 10px; }

/* Accept and Reject are deliberately identical in size, weight and position. */
.gc-cc-btn {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  min-width: 150px;
  height: 46px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 0;
  font-family: "Titillium Web", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background-color .2s, color .2s, border-color .2s;
}
.gc-cc-btn--accept { background: var(--gc-accent); border-color: var(--gc-accent); color: var(--gc-ink); }
.gc-cc-btn--accept:hover { background: #fff; border-color: #fff; }
.gc-cc-btn--reject { background: #fff; border-color: #fff; color: var(--gc-ink); }
.gc-cc-btn--reject:hover { background: var(--gc-accent); border-color: var(--gc-accent); }
.gc-cc-btn--save { background: transparent; border-color: #fff; color: #fff; }
.gc-cc-btn--save:hover { background: #fff; color: var(--gc-ink); }

.gc-cc-link {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  color: #fff;
  font-family: "Titillium Web", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-align: center;
}
.gc-cc-link:hover { color: var(--gc-accent); }

.gc-cc button:focus-visible,
.gc-cc a:focus-visible,
.gc-cc input:focus-visible + .gc-cc-switch__ui {
  outline: 3px solid var(--gc-accent);
  outline-offset: 3px;
}

/* ---------- Preferences modal ---------- */
.gc-cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .72);
  animation: gc-cc-fade .2s ease-out both;
}
.gc-cc-modal {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: var(--gc-dark);
  border-top: 3px solid var(--gc-accent);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.gc-cc-modal__head { padding: 26px 30px 12px; padding-right: 64px; }
.gc-cc-modal__head .gc-cc-title { font-size: 26px; margin-bottom: 8px; }
.gc-cc-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--gc-line);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 0;
}
.gc-cc-close:hover { background: var(--gc-accent); border-color: var(--gc-accent); color: var(--gc-ink); }

.gc-cc-modal__body { padding: 8px 30px 8px; overflow-y: auto; }
.gc-cc-cat { padding: 18px 0; border-top: 1px solid var(--gc-line); }
.gc-cc-cat__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gc-cc-cat__name {
  margin: 0;
  font-family: "Titillium Web", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}
.gc-cc-cat__desc { margin: 6px 0 0; color: var(--gc-muted); font-size: 14px; }
.gc-cc-cat__always {
  flex: 0 0 auto;
  font-family: "Titillium Web", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gc-accent);
}

/* Switch (a real checkbox underneath, so it works with keyboard + screen readers) */
.gc-cc-switch { position: relative; flex: 0 0 auto; display: inline-block; width: 52px; height: 28px; }
.gc-cc-switch input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer; z-index: 2;
}
.gc-cc-switch__ui {
  position: absolute; inset: 0;
  background: #3a3a3a;
  border: 1px solid #555;
  transition: background-color .2s, border-color .2s;
}
.gc-cc-switch__ui::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: #fff;
  transition: transform .2s, background-color .2s;
}
.gc-cc-switch input:checked + .gc-cc-switch__ui { background: var(--gc-accent); border-color: var(--gc-accent); }
.gc-cc-switch input:checked + .gc-cc-switch__ui::after { transform: translateX(24px); background: var(--gc-ink); }

.gc-cc-modal__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 18px 30px 26px;
  border-top: 1px solid var(--gc-line);
}
.gc-cc-modal__foot .gc-cc-btn { min-width: 0; flex: 1 1 150px; }

/* ---------- Motion ---------- */
@keyframes gc-cc-in   { from { transform: translateY(100%); } to { transform: none; } }
@keyframes gc-cc-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .gc-cc-banner, .gc-cc-overlay { animation: none; }
  .gc-cc-btn, .gc-cc-switch__ui, .gc-cc-switch__ui::after { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .gc-cc-banner__inner { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px 18px 20px; }
  .gc-cc-banner__actions { width: 100%; }
  .gc-cc-btnrow { flex-direction: row; }
  .gc-cc-btnrow .gc-cc-btn { flex: 1 1 0; min-width: 0; padding: 0 10px; }
  .gc-cc-desc { font-size: 13px; }
}
@media (max-width: 520px) {
  .gc-cc-modal__head { padding: 22px 20px 8px; padding-right: 60px; }
  .gc-cc-modal__body { padding: 4px 20px; }
  .gc-cc-modal__foot { padding: 16px 20px 22px; }
  .gc-cc-modal__foot .gc-cc-btn { flex-basis: 100%; }
}
@media (max-height: 640px) and (min-width: 861px) {
  .gc-cc-banner__inner { padding-top: 14px; padding-bottom: 14px; }
}
