.sbscgc[hidden],
.sbscgc-pref[hidden],
#sbscgc-floating-button[hidden] {
  display: none !important;
}

.sbscgc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 999998;
  padding: 0 16px;
  font-family: inherit;
  color: #1f1f1f;
}

.sbscgc__box {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
  padding: 18px 20px;
}

.sbscgc__close,
.sbscgc-pref__close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: 0;
  background: transparent;
  color: #555;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.sbscgc__content {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-right: 22px;
}

.sbscgc__icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  line-height: 0;
  margin-top: 1px;
  color: var(--sbscgc-primary, #8b6f47);
}

.sbscgc-cookie-svg {
  display: block;
  margin: 0;
  padding: 0;
}

.sbscgc-cookie-svg--banner {
  width: 32px;
  height: 32px;
}

.sbscgc__title {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
}

.sbscgc__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.sbscgc__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}

.sbscgc__link {
  display: inline-block;
  font-size: 14px;
  text-decoration: underline;
}

.sbscgc__link-separator {
  color: #777;
  font-size: 13px;
}

.sbscgc-pref__links {
  margin: 2px 0 14px;
}


.sbscgc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

.sbscgc__button {
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: opacity .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}

.sbscgc__button:hover,
.sbscgc__button:focus {
  opacity: .88;
}

.sbscgc__button--primary {
  background: var(--sbscgc-primary, #8b6f47);
  color: #fff;
  border-color: var(--sbscgc-primary, #8b6f47);
}

.sbscgc__button--secondary {
  background: #f1f1f1;
  color: #222;
  border-color: #d5d5d5;
}

.sbscgc__button--outline {
  background: #fff;
  color: var(--sbscgc-primary, #8b6f47);
  border-color: var(--sbscgc-primary, #8b6f47);
}

.sbscgc-pref {
  position: fixed;
  inset: 0;
  z-index: 999999;
  font-family: inherit;
}

.sbscgc-pref__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.sbscgc-pref__panel {
  position: relative;
  max-width: 620px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 40px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
  padding: 28px;
  color: #1f1f1f;
}

.sbscgc-pref__panel h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.sbscgc-pref__panel p {
  font-size: 14px;
  line-height: 1.55;
}

.sbscgc-pref__group {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid #e5e5e5;
}

.sbscgc-pref__group p {
  margin: 6px 0 0;
}

.sbscgc-pref__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid #e5e5e5;
  padding-top: 18px;
}

.sbscgc-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  min-width: 52px;
  height: 28px;
  margin-top: 2px;
}

.sbscgc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.sbscgc-switch span {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #c8c8c8;
  border-radius: 999px;
  transition: .2s;
}

.sbscgc-switch span:before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

.sbscgc-switch input:checked + span {
  background: var(--sbscgc-primary, #8b6f47);
}

.sbscgc-switch input:checked + span:before {
  transform: translateX(24px);
}

.sbscgc-switch input:disabled + span {
  opacity: .72;
  cursor: not-allowed;
}

#sbscgc-floating-button {
  position: fixed;
  left: 15px;
  bottom: 15px;
  z-index: 999997;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sbscgc-primary, #8b6f47);
  cursor: pointer;
  line-height: 0;
  font-size: 0;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 7px 12px rgba(0,0,0,.22));
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}

#sbscgc-floating-button:hover,
#sbscgc-floating-button:focus {
  transform: translateY(-1px);
  filter: drop-shadow(0 9px 14px rgba(0,0,0,.26));
  opacity: .96;
}

#sbscgc-floating-button:focus-visible {
  outline: 2px solid var(--sbscgc-primary, #8b6f47);
  outline-offset: 3px;
}

.sbscgc-cookie-svg--floating {
  width: 44px;
  height: 44px;
}

#sbscgc-floating-button::after {
  content: attr(data-sbscgc-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  bottom: 7px;
  max-width: min(260px, calc(100vw - 80px));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #1f1f1f;
  color: #fff;
  border-radius: 4px;
  padding: 7px 9px;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
  transition: opacity .15s ease, transform .15s ease;
}

#sbscgc-floating-button:hover::after,
#sbscgc-floating-button:focus::after {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 700px) {
  .sbscgc {
    bottom: 10px;
    padding: 0 10px;
  }

  .sbscgc__box {
    padding: 16px;
  }

  .sbscgc__content {
    gap: 10px;
  }

  .sbscgc__actions,
  .sbscgc-pref__actions {
    justify-content: stretch;
  }

  .sbscgc__button {
    flex: 1 1 100%;
  }

  .sbscgc-pref__panel {
    margin: 14px;
    max-height: calc(100vh - 28px);
    padding: 22px;
  }

  #sbscgc-floating-button::after {
    display: none;
  }
}
