/* 
  Silktide Consent Manager - https://silktide.com/consent-manager/  

  Styles are at risked of being overridden by styles coming from the site the consent manager is used on.
  To help prevent this, global wrapper elements are prefixed with "#silktide-"
*/

/* --------------------------------
  Global Styles - These elements exist in the main DOM and styling is limited to positioning and animation
-------------------------------- */
/* Wrapper (Global) */
#silktide-wrapper {
  --focus: 0 0 0 2px #ffffff, 0 0 0 4px #000000, 0 0 0 6px #ffffff;
  --boxShadow: -8px 16px 32px 0px #0b163014, 0px 4px 24px 0px #0b16300f;
  --fontFamily: "Inter", "Helvetica Neue", Segoe UI, Arial, sans-serif;
  --primaryColor: #13376c;
  --backgroundColor: #ffffff;
  --textColor: #1b2340;
  --mutedTextColor: #4a5474;
  --cardBorderColor: #dfe3f3;
  --backdropBackgroundColor: #0b16304d;
  --backdropBackgroundBlur: 4px;
  --cookieIconColor: #13376c;
  --cookieIconBackgroundColor: #ffffff;
  --dividerColor: rgba(16, 25, 38, 0.1);
  --secondaryButtonBorder: rgba(16, 25, 38, 0.16);
  --primaryButtonShadow: 0 16px 32px rgba(16, 25, 38, 0.16);
  --modalShadow: 0px 24px 60px rgba(16, 25, 38, 0.18);
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  pointer-events: none;
  border: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Backdrop (Global) */
#silktide-backdrop-global {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  border: 0px;
  display: none;
}

/* --------------------------------
  Links
-------------------------------- */
#silktide-wrapper a {
  all: unset;
  display: inline-block;
  color: var(--primaryColor);
  text-decoration: underline;
}

#silktide-wrapper a:hover {
  cursor: pointer;
  color: var(--textColor);
}

/* --------------------------------
  Focus Styles
-------------------------------- */
#silktide-wrapper a:focus,
#silktide-wrapper #silktide-banner button:focus,
#silktide-wrapper #silktide-modal button:focus:not(.modal-close),
#silktide-wrapper #silktide-cookie-icon:focus {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 5px;
}

#silktide-wrapper #silktide-cookie-icon:focus {
  border-radius: 50%;
}

/* --------------------------------
  General Styles
-------------------------------- */

#silktide-wrapper .st-button {
  color: var(--backgroundColor);
  background-color: var(--primaryColor);
  border: 2px solid transparent;
  padding: 12px 24px;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  font-size: 15px;
  line-height: 22px;
  cursor: pointer;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 120ms ease, box-shadow 120ms ease,
    background-color 120ms ease, color 120ms ease;
}

#silktide-wrapper .st-button--primary {
}

#silktide-wrapper .st-button--primary:hover {
  background-color: var(--backgroundColor);
  color: var(--primaryColor);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px #0000001f;
}

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

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

/* --------------------------------
  Banner
-------------------------------- */
#silktide-banner {
  font-family: var(--fontFamily);
  color: var(--textColor);
  background: var(--backgroundColor);
  box-sizing: border-box;
  padding: 28px;
  border-radius: 12px;
  pointer-events: auto;
  border: 1px solid var(--cardBorderColor);
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 713px;
  overflow: auto;
  max-width: calc(100% - 64px);
  max-height: calc(100vh - 64px);
  transform: translate(0, -20px);
  opacity: 0;
  animation: silktide-slideInDown 350ms ease-out forwards;
  animation-delay: 0.3s;
  box-shadow: 0px 24px 48px rgba(16, 25, 38, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}

#silktide-banner:focus {
  border-radius: 50%;
}

#silktide-banner.center {
  top: 50%;
  left: 50%;
  bottom: auto;
  right: auto;
  position: fixed;
  transform: translate(-50%, calc(-50% - 20px));
  animation: silktide-slideInDown-center 350ms ease-out forwards;
}

