.pw_block {
	display: flex;
	flex-direction: column;
	gap: 15px;
	line-height: 1.3;
}
.page-body .pw_block {
	background-color: #f4f4f4;
	border-radius: 0px;
	font-size: 12px;
	padding: 12px 15px;
}
.phpbb_alert .pw_block {
	margin-top: 20px;
	font-size: 12px;
	padding: 1px; /* Chrome */
	max-height: calc(100vh - 230px);
	overflow-y: auto;
}
@media (max-height: 500px), (max-width: 500px) {
	.phpbb_alert .pw_block {
		max-height: calc(100vh - 100px);
	}
}
.pw_block label {
	margin: 0;
	padding: 6px 0;
	color: inherit;
	display: flex;
	justify-content: flex-start;
	align-items: start;
}
.pw_block label > span {
	padding-inline-start: 4px;
}
.pw_block h3 {
	margin: 0;
	font-size: inherit;
}
.pw_block a[href*="payment"] {
	opacity: 0.6;
}
.pw_block input[type=text]::placeholder,
.pw_block textarea::placeholder {
	opacity: 0.6;
}
.pw_block textarea {
	height: 60px;
	resize: vertical;
}
.pw_block input[type=number] {
	max-width: 100px;
}
.pw_block .pw_line {
	display: block;
	margin: 0 0 15px;
}
.pw_block .pw_line.pw_line_first {
	font-weight: bold;
}


.pw_buy_btn {
	display: block;
	padding: 5px 15px;
	margin: 10px 2px 0;
	border-radius: 0px;
	font-size: 13px;
	transition: color 0.1s, background 0.1s;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: center;
	line-height: inherit;
	float: left;
	background: #fff;
	color: #2fb943;
	border: 1px solid #2fb943;
}
.pw_buy_btn:hover,
.pw_buy_btn:focus {
	text-decoration: none;
	color: #fff;
	background: #2fb943;
}


input.pw_price {
	max-width: 70px;
}


/* Remove extra linebreaks between the free and paid parts of the text */
body:not(.section-posting) br + br + .pw_readmore + br,
body:not(.section-posting) br + .pw_readmore + br + br {
	display: none;
}
.content > .pw_readmore:first-child + br,
.content > .pw_readmore:first-child + br + br {
	display: none;
}
/* Make the free/paid divider visible in posting preview */
.section-posting .pw_readmore {
	display: inline-block;
	width: 100%;
	border-top: 1px dashed;
}
.pw_post_shader {
	display: block;
	position: relative;
	margin-top: -60px;
	height: 60px;
	background: linear-gradient(transparent, #f4f4f4);
}
.bg1 .pw_post_shader {
	background: linear-gradient(transparent, #eee);
}
.pw_post_label {
	font-size: 1.1em;
	opacity: 0.7;
}


.pw_paypal_btn {
	border-bottom: 1px solid #a2a2a2;
	background: #fec43a;
	padding: 2px 30px;
	border-radius: 21px;
	position: relative;
	margin-left: 1px;
}
.pw_paypal_btn:focus {
	outline: none;
}
.pw_paypal_btn img {
	max-width: 120px;
}
@media(max-width: 500px) {
	.pw_paypal_btn {
		flex-grow: 1;
	}
}


.pw_selectable {
	display: inline-block;
	max-width: calc(100% - 25px);
	margin: 2px 0 0px;
	padding: 2px 3px;
	background: #fff;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: middle;
}
.phpbb_alert .pw_selectable {
	background: #e1ebf2;
}


.pw_enter_key {
	display: flex;
	gap: 15px;
}
@media (max-width: 700px) {
	.pw_enter_key {
		flex-direction: column;
	}
	.pw_enter_key .inputbox {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
}


.pw_vip_label {
	color: magenta;
	font-weight: bold;
}


/* Disable inputs after a form is submitted and show its "busy" status */
.pw_block.pw_submitted {
	opacity: 0.7;
}
.pw_block.pw_submitted .pw_paypal_btn::after {
	height: 20px;
	content: "\f1ce"; /* fa-circle-o-notch */
	font-size: 20px;
	line-height: 20px;
	font-family: FontAwesome;
	animation: fa-spin 0.7s infinite linear;
	position: absolute;
	right: -35px;
	top: 11px;
}
@media (max-width: 500px) {
	.pw_block.pw_submitted .pw_paypal_btn::after {
		right: 15px;
	}
}
.pw_block.pw_submitted input,
.pw_block.pw_submitted button,
.pw_block.pw_submitted label,
.pw_block.pw_submitted a {
	pointer-events: none;
}
.pw_block.pw_submitted button {
	filter: grayscale(1);
}