.popup-sim-selection,
.popup-sim-selection *,
.popup-sim-selection *::before,
.popup-sim-selection *::after {
	box-sizing: border-box;
}

.popup-sim-selection {
	position: fixed;
	z-index: 10020;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, 0.55);
}

.popup-sim-selection.is-open {
	display: flex;
}

.popup-sim-selection__dialog {
	position: relative;
	width: min(776px, 100%);
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	padding: 40px 24px 32px;
	overflow-y: auto;
	border-radius: 32px;
	outline: none;
	background: #f2f2f2;
	color: #1b1b1b;
}

.popup-sim-selection__close {
	position: absolute;
	z-index: 2;
	top: 24px;
	right: 24px;
	display: grid;
	width: 32px;
	height: 32px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 8px;
	background: transparent;
	cursor: pointer;
	transition: .2s ease;
}

.popup-sim-selection__close img {
	display: block;
	width: 18px;
	height: 18px;
}

.popup-sim-selection__step {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.popup-sim-selection__step > .popup-sim-selection__title {
	padding-right: 40px;
}

.popup-sim-selection__step[hidden] {
	display: none;
}

.popup-sim-selection__header {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-right: 40px;
}

.popup-sim-selection__title {
	margin: 0;
	font-family: 'Halvar Breit Rg', sans-serif;
	font-size: 32px;
	font-weight: 700;
	line-height: normal;
	text-transform: uppercase;
	overflow-wrap: break-word;
}

.popup-sim-selection__subtitle {
	margin: 0;
	font-family: 'Rooftop', 'Halvar Breit Rg', sans-serif;
	font-size: 16px;
	line-height: 1.2;
}

.popup-sim-selection__options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.popup-sim-selection__option {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 28px;
	grid-template-rows: auto 1fr;
	gap: 12px;
	width: 100%;
	height: 140px;
	padding: 20px;
	align-items: start;
	border: 0;
	border-radius: 20px;
	background: #ffffff;
	color: #1b1b1b;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: .2s ease;
}

.popup-sim-selection__option:hover {
	background: #ffffff;
	box-shadow: 0 4px 4px rgba(0, 0, 0, 0.04);
}

.popup-sim-selection__option:active {
	background-color: #ffffff;
	background-image: linear-gradient(rgba(27, 27, 27, 0.2), rgba(27, 27, 27, 0.2));
	box-shadow: none;
}

.popup-sim-selection__option.is-selected {
	background: #1b1b1b;
	color: #ffffff;
	box-shadow: none;
}

.popup-sim-selection__option-name {
	font-family: 'Halvar Breit Rg', sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 25px;
}

.popup-sim-selection__option-description {
	grid-column: 1 / -1;
	align-self: end;
	font-family: 'Rooftop', 'Halvar Breit Rg', sans-serif;
	font-size: 16px;
	line-height: 1.2;
}

.popup-sim-selection__radio {
	position: relative;
	display: block;
	width: 28px;
	height: 28px;
	border: 1px solid #d9d9d9;
	border-radius: 50%;
	transition: .2s ease;
}

.popup-sim-selection__option.is-selected .popup-sim-selection__radio {
	border: 7px solid #ffffff;
	background: #1b1b1b;
}

.popup-sim-selection__option:not(.is-selected):hover .popup-sim-selection__radio::after {
	position: absolute;
	inset: 5px;
	border-radius: 50%;
	background: #d9d9d9;
	content: '';
}

.popup-sim-selection__option:not(.is-selected):active .popup-sim-selection__radio {
	border: 7px solid #ffffff;
	background: transparent;
}

.popup-sim-selection__option:not(.is-selected):active .popup-sim-selection__radio::after {
	content: none;
}

.popup-sim-selection__button {
	display: flex;
	min-height: 56px;
	padding: 16px 32px;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 16px;
	color: #000000;
	font-family: 'Halvar Breit Rg', sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: normal;
	text-transform: uppercase;
	cursor: pointer;
	transition: .2s ease;
}

.popup-sim-selection__button:hover,
.popup-sim-selection__close:hover {
	filter: brightness(0.9);
}

.popup-sim-selection__close:focus-visible,
.card-new__popup-trigger:focus-visible {
	outline: 2px solid #1b1b1b;
	outline-offset: 2px;
}

.popup-sim-selection__button:focus-visible {
	outline: 0;
	box-shadow: inset 0 0 0 2px #1b1b1b;
}

.popup-sim-selection__option:focus-visible {
	outline: 2px solid #1b1b1b;
	outline-offset: 0;
	background: #ffffff;
	color: #1b1b1b;
	box-shadow: none;
}

.popup-sim-selection__option.is-selected:focus-visible .popup-sim-selection__radio {
	border: 1px solid #d9d9d9;
	background: transparent;
}

.popup-sim-selection__button--primary {
	width: 100%;
	background: #a7fc00;
}

.popup-sim-selection__button--back {
	width: 200px;
	background: #d9d9d9;
}

.popup-sim-selection__button--back:hover {
	background: #bfbfbf;
	filter: none;
}

.popup-sim-selection__button--back:active {
	background: #b7b7b7;
	filter: none;
}

.popup-sim-selection__button:disabled {
	background: #e6e6e6;
	color: #808080;
	filter: none;
	opacity: 1;
	cursor: not-allowed;
}

.popup-sim-selection__instructions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding-left: 24px;
	font-family: 'Rooftop', 'Halvar Breit Rg', sans-serif;
	font-size: 16px;
	line-height: 1.25;
}

