@border-color: #e9e9e9;

.code-box {
	position: relative;
	width: 100%;
	margin: 0 0 30px;
    border: 1px solid @border-color;
	border-radius: 3px;
	transition: .3s;

	&:hover {
		box-shadow: 0 0 5px #ddd;
	}

	&-demo {
		padding: 20px;
		color: rgba(0,0,0,0.65);
		border-bottom: 1px solid @border-color;
	}

	&-title {
		position: relative;
    	padding: 10px 20px;
		margin: 0 !important;
		// background: rgba(139, 200, 255, 0.1);
		background: #f7f7f7;
		border-bottom: 1px solid #f5f5f5;
		color: #333 !important;
    	font-weight: 500 !important;
	}

	&-desc {
		margin-left: 5px;
		font-size: 12px;
		font-weight: 400;
		color: #888;
	}

	&-actions {
		display: flex;
		justify-content: center;
		align-items: center;
		padding: 10px 0;
		transition: .3s;
		letter-spacing: 2px;
		// background: rgba(139, 200, 255, 0.05);
		background: #f7f7f7;
		color: #52a6fa;
		cursor: pointer;

		&.expand .icon {
			opacity: 1;
		}
	}

	.icon {
		margin: 0 12px;
		display: flex;
		align-items: center;
		opacity: .4;
		transition: .2s;
		cursor: pointer;
		user-select: none;

		img {
			margin-right: 4px;
			vertical-align: top;
			width: 16px;
			height: auto;
			cursor: pointer;
		}

		&-desc {
			white-space: nowrap;
			overflow: hidden;
			font-weight: 300;
		}
	}

	&:hover &-actions {
		.icon {
			opacity: 1;
		}
	}

	> *:last-child {
		border-bottom: none;
	}

	.hidden {
		display: none;
	}

	.code-block {
		margin-top: 0;
		margin-bottom: 0;
		padding: 15px;
		padding-bottom: 25px;
		line-height: 1.42;
		color: #405d79;
		background: #fbfbfb;
		border-top: 1px solid @border-color;
		overflow-y: auto;
	}
}
