/* Saved Template editor sidebar — the shortcode chip above the document panels. */
.interface-complementary-area__fill:has(.sptp-shortcode-portal) {
	display: flex;
	flex-direction: column;
}

.sptp-shortcode-portal {
	background: #fff;
	border-bottom: 1px solid #ccc;
	flex-shrink: 0;
}

.sptp-shortcode-panel {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;

	&__intro {
		margin: 0;
		font-size: 13px;
		line-height: 20px;
		color: #3d434b;
	}

	&__link {
		color: #2b5f47;
		font-weight: 500;
		text-decoration: underline;

		&:hover,
		&:focus {
			color: #20432f;
			border: none;
			box-shadow: none;
		}
	}

	&__chip {
		display: flex;
		align-items: center;
		gap: 8px;
		width: 100%;
		padding: 8px 16px;
		background: #faf9f9;
		border: 1px solid #d5d5d5;
		border-radius: 2px;
		color: #3d434b;
		font-size: 14px;
		line-height: 20px;
		text-align: left;
		cursor: pointer;
		box-shadow: none;
		transition: all 0.3s ease-in-out;

		&:hover,
		&:focus {
			background: #ececec;
			outline: none;
		}
	}

	&__code {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	&__copy {
		display: inline-flex;
		flex-shrink: 0;
		width: 18px;
		height: 18px;
		color: #3d434b;

		&-text {
			width: max-content;
			color: #317d46;
		}
	}
}
