/* Dekoma supplier portal chrome — inspired by dekoma.eu (header + footer only). */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

body:not(.dekoma-tds-canvas) {
	font-family: Inter, Helvetica Neue, Helvetica, Arial, sans-serif;
	color: #1a1a1a;
	background: #fff;
	margin: 0;
}

body:not(.dekoma-tds-canvas) .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.dk-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: #fff;
	border-bottom: 1px solid #ececec;
}

.dk-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: 72px;
	padding: 0 28px;
	max-width: 1400px;
	margin: 0 auto;
}

.dk-header__side {
	display: flex;
	gap: 28px;
	align-items: center;
	flex-wrap: wrap;
}

.dk-header__side--right {
	justify-content: flex-end;
}

.dk-header__side a {
	color: #1a1a1a;
	text-decoration: none;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 500;
}

.dk-header__side a:hover {
	opacity: 0.55;
}

.dk-mark {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	text-decoration: none;
	color: #111;
	line-height: 1;
}

.dk-mark__word {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.42em;
	padding-left: 0.42em;
}

.dk-mark__reg {
	font-size: 8px;
	margin-top: -2px;
	letter-spacing: 0;
}

.dk-footer {
	background: #1c1c1c;
	color: #f3f3f3;
	margin-top: 64px;
	padding: 48px 28px 36px;
}

.dk-footer__inner {
	max-width: 1400px;
	margin: 0 auto;
	text-align: center;
}

.dk-footer__mark {
	font-size: 13px;
	letter-spacing: 0.42em;
	font-weight: 600;
	margin: 0 0 16px;
}

.dk-footer__mark span {
	font-size: 8px;
	letter-spacing: 0;
	vertical-align: super;
}

.dk-footer__copy,
.dk-footer__links {
	margin: 0;
	font-size: 12px;
	letter-spacing: 0.04em;
	color: #bdbdbd;
}

.dk-footer__links {
	margin-top: 10px;
}

.dk-footer a {
	color: #f3f3f3;
	text-decoration: none;
}

.dk-footer a:hover {
	opacity: 0.7;
}

body:not(.dekoma-tds-canvas) .entry-footer {
	display: none;
}

body:not(.dekoma-tds-canvas) #content {
	min-height: calc(100vh - 72px - 180px);
}

body:not(.dekoma-tds-canvas) #primary,
body:not(.dekoma-tds-canvas) #main {
	max-width: 920px;
	margin: 0 auto;
	padding: 48px 24px 24px;
}

body:not(.dekoma-tds-canvas) .entry-header .entry-title {
	font-size: 28px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-align: center;
	margin: 0 auto 32px;
	text-transform: none;
}

body.page-login .entry-title,
body.page-register .entry-title,
body.logged-in.page-login .entry-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

/* WPUF login / register */
.wpuf-login-form,
.wpuf-registration-form,
form.wpuf-form-add,
#lostpasswordform,
#resetpasswordform {
	max-width: 400px;
	margin: 0 auto;
}

.wpuf-login-form label,
.wpuf-registration-form label,
.wpuf-form-add label,
#lostpasswordform label,
#resetpasswordform label {
	display: block;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 8px;
	color: #444;
}

.wpuf-login-form input[type="text"],
.wpuf-login-form input[type="password"],
.wpuf-login-form input[type="email"],
.wpuf-registration-form input[type="text"],
.wpuf-registration-form input[type="password"],
.wpuf-registration-form input[type="email"],
#lostpasswordform input[type="text"],
#resetpasswordform input[type="password"] {
	width: 100%;
	border: 0;
	border-bottom: 1px solid #cfcfcf;
	padding: 10px 0;
	margin: 0;
	font-size: 15px;
	background: transparent;
	border-radius: 0;
}

.wpuf-login-form input[type="submit"],
.wpuf-registration-form input[type="submit"],
.wpuf-form-add input[type="submit"],
#lostpasswordform input[type="submit"],
#resetpasswordform input[type="submit"] {
	display: block;
	width: 100%;
	background: #1c1c1c;
	color: #fff;
	border: 0;
	padding: 14px 20px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-size: 12px;
	cursor: pointer;
	margin-top: 8px;
}

.wpuf-login-form input[type="submit"]:hover,
.wpuf-registration-form input[type="submit"]:hover,
#lostpasswordform input[type="submit"]:hover,
#resetpasswordform input[type="submit"]:hover {
	background: #333;
}

