/* Bailey Hague Joinery — Cookie Consent Banner styles */
/* Designed to match the site's editorial serif + neutral palette */

#bhj-cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 1080px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #d4d1ca;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 20px 24px;
  z-index: 2147483000; /* Above Sophie widget */
  font-family: inherit;
  animation: bhj-cookie-slide-in 400ms ease-out;
  transition: opacity 350ms ease, transform 350ms ease;
}

#bhj-cookie-banner.bhj-cookie-hidden {
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
}

@keyframes bhj-cookie-slide-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.bhj-cookie-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.bhj-cookie-text {
  flex: 1 1 400px;
  min-width: 0;
  color: #28251d;
  font-size: 14px;
  line-height: 1.55;
}
.bhj-cookie-text strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 15px;
}
.bhj-cookie-text a {
  color: #01696F;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bhj-cookie-text a:hover {
  color: #0C4E54;
}

.bhj-cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.bhj-cookie-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
  min-height: 40px;
  white-space: nowrap;
}
.bhj-cookie-btn:focus-visible {
  outline: 2px solid #01696F;
  outline-offset: 2px;
}

.bhj-cookie-reject {
  background: transparent;
  border-color: #d4d1ca;
  color: #28251d;
}
.bhj-cookie-reject:hover {
  background: #f7f6f2;
  border-color: #7a7974;
}

.bhj-cookie-accept {
  background: #01696F;
  border-color: #01696F;
  color: #ffffff;
}
.bhj-cookie-accept:hover {
  background: #0C4E54;
  border-color: #0C4E54;
}

@media (max-width: 640px) {
  #bhj-cookie-banner {
    bottom: 8px;
    left: 8px;
    right: 8px;
    padding: 16px 18px;
  }
  .bhj-cookie-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .bhj-cookie-buttons {
    flex-direction: column-reverse;
  }
  .bhj-cookie-btn {
    width: 100%;
  }
}