.popup-sim-selection__actions {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 16px;
}

.card-new:has(> .card-new__popup-trigger) {
	position: relative;
}

.card-new__popup-trigger {
	position: absolute;
	z-index: 1;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: inherit;
	background: transparent;
	cursor: pointer;
	transition: .2s ease;
}

.card-new:has(> .card-new__popup-trigger) .card-new__button,
.card-new:has(> .card-new__popup-trigger) .card-new__details {
	position: relative;
	z-index: 2;
}

@media (max-width: 520px) {
	.popup-sim-selection {
		padding: 12px 0;
	}

	.popup-sim-selection__dialog {
		width: min(376px, 100%);
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
		padding: 40px 24px 32px;
		border-radius: 20px;
	}

	.popup-sim-selection__close {
		top: 16px;
		right: 16px;
		width: 24px;
		height: 24px;
	}

	.popup-sim-selection__close img {
		width: 14px;
		height: 14px;
	}

	.popup-sim-selection__header {
		gap: 4px;
		padding-right: 28px;
	}

	.popup-sim-selection__step > .popup-sim-selection__title {
		padding-right: 28px;
	}

	.popup-sim-selection__title {
		font-size: 22px;
	}

	.popup-sim-selection__options {
		gap: 8px;
	}

	.popup-sim-selection__option {
		grid-template-columns: minmax(0, 1fr) 22px;
		height: 142px;
		padding: 12px;
		border-radius: 20px;
	}

	.popup-sim-selection__option-name {
		font-size: 16px;
		line-height: 20px;
	}

	.popup-sim-selection__option-description,
	.popup-sim-selection__instructions {
		font-size: 12px;
	}

	.popup-sim-selection__radio {
		width: 22px;
		height: 22px;
	}

	.popup-sim-selection__option.is-selected .popup-sim-selection__radio {
		border-width: 5px;
	}

	.popup-sim-selection__option:not(.is-selected):active .popup-sim-selection__radio {
		border-width: 5px;
	}

	.popup-sim-selection__option.is-selected:focus-visible .popup-sim-selection__radio {
		border-width: 1px;
	}

	.popup-sim-selection__button {
		min-height: 48px;
		padding: 16px 20px;
		font-size: 14px;
	}

	.popup-sim-selection__button--back {
		width: 96px;
	}

	.popup-sim-selection__instructions {
		padding-left: 18px;
	}

	.popup-sim-selection__actions {
		gap: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.popup-sim-selection__option,
	.popup-sim-selection__button {
		transition: none;
	}
}
