/*
 * The cookie notice.
 *
 * Its own stylesheet rather than an addition to main.css, because it has to
 * appear on both the marketing site (main.css) and the client area
 * (portal.css). One file, linked from both, beats the same rules maintained in
 * two places and drifting apart.
 *
 * Deliberately not a modal and deliberately not full-screen: it does not block
 * the page, because a notice you cannot read the site past is a notice people
 * dismiss without reading. Both buttons carry the same visual weight — making
 * "Accept" loud and "Essential only" a grey whisper is the pattern regulators
 * have started fining people for.
 */
.mfc-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: #ffffff;
  border-top: 1px solid rgba(23, 43, 77, 0.1);
  box-shadow: 0 -8px 30px rgba(23, 43, 77, 0.14);
  transform: translateY(100%);
  transition: transform 0.35s ease;
  font-family: inherit;
}

.mfc-cookie.is-visible {
  transform: translateY(0);
}

.mfc-cookie-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 20px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.mfc-cookie-text {
  flex: 1 1 auto;
  min-width: 0;
}

.mfc-cookie-text h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: #172b4d;
  line-height: 1.3;
}

.mfc-cookie-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #42526e;
}

.mfc-cookie-small {
  margin-top: 6px !important;
  font-size: 12.5px !important;
  color: #8993a4 !important;
}

.mfc-cookie-text a {
  color: #1e46a4;
  text-decoration: underline;
}

.mfc-cookie-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
}

/*
 * Same size, same shape, same prominence. The only difference is colour, and
 * neither reads as the "safe" one.
 */
.mfc-cookie-btn {
  min-width: 150px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1.5px solid #1e46a4;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: 0.2s;
}

.mfc-cookie-accept {
  background: #1e46a4;
  color: #ffffff;
}

.mfc-cookie-accept:hover {
  background: #17387f;
  border-color: #17387f;
}

.mfc-cookie-decline {
  background: #ffffff;
  color: #1e46a4;
}

.mfc-cookie-decline:hover {
  background: #eef2fb;
}

.mfc-cookie-btn:focus-visible {
  outline: 3px solid #f5b301;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .mfc-cookie-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 16px;
  }

  .mfc-cookie-actions {
    flex-direction: column-reverse;
  }

  .mfc-cookie-btn {
    width: 100%;
  }
}

/* While the notice is up it must not sit under the purchase card or the
   support buttons. */
.mfc-cookie.is-visible ~ .mfc-proof {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .mfc-cookie {
    transition: none;
  }
}