.forgetmenot,
.wpuf-remember {
	font-size: 13px;
	margin-bottom: 16px;
}

/* "Remember me" on the left, "Lost Password" on the right */
#wpuf-login-form .wpuf-remember-forgot-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

#wpuf-login-form .wpuf-remember-me {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

#wpuf-login-form .wpuf-remember-me input,
#wpuf-login-form .wpuf-remember-me label {
	margin: 0;
}

.wpuf-login-form a,
.wpuf-registration-form a,
.login-form a {
	color: #1c1c1c !important;
	text-decoration: none;
	border-bottom: 1px solid #1c1c1c;
}

/* One rhythm for every field row: label, 8px, input, 24px to the next row */
.wpuf-login-form > p,
#lostpasswordform > p,
#resetpasswordform > p,
#registrationform ul.wpuf-form > li {
	margin: 0 0 24px;
	padding: 0;
}

/* Register form: WPUF floats labels beside the fields - stack them like the login form */
#registrationform .wpuf-label,
#registrationform .wpuf-fields {
	float: none;
	width: auto;
}

#registrationform .wpuf-label {
	font-size: 11px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 8px;
	color: #444;
}

#registrationform .wpuf-form-sub-label {
	margin: 6px 0 0;
	font-size: 10px;
	color: #888;
}

#registrationform ul.wpuf-form > li:last-child {
	margin-bottom: 0;
	font-size: 14px;
	color: #555;
}

/* Register and reset forms: WPUF wraps each password field in an inline-styled box with a show/hide eye */
#registrationform .wpuf-fields-inline,
#resetpasswordform .wpuf-fields-inline {
	width: 100% !important;
}

#registrationform .wpuf-fields-inline input,
#resetpasswordform .wpuf-fields-inline input {
	padding-right: 40px;
}

#registrationform img.wpuf-eye,
#resetpasswordform img.wpuf-eye {
	right: 0;
	margin: 0;
	transform: translateY(-50%);
	cursor: pointer;
}

/* WPUF notices and "Login | Register" links under the login, lost and reset forms */
#wpuf-login-form .wpuf-message,
#wpuf-login-form .wpuf-success {
	max-width: 400px;
	margin: 0 auto 24px;
	padding: 12px 16px;
	background: #f5f5f5;
	border: 1px solid #e0e0e0;
	border-radius: 0;
	color: #444;
	font-size: 13px;
	line-height: 1.5;
}

#wpuf-login-form .wpuf-action-links {
	max-width: 400px;
	margin: 24px auto 0;
	font-size: 14px;
	color: #555;
}

#wpuf-login-form .wpuf-action-links a {
	color: #1c1c1c !important;
	text-decoration: none;
	border-bottom: 1px solid #1c1c1c;
}

.dekoma-tds-dash {
	max-width: 960px;
	margin: 0 auto;
}

.dekoma-tds-dash__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2rem;
}

.dekoma-tds-dash__intro {
	margin: 0;
	color: #555;
	font-size: 14px;
	line-height: 1.5;
}

.dekoma-tds-btn {
	display: inline-block;
	background: #1c1c1c;
	color: #fff !important;
	padding: 12px 18px;
	text-decoration: none;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: 11px;
}

.dekoma-tds-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5rem;
	font-size: 14px;
}

.dekoma-tds-table th,
.dekoma-tds-table td {
	border-bottom: 1px solid #e6e6e6;
	padding: 14px 8px;
	text-align: left;
}

.dekoma-tds-table th {
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #777;
	font-weight: 500;
}

.dekoma-tds-table a {
	color: #1c1c1c;
}

body.home #primary {
	max-width: 480px;
}

.wpuf-error,
#wpuf-login-form .wpuf-error,
.dekoma-tds-notice.dekoma-tds-notice--lock {
	max-width: 400px;
	margin: 0 auto 24px;
	padding: 12px 16px;
	background: #f7ecec;
	border: 1px solid #e0b4b4;
	color: #5c1f1f;
	font-size: 14px;
	text-align: center;
}

@media (max-width: 720px) {
	.dk-header__inner {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 16px 18px 18px;
		text-align: center;
	}

	.dk-header__side,
	.dk-header__side--right {
		justify-content: center;
		gap: 16px;
	}

	.dk-mark {
		order: -1;
	}
}
