/*------------------------------------------------------------------------
# mod_sp_poll - Ajax poll module by JoomShaper.com
# ------------------------------------------------------------------------
# author    JoomShaper http://www.joomshaper.com
# Copyright (C) 2010 - 2016 JoomShaper.com. All Rights Reserved.
# License - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.joomshaper.com
-------------------------------------------------------------------------*/

.sp-poll-result {
	padding-top: 0px;
	counter-reset: section;
}
.sp-poll-result-item {
	margin-bottom: 15px;
}
.sp-poll-result .poll-info {
	margin-bottom: 2px;
}

.sp-poll-result .poll-info > span {
	display: inline-block;
}
.sp-poll-result .poll-info > span.poll-question {
	font-size: 15px;
  	font-weight: bold;
  	font-stretch: normal;
  	font-style: normal;
  	line-height: 1.4;
  	letter-spacing: normal;
  	color: rgba(0, 0, 0, 0.95);
}
.sp-poll-result .poll-info > span.poll-question:before {
	counter-increment: section;
    	content: counter(section, decimal-leading-zero)'.';
    	position: relative;
    	font-size: 15px;
    	font-weight: bold;
    	color: rgba(0, 0, 0, 0.95);
	display: inline-block;
	margin-right: 5px;
}
.sp-poll-result .poll-info > span:last-child {
	float: right;
	font-size: 13px;
	color: #888;
}

.sp-poll-result .progress {
	box-shadow: none;
	-webkit-box-shadow: none;
	background-color: #e8e8e8;
    	border-radius: 15px;
    	height: 25px;
}

.sp-poll-result .progress-bar {
	box-shadow: none;
	-webkit-box-shadow: none;
	font-weight: bold;
	font-size: 15px;
    	display: flex;
	border-radius: 15px;
	color: white;
    	padding-left: 5px;
	width: 0%;
	transition: width 2s linear;
}
.sp-poll-result .progress-bar.progress-bar-no-result {
	display: flex;
	min-width: 0;
    	width: 0%;
    	height: auto;
    	align-items: center;
    	background-color: #e8e8e8;
    	color: #888888;
    	padding-left: 10px;
}
.sp-poll-result .progress-bar.progress-bar-default, .sp-poll-result .progress-bar.progress-bar-primary, .progress-bar.progress-bar-danger, 
.sp-poll-result .progress-bar.progress-bar-success, .sp-poll-result .progress-bar.progress-bar-info {
	background-color: #800000;
    	display: flex;
	height: auto;
	justify-content: flex-end;
    	align-items: center;
    	color: white;
    	padding: 0px 10px;
    	border-radius: 15px;
}

.sp-poll-resul-item {
	margin-bottom: 10px;
}

.mod-sppoll  {

}

.mod-sppoll > strong {
	font-size: 17px;
	margin-bottom: 15px;
}

.revote-wrapper {
	text-align: center;
}

.btn-poll-revote, .form-sppoll input[type="submit"] {
	cursor: pointer;
	display: block;
    margin: 40px auto;
    background-color: #800000;
    color: white;
    border-radius: 20px;
    border: 1px solid #800000;
    padding: 8px 35px 5px 35px;
    text-transform: uppercase;
}

.form-sppoll input[type='radio'] {
	background: transparent;
	border-radius: 10px;
	cursor: pointer;
    display: inline-block;
    height: 12px;
    margin-right: 10px;
    position: relative;
    width: 12px;
    -webkit-appearance: none;
    border: 1px solid #aaa;
}

.form-sppoll input[type='radio']:checked{
	background: #800000;
	border-color: #800000;
	outline: none;
}

.form-sppoll input[type='radio']:focus, .form-sppoll input[type='radio']:hover, .form-sppoll input[type='radio']:active {
	outline-color: transparent;
}
.form-sppoll {
	counter-reset: section;
}
.form-sppoll .radio {
	width: 32%;
	margin-right: 10px;
	margin-bottom: 21px;
	display: inline-block;
    	box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.15);
    	height: 80px;
    	position: relative;
	vertical-align: top;
}
.form-sppoll .radio > label > div {
	overflow-y: auto;
	height: inherit;
	height: -webkit-fill-available;
}
.form-sppoll .radio > label > div::-webkit-scrollbar {
	width: 4px;
}
.form-sppoll .radio > label > div::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.form-sppoll .radio > label > div::-webkit-scrollbar-thumb {
  background-color: darkgrey;
  outline: 1px solid slategrey;
}
@media (max-width: 768px) {
	.form-sppoll .radio {
		width: 100% !important;
		display: block;
		margin-bottom: 14px;
	}
}
.form-sppoll .email-field {
	display: block;
}
.form-sppoll .radio label {
	width: 100%;
	height: 100%;
	background: white;
	padding: 9px 40px 6px 40px;
	line-height: 1.2;
}
.form-sppoll .radio label:before {
	counter-increment: section;
	content: counter(section, decimal-leading-zero);
	position: absolute;
    	left: 6px;
    	top: 4px;
    	font-size: 25px;
    	font-weight: bold;
    	color: #800000;
}
.form-sppoll .radio label input:after {
	content: '';
	width: 14.5px;
	height: 14.5px;
	position: absolute;
	border: 1px solid white;
    	border-radius: 25px;
    	top: 0px;
    	left: 0px;
    	display: inline-table;
}
.form-sppoll .radio label input {
	float: right;
    	position: absolute;
    	right: 10px;
    	top: 10px;
    	background: white;
    	border-color: #333;
    	width: 16px;
    	height: 16px;
}

