/*
 * Cookie notice bar.
 *
 * Its own file rather than another block in page-inline.css: that file is the
 * legacy footer.php <style> dump and everything added to it inherits the
 * cascade problems documented there. Nothing here is a bare element or theme
 * class selector, so this cannot reach anything the legacy theme styles.
 *
 * Colours are taken from the theme rather than invented -- #2cdd9b / #1dc8cd is
 * the same gradient as .bg-success-gradiant, so the bar reads as part of the
 * site instead of a bolted-on widget.
 */

.tfc-cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1080; /* above the theme's sticky header (1050) and the chat funnel */
  background: #263238;
  color: #ffffff;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
  padding: 16px 20px;
  /* Keeps the bar clear of the iOS home indicator without moving it on desktop. */
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

/* [hidden] loses to the display rule above in some of the legacy stylesheets,
   so it is restated here where it can win. */
.tfc-cookie-notice[hidden] {
  display: none !important;
}

.tfc-cookie-notice__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.tfc-cookie-notice__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #ffffff;
}

.tfc-cookie-notice__text a {
  color: #2cdd9b;
  text-decoration: underline;
}

.tfc-cookie-notice__text a:hover,
.tfc-cookie-notice__text a:focus {
  color: #ffffff;
}

.tfc-cookie-notice__btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 4px;
  padding: 10px 28px;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(to right, #2cdd9b 0%, #1dc8cd 100%);
}

.tfc-cookie-notice__btn:hover {
  opacity: 0.9;
}

.tfc-cookie-notice__btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .tfc-cookie-notice__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    text-align: center;
  }

  .tfc-cookie-notice__btn {
    width: 100%;
  }
}
