/* ============================================================
   FLOW Cookie Consent — banner + modal styles
   Brand: --c-blue-deep (#0E3266), --c-yellow (#FFD600), --c-cream
   Editorial typography, brand bg rules respected (white/cream only)
   ============================================================ */

.flow-cmp-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 9999;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(14, 50, 102, 0.08);
  padding: 20px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #1a1a1a;
  animation: flow-cmp-slideup 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes flow-cmp-slideup {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (min-width: 880px) {
  .flow-cmp-banner { max-width: 920px; left: 50%; right: auto; transform: translateX(-50%); }
  .flow-cmp-banner__inner { display: flex; align-items: center; gap: 24px; }
}
.flow-cmp-banner__text { flex: 1; }
.flow-cmp-banner__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #0E3266;
}
.flow-cmp-banner__body {
  margin: 0;
  color: #444;
  font-size: 13px;
}
.flow-cmp-banner__link {
  color: #0E3266;
  font-weight: 600;
  text-decoration: underline;
}
.flow-cmp-banner__link:hover { color: #1e4583; }
.flow-cmp-banner__actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
@media (min-width: 880px) {
  .flow-cmp-banner__actions { margin-top: 0; flex-shrink: 0; flex-direction: column; }
  .flow-cmp-banner__actions .flow-cmp-btn { min-width: 160px; }
}

/* Buttons */
.flow-cmp-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 120ms, color 120ms, transform 80ms;
  white-space: nowrap;
}
.flow-cmp-btn:active { transform: translateY(1px); }
.flow-cmp-btn--primary {
  background: #FFD600;
  color: #0E3266;
}
.flow-cmp-btn--primary:hover { background: #ffdf33; }
.flow-cmp-btn--ghost {
  background: transparent;
  color: #0E3266;
  border: 1px solid #d8dde6;
}
.flow-cmp-btn--ghost:hover {
  border-color: #0E3266;
  background: #f5f7fb;
}

/* Modal */
.flow-cmp-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  animation: flow-cmp-fadein 200ms ease-out;
}
@keyframes flow-cmp-fadein {
  from { opacity: 0; } to { opacity: 1; }
}
.flow-cmp-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.flow-cmp-modal__box {
  position: relative;
  background: #fff;
  border-radius: 14px;
  max-width: 580px;
  width: 100%;
  max-height: 88vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.flow-cmp-modal__head {
  padding: 18px 22px;
  background: #0E3266;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.flow-cmp-modal__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.flow-cmp-modal__close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
  opacity: 0.8;
}
.flow-cmp-modal__close:hover { opacity: 1; }
.flow-cmp-modal__body {
  padding: 18px 22px;
  overflow-y: auto;
  flex: 1;
}
.flow-cmp-modal__intro {
  margin: 0 0 18px;
  color: #555;
  font-size: 13px;
  line-height: 1.55;
}
.flow-cmp-cat {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}
.flow-cmp-cat:last-child { border-bottom: none; }
.flow-cmp-cat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.flow-cmp-cat__head input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: #d8dde6;
  position: relative;
  cursor: pointer;
  transition: background 150ms;
  flex-shrink: 0;
  margin: 0;
}
.flow-cmp-cat__head input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left 150ms;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.flow-cmp-cat__head input[type="checkbox"]:checked {
  background: #1d9c5b;
}
.flow-cmp-cat__head input[type="checkbox"]:checked::after {
  left: 18px;
}
.flow-cmp-cat__head input[type="checkbox"]:disabled {
  background: #1d9c5b;
  opacity: 0.6;
  cursor: not-allowed;
}
.flow-cmp-cat__name {
  font-size: 14px;
  font-weight: 700;
  color: #0E3266;
  flex: 1;
}
.flow-cmp-cat__lock {
  font-size: 12px;
  opacity: 0.6;
}
.flow-cmp-cat__desc {
  margin: 6px 0 0 48px;
  font-size: 12.5px;
  color: #555;
  line-height: 1.5;
}
.flow-cmp-modal__actions {
  padding: 14px 22px;
  border-top: 1px solid #eee;
  background: #fafafa;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .flow-cmp-modal__actions { flex-direction: column; }
  .flow-cmp-modal__actions .flow-cmp-btn { width: 100%; }
}

/* Footer "Cookie settings" link */
.flow-cmp-footer-link {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.8;
}
.flow-cmp-footer-link:hover { opacity: 1; }
