@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap");

:root {
  --tm-consent-ink: #171411;
  --tm-consent-paper: #f5eee4;
  --tm-consent-surface: #fffaf2;
  --tm-consent-muted: #6d645b;
  --tm-consent-line: rgba(23, 20, 17, 0.16);
  --tm-consent-accent: #9b4f2d;
  --tm-consent-shadow: 0 20px 60px rgba(23, 20, 17, 0.2);
  --tm-consent-font-body: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tm-consent-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

.tm-cookie-banner,
.tm-cookie-modal,
.tm-site-footer {
  color: var(--tm-consent-ink);
  font-family: var(--tm-consent-font-body);
}

.tm-cookie-banner[hidden],
.tm-cookie-modal[hidden] {
  display: none;
}

.tm-cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  width: min(860px, calc(100% - 2rem));
  margin-left: auto;
  padding: 1rem;
  background: var(--tm-consent-surface);
  border: 1px solid var(--tm-consent-line);
  border-radius: 8px;
  box-shadow: var(--tm-consent-shadow);
}

.tm-cookie-banner strong,
.tm-cookie-modal strong,
.tm-site-footer strong {
  display: block;
}

.tm-cookie-banner p,
.tm-cookie-modal p,
.tm-site-footer p {
  margin: 0.35rem 0 0;
  color: var(--tm-consent-muted);
  line-height: 1.55;
}

.tm-cookie-actions,
.tm-cookie-modal-actions,
.tm-site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tm-cookie-button,
.tm-footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  border: 1px solid var(--tm-consent-line);
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
}

.tm-cookie-button.primary {
  background: var(--tm-consent-ink);
  border-color: var(--tm-consent-ink);
  color: #ffffff;
}

.tm-cookie-button.accent {
  background: var(--tm-consent-accent);
  border-color: var(--tm-consent-accent);
  color: #ffffff;
}

.tm-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1010;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(23, 20, 17, 0.56);
}

.tm-cookie-dialog {
  display: grid;
  gap: 1rem;
  width: min(720px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: clamp(1rem, 4vw, 1.6rem);
  background: var(--tm-consent-surface);
  border: 1px solid var(--tm-consent-line);
  border-radius: 8px;
  box-shadow: var(--tm-consent-shadow);
}

.tm-cookie-dialog h2 {
  margin: 0;
  font-family: var(--tm-consent-font-display);
  font-weight: 700;
  letter-spacing: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.tm-cookie-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 0.9rem;
  background: #ffffff;
  border: 1px solid var(--tm-consent-line);
  border-radius: 8px;
}

.tm-cookie-choice input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--tm-consent-accent);
}

.tm-cookie-choice small {
  display: block;
  margin-top: 0.25rem;
  color: var(--tm-consent-muted);
  line-height: 1.45;
}

.tm-site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: start;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 5vw, 4rem);
  background: #171411;
  color: #ffffff;
}

.tm-site-footer p {
  max-width: 52rem;
  color: rgba(255, 255, 255, 0.68);
}

.tm-site-footer a,
.tm-site-footer button {
  color: #ffffff;
}

.tm-site-footer a {
  text-decoration: none;
}

.tm-footer-button {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #ffffff;
}

.tm-checkout-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.8rem;
  border: 1px solid var(--tm-consent-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: inherit;
  font-weight: 650;
}

.tm-checkout-consent input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
}

.tm-checkout-consent a {
  color: var(--tm-consent-accent);
}

@media (max-width: 760px) {
  .tm-cookie-banner,
  .tm-site-footer {
    grid-template-columns: 1fr;
  }

  .tm-cookie-actions,
  .tm-cookie-button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .tm-cookie-banner {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    gap: 0.7rem;
    width: calc(100% - 1.5rem);
    max-height: 50vh;
    overflow: auto;
    padding: 0.85rem;
  }

  .tm-cookie-banner strong {
    font-size: 0.95rem;
  }

  .tm-cookie-banner p,
  .tm-cookie-modal p,
  .tm-site-footer p {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .tm-cookie-actions,
  .tm-cookie-modal-actions {
    gap: 0.48rem;
  }

  .tm-cookie-button,
  .tm-footer-button {
    min-height: 2.32rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
  }

  .tm-cookie-modal {
    padding: 0.75rem;
  }

  .tm-cookie-dialog {
    gap: 0.75rem;
    max-height: calc(100vh - 1.5rem);
    padding: 0.95rem;
  }

  .tm-cookie-dialog h2 {
    font-size: 1.45rem;
  }

  .tm-cookie-choice {
    gap: 0.62rem;
    padding: 0.75rem;
  }

  .tm-site-footer {
    gap: 0.9rem;
    padding: 1.25rem 1rem;
  }

  .tm-site-footer nav {
    gap: 0.55rem 0.8rem;
  }
}
