/* InfiniView cookie consent — MAL theme (FormTasks layout) */
.iv-consent-banner {
  position: fixed;
  z-index: 150;
  left: 0;
  right: 0;
  bottom: 0;
  padding: calc(0.75rem + env(safe-area-inset-bottom, 0px)) 1rem 1rem;
  pointer-events: none;
  font-family: var(--mal-font-body, "DM Sans", ui-sans-serif, sans-serif);
}

.iv-consent-banner[hidden] {
  display: none !important;
}

.iv-consent-banner-inner {
  pointer-events: auto;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.15rem 1.1rem;
  background: rgba(30, 41, 59, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: rgba(241, 245, 249, 0.85);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
}

.iv-consent-banner-text {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(241, 245, 249, 0.85);
}

.iv-consent-banner-text a {
  color: var(--mal-btn1, #00c6e0);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.iv-consent-banner-text a:hover {
  color: var(--mal-btn1-hover, #22d3ee);
}

.iv-consent-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  align-items: center;
}

.iv-consent-btn {
  margin: 0;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.iv-consent-btn--accept {
  background: var(--mal-btn1, #00c6e0);
  color: var(--mal-brand-dark, #1e293b);
  border-color: var(--mal-btn1, #00c6e0);
}

.iv-consent-btn--accept:hover {
  background: var(--mal-btn1-hover, #22d3ee);
  border-color: var(--mal-btn1-hover, #22d3ee);
}

.iv-consent-btn--reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.28);
}

.iv-consent-btn--reject:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

#mal-footer .iv-consent-manage,
#iv-consent-manage {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--mal-btn1, #00c6e0);
  cursor: pointer;
  text-decoration: none;
}

#mal-footer .iv-consent-manage:hover,
#iv-consent-manage:hover {
  color: var(--mal-btn1-hover, #22d3ee);
  text-decoration: underline;
}

#iv-consent-manage[hidden] {
  display: none !important;
}

#mal-footer:has(#iv-consent-manage[hidden]) > .iv-consent-sep {
  display: none;
}

@media (min-width: 640px) {
  .iv-consent-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem 1.35rem;
  }

  .iv-consent-banner-text {
    margin: 0;
    flex: 1;
    min-width: 12rem;
  }
}