#silktide-banner.bottomLeft {
  bottom: 16px;
  left: 16px;
  position: fixed;
}

#silktide-banner.bottomCenter {
  bottom: 16px;
  left: 50%;
  position: fixed;
  transform: translate(-50%, -20px);
  animation: silktide-slideInDown-bottomCenter 350ms ease-out forwards;
}

@media (max-width: 600px) {
  #silktide-banner,
  #silktide-banner.bottomCenter,
  #silktide-banner.bottomLeft {
    width: auto;
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

#silktide-banner .preferences {
  display: inline-flex;
  gap: 6px;
  border: none;
  padding: 14px 0;
  background-color: transparent;
  color: var(--primaryColor);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  align-items: center;
  line-height: 22px;
}

#silktide-banner .preferences span {
  display: block;
  white-space: nowrap;
  text-decoration: none;
}

#silktide-banner .preferences:after {
  display: block;
  content: "\203A";
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  margin-top: 1px;
}

#silktide-banner .preferences:hover {
  color: var(--textColor);
}

#silktide-banner .preferences:hover span {
  text-decoration: underline;
}

#silktide-banner .preferences:focus,
#silktide-banner .preferences:focus-visible {
  outline: none;
  box-shadow: none;
}

#silktide-banner .st-button {
  border-width: 1px;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 15px;
  line-height: 22px;
}

#silktide-banner p {
  font-size: 14px;
  line-height: 22px;
  margin: 0 0 16px;
  color: var(--mutedTextColor);
  letter-spacing: -0.01em;
}

#silktide-banner a {
  display: inline-block;
  color: var(--primaryColor);
  text-decoration: underline;
  background-color: var(--backgroundColor);
}

#silktide-banner a:hover {
  color: var(--textColor);
}

#silktide-banner a.silktide-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  fill: var(--primaryColor); /* passed down to svg > path */
  margin-left: auto;
  width: 48px;
  height: 48px;
}

#silktide-banner .banner-copy {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#silktide-banner .banner-copy p:last-child {
  margin-bottom: 0;
}

#silktide-banner .banner-title {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--textColor);
}

#silktide-banner .banner-intro {
  margin-bottom: 0;
}

#silktide-banner .banner-list {
  margin: 0;
  padding: 0 0 0 20px;
  display: grid;
  gap: 8px;
  font-size: 15px;
  color: var(--mutedTextColor);
}

#silktide-banner .banner-note {
  color: var(--textColor);
  font-weight: 600;
  margin-bottom: 4px;
}

#silktide-banner .banner-choice {
  margin-bottom: 0;
}

#silktide-banner .banner-list li {
  margin: 0;
}

#silktide-banner .actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
}

#silktide-banner .actions-primary,
#silktide-banner .actions-secondary {
  width: 100%;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

#silktide-banner .actions-primary {
  flex-direction: column;
  gap: 16px;
}

#silktide-banner .actions-secondary {
  justify-content: flex-end;
  align-items: center;
  margin-left: 0;
  gap: 12px;
}

@media (min-width: 640px) {
  #silktide-banner .actions-primary,
  #silktide-banner .actions-secondary {
    width: auto;
  }

  #silktide-banner .actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
  }

  #silktide-banner .actions-primary {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  #silktide-banner .actions-primary .st-button {
    width: auto;
    min-width: 0;
  }

  #silktide-banner .actions-secondary {
    justify-content: flex-end;
    margin-left: auto;
  }

  #silktide-banner .actions-secondary .preferences {
    margin-top: 12px;
  }
}

@media (max-width: 639px) {
  #silktide-banner .actions-secondary {
    justify-content: center;
  }
}

#silktide-banner .actions-secondary .reject-all {
  min-width: 0;
}

#silktide-banner .actions-secondary .preferences {
  padding: 0;
  margin-left: auto;
}

#silktide-banner .st-button--accept {
  background: var(--primaryColor);
  border: none !important;
  color: var(--backgroundColor);
  box-shadow: var(--primaryButtonShadow);
}

