/**
copied from original CSS
 */

/* Base */

.sapCpRuntime {
	width: 100%;
	height: 100%;
}

.sapCpRuntime .sapCpBody {
	margin: 0;
	width: 100%;
	height: 100%;
}


/* Content Page */

.sapCpContentPage {
	box-sizing: border-box;
	width: 100%;
}

.sapCpContentPageLoading {
	opacity: 0;
	cursor: wait;
}


/* Layout */

.sapCpLayout {
	box-sizing: inherit;
	width: 100%;
	padding: 0;
}


/* Widget */

.sapCpWidget {
	box-sizing: inherit;
	min-height: 30px;
	border-radius: 4px;
	padding-bottom: 15px;
}

.sapCpContentPage .sapCpWidget.sapCpWidgetHidden {
	display: none;
}
.sapCpWidgetMandatoryMissing,
.sapCpWidgetInvalid {
	background-color: transparent;
}

.sapCpDropDown,
.sapCpInput {
	width: 100%;
	border-radius: 4px;
}
.sapCpWidgetMandatoryMissing input,
.sapCpWidgetInvalid input {
	border: solid 1px #ff5252 !important;
	outline: 0;
}

.sapCpWidgetContentLeft {
	min-height: 1px;
	float: left;
	text-align: right;
}

.sapCpWidgetContentRight {
	min-height: 1px;
	text-align: left;
	vertical-align: top;
}

.sapCRLWidgetFixContent {
	clear: both;
}

.sapCpWidgetContentNoIndent {
	min-height: 1px;
}

.sapLandingPage .sapCpWidgetContentLeft .sapCpLabel {
	margin-top: 6px;
	margin-right: 10px;
	min-width: 70px;
}

.sapLandingPage .sapCpWidget:not(.sapCpCheckBoxElementWidget) .sapCpWidgetContentLeft .sapCpLabel {
	margin-top: 6px;
	margin-right: 10px;
	min-width: 70px;
}

.sapCpWidget:not(.sapCpCheckBoxElementWidget) .sapCpWidgetContentLeft .sapCpLabel {
	margin-top: 8px;
	margin-right: 10px;
}


/* Button Widget */

.sapCpButtonWidget .sapCpButtonWidgetExtraText {
	display: block;
	padding-top: 5px;
}

.sapCpButtonWidget .sapCpMissingMandatoryFieldLabel {
	display: block;
	color: #ff5252;
}

.sapCpContentPage:not(.sapCpMissingMandatoryField) .sapCpButtonWidget .sapCpMissingMandatoryFieldLabel {
	display: none;
}

.sapCpButtonWidget .sapCpErrorMessageText {
	display: block;
	color: #ff5252;
}

.sapCpContentPage:not(.sapCpSubmitError) .sapCpButtonWidget .sapCpErrorMessageText {
	display: none;
}

.sapCpButtonWidget .sapCpSuccessMessageLabel {
	display: block;
	color: green;
}

.sapCpContentPage:not(.sapCpSubmitCompleted) .sapCpButtonWidget .sapCpSuccessMessageLabel {
	display: none;
}

.sapCpContentPage:not(.sapCpSubmitCompleted) .sapCpButtonWidget .sapCpButtonWidgetDownloadLink {
	display: none;
}

.sapCpButtonWidget .sapCpButtonWidgetDownloadLink:not(.sapCpButtonWidgetDownloadLinkVisible) {
	display: none;
}

.sapCpButtonWidget.sapCpButtonWidgetLoading button {
	cursor: wait;
}


/* Label */

