body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.popup-container {
	display: inline-flex;
	.button {
		height: 40px;
		line-height: 40px;
		background: blue;
		padding: 0 15px;
		border-radius: 3px;
		font-size: 14px;
		color: #fff;
		cursor: pointer;
	}
	.popup {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(#000,.5);
		z-index: 10;
		opacity: 0;
		visibility: hidden;
		transition: 400ms all;
		>label {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			cursor: pointer;
		}
		.inner {
			position: absolute;
			top: 100%;
			left: 50%;
			transform: translate(-50%, -50%);
			background: #fff;
			min-width: 300px;
			box-sizing: border-box;
			transition: 400ms all;
			z-index: 10;
			max-height: 100%;
			overflow: auto;
			.title {
				height: 40px;
				display: flex;
				justify-content: space-between;
				align-items: center;
				padding: 0 15px;
				position: sticky;
				top: 0;
				background: #fff;
				h6 {
					font-size: 15px;
					font-weight: 500;
				}
				label {
					font-size: 14px;
					color: #999;
					cursor: pointer;
					&:hover {
						color: #222;
					}
				}
			}
			.content {
				padding: 5px 15px 15px;
				ul {
					li {
						margin-bottom: 15px;
						&:last-child {
							margin-bottom: 0;
						}
						input {
							width: 100%;
							box-sizing: border-box;
							border: none;
							border-bottom: 1px solid #ddd;
							padding-bottom: 10px;
							font-size: 12px;
							&:focus {
								outline: 0;
								border-color: blue;
							}
						}
						button {
							width: 100%;
							height: 30px;
							border-radius: 3px;
							border: none;
							background: blue;
							color: #fff;
							font-size: 13px;
							cursor: pointer;
						}
					}
				}
				p {
					font-size: 13px;
					line-height: 130%;
					margin-bottom: 15px;
					&:last-child {
						margin-bottom: 0;
					}
				}
				.close-btn {
					margin-top: 15px;
					padding-top: 15px;
					border-top: 1px solid #ddd;
					label {
						background: rgba(#000, .05);
						display: block;
						line-height: 30px;
						text-align: center;
						font-size: 13px;
						color: #444;
						border-radius: 3px;
						cursor: pointer;
						&:hover {
							background: rgba(#000,.1);
						}
					}
				}
			}
		}
	}
	>input {
		position: absolute;
		left: -9999px;
		opacity: 0;
		&:checked + .popup {
			opacity: 1;
			visibility: visible;
			.inner {
				top: 50%;
			}
		}
	}
}