/*
  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 {
	--boxShadow: -5px 5px 10px 0px #00000012, 0px 0px 50px 0px #0000001a;
	--fontFamily: 'Oxanium', 'Helvetica Neue', 'Segoe UI', 'Arial', 'sans-serif';
	--primaryColor: #dc2f28;
	--backgroundColor: #0d0e0e;
	--textColor: #bbbbbb;
	--backdropBackgroundColor: #00000033;
	--backdropBackgroundBlur: 0px;
	--cookieIconColor: #2a2a2a;
	--cookieIconBackgroundColor: #f5f5f5;
	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);
}

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

#silktide-banner .preferences,
#silktide-wrapper .st-button {
	font-family: var(--font-primary);
	display: flex;
	height: 2.25rem;
	cursor: pointer;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	border-radius: var(--radius-xl);
	padding: 0.5rem 1rem;
	color: white;
	outline: none;
}

#silktide-wrapper .st-button--primary {
	--tw-gradient-position: to bottom right in oklab;
	background-image: linear-gradient(var(--tw-gradient-stops));
	--tw-gradient-from: var(--color-primary) /* #dc2f28 */;
	--tw-gradient-stops: var(
		--tw-gradient-via-stops,
		var(--tw-gradient-position),
		var(--tw-gradient-from) var(--tw-gradient-from-position),
		var(--tw-gradient-to) var(--tw-gradient-to-position)
	);
	--tw-gradient-to: var(--color-primary-dark) /* #9c1b16 */;
	--tw-gradient-stops: var(
		--tw-gradient-via-stops,
		var(--tw-gradient-position),
		var(--tw-gradient-from) var(--tw-gradient-from-position),
		var(--tw-gradient-to) var(--tw-gradient-to-position)
	);
}

#silktide-wrapper .st-button--primary:hover {
	--tw-gradient-position: to bottom left in oklab;
	background-image: linear-gradient(var(--tw-gradient-stops));
	--tw-gradient-from: var(--color-primary) /* #dc2f28 */;
	--tw-gradient-stops: var(
		--tw-gradient-via-stops,
		var(--tw-gradient-position),
		var(--tw-gradient-from) var(--tw-gradient-from-position),
		var(--tw-gradient-to) var(--tw-gradient-to-position)
	);
	--tw-gradient-to: var(--color-primary-dark) /* #9c1b16 */;
	--tw-gradient-stops: var(
		--tw-gradient-via-stops,
		var(--tw-gradient-position),
		var(--tw-gradient-from) var(--tw-gradient-from-position),
		var(--tw-gradient-to) var(--tw-gradient-to-position)
	);
}

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

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

/* --------------------------------
  Banner
-------------------------------- */
#silktide-banner {
	font-family: var(--fontFamily);
	color: var(--textColor);
	--from: color-mix(in oklab, var(--color-real-dark) 50%, transparent);
	--to: transparent;
	--tw-backdrop-blur: blur(var(--blur-md));
	background: linear-gradient(to bottom, var(--from), var(--to));

	--tw-shadow-color: color-mix(
		in oklab,
		color-mix(in oklab, var(--color-black) 60%, transparent) var(--tw-shadow-alpha),
		transparent
	);
	--tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, rgb(0 0 0 / 0.25));
	box-shadow:
		var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow),
		var(--tw-ring-shadow), var(--tw-shadow);
	box-sizing: border-box;
	padding: 2rem;
	border-radius: var(--radius-2xl);
	pointer-events: auto;
	outline: 0.0625rem solid color-mix(in oklab, #999 30%, transparent);
	border: 0;
	position: fixed;
	bottom: 1rem;
	right: 1rem;
	width: 37.5rem;
	overflow: auto;
	max-width: calc(100% - 2rem);
	max-height: calc(100vh - 2rem);
	transform: translate(0, -1.25rem);
	opacity: 0;
	animation: silktide-slideInDown 350ms ease-out forwards;
	animation-delay: 0.3s;

	-webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,)
		var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,)
		var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,)
		var(--tw-backdrop-sepia,);
	backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,)
		var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,)
		var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,)
		var(--tw-backdrop-sepia,);
}

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

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

#silktide-banner.bottomLeft {
	bottom: 1rem;
	left: 1rem;
	position: fixed;
}

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

#silktide-banner .preferences {
	border: 1px solid white;
	background: transparent;
	color: white;
}
#silktide-banner .preferences:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

#silktide-banner p {
	font-size: 16px;
	line-height: 24px;
	margin: 0px 0px 15px;
}

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

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

#silktide-banner a.silktide-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	fill: var(--color-typography);
	margin-left: auto;
	width: 48px;
	height: 48px;
}
#silktide-banner a.silktide-logo:hover {
	fill: white;
}

#silktide-banner .actions {
	display: flex;
	gap: 16px;
	flex-direction: column;
	margin-top: 24px;
}

