/**
 * TFM Legal — cookie notice
 * /wp-content/themes/blocksy-child/css/tfm-legal.css
 *
 * Small card at the bottom left (the settings button sits bottom right).
 * Not a modal: the page stays usable while it is shown.
 */

.tfm-notice {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(520px, calc(100vw - 96px));
  padding: 12px 14px 12px 16px;
  border-radius: 12px;
  background: rgba(12, 8, 16, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px -16px #000000;
  backdrop-filter: blur(8px);
  color: var(--body-text, #e4ddf0);
}
.tfm-notice[hidden] {
  display: none;
}
.tfm-notice__text {
  margin: 0 !important;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted, #b6afc7);
}
.tfm-notice__text a {
  color: var(--ink, #f6f1ea);
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* the theme styles <button> globally, hence !important */
.tfm-notice__ok {
  flex: none;
  min-height: 40px !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  border: 1px solid var(--area-accent-soft, #c4a6f0) !important;
  background: none !important;
  color: var(--ink, #f6f1ea) !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  cursor: pointer;
}
.tfm-notice__ok:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}
.tfm-notice__text a:focus-visible,
.tfm-notice__ok:focus-visible {
  outline: 2px solid var(--area-accent-soft, #c4a6f0);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  /* above the round settings button in the bottom right corner */
  .tfm-notice {
    left: 10px;
    right: 10px;
    bottom: 72px;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .tfm-notice__ok {
    width: 100%;
    min-height: 44px !important;
  }
}

body.elementor-editor-active .tfm-notice {
  display: none !important;
}
