/* GoldApp cookie consent (Silktide) */
#silktide-wrapper {
  --focus: 0 0 0 2px #ffffff, 0 0 0 4px #000000, 0 0 0 6px #ffffff;
  --boxShadow: -5px 5px 10px 0px #00000012, 0px 0px 50px 0px #0000001a;
  --fontFamily: 'Manrope', 'Inter', system-ui, sans-serif;
  --primaryColor: #f2f2f2;
  --backgroundColor: #1f1f1f;
  --textColor: #ffffff;
  --backdropBackgroundColor: #00000066;
  --backdropBackgroundBlur: 4px;
  --cookieIconColor: #2b2b2b;
  --cookieIconBackgroundColor: #ffffff;
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 2147483647;
  pointer-events: none;
  border: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#silktide-backdrop-global { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: auto; border: 0px; display: none }
#silktide-wrapper a { all: unset; display: inline-block; color: var(--primaryColor); text-decoration: underline; cursor: pointer; }
#silktide-wrapper a:hover { color: var(--textColor) }
#silktide-wrapper a:focus,
#silktide-wrapper #silktide-banner button:focus,
#silktide-wrapper #silktide-modal button:focus,
#silktide-wrapper #silktide-cookie-icon:focus { outline: none; box-shadow: var(--focus); border-radius: 5px }
#silktide-wrapper #silktide-cookie-icon:focus { border-radius: 50% }
#silktide-wrapper .st-button {
  color: #111111;
  background-color: var(--primaryColor);
  border: 2px solid var(--primaryColor);
  padding: 10px 20px;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
#silktide-wrapper .st-button--primary:hover { filter: brightness(0.9); }
#silktide-wrapper .st-button--secondary { background-color: transparent; color: var(--primaryColor); border: 1px solid rgba(255,255,255,0.3); }
#silktide-wrapper .st-button--secondary:hover { background-color: rgba(255,255,255,0.1); }

#silktide-banner {
  font-family: var(--fontFamily);
  color: var(--textColor);
  background-color: var(--backgroundColor);
  box-sizing: border-box;
  padding: 24px;
  border-radius: 12px;
  pointer-events: auto;
  border: 1px solid rgba(255,255,255,0.1);
  position: fixed;
  bottom: 20px;
  right: 16px;
  width: 600px;
  overflow: auto;
  max-width: calc(100% - 32px);
  max-height: calc(100vh - 32px);
  transform: translate(0, -20px);
  opacity: 0;
  animation: silktide-slideInDown 350ms ease-out forwards;
  animation-delay: 0.5s;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
#silktide-banner .preferences { display: flex; gap: 5px; border: none; padding: 15px 0px; background-color: transparent; color: #ccc; cursor: pointer; font-size: 13px }
#silktide-banner .preferences span { display: block; white-space: nowrap; text-decoration: underline }
#silktide-banner .preferences span:hover { color: var(--textColor) }
#silktide-banner .preferences:after { display: block; content: '>'; text-decoration: none }
#silktide-banner p { font-size: 14px; line-height: 1.5; margin: 0px 0px 15px }
#silktide-banner a { display: inline-block; color: var(--primaryColor); text-decoration: underline; background-color: transparent }
#silktide-banner a:hover { color: var(--textColor) }
#silktide-banner .actions { display: flex; gap: 10px; flex-direction: column; margin-top: 20px }
@media (min-width: 600px) { #silktide-banner .actions { flex-direction: row; align-items: center } }
#silktide-banner .actions-row { display: flex; gap: 16px; flex-direction: row; align-items: center; justify-content: space-between; flex-grow: 1 }

#silktide-modal {
  display: none;
  pointer-events: auto;
  overflow: auto;
  width: 500px;
  max-width: 95%;
  max-height: 90%;
  border: 1px solid rgba(255,255,255,0.1);
  transform: translate(0px, -20px);
  opacity: 0;
  animation: silktide-slideInUp-center 350ms ease-out forwards;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  font-family: var(--fontFamily);
  color: var(--textColor);
  flex-direction: column;
  padding: 24px;
  background-color: var(--backgroundColor);
  border-radius: 12px;
  box-sizing: border-box;
}
#silktide-modal header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 16px }
#silktide-modal h1, #silktide-modal h2.stcm-title { font-family: var(--fontFamily); color: var(--textColor); font-size: 20px; font-weight: 700; margin: 0px }
#silktide-modal .modal-close { display: inline-flex; border: none; padding: 10px; cursor: pointer; background: transparent; color: var(--textColor); font-size: 24px; }
#silktide-modal section { flex: 1; margin-top: 20px }
#silktide-modal p { font-size: 13px; line-height: 1.5; color: #ccc; margin: 0px 0px 15px }
#silktide-modal fieldset { padding: 0px; border: none; margin: 0px 0px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; }
#silktide-modal fieldset:last-of-type { margin: 0px; border-bottom: none; }
#silktide-modal legend { padding: 0px; margin: 0px 0px 10px; font-weight: 700; color: var(--textColor); font-size: 16px }
#silktide-modal .cookie-type-content { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px }
#silktide-modal .switch { flex-shrink: 0; position: relative; display: inline-block; height: 26px; width: 46px; cursor: pointer }
#silktide-modal .switch input { opacity: 0; position: absolute }
#silktide-modal .switch__pill { position: relative; display: block; height: 26px; width: 46px; background: #444; border-radius: 25px; transition: 0.3s; }
#silktide-modal .switch__dot { position: absolute; top: 3px; left: 3px; display: block; height: 20px; width: 20px; background: #fff; border-radius: 50%; transition: left 150ms ease-out }
#silktide-modal .switch__off, #silktide-modal .switch__on { display: none; }
#silktide-modal .switch input:checked+.switch__pill { background: var(--primaryColor) }
#silktide-modal .switch input:checked~.switch__dot { left: calc(100% - 23px) }
#silktide-modal .switch input:disabled+.switch__pill { opacity: 0.5; cursor: not-allowed }
#silktide-modal footer { display: flex; flex-direction: column; gap: 10px; margin-top: 24px }
@media (min-width: 600px) { #silktide-modal footer { flex-direction: row; align-items: center } }

#silktide-cookie-icon {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: auto;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  background-color: var(--cookieIconColor);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  pointer-events: auto;
  animation: silktide-fadeIn 0.3s ease-in-out forwards;
  z-index: 2147483647;
  transition: transform 0.2s;
}
#silktide-cookie-icon:active { transform: scale(0.9); }
#silktide-cookie-icon svg { fill: var(--cookieIconBackgroundColor); width: 100%; height: 100%; }

#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;
}

@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-slideInUp-center { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: translateY(0px) } }
