/* Compact EEA/UK/CH cookie consent bar styled 1:1 with Hengliyuan design tokens and safe clearance from .site-contact-dock. */
#hly-cookie-banner {
  position: fixed;
  z-index: 9990;
  inset-inline-start: 12px;
  inset-inline-end: 72px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 470px;
  box-sizing: border-box;
  padding: 12px 15px;
  border: 1px solid #aac6b9;
  border-top: 3px solid #075044;
  border-radius: 14px;
  background: var(--white, #ffffff);
  color: #17302a;
  box-shadow: 0 12px 32px rgba(6, 59, 51, 0.14);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans SC", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans KR", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 12.5px;
  line-height: 1.45;
}

#hly-cookie-banner[hidden] {
  display: none !important;
}

.hly-cookie-title {
  margin: 0 0 3px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--green-dark, #063b33);
}

.hly-cookie-desc {
  margin: 0;
  color: #2c403a;
}

.hly-cookie-details {
  margin-top: 6px;
  font-size: 12px;
  color: #364a43;
}

.hly-cookie-details > summary {
  cursor: pointer;
  color: #075044;
  font-weight: 600;
  list-style-position: inside;
  user-select: none;
}

.hly-cookie-details > p {
  margin: 6px 0 0;
  padding: 8px 10px;
  border: 1px solid #d5e4dc;
  border-radius: 8px;
  background: #f2f7f3;
  color: #17302a;
}

.hly-cookie-details a {
  color: #075044;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hly-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.hly-cookie-btn {
  appearance: none;
  box-sizing: border-box;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.hly-cookie-btn:focus-visible,
.hly-cookie-footer-btn:focus-visible {
  outline: 2px solid var(--green-dark, #063b33);
  outline-offset: 2px;
}

.hly-cookie-btn-accept {
  border: 1px solid #075044;
  background: #075044;
  color: #ffffff;
}

.hly-cookie-btn-accept:hover {
  border-color: var(--green-dark, #063b33);
  background: var(--green-dark, #063b33);
}

.hly-cookie-btn-reject {
  border: 1px solid #aac6b9;
  background: #ffffff;
  color: #075044;
}

.hly-cookie-btn-reject:hover {
  background: #f2f7f3;
}

.hly-cookie-footer-btn {
  appearance: none;
  display: inline-block;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.84;
  cursor: pointer;
}

.hly-cookie-footer-btn:hover {
  opacity: 1;
}

@media (max-width: 480px) {
  #hly-cookie-banner {
    padding: 12px 13px;
    font-size: 12.5px;
  }

  .hly-cookie-actions {
    gap: 8px;
  }

  .hly-cookie-btn {
    flex: 1 1 auto;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 12.5px;
  }
}
