
.speech-wrapper {
	position: relative;
}
.speech-wrapper .imcms-speech-recognition {
	padding-right: 60px;
}
.speech-wrapper.speech-unavailable .imcms-speech-recognition {
	padding-right: 25px;
}

.message-control-group {
    width: 30px;
    right: 30px;
    position: absolute !important;
    top: 0;
}

.message-control-btn {
    height: 30px;
    width: 30px;
    z-index: 1002;
    display: flex;
    justify-content: center;
}

.message-control-btn#startRecognition {
    width: 50px;
    left: -12px;
    border: none !important;
}

.message-control-btn#startRecognition:focus {
    width: 50px;
    left: -12px;
    border: none !important;
    outline: 0 !important;
}

.speech-button {
	position: absolute;
	top: -5px;
	right: -8px;
	height: 50px;
	width: 50px;
	background: transparent none !important;
	border: 0 !important;
	z-index: 1001;
}
.speech-wrapper-group .speech-button {
	right: 70px;
}

.speech-button--clear {
	display: none;
	top: 2px;
	right: 30px;
	height: 30px;
	width: 30px;
	z-index: 1002;
}
.speech-has-content .speech-button--clear {
	display: block;
}
.speech-unavailable .speech-button--clear {
	right: 0;
}


.speech-button {
	border: 0 !important;
	outline: none !important;
}

.speech-button--disabled .fa-circle-o {
	display: none !important;
}

.speech-button--disabled:focus,
.speech-button--disabled:active,
.speech-button--clear:focus,
.speech-button--clear:active {
	-webkit-box-shadow: 0 0 0 2px rgba(0,120,150,0.9) !important;
	-moz-box-shadow: 0 0 0 2px rgba(0,120,150,0.9) !important;
	-o-box-shadow: 0 0 0 2px rgba(0,120,150,0.9) !important;
	-ms-box-shadow: 0 0 0 2px rgba(0,120,150,0.9) !important;
	box-shadow: 0 0 0 2px rgba(0,120,150,0.9) !important;
}

.speech-button--disabled .fa-microphone {
	color: #ccc !important;
	transition-property: none !important;
	transform: none !important;
	animation: none !important;
	-webkit-transform: scale(.7) !important;
	-moz-transform: scale(.7) !important;
	-o-transform: scale(.7) !important;
	-ms-transform: scale(.7) !important;
	transform: scale(.7) !important;
	-webkit-transform-origin: 50% 50% !important;
	-moz-transform-origin: 50% 50% !important;
	-o-transform-origin: 50% 50% !important;
	-ms-transform-origin: 50% 50% !important;
	transform-origin: 50% 50% !important;
	-webkit-transition: all .5s ease-out !important;
	-moz-transition: all .5s ease-out !important;
	-o-transition: all .5s ease-out !important;
	-ms-transition: all .5s ease-out !important;
	transition: all .5s ease-out !important;
}

.speech-button--disabled:hover .fa-microphone,
.speech-button--disabled:focus .fa-microphone,
.speech-button--disabled:active .fa-microphone {
	color: #222 !important;
	-webkit-transform: scale(1) !important;
	-moz-transform: scale(1) !important;
	-o-transform: scale(1) !important;
	-ms-transform: scale(1) !important;
	transform: scale(1) !important;
}

.speech-message {
	clear: both;
	display: none;
	font-size: 11px;
	color: #c00000;
	margin: 5px 0;
	padding: 10px;
	background-color: #f2dede;
	border: 1px solid #ebccd1;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	-khtml-border-radius: 4px;
	-o-border-radius: 4px;
	border-radius: 4px;
}

.speech-wrapper:after {
	content: '';
	display: block;
	clear: both;
	font-size: 10px;
	margin: 5px 0;
}
.speech-wrapper.speech-supported:after {
	content: "Klicka på mikrofonen för att tala in text i fältet.";
	color: #999;
}
.speech-wrapper.speech-unavailable:after {
	display: block;
	content: "Tal stöds inte i denna webbläsare.";
	color: #c00000;
	overflow: hidden;
	max-height: 1000px;
	-webkit-transition: all .5s ease-out;
	-moz-transition: all .5s ease-out;
	-o-transition: all .5s ease-out;
	-ms-transition: all .5s ease-out;
	transition: all .5s ease-out;
}
.speech-wrapper.hide-speech-message.speech-unavailable:after {
	max-height: 0;
}


