.tps-portal {
	max-width: 720px;
	margin: 20px auto 40px;
	padding: 28px 30px 32px;
	background: #fff;
	border: 1px solid #e6e6e6;
	box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.tps-portal h2 {
	margin: 0 0 8px;
	font-size: 28px;
	letter-spacing: .02em;
}
.tps-portal-lead {
	margin: 0 0 22px;
	color: #666;
}
.tps-portal-form label {
	display: block;
	margin: 12px 0 6px;
	font-weight: 600;
	font-size: 13px;
}
.tps-portal-form label span {
	color: #c0392b;
}
.tps-portal-form input[type="text"],
.tps-portal-form input[type="email"],
.tps-portal-form input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	height: 44px;
	padding: 0 12px;
	border: 1px solid #ccc;
	border-radius: 2px;
}
.tps-portal-check {
	font-weight: 400 !important;
	margin: 14px 0 !important;
}
.tps-portal-form button {
	margin-top: 16px;
	background: #c0392b;
	color: #fff;
	border: 0;
	height: 44px;
	padding: 0 22px;
	cursor: pointer;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.tps-portal-form button:hover {
	background: #a93226;
}
.tps-portal-links {
	margin-top: 18px;
	font-size: 14px;
}
.tps-portal-msg {
	max-width: 720px;
	margin: 0 auto 16px;
	padding: 12px 14px;
}
.tps-portal-err {
	background: #fdecea;
	color: #922b21;
	border: 1px solid #f5b7b1;
}
.tps-portal-ok {
	background: #eafaf1;
	color: #196f3d;
	border: 1px solid #a9dfbf;
}
.tps-portal-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 18px;
}
.tps-portal-logout {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid #ccc;
	color: #333;
	text-decoration: none;
	font-size: 13px;
	white-space: nowrap;
}
.tps-portal-empty {
	padding: 16px;
	background: #fafafa;
	border: 1px dashed #ccc;
}
.tps-portal-list {
	display: grid;
	gap: 14px;
}
.tps-portal-card {
	border: 1px solid #eee;
	padding: 16px 18px;
	background: #fafafa;
}
.tps-portal-card-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	gap: 10px;
}
.tps-portal-card-top span {
	color: #666;
	font-weight: 400;
	margin-left: 8px;
}
.tps-portal-card ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tps-portal-card li {
	padding: 5px 0;
	border-top: 1px solid #eee;
	font-size: 14px;
}
.tps-portal-card li span {
	display: inline-block;
	min-width: 96px;
	color: #888;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.tps-status {
	font-style: normal;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 4px 8px;
}
.tps-status.is-paid {
	background: #eafaf1;
	color: #196f3d;
}
.tps-status.is-unpaid {
	background: #fef9e7;
	color: #9a7d0a;
}
.tps-portal-dash {
	max-width: 860px;
}

/* Account menu shown to logged-in clients ---------------------------------------------------- */
.tps-portal-menu {
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	margin: 0 -30px 22px;
	padding: 0 30px;
	background: #1c1c1c;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.tps-portal-menu::-webkit-scrollbar { display: none; }
.tps-portal-menu a {
	flex: 0 0 auto;
	display: block;
	padding: 14px 16px;
	color: #e9e9e9;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
}
.tps-portal-menu a:hover,
.tps-portal-menu a:focus { color: #fff; background: #2b2b2b; }
.tps-portal-menu a.is-active { color: #fff; border-bottom-color: #c0392b; }
.tps-portal-menu a.tps-portal-menu-out { margin-left: auto; color: #f1948a; }
.tps-portal-sub { margin: 0 0 14px; font-size: 18px; letter-spacing: .02em; }
.tps-portal-sub span { color: #888; font-weight: 400; font-size: 15px; }
html { scroll-behavior: smooth; }
@media (max-width: 600px) {
	.tps-portal-menu { margin: 0 -18px 18px; padding: 0 10px; }
	.tps-portal-menu a { padding: 13px 12px; font-size: 12px; }
	.tps-portal-menu a.tps-portal-menu-out { margin-left: 0; }
}

/* My Profile page ----------------------------------------------------------------------------- */
.tps-portal-profile { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tps-portal-section { padding: 18px 20px 22px; border: 1px solid #eee; background: #fafafa; }
.tps-portal-section .tps-portal-sub { margin-top: 0; }
.tps-portal-form input[type="text"]:focus,
.tps-portal-form input[type="email"]:focus,
.tps-portal-form input[type="password"]:focus { outline: 2px solid #c0392b33; border-color: #c0392b; }
.tps-portal-readonly { background: #eee; color: #666; cursor: not-allowed; }
.tps-portal-help { margin: 8px 0 0; font-size: 12px; color: #777; line-height: 1.5; }
@media (max-width: 760px) { .tps-portal-profile { grid-template-columns: 1fr; } }

/* polish: readable field text, menu that fits the 860px card */
.tps-portal-form input[type="text"],
.tps-portal-form input[type="email"],
.tps-portal-form input[type="password"] { color: #222; background: #fff; }
.tps-portal-form input.tps-portal-readonly { background: #eee; color: #666; }
.tps-portal-menu a { padding: 14px 13px; letter-spacing: .02em; }

/* the theme styles every input with pale grey text; keep the portal's fields readable */
.tps-portal .tps-portal-form input[type="text"],
.tps-portal .tps-portal-form input[type="email"],
.tps-portal .tps-portal-form input[type="password"] { color: #222 !important; -webkit-text-fill-color: #222; }
.tps-portal .tps-portal-form input.tps-portal-readonly { color: #666 !important; -webkit-text-fill-color: #666; }
.tps-portal .tps-portal-form input::placeholder { color: #999; -webkit-text-fill-color: #999; }

/* the theme gives inputs about 92% width and a 25px bottom margin; fill the form and keep spacing tidy */
.tps-portal .tps-portal-form input[type="text"],
.tps-portal .tps-portal-form input[type="email"],
.tps-portal .tps-portal-form input[type="password"] { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; margin-bottom: 8px !important; }

/* Log out link at the bottom of the account pages */
.tps-portal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tps-portal-sep { color: #bbb; }
.tps-portal-logout-link { color: #c0392b; font-weight: 600; }
@media (max-width: 600px) {
	.tps-portal-links { margin-top: 22px; padding-top: 16px; border-top: 1px solid #eee; font-size: 15px; }
	.tps-portal-logout-link { padding: 6px 0; }
}

.tps-portal .tps-portal-links a.tps-portal-logout-link { color: #c0392b !important; }
.tps-portal .tps-portal-links a.tps-portal-logout-link:hover { color: #922b21 !important; }
