/* BrandShyp custom cookie banner — replaces Complianz's UI while Complianz
   keeps running headless for consent records + Google Consent Mode v2.
   Hidden by default; cookie-banner.js opens it when no consent is set. */

#bs-cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 380px;
  max-width: calc(100vw - 40px);
  background: var(--navy, #030d4e);
  color: #fff;
  border-top: 3px solid var(--gold, #f8a01c);
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  font-family: 'Poppins', sans-serif;
  z-index: 99998;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
#bs-cookie-banner.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 600px) {
  #bs-cookie-banner {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }
}

.bs-cb__inner {
  padding: 22px 24px;
}

.bs-cb__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.bs-cb__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin: 0;
}
.bs-cb__close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.bs-cb__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.bs-cb__body {
  font-size: 0.825rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 16px 0;
}
.bs-cb__body a {
  color: var(--gold, #f8a01c);
  text-decoration: underline;
}
.bs-cb__body a:hover {
  color: #ffb84a;
}

.bs-cb__actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.bs-cb__btn {
  flex: 1;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 11px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.bs-cb__btn--primary {
  background: var(--gold, #f8a01c);
  color: var(--navy, #030d4e);
}
.bs-cb__btn--primary:hover {
  background: #e8920a;
}
.bs-cb__btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.bs-cb__btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.bs-cb__customize-toggle {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 0;
  text-align: center;
}
.bs-cb__customize-toggle:hover {
  color: rgba(255, 255, 255, 0.85);
}

.bs-cb__customize {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
  margin-top: 12px;
}
.bs-cb__customize.is-open {
  display: block;
}

.bs-cb__category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  gap: 12px;
}
.bs-cb__category-info { flex: 1; }
.bs-cb__category-title {
  font-size: 0.825rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 2px 0;
}
.bs-cb__category-desc {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.4;
}

.bs-cb__toggle {
  position: relative;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}
.bs-cb__toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.bs-cb__toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.2s;
}
.bs-cb__toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.bs-cb__toggle input:checked + .bs-cb__toggle-slider {
  background: var(--gold, #f8a01c);
}
.bs-cb__toggle input:checked + .bs-cb__toggle-slider::before {
  transform: translateX(16px);
}
.bs-cb__toggle input:disabled + .bs-cb__toggle-slider {
  background: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
}
.bs-cb__toggle input:disabled + .bs-cb__toggle-slider::before {
  background: rgba(255, 255, 255, 0.7);
}

.bs-cb__save {
  width: 100%;
  margin-top: 10px;
  background: var(--gold, #f8a01c);
  color: var(--navy, #030d4e);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.bs-cb__save:hover {
  background: #e8920a;
}

/* Floating gear — only appears AFTER consent, so users can revoke/manage.
   Bottom-right to avoid colliding with UserWay's accessibility icon at bottom-left. */
#bs-cookie-manage {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  background: var(--navy, #030d4e);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  z-index: 99997;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s, box-shadow 0.15s;
  font-size: 1.05rem;
  line-height: 1;
}
#bs-cookie-manage:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
#bs-cookie-manage.is-visible {
  display: flex;
}
#bs-cookie-manage svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
