/* Opt-in creator colours, shared by profile and watch pages. */
body.theme-buttons-enabled {
  --page-button-text: #fff;
  --page-button-hover: color-mix(in srgb, var(--theme-accent) 82%, #000);
  --page-accent-border: color-mix(in srgb, var(--theme-accent) 78%, #fff);
  --page-accent-link: color-mix(in srgb, var(--theme-accent) 65%, #fff);
}

body.theme-buttons-enabled:is(
  [data-aux-theme="coffee"], [data-aux-theme="coffeeparticles"],
  [data-aux-theme="mint"], [data-aux-theme="mintparticles"],
  [data-aux-theme="dreamscapemint"], [data-aux-theme="cybermint"],
  [data-aux-theme="cyberred"], [data-aux-theme="cybercherryblossom"],
  [data-aux-theme="dreamscapecoffee"], [data-aux-theme="cybercoffee"],
  [data-aux-theme="goldenparticles"], [data-aux-theme="cybergolden"],
  [data-aux-theme="cyberwhite"], [data-aux-theme="backrooms"],
  [data-aux-theme="scp"], [data-aux-theme="stardust"]
) {
  --page-button-text: #080808;
  --page-button-hover: color-mix(in srgb, var(--theme-accent) 82%, #fff);
}

body.theme-buttons-enabled #profile-page :is(
  #follow-button:not(.is-following), .profile-subscribe-button:not(.is-subscribed),
  #edit-bio, #reset-bio, #send-comment-button, #refresh-comments-button
),
body.theme-buttons-enabled #live-page :is(
  .live-end-stream-button, .live-follow-button:not(.is-following),
  .live-subscribe-button:not(.is-subscribed), .live-description-toggle,
  .live-chat-form button[type="submit"]
) {
  border-color: var(--page-accent-border) !important;
  background: var(--theme-accent) !important;
  color: var(--page-button-text) !important;
}

body.theme-buttons-enabled #profile-page :is(
  #follow-button:not(.is-following), .profile-subscribe-button:not(.is-subscribed),
  #edit-bio, #reset-bio, #send-comment-button, #refresh-comments-button
):not(:disabled):is(:hover, :focus-visible),
body.theme-buttons-enabled #live-page :is(
  .live-end-stream-button, .live-follow-button:not(.is-following),
  .live-subscribe-button:not(.is-subscribed), .live-description-toggle,
  .live-chat-form button[type="submit"]
):not(:disabled):is(:hover, :focus-visible) {
  background: var(--page-button-hover) !important;
  box-shadow: 0 0 calc(14px * var(--aux-ui-scale, 1)) color-mix(in srgb, var(--theme-accent) 50%, transparent) !important;
}

body.theme-buttons-enabled #profile-page :is(#leave-comment, #bio-editor):focus-visible,
body.theme-buttons-enabled #live-page #live-chat-input:focus-visible {
  border-color: var(--page-accent-border) !important;
  outline: calc(2px * var(--aux-ui-scale, 1)) solid var(--page-accent-border) !important;
  outline-offset: calc(2px * var(--aux-ui-scale, 1));
}

body.theme-buttons-enabled #live-page .live-description a,
body.theme-buttons-enabled #live-page .live-description a:visited {
  color: var(--page-accent-link) !important;
}

body.theme-buttons-enabled #live-page .live-queue-toggle-btn:not(:disabled):is(:hover, :focus-visible),
body.theme-buttons-enabled #live-page .overlay-toggle-item input:checked + i {
  background: var(--theme-accent) !important;
  border-color: var(--page-accent-border) !important;
  color: var(--page-button-text) !important;
}

body.theme-buttons-enabled #live-page :is(#desktop-audio-volume, #live-desktop-audio-volume) {
  background: linear-gradient(to right, var(--theme-accent) 0 var(--desktop-volume-fill), #161616 var(--desktop-volume-fill) 100%) !important;
}

body.theme-buttons-enabled #live-page #live-mic-audio-volume {
  background: linear-gradient(to right, var(--theme-accent) 0 var(--mic-volume-fill), #161616 var(--mic-volume-fill) 100%) !important;
}

body.theme-buttons-enabled #live-page :is(#desktop-audio-volume, #live-desktop-audio-volume, #live-mic-audio-volume)::-webkit-slider-thumb {
  background: var(--theme-accent) !important;
}

body.theme-buttons-enabled #live-page :is(#desktop-audio-volume, #live-desktop-audio-volume, #live-mic-audio-volume)::-moz-range-thumb {
  background: var(--theme-accent) !important;
}
