/* Cookie notice / consent: a small card at the edge of the page. It does not cover the content, uses the shop's own colours and borders, and has no animation. */

.consent {
  position: fixed;
  z-index: 40;
  left: var(--space-3);
  bottom: var(--space-3);
  width: min(26rem, calc(100vw - 2 * var(--space-3)));
  max-height: calc(100vh - 2 * var(--space-3));
  overflow-y: auto;
  padding: var(--space-3);
  border: var(--border-hairline);
  background: var(--color-field);
  color: var(--color-charcoal);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.consent-title {
  margin: 0 0 var(--space-1);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: var(--weight-regular);
}

.consent-text {
  margin: 0 0 var(--space-2);
  color: var(--color-charcoal-muted);
}

.consent-links {
  margin: 0 0 var(--space-2);
}

.consent-links a {
  color: inherit;
}

/* The choices are equally prominent: same size, same look. */
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.consent-btn {
  flex: 1 1 auto;
  justify-content: center;
}

.consent-cat {
  margin: 0 0 var(--space-2);
}

.consent-cat .checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
  font-weight: var(--weight-semibold);
}

.consent-cat-text {
  margin: 0.2rem 0 0 1.75rem;
  color: var(--color-charcoal-muted);
}

@media (max-width: 40rem) {
  .consent {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: 60vh;
    padding: var(--space-2) var(--space-3);
    border-width: 1px 0 0;
  }
}

/* Footer entry that opens the settings again. */
.footer-cookie {
  padding: 0;
  font: inherit;
  text-align: left;
}

/* The page /cookies: the list of everything that is stored. */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.cookie-table th,
.cookie-table td {
  padding: var(--space-1) var(--space-2) var(--space-1) 0;
  border-bottom: var(--border-hairline);
  text-align: left;
  vertical-align: top;
}

.cookie-item {
  margin: 0 0 var(--space-3);
  padding: var(--space-2) var(--space-3);
  border: var(--border-hairline);
  background: var(--color-field);
}

.cookie-item h3 {
  margin: 0 0 var(--space-1);
  font-size: var(--text-base);
  overflow-wrap: anywhere;
}

.cookie-item dl {
  margin: 0;
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.25rem var(--space-2);
  font-size: var(--text-sm);
}

.cookie-item dt {
  color: var(--color-charcoal-muted);
}

.cookie-item dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 40rem) {
  .cookie-item dl {
    grid-template-columns: 1fr;
  }
}