#silktide-wrapper #silktide-banner .st-button--accept:focus,
#silktide-wrapper #silktide-banner .st-button--accept:focus-visible {
  outline: none;
  box-shadow: var(--primaryButtonShadow);
  border-radius: 999px;
}

#silktide-banner .st-button--accept:hover {
  background: var(--backgroundColor);
  color: var(--primaryColor);
  box-shadow: var(--primaryButtonShadow);
}

#silktide-banner .st-button--reject {
  background-color: var(--backgroundColor);
  color: var(--primaryColor);
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(19, 55, 108, 0.12);
}

#silktide-banner .st-button--reject:hover {
  background-color: rgba(68, 53, 224, 0.08);
  color: var(--primaryColor);
}

#silktide-banner .st-button--reject:focus-visible {
  color: var(--primaryColor);
}

#silktide-banner .actions-secondary .preferences {
  margin-right: 8px;
}

@media (max-width: 639px) {
  #silktide-banner {
    width: calc(100% - 32px);
    padding: 24px 20px;
  }

  #silktide-banner .banner-title {
    font-size: 18px;
    line-height: 26px;
  }

  #silktide-banner .actions-primary {
    flex-direction: column;
  }

  #silktide-banner .actions-secondary {
    justify-content: space-between;
  }

  #silktide-banner .actions-primary .st-button {
    width: 100%;
  }

  #silktide-banner .actions-secondary .preferences {
    margin-right: 0;
  }
}

/* --------------------------------
  Modal
-------------------------------- */
#silktide-modal {
  display: none;
  pointer-events: auto;
  overflow: hidden;
  width: min(600px, calc(100% - 32px));
  max-height: min(90vh, 720px);
  border: 1px solid var(--dividerColor);
  transform: translate(0px, -20px);
  opacity: 0;
  animation: silktide-slideInUp-center 350ms ease-out forwards;
  box-shadow: var(--modalShadow);
  font-family: var(--fontFamily);
  color: var(--textColor);
  flex-direction: column;
  padding: 0;
  background-color: var(--backgroundColor);
  border-radius: 16px;
  box-sizing: border-box;
  font-family: "Manrope", var(--fontFamily);
}

/* --------------------------------
  Modal - Header
-------------------------------- */
#silktide-modal header {
  position: relative;
  padding: 16px;
  padding-right: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--dividerColor);
  margin-bottom: 0;
  gap: 16px;
}

#silktide-modal h1 {
  font-family: inherit;
  color: var(--textColor);
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  margin: 0px;
  letter-spacing: -0.01em;
}

#silktide-modal .modal-close {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border-radius: 0;
  border: none !important;
  padding: 0;
  cursor: pointer;
  background: transparent;
  color: var(--textColor);
  transition: color 150ms ease;
  outline: none !important;
  box-shadow: none !important;
}

#silktide-modal .modal-close svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

#silktide-modal .modal-close:hover {
  color: var(--primaryColor);
}

#silktide-modal .modal-close:focus,
#silktide-modal .modal-close:focus-visible,
#silktide-modal .modal-close:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* --------------------------------
  Modal - Content
-------------------------------- */

#silktide-modal .modal-body-text {
  padding: 16px;
  padding-bottom: 8px;
  font-size: 14px;
  line-height: 22px;
  color: var(--mutedTextColor);
  letter-spacing: -0.01em;
}

#silktide-modal .modal-body-text p {
  color: var(--mutedTextColor);
  margin: 0 0 8px;
}

#silktide-modal .modal-body-text p:last-child {
  margin-bottom: 0;
}

#silktide-modal section {
  flex: 1;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  margin-top: 4px;
  padding-bottom: 4px;
}

#silktide-modal section::-webkit-scrollbar {
  display: block; /* Force scrollbars to show */
  width: 5px; /* Width of the scrollbar */
}

#silktide-modal section::-webkit-scrollbar-thumb {
  background-color: var(--textColor); /* Color of the scrollbar thumb */
  border-radius: 10px; /* Rounded corners for the thumb */
}

