/*
 * NJPG Core styles — only what the site's own stylesheets don't cover.
 */

/* Plan List page: the plans block sits beside the account column, so lay
   the cards two per row there. The theme does the same on the My Account
   page, where the content area is also narrower. */
@media (min-width: 768px) {
	.wp-block-column .hp-membership-plans.hp-grid.hp-block .hp-row {
		align-items: stretch;
	}

	.wp-block-column .hp-membership-plans.hp-grid.hp-block .hp-row .hp-grid__item {
		width: 100% !important;
		flex-basis: 50%;
		max-width: 50%;
	}

	.wp-block-column .hp-membership-plans.hp-grid.hp-block .hp-row .hp-membership-plan--view-block {
		height: 100%;
	}
}

/* Account navigation for visitors who are not signed in yet. */
.njpg-account-sidebar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Sign-in: Caps Lock hint under the password box (added by sign-in.js). */
.njpg-caps-hint {
	display: none;
	margin-top: 6px;
	font-size: 13px;
	color: #b45309;
}

/* Edit posting: kept down because the membership ended. */
.hp-listing__action--membership {
	font-size: 14px;
	color: #595959;
}

/* Memberships on the My Listings account page. */
.njpg-memberships .hp-membership__actions--primary {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin-top: 12px;
}

.njpg-memberships .hp-membership__actions--primary .hp-link {
	cursor: pointer;
}

.njpg-memberships .hp-membership__status {
	margin-top: 8px;
}

.njpg-membership__covers {
	margin: 6px 0 0;
	font-size: 14px;
	color: #595959;
}

.njpg-membership__note {
	margin: 6px 0 0;
	font-size: 14px;
	color: #b45309;
}

.njpg-membership-confirm {
	margin-top: 14px;
	padding: 14px 16px;
	border: 1px solid #e5c678;
	border-radius: 6px;
	background: #fffbea;
}

.njpg-membership-confirm[hidden] {
	display: none;
}

.njpg-membership-confirm p {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.5;
}

.njpg-membership-confirm__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.njpg-membership-confirm__message {
	margin-top: 10px;
	font-size: 14px;
	color: #b3261e;
}

.njpg-membership-confirm__message:empty {
	display: none;
}

/* Address forms: help under the street box, and what the ZIP code resolved to. */
.njpg-field-help,
.njpg-zip-hint {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.4;
	color: #595959;
}

.njpg-zip-hint.is-unknown {
	color: #b3261e;
}

/* Memberships page: a payment that did not go through, and the way to finish it. */
.njpg-membership__note--unpaid {
	color: #b3261e;
}

.njpg-membership__hint {
	margin: 4px 0 0;
	font-size: 13px;
	color: #595959;
}

.njpg-memberships .njpg-membership__pay {
	padding: 6px 14px;
	border-radius: 4px;
	background: #fdd42b;
	color: #1c1c1c;
	font-weight: 600;
}