@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;
}

/* --------------------------------
  Modal
-------------------------------- */
#silktide-modal {
	display: none;
	pointer-events: auto;
	overflow: auto;
	width: 800px;
	max-width: 100%;
	max-height: 100%;
	border: 0px;
	transform: translate(0px, -20px);
	opacity: 0;
	animation: silktide-slideInUp-center 350ms ease-out forwards;
	font-family: var(--fontFamily);
	color: var(--textColor);
	flex-direction: column;
	padding: 30px;
	border-radius: var(--radius-2xl);
	box-sizing: border-box;

	background: var(--color-real-dark);

	--tw-shadow-color: color-mix(
		in oklab,
		color-mix(in oklab, var(--color-black) 60%, transparent) var(--tw-shadow-alpha),
		transparent
	);
	--tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, rgb(0 0 0 / 0.25));
	box-shadow:
		var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow),
		var(--tw-ring-shadow), var(--tw-shadow);

	-webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,)
		var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,)
		var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,)
		var(--tw-backdrop-sepia,);
	backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,)
		var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,)
		var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,)
		var(--tw-backdrop-sepia,);

	outline: 0.0625rem solid color-mix(in oklab, #999 30%, transparent);
}

/* --------------------------------
  Modal - Header
-------------------------------- */
#silktide-modal header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	gap: 16px;
}

#silktide-modal h1 {
	font-family: var(--fontFamily);
	color: white;
	font-size: 24px;
	font-weight: 500;
	margin: 0px;
}

#silktide-modal .modal-close {
	display: inline-flex;
	border: none;
	padding: 13px;
	border: 0px;
	cursor: pointer;
	outline-color: transparent;
	border-radius: 100%;
}

#silktide-modal .modal-close:hover svg {
	fill: white;
}

#silktide-modal .modal-close svg {
	fill: var(--color-typography);
}

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

#silktide-modal section {
	flex: 1;
	margin-top: 32px;
}

#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: 16px;
	line-height: 24px;
	color: var(--textColor);
	margin: 0px 0px 15px;
}

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

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

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

#silktide-modal legend {
	padding: 0px;
	margin: 0px 0px 10px;
	font-weight: 700;
	color: white;
	font-size: 1rem;
}

#silktide-modal .cookie-type-content {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1.5rem;
}

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

#silktide-modal .switch:focus-within {
	border-radius: 25px;
}

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

/* Unchecked Switch Styles */
#silktide-modal .switch__pill {
	position: relative;
	display: block;
	height: 2.125rem;
	width: 4.625rem;
	border-radius: 1.5625rem;
	background-color: var(--color-light-gray);
}

#silktide-modal .switch__dot {
	position: absolute;
	top: 7px;
	left: 7px;
	display: block;
	height: 20px;
	width: 20px;
	background: white;
	border-radius: 50%;
	transition: left 150ms ease-out;
}

#silktide-modal .switch__off,
#silktide-modal .switch__on {
	text-transform: uppercase;
	font-size: 15px;
	font-weight: 500;
	color: white;
	position: absolute;
	top: 7px;
	right: 8px;
	transition:
		right 150ms ease-out,
		opacity 150ms ease-out;
}
#silktide-modal .switch__off {
	color: var(--color-typography);
}

#silktide-modal .switch__off {
	opacity: 1;
}

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

/* Checked Switch Styles */
#silktide-modal .switch input:checked + .switch__pill {
	--tw-gradient-position: to bottom right in oklab;
	background-image: linear-gradient(var(--tw-gradient-stops));
	--tw-gradient-from: var(--color-primary) /* #dc2f28 */;
	--tw-gradient-stops: var(
		--tw-gradient-via-stops,
		var(--tw-gradient-position),
		var(--tw-gradient-from) var(--tw-gradient-from-position),
		var(--tw-gradient-to) var(--tw-gradient-to-position)
	);
	--tw-gradient-to: var(--color-primary-dark) /* #9c1b16 */;
	--tw-gradient-stops: var(
		--tw-gradient-via-stops,
		var(--tw-gradient-position),
		var(--tw-gradient-from) var(--tw-gradient-from-position),
		var(--tw-gradient-to) var(--tw-gradient-to-position)
	);
}

#silktide-modal .switch input:checked ~ .switch__dot {
	left: calc(100% - 28px);
}

#silktide-modal .switch input:checked ~ .switch__off {
	right: calc(100% - 28px);
	opacity: 0;
}

#silktide-modal .switch input:checked ~ .switch__on {
	right: calc(100% - 30px);
	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: 16px;
	margin-top: 24px;
}

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

#silktide-modal footer a {
	margin-left: auto;
	padding: 14px 0px;
	color: var(--color-typography);
	text-decoration: none;
}
#silktide-modal footer a:hover {
	color: white;
	text-decoration: underline;
}

/* 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);
	}
}