#silktide-modal p {
  font-size: 14px;
  line-height: 22px;
  color: var(--mutedTextColor);
  margin: 0px 0px 8px;
  font-weight: 400;
}

#silktide-modal p:last-of-type {
  margin-bottom: 0px;
}

#silktide-modal fieldset {
  border: none;
  margin: 0;
  padding: 0;
  position: relative;
}

#silktide-modal legend {
  padding: 8px 16px 2px;
  margin: 0px;
  color: var(--textColor) !important;
  font-size: 17px !important;
  line-height: 22px !important;
  letter-spacing: -0.015em !important;
  font-family: "Manrope", var(--fontFamily) !important;
  text-transform: none !important;
  text-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.1) !important;
}

#silktide-modal .cookie-type-title {
  display: inline-block;
  font-weight: 900 !important;
  color: var(--textColor);
  font-family: "Manrope", var(--fontFamily);
  -webkit-text-stroke: 0.5px var(--textColor);
  letter-spacing: 0.01em;
  text-shadow: 0 0 0.5px var(--textColor);
}

#silktide-wrapper #silktide-modal legend {
  font-weight: 700 !important;
  font-family: "Manrope", var(--fontFamily) !important;
  color: var(--textColor) !important;
}

#silktide-wrapper fieldset legend {
  font-weight: 700 !important;
}

#silktide-wrapper legend {
  font-weight: 700 !important;
}

#silktide-modal .cookie-type-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 4px 16px 8px;
  min-height: 60px;
}

#silktide-modal .cookie-type-description {
  flex: 1;
  color: var(--mutedTextColor);
  font-size: 14px;
  line-height: 22px;
  font-weight: 300;
  letter-spacing: -0.01em;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#silktide-modal .cookie-type-description p {
  color: var(--mutedTextColor);
  margin: 0;
  font-weight: 300;
  opacity: 0.85;
}

#silktide-modal fieldset:last-of-type .cookie-type-content {
  padding-bottom: 8px;
}

/* --------------------------------
  Modal - Switches
-------------------------------- */
#silktide-modal .switch {
  flex-shrink: 0;
  position: relative;
  display: inline-block;
  height: 28px;
  width: 56px;
  cursor: pointer;
}

#silktide-modal .switch:focus-within {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 25px;
}

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

/* Unchecked Switch Styles */
#silktide-modal .switch__pill {
  position: relative;
  display: block;
  height: 28px;
  width: 56px;
  background: rgba(16, 25, 38, 0.24);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(16, 25, 38, 0.08);
}

#silktide-modal .switch__dot {
  position: absolute;
  top: 2px;
  left: 2px;
  display: block;
  height: 24px;
  width: 24px;
  background: var(--backgroundColor);
  border-radius: 50%;
  transition: transform 150ms ease-out;
  box-shadow: 0 4px 12px rgba(16, 25, 38, 0.2);
}

#silktide-modal .switch__off,
#silktide-modal .switch__on {
  display: none;
}

/* Checked Switch Styles */
#silktide-modal .switch input:checked + .switch__pill {
  background: var(--primaryColor);
}

#silktide-modal .switch input:checked ~ .switch__dot {
  transform: translateX(28px);
}

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

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

/* Disabled Switch Styles */
#silktide-modal .switch input:disabled + .switch__pill {
  opacity: 0.65;
  cursor: not-allowed;
}

/* --------------------------------
  Modal - Footer
-------------------------------- */
#silktide-modal footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--dividerColor);
  justify-content: flex-end;
  align-items: stretch;
  flex-wrap: wrap;
}

@media (min-width: 600px) {
  #silktide-modal footer {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }
}

#silktide-modal footer a {
  margin-left: 0;
  padding: 14px 0px;
  font-size: 14px;
  color: var(--mutedTextColor);
  order: 3;
}

#silktide-modal footer .preferences-reject-all {
  order: 1;
}

#silktide-modal footer .preferences-accept-all {
  order: 2;
}

