/* ELPIS Group Inc. — Cookie consent banner
   Palette follows the site brand: white base, gold #c9a86a accent,
   ink #111318 text. The banner is a bottom sheet on small screens
   and a compact centred card on wider screens, so it never covers
   more than a small part of the page. */

.elpis-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 800;
  padding: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.elpis-consent.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.elpis-consent[hidden] {
  display: none;
}

.elpis-consent__card {
  background: #ffffff;
  color: #111318;
  border-top: 2px solid #c9a86a;
  box-shadow: 0 -8px 32px rgba(17, 19, 24, 0.16);
  padding: 16px 18px 14px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.7;
}

.elpis-consent__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #111318;
}

.elpis-consent__text {
  margin: 0 0 12px;
  font-size: 13px;
  color: #3c4048;
}
.elpis-consent__text a {
  color: #856823;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.elpis-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.elpis-consent__btn {
  appearance: none;
  -webkit-appearance: none;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(17, 19, 24, 0.28);
  background: #ffffff;
  color: #111318;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.elpis-consent__btn:hover {
  border-color: #c9a86a;
}
.elpis-consent__btn:focus-visible {
  outline: 2px solid #c9a86a;
  outline-offset: 2px;
}
.elpis-consent__btn.is-primary {
  background: #c9a86a;
  border-color: #c9a86a;
  color: #111318;
  font-weight: 600;
}
.elpis-consent__btn.is-primary:hover {
  background: #bfa05e;
}

.elpis-consent__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 14px;
  border-top: 1px solid rgba(17, 19, 24, 0.1);
  margin-top: 4px;
}
.elpis-consent__row-text {
  display: block;
}
.elpis-consent__row-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #111318;
}
.elpis-consent__row-desc {
  display: block;
  font-size: 12px;
  color: #686e76;
  margin-top: 2px;
}

/* Toggle switch */
.elpis-consent__switch {
  position: relative;
  flex: none;
  display: inline-block;
  width: 48px;
  height: 28px;
  cursor: pointer;
}
.elpis-consent__switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.elpis-consent__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(17, 19, 24, 0.22);
  transition: background 0.2s ease;
  pointer-events: none;
}
.elpis-consent__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(17, 19, 24, 0.3);
  transition: transform 0.2s ease;
}
.elpis-consent__switch input:checked + .elpis-consent__track {
  background: #c9a86a;
}
.elpis-consent__switch input:checked + .elpis-consent__track::after {
  transform: translateX(20px);
}
.elpis-consent__switch input:focus-visible + .elpis-consent__track {
  outline: 2px solid #c9a86a;
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .elpis-consent {
    left: 50%;
    right: auto;
    bottom: 20px;
    width: min(680px, calc(100vw - 40px));
    transform: translate(-50%, 12px);
  }
  .elpis-consent.is-open {
    transform: translate(-50%, 0);
  }
  .elpis-consent__card {
    border: 1px solid rgba(201, 168, 106, 0.6);
    border-top: 2px solid #c9a86a;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(17, 19, 24, 0.18);
    padding: 18px 22px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .elpis-consent,
  .elpis-consent__track,
  .elpis-consent__track::after,
  .elpis-consent__btn {
    transition: none;
  }
}
