/**
 * Log Price Guide — cookie consent banner
 * ILG tokens: Source Sans 3 / ink #111827 / fire orange #C2410C on pill Accept only
 * Equal-weight Accept and Reject — no dark patterns.
 */

.lpg-cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  box-sizing: border-box;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  background: #ffffff;
  color: #111827;
  font-family: "Source Sans 3", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -1px 2px rgba(17, 24, 39, 0.06);
}

.lpg-cookie-consent[hidden] {
  display: none !important;
}

.lpg-cookie-consent *,
.lpg-cookie-consent *::before,
.lpg-cookie-consent *::after {
  box-sizing: border-box;
}

.lpg-cookie-consent__inner {
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}

.lpg-cookie-consent__copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.lpg-cookie-consent__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.lpg-cookie-consent__text {
  margin: 0;
  color: #4b5563;
}

.lpg-cookie-consent__text-short {
  display: none;
}

.lpg-cookie-consent__link {
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lpg-cookie-consent__link:hover,
.lpg-cookie-consent__link:focus-visible {
  color: #111827;
}

.lpg-cookie-consent__link:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 2px;
  border-radius: 2px;
}

.lpg-cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  flex: 0 0 auto;
}

/* Equal visual weight — both same size; Reject is fully functional */
.lpg-cookie-consent__btn {
  appearance: none;
  margin: 0;
  min-height: 2.75rem;
  min-width: 9.5rem;
  padding: 0.625rem 1.125rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.lpg-cookie-consent__btn:focus-visible {
  outline: 2px solid #C2410C;
  outline-offset: 2px;
}

.lpg-cookie-consent__btn--reject {
  background: #ffffff;
  color: #111827;
  border-color: #e5e7eb;
}

.lpg-cookie-consent__btn--reject:hover,
.lpg-cookie-consent__btn--reject:focus-visible {
  background: #f8fafc;
  border-color: #111827;
  color: #111827;
}

.lpg-cookie-consent__btn--accept {
  background: #C2410C;
  color: #FFFFFF;
  border-color: #C2410C;
}

.lpg-cookie-consent__btn--accept:hover,
.lpg-cookie-consent__btn--accept:focus-visible {
  background: #9A3412;
  border-color: #9A3412;
  color: #FFFFFF;
}

@media (max-width: 36rem) {
  .lpg-cookie-consent {
    padding: 0.5rem 0.75rem;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    font-size: 0.8125rem;
    line-height: 1.35;
  }

  .lpg-cookie-consent__inner {
    gap: 0.5rem 0.75rem;
  }

  .lpg-cookie-consent__title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .lpg-cookie-consent__copy {
    flex: 1 1 100%;
  }

  .lpg-cookie-consent__text-full {
    display: none;
  }

  .lpg-cookie-consent__text-short {
    display: inline;
  }

  .lpg-cookie-consent__actions {
    width: 100%;
    gap: 0.5rem;
  }

  .lpg-cookie-consent__btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    min-height: 2.5rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lpg-cookie-consent__btn {
    transition: none;
  }
}
