/**
 * Samsung Internet install helper.
 * Tokens come from Automatic.css so the sheet matches the rest of the site.
 */

.sib {
	position: fixed;
	z-index: 5002;
	left: 12px;
	right: 12px;
	bottom: calc( 12px + var( --sib-offset, 0px ) + env( safe-area-inset-bottom, 0px ) );
	max-width: 520px;
	margin-inline: auto;
	padding: 16px 16px 14px;
	box-sizing: border-box;
	background: var( --white, #ffffff );
	border: 1px solid rgba( 4, 88, 166, 0.14 );
	border-radius: var( --radius-l, 7.5px );
	box-shadow: 0 10px 30px rgba( 4, 88, 166, 0.18 );
	font-family: var( --text-font-family, Inter, sans-serif );
	color: var( --base, #3b4554 );
	opacity: 0;
	transform: translateY( 14px );
	transition: opacity 260ms cubic-bezier( 0.2, 0.7, 0.3, 1 ), transform 260ms cubic-bezier( 0.2, 0.7, 0.3, 1 );
}

.sib.is-in {
	opacity: 1;
	transform: translateY( 0 );
}

.sib__close {
	position: absolute;
	top: 4px;
	inset-inline-end: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: var( --radius-m, 5px );
	color: rgba( 59, 69, 84, 0.55 );
	cursor: pointer;
}

.sib__close:hover,
.sib__close:focus-visible {
	color: var( --primary, #0458a6 );
	background: rgba( 4, 88, 166, 0.08 );
}

.sib__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-inline-end: 40px;
}

.sib__icon {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: var( --radius-m, 5px );
	object-fit: contain;
	background: rgba( 4, 88, 166, 0.06 );
}

.sib__headtext {
	min-width: 0;
}

.sib__title {
	margin: 0;
	font-size: 16px;
	line-height: 1.15;
	font-weight: 700;
	color: var( --primary, #0458a6 );
}

.sib__sub {
	margin: 2px 0 0;
	font-size: 13px;
	line-height: 1.3;
	color: rgba( 59, 69, 84, 0.72 );
}

.sib__note {
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 1.5;
}

.sib__cta {
	display: block;
	margin-top: 14px;
	padding: 12px 16px;
	background: var( --primary, #0458a6 );
	color: var( --white, #ffffff );
	border-radius: var( --radius-m, 5px );
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 150ms ease, transform 100ms ease;
}

.sib__cta:hover,
.sib__cta:focus-visible {
	background: var( --primary-hover, #0564bd );
	color: var( --white, #ffffff );
}

.sib__cta:active {
	transform: translateY( 1px );
}

.sib__alt {
	margin-top: 10px;
	font-size: 13px;
}

.sib__alt > summary {
	list-style: none;
	padding: 4px 0;
	color: var( --primary, #0458a6 );
	font-weight: 600;
	cursor: pointer;
}

.sib__alt > summary::-webkit-details-marker {
	display: none;
}

.sib__steps {
	margin: 6px 0 0;
	padding-inline-start: 20px;
	line-height: 1.5;
}

.sib__steps li + li {
	margin-top: 3px;
}

.sib__warn {
	margin: 8px 0 0;
	padding-inline-start: 10px;
	border-inline-start: 2px solid var( --secondary, #cf2727 );
	font-size: 12px;
	line-height: 1.45;
	color: rgba( 59, 69, 84, 0.8 );
}

@media ( prefers-color-scheme: dark ) {
	.sib {
		background: #101822;
		border-color: rgba( 180, 218, 253, 0.18 );
		color: #dde5ee;
		box-shadow: 0 10px 30px rgba( 0, 0, 0, 0.45 );
	}

	.sib__title {
		color: var( --primary-light, #b4dafd );
	}

	.sib__sub,
	.sib__warn {
		color: rgba( 221, 229, 238, 0.72 );
	}

	.sib__close {
		color: rgba( 221, 229, 238, 0.6 );
	}

	.sib__alt > summary {
		color: var( --primary-light, #b4dafd );
	}

	.sib__icon {
		background: rgba( 180, 218, 253, 0.1 );
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.sib {
		transition: none;
		transform: none;
	}
}
