.cookie-choice-panel {
  position: fixed;
  inset: auto 0 0;
  z-index: 10000;
  box-sizing: border-box;
  width: 100%;
  max-height: 100dvh;
  overflow-y: auto;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  color: #000;
  line-height: normal;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
}

.cookie-choice-panel[hidden] {
  display: none;
}

.cookie-choice-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.cookie-choice-content {
  display: flex;
  align-items: center;
  gap: 8px 20px;
}

.cookie-choice-body {
  flex: 1;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.cookie-choice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-choice-actions button {
  min-width: 44px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #216343;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.cookie-choice-actions button:hover {
  background: #194d34;
}

.cookie-choice-actions .cookie-choice-decline {
  padding-inline: 10px;
  border-color: #929292;
  background: #e8e8e8;
  color: #282828;
  font-size: 0.875rem;
  font-weight: 500;
}

.cookie-choice-actions .cookie-choice-decline:hover {
  background: #d7d7d7;
}

.cookie-choice-actions button:focus-visible {
  outline: 2px solid #194157;
  outline-offset: 2px;
}

.app-footer .footer-credits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px clamp(12px, 2vw, 24px);
}

.footer-credits [data-cookie-preferences] {
  min-height: 44px;
}

.footer-credits [data-cookie-preferences]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.cookie-choice-status {
  margin: 8px 0 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.books-floating-widget[data-footer-visible] {
  visibility: hidden;
}

@media (max-width: 768px) {
  .cookie-choice-content {
    flex-direction: column;
    align-items: stretch;
  }
}
