/**
 * Cookie notice + consent checkboxes.
 * Self-contained: does not depend on the compiled theme bundle.
 */

.cookie-notice {
  position: fixed;
  z-index: 45;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100% - 36px, 620px);
  padding: 15px 16px 15px 19px;
  color: #475569;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.16);
}

.cookie-notice p {
  flex: 1;
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.cookie-notice a {
  color: #1d4ed8;
  text-decoration: underline;
}

.cookie-notice .button {
  flex: 0 0 auto;
}

.cookie-notice[hidden] {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  color: #fff;
  background: #1d4ed8;
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.button--blue {
  color: #fff;
  background: #1d4ed8;
}

.button--blue:hover,
.button--blue:focus-visible {
  background: #1e3a8a;
}

.button--compact {
  padding: 10px 14px;
  font-size: 12px;
}

/* Two consent checkboxes inside forms: stacked, no double top margin */
.mui-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.3rem;
}

.mui-checkbox-group .mui-checkbox {
  margin-top: 0;
}

.mui-checkbox-group .mui-checkbox__label a {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .cookie-notice {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    align-items: flex-end;
    flex-direction: column;
    gap: 12px;
  }

  .cookie-notice .button {
    width: 100%;
  }
}