.sapCpLabel {
	position: relative;
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sapCpLabelRequiredBefore {
	padding-left: 10px;
}

.sapCpLabel:not(.sapCpLabelRequiredBefore):after {
	content: "*";
	visibility: hidden;
}

.sapCpWidgetContentLeft .sapCpLabel:not(.sapCpLabelRequiredBefore):after {
	position: absolute;
}

.sapCpLabel:not(.sapCpLabelRequiredBefore).sapCpLabelRequired:after {
	visibility: visible;
}

.sapCpLabel.sapCpLabelRequiredBefore:before {
	content: "*";
	visibility: hidden;
	position: absolute;
	left: 1px;
	top: -2px;
}

.sapCpLabel.sapCpLabelRequiredBefore.sapCpLabelRequired:before {
	visibility: visible;
}

.sapCpCheckBox ~ .sapCpLabel {
	margin-left: 2px;
}

.sapCpCheckBox + .sapCpLabel {
	display: block;
}


/* Input */

.sapCpInput {
	padding: 4px 8px;
	text-overflow: ellipsis;
}


/* CheckBox */

.sapCpCheckBox {
	vertical-align: top;
	min-width: 20px;
	float: left;
}

/* DropDown */

.sapCpDropDown {
	padding: 4px 8px;
	min-width: 215px;
}

.sapCpDropDown>option {
	color: #000000;
}

.sapCpDropDownPlaceholder {
	color: #212121;
}


/* Date Picker */

.sapCpDatePicker option {
	color: #000000;
}

.sapCpDatePicker .sapCpDropDown~.sapCpDropDown {
	margin-left: 10px;
}

.sapCpDatePicker .sapCpDatePickerDay {
	min-width: 50px;
	width: 23%;
	max-width: 100px;
}

.sapCpInputWidget .sapCpDatePickerMonth {
	min-width: 100px;
	width: 43%;
	max-width: 200px;
}

.sapCpInputWidget .sapCpDatePickerYear {
	min-width: 50px;
	width: 23%;
	max-width: 100px;
}


/* Button */

.sapCpButton {

	padding: 6px 10px;
}


/*  For usage in landing Pages */

.sapCpContentPage {
	box-sizing: border-box;
}

.sapCpContentPage *,
.sapCpContentPage *:before,
.sapCpContentPage *:after {
	box-sizing: inherit;
}


.sapLandingPage .sapCpWidget input[type=checkbox] {
	-webkit-appearance: checkbox;
	margin-top: 2px;
}

.sapCpWidget input[type=checkbox] {
	-webkit-appearance: checkbox;
	margin-top: 2px;
}

.sapCpCheckBox {
	line-height: 1rem;
}

.sapCpInputWidget select {
	-webkit-appearance: menulist;
	background-image: none;
	height: 38px;
	color: inherit;
}

.sapCpInputWidget .sapCpInput {
	border: #bdbdbd solid 1px;
	height: 38px;
}
.sapCpInputWidget textarea.sapCpInput {
	border: #bdbdbd solid 1px;
	height: unset;
	min-height: 140px;
}

.sapCpLabel {
	font-weight: 400;
	color: #616161;
	line-height: 22px;
	font-size: 14px;
}

.sapCpButton {
	color: #fff;
	background-color: #ff7002;
	border: none;
	padding: 12px 28px;
	font-size: 18px;
	border-radius: 4px;
	font-weight: 400;
}


/* Responsive layout */

@media screen and (max-width: 480px) {
	/* Widget */
	.sapCpWidgetContent {
		width: 100% !important;
		text-align: left;
	}

	/* Date Picker */
	.sapCpWidgetContent .sapCpDatePicker .sapCpDatePickerDay {
		width: 23%;
	}
	.sapCpWidgetContent .sapCpDatePicker .sapCpDatePickerMonth {
		width: 43%;
	}
	.sapCpWidgetContent .sapCpDatePicker .sapCpDatePickerYear {
		width: 23%;
	}
	.sapCpWidgetContentRight {
		padding-left: 0 !important;
	}
}
.sapCpCheckBoxWidget {
	padding: 0;
}
/* add Field Layout for small fields - LPWEWS-1773 */
.sapCpContentPage .sapCpLayout {
	display: flex;
	flex-flow: wrap;
	min-height: unset;
	column-gap: 12px;
}
.sapCpContentPage .sapCpWidget {
	width: 100%;
}
.sapCpWidgetContent {
	display: flex;
	width: 100%;
}

/* only applies to tablet and desktop - LPWEWS-1773 */
@media (min-width: 768px) {
	DIV.sapCpWidget.inlineForm30 {
		flex: 1 1 calc(30% - 6px);
	}
	DIV.sapCpWidget.inlineForm50 {
		flex: 1 3 calc(50% - 6px);
	}
	DIV.sapCpWidget.inlineForm70 {
		flex: 1 1 calc(70% - 6px);
	}
}
