/**
 * Contact form (Velsor Contact, mockup "Kontakt" version 3). Colours from the shop tokens when the theme has them
 * (tokens.css), with plain fallbacks. The width comes from the page around the form.
 */

.velsor-contact {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
	font-size: 15px;
	color: var(--sz-ink, #141414);
}
.velsor-contact [hidden] {
	display: none !important;
}
.velsor-contact p {
	margin: 0;
}

/* Fields */
.velsor-contact__field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.velsor-contact__label {
	display: block;
	margin: 0;
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	color: var(--sz-ink, #141414);
}
.velsor-contact__optional {
	font-weight: 400;
	color: var(--sz-mute, #5b6270);
}
.velsor-contact .velsor-contact__input,
.velsor-contact .velsor-contact__select,
.velsor-contact .velsor-contact__area {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	margin: 6px 0 0;
	padding: 0 14px;
	border: 1px solid var(--sz-field, #c9ced9);
	border-radius: var(--sz-radius, 6px);
	background-color: #fff;
	font-family: inherit;
	font-size: 15px;
	line-height: 21px;
	color: var(--sz-ink, #141414);
	box-shadow: none;
	transition: border-color 0.15s ease-out;
}
.velsor-contact .velsor-contact__select {
	padding-right: 42px;
	-webkit-appearance: none;
	appearance: none;
	background-image: var(--sz-chevron, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b3a67' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"));
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px 18px;
	cursor: pointer;
}
.velsor-contact .velsor-contact__area {
	display: block;
	min-height: 140px;
	padding: 12px 14px;
	line-height: 23px;
	resize: vertical;
}
.velsor-contact .velsor-contact__input:hover,
.velsor-contact .velsor-contact__select:hover,
.velsor-contact .velsor-contact__area:hover {
	border-color: var(--sz-neutral, #9aa1b1);
}
.velsor-contact .velsor-contact__input:focus,
.velsor-contact .velsor-contact__select:focus,
.velsor-contact .velsor-contact__area:focus {
	border-color: var(--sz-navy, #2b3a67);
	outline: none;
	box-shadow: 0 0 0 1px var(--sz-navy, #2b3a67), 0 0 0 4px rgba(36, 145, 255, 0.25);
}
.velsor-contact .has-error .velsor-contact__input,
.velsor-contact .has-error .velsor-contact__select,
.velsor-contact .has-error .velsor-contact__area {
	border-color: var(--sz-error, #b3261e);
	box-shadow: 0 0 0 1px var(--sz-error, #b3261e);
}
.velsor-contact .has-error .velsor-contact__input:focus,
.velsor-contact .has-error .velsor-contact__select:focus,
.velsor-contact .has-error .velsor-contact__area:focus {
	box-shadow: 0 0 0 1px var(--sz-error, #b3261e), 0 0 0 4px rgba(179, 38, 30, 0.18);
}
.velsor-contact .velsor-contact__hint,
.velsor-contact .velsor-contact__under {
	margin-top: 6px;
	font-size: 13px;
	line-height: 18px;
	color: var(--sz-mute, #5b6270);
}
.velsor-contact .velsor-contact__under {
	display: flex;
	gap: 12px;
}
.velsor-contact__count {
	margin-left: auto;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.velsor-contact__count.is-near {
	color: var(--sz-out, #8a4b00);
}
.velsor-contact .velsor-contact__error {
	display: flex;
	gap: 6px;
	align-items: flex-start;
	margin-top: 6px;
	font-size: 13px;
	line-height: 18px;
	color: var(--sz-error, #b3261e);
}
.velsor-contact .velsor-contact__error:empty {
	display: none;
}
.velsor-contact .velsor-contact__error::before,
.velsor-contact__summary-title::before,
.velsor-contact .velsor-contact__alert::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 1px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5'/%3E%3Ccircle cx='12' cy='16.5' r='0.6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5'/%3E%3Ccircle cx='12' cy='16.5' r='0.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.velsor-contact .velsor-contact__note {
	padding: 12px 14px;
	border-left: 3px solid var(--sz-navy, #2b3a67);
	border-radius: 0 8px 8px 0;
	background: var(--sz-bg2, #f5f6f9);
	font-size: 14px;
	line-height: 21px;
	color: var(--sz-ink, #141414);
}

/* Logged-in customer */
.velsor-contact__account {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 12px 14px;
	border-radius: 8px;
	background: var(--sz-bg2, #f5f6f9);
	font-size: 14px;
	line-height: 20px;
	color: var(--sz-ink2, #444a57);
}
.velsor-contact__account::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: var(--sz-navy, #2b3a67);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 20.5a7.5 7.5 0 0 1 15 0'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 20.5a7.5 7.5 0 0 1 15 0'/%3E%3C/svg%3E") center / contain no-repeat;
}
.velsor-contact__account strong {
	color: var(--sz-ink, #141414);
}
.velsor-contact__account a {
	color: var(--sz-navy, #2b3a67);
	text-decoration: underline;
}

/* Attachments */
.velsor-contact .velsor-contact__why {
	margin-top: 2px;
	font-size: 13px;
	line-height: 18px;
	color: var(--sz-mute, #5b6270);
}
.velsor-contact__attach-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	align-items: center;
	margin-top: 8px;
}
.velsor-contact.has-js .velsor-contact__attach {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--sz-field, #c9ced9);
	border-radius: var(--sz-radius, 6px);
	background: #fff;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--sz-navy, #2b3a67);
	cursor: pointer;
}
.velsor-contact.has-js .velsor-contact__attach:hover {
	border-color: var(--sz-navy, #2b3a67);
}
.velsor-contact.has-js .velsor-contact__attach:focus-within {
	border-color: var(--sz-navy, #2b3a67);
	box-shadow: 0 0 0 1px var(--sz-navy, #2b3a67), 0 0 0 4px rgba(36, 145, 255, 0.25);
}
.velsor-contact.has-js .velsor-contact__file {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
.velsor-contact:not(.has-js) .velsor-contact__attach > :not(input) {
	display: none;
}
.velsor-contact__icon {
	flex: none;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.velsor-contact__limits {
	font-size: 12.5px;
	line-height: 18px;
	color: var(--sz-mute, #5b6270);
}
.velsor-contact .velsor-contact__files {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}
.velsor-contact__chip {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 6px 6px 6px 12px;
	border: 1px solid var(--sz-line, #e6e8ee);
	border-radius: 8px;
	background: #fff;
}
.velsor-contact__chip.has-error {
	border-color: var(--sz-error, #b3261e);
}
.velsor-contact__chip-body {
	flex: 1 1 auto;
	min-width: 0;
}
.velsor-contact__chip-head {
	display: flex;
	gap: 8px;
	align-items: baseline;
}
.velsor-contact__chip-name {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 14px;
}
.velsor-contact__chip-size {
	flex: none;
	font-size: 12.5px;
	color: var(--sz-mute, #5b6270);
}
.velsor-contact__chip-error {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	line-height: 17px;
	color: var(--sz-error, #b3261e);
}
.velsor-contact button.velsor-contact__chip-remove {
	flex: none;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent center / 16px 16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444a57' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
	cursor: pointer;
}
.velsor-contact button.velsor-contact__chip-remove:hover,
.velsor-contact button.velsor-contact__chip-remove:focus-visible {
	background-color: var(--sz-chip, #eef1f7);
}

/* Errors above the form and the server error */
.velsor-contact__summary {
	padding: 14px 16px;
	border: 2px solid var(--sz-error, #b3261e);
	border-radius: 8px;
	background: #fdecea;
	color: var(--sz-error, #b3261e);
	outline: none;
}
.velsor-contact .velsor-contact__summary-title {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 15px;
	line-height: 21px;
	font-weight: 600;
}
.velsor-contact__summary-title::before {
	width: 18px;
	height: 18px;
	margin-top: 0;
}
.velsor-contact .velsor-contact__summary ul {
	margin: 6px 0 0;
	padding-left: 26px;
	font-size: 14px;
	line-height: 22px;
}
.velsor-contact__summary li {
	margin: 2px 0;
}
.velsor-contact__summary a {
	color: inherit;
	text-decoration: underline;
}
.velsor-contact .velsor-contact__alert {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	padding: 12px 14px;
	border-radius: 8px;
	background: #fdecea;
	font-size: 14px;
	line-height: 20px;
	color: var(--sz-error, #b3261e);
}
.velsor-contact .velsor-contact__alert::before {
	width: 18px;
	height: 18px;
}

/* Sending */
.velsor-contact__send {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
	padding-top: 4px;
}
.velsor-contact .velsor-contact__after {
	font-size: 13px;
	line-height: 19px;
	color: var(--sz-ink2, #444a57);
}
.velsor-contact button.velsor-contact__button {
	min-height: 50px;
	margin: 0;
	padding: 0 28px;
	border: 0;
	border-radius: var(--sz-radius, 6px);
	background: var(--sz-navy, #2b3a67);
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	cursor: pointer;
}
.velsor-contact button.velsor-contact__button:hover,
.velsor-contact button.velsor-contact__button:focus-visible {
	background: var(--sz-navy-dark, #22305a);
}
.velsor-contact button.velsor-contact__button:focus-visible {
	outline: 2px solid var(--sz-focus, #2491ff);
	outline-offset: 2px;
}
.velsor-contact button.velsor-contact__button:disabled {
	opacity: 0.85;
	cursor: progress;
}

/* Privacy policy box: the checkbox with its sentence, the information about the data under the sentence */
.velsor-contact__check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: var(--sz-ink, #141414);
	cursor: pointer;
}
.velsor-contact .velsor-contact__checkbox {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--sz-navy, #2b3a67);
	cursor: pointer;
}
.velsor-contact .velsor-contact__checkbox:focus-visible {
	outline: 2px solid var(--sz-focus, #2491ff);
	outline-offset: 2px;
}
.velsor-contact__check a {
	color: var(--sz-navy, #2b3a67);
	text-decoration: underline;
}
.velsor-contact .velsor-contact__privacy {
	max-width: 560px;
	margin-top: 4px;
	padding-left: 30px;
	font-size: 12.5px;
	line-height: 18px;
	color: var(--sz-mute, #5b6270);
}
.velsor-contact__consent .velsor-contact__error {
	padding-left: 30px;
}
.velsor-contact__consent.has-error {
	padding: 10px 12px;
	border: 2px solid var(--sz-error, #b3261e);
	border-radius: var(--sz-radius, 6px);
	background: #fdecea;
}
.velsor-contact__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Sent */
.velsor-contact__done {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px 26px;
	border-radius: 12px;
	background: var(--sz-ok-bg, #e3f2e5);
	color: var(--sz-ok-ink, #1f5f24);
	outline: none;
}
.velsor-contact h2.velsor-contact__done-title {
	display: flex;
	gap: 12px;
	align-items: center;
	margin: 0;
	font-size: 21px;
	line-height: 1.3;
	font-weight: 600;
	color: var(--sz-ok-ink, #1f5f24);
}
.velsor-contact__done-title::before {
	content: "";
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff center / 22px 22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d32' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.velsor-contact .velsor-contact__done-text {
	font-size: 15px;
	line-height: 23px;
}
.velsor-contact .velsor-contact__done-note {
	font-size: 14px;
	line-height: 21px;
}
.velsor-contact__done-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	align-items: center;
}
.velsor-contact a.velsor-contact__secondary {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1.5px solid var(--sz-navy, #2b3a67);
	border-radius: var(--sz-radius, 6px);
	font-size: 14.5px;
	font-weight: 600;
	color: var(--sz-navy, #2b3a67);
	text-decoration: none;
}
.velsor-contact a.velsor-contact__again {
	font-size: 14.5px;
	font-weight: 600;
	color: var(--sz-navy, #2b3a67);
	text-decoration: underline;
}

@media (max-width: 768px) {
	.velsor-contact {
		gap: 18px;
	}
	/* 16 px keeps phones from zooming into the field. */
	.velsor-contact .velsor-contact__input,
	.velsor-contact .velsor-contact__select,
	.velsor-contact .velsor-contact__area {
		font-size: 16px;
	}
	.velsor-contact .velsor-contact__area {
		min-height: 120px;
	}
	.velsor-contact button.velsor-contact__button {
		width: 100%;
	}
	.velsor-contact__done {
		padding: 18px;
	}
	.velsor-contact h2.velsor-contact__done-title {
		font-size: 18px;
	}
}
