.tippy-box {
	color: #333;
	background: #e2e4e7;
	border: 2px solid #0073aa;
	font-size: 0.9rem;
	padding: 0.5rem;
	text-align: initial;
}

.tippy-box[x-placement^="right"] [x-arrow] {
	border-right: 9px solid #0073aa;
	border-top: 9px solid transparent;
	border-bottom: 9px solid transparent;
	left: -9px;
}

.tippy-box[x-placement^="left"] [x-arrow] {
	border-left: 9px solid #0073aa;
	border-top: 9px solid transparent;
	border-bottom: 9px solid transparent;
	right: -9px;
}

.component-attributions-modal {
	--component-top-offset: 120px; /* Below inline toolbar */
	--component-bottom-offset: 32px;
	position: fixed !important;
	top: var(--component-top-offset) !important;
	bottom: var(--component-bottom-offset) !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
	max-height: calc(100vh - var(--component-top-offset) - var(--component-bottom-offset)) !important;

	.form-row {
		display: flex;
		flex-wrap: wrap;
		margin-right: -5px;
		margin-left: -5px;
		margin-bottom: 15px;

		> .col {
			flex: 0 0 100%;
			max-width: 100%;
			padding-right: 5px;
			padding-left: 5px;
			box-sizing: border-box;

			&.mb15 {
				margin-bottom: 15px;
			}

			p {
				margin: 0 0 5px 0;
			}
		}
	}

	.form-group {
		display: flex;
		flex: 0 0 auto;
		flex-direction: column;
		flex-wrap: wrap;
		margin-bottom: 1rem;

		label {
			font-weight: 400;
			display: inline-flex;
			align-items: center;
			margin-bottom: 0.5rem;
		}
	}

	.inline {
		label {
			font-weight: 400;
			margin-bottom: 0.5rem;
		}

		input {
			width: 100%;
		}
	}

	.form-control {
		display: block;
		padding: 3px 5px;
		font-size: 1rem;
		font-weight: 400;
		line-height: 1.5;

		&:required {
			border-color: #cc1818;
			box-shadow: 0 0 0 1px #cc1818;
		}
	}

	textarea.form-control {
		height: auto;
	}

	select.form-control {
		width: 100%;
		max-width: 100%;
	}

	.component-help-button {
		color: #0073aa;
		padding: 0 0 0 5px;
	}

	.form-control__help {
		color: #cc1818;
		font-size: 12px;
		font-weight: normal;
		margin-top: 4px;
		margin-bottom: 0;
	}

	.component-modal__footer {
		box-sizing: border-box;
		border-bottom: 1px solid #e2e4e7;
		display: flex;
		flex-direction: row;
		justify-content: flex-end;
		background: #fff;
		align-items: center;
		height: 56px;
		margin: 0 -24px 12px;
		padding: 0 24px;

		.is-link {
			margin-right: 6px;
		}
	}

	.attribution-preview__title {
		font-weight: 600;
		display: inline-block;
		margin-bottom: 0.5rem;
	}

	.attribution-preview__body {
		padding: 6px 8px;
		margin-bottom: 1em;
		box-shadow: 0 0 0 transparent;
		transition: box-shadow 0.1s linear;
		border: 1px solid #e2e4e7;
		min-height: 18px;

		a {
			color: #000;
		}
	}

	.attribution-preview__notice {
		margin: 0;

		.components-button {
			display: block;
			margin-top: 4px;
		}
	}

	.attribution-plugin {
		background-color: #f6f7f7;
		padding: 6px 8px;

		a {
			color: #000 !important;
		}
	}
}

.component-attributions-list {
	li > div {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.components-toolbar {
		border: none;
	}
}

.flexible-modal {
	position: fixed !important;
	border: 1px solid #ddd !important;
	z-index: 99999 !important;
	box-shadow: 0 6px 30px rgba(0,0,0,.2);
	transform: translateX(-50%);
	max-width: 100%;

	@media(max-width: 991px) {
		top: 172px !important;
		height: 100% !important;
	}

	&-drag-area {
		height: 60px !important;
		left: 0;
		cursor: move;
		background: #fff !important;
		border-bottom: 1px solid #ddd;
		color: #000;
		z-index: 2;
		max-width: 100%;

		&-left,
		&-right,
		&-bottom {
			display: none;
			height: 0 !important;
		}
	}

	.header {
		display: flex;
		flex-flow: row wrap;
		align-items: center;
		justify-content: space-between;
		height: 60px;
		padding: 0 32px;
		z-index: 2;

		h3,
		button {
			position: relative;
			z-index: 3;
		}

		h3 {
			margin: 0;
			font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
			font-size: 1rem;
			font-weight: 600;
			line-height: 1;
			color: #1d2327;
		}

		button {
			position: relative;
			padding: 6px;
			min-width: 36px;
			justify-content: center;
			background-color: transparent;
			border: 0;
			padding: 0;
			color: #1e1e1e;
			cursor: pointer;
		}
	}

	&-resizer {
		display: none;
	}

	.body {
		padding: 32px;
		background-color: #fff;
		height: 536px;
		max-height: calc(100vh - 300px);
		overflow-y: auto;
		overflow-x: hidden;

		@media(max-width: 991px) {
			height: calc(100% - 60px - 172px);
		}
	}
}

#adaptedFromHeading {
	margin-top: 0;
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	line-height: 1;

	&:hover {
		cursor: pointer;
	}
}
