/* BohleVision cookie banner + settings (v1) */

:root{
  --bv-cookie-bottom: 12px;
}

.bv-cookie{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--bv-cookie-bottom) + env(safe-area-inset-bottom));
  z-index: 9999;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.bv-cookie.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.bv-cookie.is-hidden{
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.bv-cookie-inner{
  width: min(1120px, calc(100vw - 24px));
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;

  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(2,6,23,0.14);
  padding: 14px;

  backdrop-filter: blur(10px);
}

.bv-cookie-copy{
  min-width: 0;
}

.bv-cookie-title{
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.bv-cookie-text{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  display: inline;
}

.bv-cookie-more{
  color: var(--primary);
  font-weight: 750;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.bv-cookie-more:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bv-cookie-actions{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Settings dialog */
.bv-cookie-dialog{
  border: none;
  padding: 0;
  max-width: min(720px, calc(100vw - 24px));
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(2,6,23,0.26);
  background: rgba(255,255,255,0.98);
}

.bv-cookie-dialog::backdrop{
  background: rgba(2,6,23,0.55);
}

.bv-cookie-dialog-inner{
  padding: 16px;
}

.bv-cookie-dialog-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.bv-cookie-dialog-title{
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.bv-cookie-x{
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.8);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 800;
}

.bv-cookie-list{
  display: grid;
  gap: 10px;
}

.bv-cookie-row{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;

  background: rgba(241,244,251,0.65);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 14px;
  padding: 12px;
}

.bv-cookie-row-name{
  font-weight: 850;
}

.bv-cookie-row-desc{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin-top: 4px;
  max-width: 66ch;
}

.bv-cookie-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 850;
  font-size: 12px;
  letter-spacing: 0.02em;
  background: rgba(10,132,255,0.12);
  border: 1px solid rgba(10,132,255,0.22);
}

/* Switch */
.bv-switch{
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.bv-switch input{
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.bv-switch-ui{
  width: 44px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.14);
  background: rgba(15,23,42,0.10);
  box-shadow: inset 0 2px 8px rgba(2,6,23,0.10);
  position: relative;
  transition: background .14s ease, border-color .14s ease;
}

.bv-switch-ui::after{
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(2,6,23,0.18);
  transition: transform .14s ease;
}

.bv-switch input:checked + .bv-switch-ui{
  background: rgba(10,132,255,0.32);
  border-color: rgba(10,132,255,0.35);
}

.bv-switch input:checked + .bv-switch-ui::after{
  transform: translateX(18px);
}

.bv-cookie-dialog-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.bv-cookie-actions-spacer{
  flex: 1 1 auto;
}

.bv-cookie-fine{
  margin-top: 10px;
}

/* Mobile */
@media (max-width: 820px){
  .bv-cookie-inner{
    grid-template-columns: 1fr;
  }
  .bv-cookie-actions{
    justify-content: flex-start;
  }
}
