/* Blackveil Cookie Consent Banner */

#bv-consent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#bv-consent-overlay.bv-visible {
  opacity: 1;
  pointer-events: all;
}

#bv-consent-banner {
  background: #1a1f2e;
  border-top: 2px solid #1680fb;
  border-radius: 12px 12px 0 0;
  padding: 28px 32px 20px;
  max-width: 540px;
  width: 100%;
  color: #e0e0e0;
  font-family: 'Rubik', 'Inter', sans-serif;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#bv-consent-overlay.bv-visible #bv-consent-banner {
  transform: translateY(0);
}

.bv-consent-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.bv-consent-header span {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.bv-consent-text {
  font-size: 14px;
  line-height: 1.5;
  color: #a0a8b8;
  margin-bottom: 18px;
}

/* Details / Categories */
.bv-consent-details {
  margin-bottom: 18px;
  border-top: 1px solid #2a3040;
  padding-top: 14px;
}

.bv-consent-details.bv-hidden {
  display: none;
}

.bv-consent-category {
  padding: 10px 0;
  border-bottom: 1px solid #2a3040;
}

.bv-consent-category:last-child {
  border-bottom: none;
}

.bv-consent-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bv-consent-cat-name {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.bv-consent-cat-desc {
  font-size: 12px;
  color: #7a8294;
  margin-top: 4px;
  line-height: 1.4;
}

.bv-consent-always {
  font-size: 11px;
  color: #1680fb;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Toggle Switch */
.bv-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  cursor: pointer;
}

.bv-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.bv-toggle-slider {
  position: absolute;
  inset: 0;
  background: #3a4050;
  border-radius: 22px;
  transition: background 0.2s;
}

.bv-toggle-slider:before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.bv-toggle input:checked + .bv-toggle-slider {
  background: #1680fb;
}

.bv-toggle input:checked + .bv-toggle-slider:before {
  transform: translateX(18px);
}

/* Buttons */
.bv-consent-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bv-btn {
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: inherit;
}

.bv-btn:active {
  transform: scale(0.97);
}

.bv-btn-primary {
  background: #1680fb;
  color: #fff;
}

.bv-btn-primary:hover {
  background: #1270e0;
}

.bv-btn-secondary {
  background: #2a3040;
  color: #c0c8d8;
}

.bv-btn-secondary:hover {
  background: #353d50;
}

.bv-btn.bv-hidden {
  display: none;
}

/* Privacy link */
.bv-consent-privacy {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: #6a7284;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bv-consent-privacy:hover {
  color: #1680fb;
}

/* Reopen Button */
#bv-consent-reopen {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 99998;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1a1f2e;
  border: 1px solid #2a3040;
  color: #a0a8b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

#bv-consent-reopen:hover {
  background: #1680fb;
  color: #fff;
  border-color: #1680fb;
}

/* Mobile */
@media (max-width: 576px) {
  #bv-consent-banner {
    padding: 20px 18px 16px;
    border-radius: 10px 10px 0 0;
  }

  .bv-consent-actions {
    flex-direction: column;
  }

  .bv-btn {
    width: 100%;
    text-align: center;
  }
}
