/* --- Popup-box --- */
.popup-wrap,
.popup-wrap-noclose,
.popup-wrap-noclick,
.popup-wrap-an {
	z-index: 3000;
	position: fixed;
	display: none;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.6);
}

	.popup-wrap-an.vue {
		display: block;
	}

/* Centred with auto margins, not translate(-50%, -50%): with an odd width or height a transform
   puts the box on half pixels and blurs its text, while layout positions are snapped to whole ones. */
.popup-box {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	margin: auto;
	height: -webkit-fit-content;
	height: fit-content;
	width: 600px;
	/* Clear of the 60% black overlay; as the SvelteKit dialogs' shadow-dialog. */
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	border-radius: 10px;
	background-color: #fff;
}

	.popup-box.popup-box-sm {
		width: 500px;
	}

	.popup-box.success .popup-box-header {
		background-color: #41bd7f;
	}



	.popup-box.popup-box-wide {
		width: 600px;
	}

	/* As the SvelteKit dialogs' header (svelte-web dialog-header.svelte): 64px, the title centred
	   in it, the close cross centred at the right. */
	.popup-box .popup-box-header {
		position: relative;
		display: flex;
		align-items: center;
		padding: 0 50px 0 25px;
		background: #3f8dcf;
		border-radius: 7px 7px 0px 0px;
		color: #fff;
		height: 64px;
	}

		.popup-box .popup-box-header.default {
			background: none;
			color: #444;
			height: 55px;
		}

		.popup-box .popup-box-header .text-muted {
			color: #fff !important;
			opacity: 0.4;
		}

		.popup-box .popup-box-header.default .text-muted {
			color: #444 !important;
			opacity: 0.4;
		}

		/* The SvelteKit dialogs' cross: Font Awesome's xmark, 24px (18px on a phone), faded on hover and shrunk while
		   pressed. The markup's "×" is hidden and the xmark drawn as a mask (the MVC pages only
		   load Font Awesome 4, which has no xmark), in a 1.25em box as Font Awesome 7 draws it. */
		/* Top to bottom of the header with the cross centred in it: no translateY, which can put
		   it on a half pixel too. */
		.popup-box .popup-box-header .close-x {
			position: absolute;
			top: 0;
			bottom: 0;
			right: 12px;
			display: flex;
			align-items: center;
			padding: 8px;
			font-size: 0;
			line-height: 0;
			color: transparent;
			text-decoration: none !important;
			transition: opacity 50ms ease;
		}

			.popup-box .popup-box-header .close-x::before {
				content: "";
				display: block;
				width: 30px;
				height: 24px;
				background-color: #fff;
				-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z'/%3E%3C/svg%3E") center / 18px 24px no-repeat;
				mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z'/%3E%3C/svg%3E") center / 18px 24px no-repeat;
				transition: transform 50ms ease;
			}

			.popup-box .popup-box-header .close-x:active::before {
				transform: scale(0.85);
			}

		.popup-box .popup-box-header.default .close-x::before {
			background-color: #999;
		}

		.popup-box .popup-box-header .close-x:hover {
			opacity: 0.7;
		}

		/* As the SvelteKit dialogs' title: 24px Inter, weight 600, 27px high, -0.03em, cut with "…".
		   The header's colour (white, #444 on .default): typography.css colours bare h1-h6 #333, which
		   made a title without .modal-title dark on the blue header on the club pages. */
		.popup-box .popup-box-header h1,
		.popup-box .popup-box-header h2 {
			min-width: 0;
			color: inherit;
			font-family: Inter, Roboto, Arial, sans-serif;
			font-size: 24px;
			font-weight: 600;
			line-height: 27px;
			letter-spacing: -0.03em;
			margin: 0px;
			padding: 0px;
			white-space: nowrap;
			overflow: hidden;
			text-overflow: ellipsis;
		}

		.popup-box .popup-box-header a:hover {
			opacity: 0.7;
		}

	.popup-box .popup-box-content {
		padding: 25px 25px 30px;
		background: #fff;
		font-size: 15px;
	}

		.popup-box .popup-box-content input[type="checkbox"],
		.popup-box .popup-box-content input[type="radio"] {
			width: 17px;
			height: 17px;
			top: 3px;
		}

		.popup-box .popup-box-content h2 {
			font-size: 20px;
			margin-top: 0;
			padding: 0;
			margin-bottom: 5px;
		}

		.popup-box .popup-box-content table p {
			line-height: 30px;
		}

	.popup-box .popup-box-footer {
		padding: 0px 25px 30px;
		background: #fff;
		border-radius: 0px 0px 7px 7px;
		text-align: right;
		overflow: hidden;
	}

		.popup-box .popup-box-footer > .btn {
			float: right;
			margin: 0px 0px 0px 5px;
		}

		.popup-box .popup-box-footer.popup-box-footer-empty {
			padding: 5px 25px;
		}

	.popup-box .btn {
		border-radius: 100px !important;
		font-size: 16px;
		height: 40px;
		line-height: 38px;
		font-weight: bold;
		padding: 0 20px;
	}

	.popup-box .input-group-btn .btn {
		border-radius: 0px 100px 100px 0px !important;
		font-size: 16px;
		line-height: 33px;
		height:35px;
		font-weight: bold;
		padding: 0 15px;
	}

	.popup-box .btn-primary, .popup-box .btn-primary:link {
		background-color: #41bd7e;
		border-color: #41bd7e;
	}

		.popup-box .btn-primary:hover,
		.popup-box .btn-primary:focus {
			background-color: #32b170;
			border-color: #32b170;
		}




	.popup-box .btn-default {
		font-weight: normal;
	}



.sending-popup {
	display: block;
}

	.sending-popup .popup-box {
		padding: 10px 0px;
		text-align: center;
	}

		.sending-popup .popup-box h1 {
			margin-bottom: 20px;
		}


.popup-box .invoice-item {
	background-color: #eee;
	padding: 9px 10px;
	overflow: hidden;
	margin-bottom: 5px;
	border-radius: 3px;
}

	.popup-box .invoice-item:last-child {
		margin-bottom: 0px;
	}
