/* Cookie consent — balanced spacing + hierarchy; locked against page CSS overrides */
html body .lb-cookie-notice {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: max(16px, env(safe-area-inset-bottom, 16px)) !important;
  transform: translateX(-50%) !important;
  z-index: 10050 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  width: min(520px, calc(100% - 32px)) !important;
  max-width: min(520px, calc(100% - 32px)) !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  background: #111 !important;
  color: #f4f4f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28) !important;
  font-family: var(--font-main, 'Satoshi', system-ui, sans-serif) !important;
  font-size: var(--font-size-caption, 13px) !important;
  font-weight: var(--font-weight-caption, 500) !important;
  line-height: var(--line-height-caption, 1.4) !important;
  pointer-events: auto !important;
  box-sizing: border-box !important;
}

html body .lb-cookie-notice[hidden] {
  display: none !important;
}

html body .lb-cookie-notice .lb-cookie-notice__text {
  flex: 1 1 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  /* DS caption: readable, secondary to actions */
  font-size: var(--font-size-caption, 13px) !important;
  line-height: 1.45 !important;
  font-weight: var(--font-weight-caption, 500) !important;
  letter-spacing: -0.01em !important;
  color: rgba(244, 244, 240, 0.86) !important;
}

html body .lb-cookie-notice .lb-cookie-notice__text a {
  color: #fff !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
  text-decoration-thickness: 1px !important;
  font-size: inherit !important;
}

html body .lb-cookie-notice .lb-cookie-notice__text a:hover {
  color: var(--primary, #F12850) !important;
}

html body .lb-cookie-notice .lb-cookie-notice__actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
}

html body .lb-cookie-notice button.lb-cookie-notice__accept,
html body .lb-cookie-notice button.lb-cookie-notice__reject {
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
  /* Same size as caption; weight 600 matches DS buttons (emphasis via color, not bold shout) */
  font-size: var(--font-size-caption, 13px) !important;
  font-weight: var(--font-weight-btn, 600) !important;
  letter-spacing: -0.01em !important;
  padding: 9px 16px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  line-height: var(--line-height-btn, 1.2) !important;
  height: auto !important;
  width: auto !important;
  min-height: 36px !important;
  min-width: 0 !important;
  max-width: none !important;
  box-shadow: none !important;
  filter: none !important;
  box-sizing: border-box !important;
  transform: none !important;
}

html body .lb-cookie-notice button.lb-cookie-notice__reject {
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  background: transparent !important;
  color: rgba(244, 244, 240, 0.92) !important;
}

html body .lb-cookie-notice button.lb-cookie-notice__reject:hover {
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

html body .lb-cookie-notice button.lb-cookie-notice__accept {
  border: none !important;
  background: var(--primary, #F12850) !important;
  color: #fff !important;
}

html body .lb-cookie-notice button.lb-cookie-notice__accept:hover {
  filter: brightness(1.06) !important;
}

html body .lb-cookie-notice button.lb-cookie-notice__accept:active,
html body .lb-cookie-notice button.lb-cookie-notice__reject:active {
  transform: scale(0.98) !important;
}

/* Tablet + phone: message on top, equal-width actions below */
@media (max-width: 860px) {
  html body .lb-cookie-notice {
    left: 12px !important;
    right: 12px !important;
    bottom: max(12px, env(safe-area-inset-bottom, 12px)) !important;
    transform: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: auto !important;
    max-width: none !important;
    padding: 14px !important;
    border-radius: 16px !important;
  }

  html body .lb-cookie-notice .lb-cookie-notice__text {
    font-size: var(--font-size-caption, 13px) !important;
    line-height: 1.45 !important;
    font-weight: var(--font-weight-caption, 500) !important;
  }

  html body .lb-cookie-notice .lb-cookie-notice__actions {
    width: 100% !important;
    gap: 8px !important;
  }

  html body .lb-cookie-notice button.lb-cookie-notice__accept,
  html body .lb-cookie-notice button.lb-cookie-notice__reject {
    flex: 1 1 0 !important;
    min-height: 40px !important;
    padding: 10px 12px !important;
    font-size: var(--font-size-caption, 13px) !important;
    font-weight: var(--font-weight-btn, 600) !important;
    justify-content: center !important;
    display: inline-flex !important;
    align-items: center !important;
  }
}

@media (max-width: 560px) {
  html body .lb-cookie-notice {
    left: 10px !important;
    right: 10px !important;
    bottom: max(10px, env(safe-area-inset-bottom, 10px)) !important;
    padding: 12px !important;
    gap: 10px !important;
    border-radius: 14px !important;
  }

  /* Keep type locked at caption — don’t shrink; hierarchy stays clear */
  html body .lb-cookie-notice .lb-cookie-notice__text {
    font-size: var(--font-size-caption, 13px) !important;
    line-height: 1.45 !important;
    font-weight: var(--font-weight-caption, 500) !important;
  }

  html body .lb-cookie-notice button.lb-cookie-notice__accept,
  html body .lb-cookie-notice button.lb-cookie-notice__reject {
    min-height: 40px !important;
    font-size: var(--font-size-caption, 13px) !important;
    font-weight: var(--font-weight-btn, 600) !important;
    padding: 10px 12px !important;
  }
}