.form-sppoll .radio:nth-child(3n) {
	margin-right: 0px;
}
.form-sppoll .radio.hasImg {
	max-height: 159px;
	height: 100%;
	overflow: hidden;
}
.form-sppoll .radio.hasImg p {
	padding: 12px 40px;
}
.radio.hasImg.other img {
	display: none;
}
.mod-sppoll[data-voted="1"] .radio.hasImg.other img {
        display: block;
}
.radio.hasImg.other #other-text {
        display: block;
}
.mod-sppoll[data-voted="1"] .radio.other #other-text {
	display: none;
}
.radio.hasImg.other textarea {
	display: block;
	width: 100%;
	border: none;
    	box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.15);
	padding: 9px;
	height: 126px;
}
textarea:focus { 
	outline: none;
}
.poll-question.image img {
	max-width: 200px;
}
.form-sppoll .radio.hasImg label.withImg {
    display: flex;
    flex-direction: column;
    padding: 0px;
    margin: 0px;
}
label.withImg > div {
    width: 100%;
}
label.withImg div > p {
    margin-top: -3px;
    margin-bottom: 0px;
}
label.withImg div > .poll-image {
    margin-top: 0px;
    margin-left: 0px;
    width: 100%;
}
.close-message {
	display: none;
	color: #8C1515;
	font-weight: bold;
}
.mod-sppoll  > strong {
	margin-bottom: 13px;
}
label[for="is_draw"] {
	color: rgba(0, 0, 0, 0.95);
	font-size: 17px;
	font-weight: bold;
	margin-bottom: 0px;
	vertical-align: middle;
	display: block;
    	position: relative;
    	padding-left: 35px;
    	cursor: pointer;
    	-webkit-user-select: none;
    	-moz-user-select: none;
    	-ms-user-select: none;
    	user-select: none;
}
label[for="is_draw"] .ht {
	font-size: 22px;
	text-transform: uppercase;
}
input[name="is_draw"] {
	position: absolute;
  	opacity: 0;
  	cursor: pointer;
  	height: 0;
  	width: 0;
}
.checkmark {
  height: 15px;
  width: 15px;
  background-color: #fff;
  border: 1px solid #999999;
  position: absolute;
  top: 8px;
  left: 0;
}
.checkmark:after {
	content: "";
  position: absolute;
  display: none;
}
.checkmark:after {
  left: 4px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}
form.form-sppoll > div:not(.radio):hover input[name="is_draw"] ~ .checkmark {
	background-color: #999;
}
input[name="is_draw"]:checked ~ .checkmark {
	background-color: #800000;
}
input[name="is_draw"]:checked ~ .checkmark:after {
  	display: block;
}
form.form-sppoll div.email-field div {
	display: inline-block;
	cursor: pointer;
}
div#email {
	width: 257px;
}
@media (max-width: 768px) {
	label[for="is_draw"] {
		padding-left: 25px !important;
	}
	input[name="user_email"] {
		margin-left: 25px !important;
		margin-top: 20px;
	}
	.btn-poll-revote, .form-sppoll input[type="submit"] {
		width: 107px;
		font-size: 14px;
	}
}
input[name="user_email"] {
	border: none;
    	background: #fbfbfb;
    	border-bottom: 1px solid rgba(0, 0, 0, 0.95);
    	color: #565656;
    	font-size: 14px;
    	margin-left: 15px;
    	line-height: 1;
}
input[name="user_email"]:focus {
	outline: none;
}

.form-sppoll .radio.other:not(.hasImg)  {
	height: 80px;
}
.form-sppoll .radio.other label {
	padding: 0px;
}
.form-sppoll .radio.other:not(.hasImg) label div:not(#other-text) {
	padding: 9px 39px;
	height: 35px;
	overflow: visible;
}
.form-sppoll .radio.other label div#other-text textarea {
	height: 44px;
	background-color: white;
	color:#4a4a4a;
	font-size: 14px;
	padding: 9px;
	box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.15);
	border: none;
	width: 100%;
}
.form-sppoll .radio.other label.withImg div#other-text textarea{
	height: 113px;
}