#silktide-modal footer .st-button {
  border-radius: 999px;
  font-size: 15px;
  line-height: 22px;
  padding: 12px 24px;
  border-width: 1px;
  min-width: 0;
  box-shadow: none;
}

#silktide-modal footer .st-button--primary {
  background-color: var(--primaryColor);
  color: var(--backgroundColor);
  border-color: var(--primaryColor);
  box-shadow: var(--primaryButtonShadow);
  min-width: 0;
}

#silktide-modal footer .st-button--primary:hover {
  background-color: var(--backgroundColor);
  color: var(--primaryColor);
}

#silktide-modal footer .st-button--secondary {
  background-color: var(--backgroundColor);
  color: var(--primaryColor);
  border-color: var(--primaryColor);
  box-shadow: inset 0 0 0 1px rgba(19, 55, 108, 0.12);
}

#silktide-modal footer .st-button--secondary:hover {
  background-color: rgba(19, 55, 108, 0.08);
  color: var(--primaryColor);
}

@media (max-width: 599px) {
  #silktide-modal footer .preferences-reject-all,
  #silktide-modal footer .preferences-accept-all {
    margin: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  #silktide-wrapper {
    padding: 16px;
    justify-content: center;
    align-items: center;
  }

  #silktide-banner,
  #silktide-banner.bottomCenter,
  #silktide-banner.bottomLeft {
    width: calc(100% - 32px);
    max-width: 280px;
    left: 0;
    right: 0;
    bottom: 16px;
    margin: 0 auto;
    padding: 16px 14px;
    gap: 16px;
  }

  #silktide-banner .banner-copy {
    gap: 12px;
  }

  #silktide-banner .banner-title {
    font-size: 15px;
    line-height: 22px;
  }

  #silktide-banner p {
    font-size: 12px;
    line-height: 18px;
    margin: 0 0 10px;
  }

  #silktide-banner .st-button {
    padding: 10px 16px;
    font-size: 13px;
  }

  #silktide-banner .preferences {
    font-size: 13px;
  }

  #silktide-banner .banner-note {
    margin-bottom: 4px;
  }

  #silktide-modal {
    width: 100%;
    max-width: 320px;
    max-height: min(75vh, 540px);
    margin: 0 auto;
    align-self: center;
    transform: none;
  }

  #silktide-modal header {
    padding: 8px 12px;
  }

  #silktide-modal h1 {
    font-size: 16px;
    line-height: 22px;
  }

  #silktide-modal .modal-body-text {
    padding: 8px 12px 4px;
    font-size: 12px;
    line-height: 18px;
  }

  #silktide-modal p {
    font-size: 12px;
    line-height: 18px;
  }

  #silktide-modal .cookie-type-content {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 4px 12px 8px;
  }

  #silktide-modal footer {
    padding: 10px 12px 14px;
  }

  #silktide-modal footer .st-button {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* Cookie Icon */
#silktide-cookie-icon {
  display: none;
  position: fixed;
  bottom: 10px;
  left: 10px;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 0px;
  border: none;
  background-color: var(--cookieIconColor);
  cursor: pointer;
  box-shadow: 0px 0px 6px 0px #0000001a;
  pointer-events: auto;
  animation: silktide-fadeIn 0.3s ease-in-out forwards;
}

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

#silktide-cookie-icon svg {
  fill: var(--cookieIconBackgroundColor);
}

/* --------------------------------
  Backdrop
-------------------------------- */
#silktide-backdrop {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--backdropBackgroundColor);
  backdrop-filter: blur(var(--backdropBackgroundBlur));
  pointer-events: all;
}

/* --------------------------------
  Animations
-------------------------------- */
@keyframes silktide-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes silktide-slideInDown-center {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 20px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes silktide-slideInDown-bottomCenter {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes silktide-slideInUp-center {
  from {
    opacity: 0;
    transform: translate(0px, 20px);
  }
  to {
    opacity: 1;
    transform: translate(0px, 0px);
  }
}
