#silktide-wrapper {
  --focus: 0 0 0 2px #ffffff, 0 0 0 4px #4b6a9b;
  --boxShadow: 0 18px 48px rgb(15 23 42 / 0.16);
  --fontFamily: Montserrat, Helvetica Neue, Segoe UI, Arial, sans-serif;
  --primaryColor: #4b6a9b;
  --backgroundColor: #ffffff;
  --textColor: #0f0f0f;
  --mutedTextColor: #666666;
  --borderColor: #cfcfcf;
  --backdropBackgroundColor: rgb(0 0 0 / 0.42);
  --cookieIconColor: #4b6a9b;
  --cookieIconBackgroundColor: #ffffff;
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#silktide-wrapper a {
  color: var(--primaryColor);
  font-weight: 600;
  text-decoration: underline;
}

#silktide-wrapper button:focus,
#silktide-wrapper a:focus,
#silktide-cookie-icon:focus {
  outline: none;
  box-shadow: var(--focus);
}

#silktide-backdrop,
#silktide-backdrop-global {
  position: fixed;
  inset: 0;
  display: none;
  background: var(--backdropBackgroundColor);
  pointer-events: auto;
}

#silktide-banner,
#silktide-modal {
  box-sizing: border-box;
  width: min(100% - 32px, 600px);
  max-height: calc(100svh - 32px);
  overflow: auto;
  border: 1px solid var(--borderColor);
  border-radius: 16px;
  background: var(--backgroundColor);
  color: var(--textColor);
  box-shadow: var(--boxShadow);
  font-family: var(--fontFamily);
  pointer-events: auto;
}

#silktide-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  padding: 24px;
  animation: silktide-slideInDown 220ms ease-out forwards;
}

#silktide-banner.bottomLeft {
  right: auto;
  left: 16px;
}

#silktide-banner h2,
#silktide-modal h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

#silktide-banner p,
#silktide-modal p {
  margin: 0;
  color: var(--mutedTextColor);
  font-size: 14px;
  line-height: 1.6;
}

#silktide-banner .actions,
#silktide-modal footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

@media (min-width: 600px) {
  #silktide-banner .actions,
  #silktide-modal footer {
    flex-direction: row;
    align-items: center;
  }
}

#silktide-wrapper .st-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primaryColor);
  border-radius: 12px;
  background: var(--primaryColor);
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 0 18px;
}

#silktide-wrapper .st-button--secondary {
  background: #ffffff;
  color: var(--primaryColor);
}

#silktide-wrapper .preferences {
  border: 0;
  background: transparent;
  color: var(--primaryColor);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
}

#silktide-modal {
  display: none;
  padding: 24px;
  animation: silktide-slideInUp-center 220ms ease-out forwards;
}

#silktide-modal fieldset {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

#silktide-modal legend {
  margin: 0 0 6px;
  color: var(--textColor);
  font-size: 16px;
  font-weight: 700;
}

#silktide-modal .cookie-type-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  border-top: 1px solid var(--borderColor);
  padding-top: 16px;
}

#silktide-modal .switch {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 64px;
  height: 32px;
  cursor: pointer;
}

#silktide-modal .switch input {
  position: absolute;
  opacity: 0;
}

#silktide-modal .switch__pill {
  display: block;
  width: 64px;
  height: 32px;
  border-radius: 999px;
  background: #cfcfcf;
}

#silktide-modal .switch__dot {
  position: absolute;
  top: 3px;
  left: 3px;
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 4px rgb(15 23 42 / 0.18);
  transition: left 150ms ease-out;
}

#silktide-modal .switch__off,
#silktide-modal .switch__on {
  position: absolute;
  top: 9px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

#silktide-modal .switch__off {
  right: 8px;
}

#silktide-modal .switch__on {
  left: 8px;
  opacity: 0;
}

#silktide-modal .switch input:checked + .switch__pill {
  background: var(--primaryColor);
}

#silktide-modal .switch input:checked ~ .switch__dot {
  left: 35px;
}

#silktide-modal .switch input:checked ~ .switch__off {
  opacity: 0;
}

#silktide-modal .switch input:checked ~ .switch__on {
  opacity: 1;
}

#silktide-modal .switch input:disabled + .switch__pill {
  opacity: 0.65;
  cursor: not-allowed;
}

#silktide-cookie-icon {
  position: fixed;
  bottom: 10px;
  left: 10px;
  display: none;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--cookieIconColor);
  box-shadow: 0 8px 24px rgb(15 23 42 / 0.16);
  color: var(--cookieIconBackgroundColor);
  cursor: pointer;
  pointer-events: auto;
}

#silktide-cookie-icon.bottomRight {
  right: 10px;
  left: auto;
}

#silktide-cookie-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

@keyframes silktide-slideInDown {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes silktide-slideInUp-center {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
