/**
 * @package     pwebbox
 * @version 	2.0.0
 *
 * @copyright   Copyright (C) 2015 Perfect Web. All rights reserved. http://www.perfect-web.co
 * @license     GNU General Public Licence http://www.gnu.org/licenses/gpl-3.0.html
 */

code {
    font-size: 11px;
    padding: 2px 4px;
    color: #d14;
    background-color: #f7f7f9;
    border: 1px solid #e1e1e8;
    white-space: nowrap;
}

form > div.width-40 {
	width: 50%;
}
form > div.width-60 {
	width: 50%;
}
form > div.width-60.fltlft {
	clear: left;
}
@media (max-width: 1200px) 
{
	form > div.width-40 {
		width: 55%;
	}
	form > div.width-60 {
		width: 45%;
	}
}

/* description */
span.readonly.mod-desc {
	font-weight: normal;
}
.pweb-fields-tip,
div.pweb-description {
	font-size: 1.091em;
}
div.pweb-description {
	margin-left: 150px;
}

fieldset.panelform .spacer label  {
	max-width: 99%;
}

.hide {
	display: none;
}

/* code */
ul.adminformlist li code, ul.adminformlist li pre {
	color: #DD1144;
	font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
	font-size: 11px;
	padding: 2px 4px;
	background-color: #F7F7F9;
	border: 1px solid #E1E1E8;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	overflow: auto;
}

/* content tab */
.pweb-btn-content-wrapper-in {
    height: 108px;
}

/* menu icons */
ul#menu [class^="icon-"],
ul#menu [class*=" icon-"] {
	width: auto;
	height: auto;
}

/* fields */
#jform_params_fields {
	margin: 0 -10px;
}
form .pweb-fields-tip {
	margin: 9px 0;
}
form .pweb-actions button {
	float: none;
}
form .control-group {
	margin-bottom: 9px;
	*zoom: 1;
}
ul.adminformlist li:before,
ul.adminformlist li:after,
form .control-group:before,
form .control-group:after {
	display: table;
	content: "";
	line-height: 0;
}
ul.adminformlist li:after,
form .control-group:after {
	clear: both;
}
form .control-label {
	float: left;
	width: 160px;
}
form .controls {
	*display: inline-block;
	*padding-left: 20px;
	margin-left: 180px;
	*margin-left: 0;
}
form .controls:first-child {
	*padding-left: 180px;
}
form .control-group label,
form .control-group input,
form .control-group select,
form .control-group fieldset {
	margin-top: 0;
	margin-bottom: 0;
}
form .control-group fieldset.radio.btn-group {
	background-color: transparent;
}


.pweb-btn.pweb-action-toggle {
	margin-right: -8px;
}


/* badge */
form .badge {
	font-size: 11.844px;
	font-weight: bold;
	line-height: 14px;
	color: #ffffff;
	vertical-align: baseline;
	white-space: nowrap;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	background-color: #999999;
	padding: 1px 9px 2px;
	-webkit-border-radius: 9px;
	-moz-border-radius: 9px;
	border-radius: 9px;
}
form .badge a,
form .badge a:hover {
	color: #ffffff;
	text-decoration: underline;
}
form .badge-info {
	background-color: #3a87ad;
}
form .badge-success {
    background-color: #468847;
}
form .badge-warning {
	background-color: #f89406;
}
form .badge-important {
	background-color: #b94a48;
}
form .badge-inverse {
    background-color: #333333;
}


/* buttons */
form .btn {
  display: inline-block;
  *display: inline;
  /* IE7 inline-block hack */

  *zoom: 1;
  padding: 4px 14px;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 20px;
  *line-height: 20px;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  color: #333333;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
  background-color: #f5f5f5;
  background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
  background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
  background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
  background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
  border-color: #e6e6e6 #e6e6e6 #bfbfbf;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  *background-color: #e6e6e6;
  /* Darken IE7 buttons by default so they stand out more given they won't have borders */

  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  border: 1px solid #bbbbbb;
  *border: 0;
  border-bottom-color: #a2a2a2;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  *margin-left: .3em;
  -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
  -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
}
form .btn:hover {
  color: #333333;
  text-decoration: none;
  border-color: #e6e6e6 #e6e6e6 #bfbfbf;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  background-color: #e6e6e6;
  *background-color: #d9d9d9;
  /* Buttons in IE7 don't get borders, so darken on hover */

  background-position: 0 -15px;
  -webkit-transition: background-position 0.1s linear;
  -moz-transition: background-position 0.1s linear;
  -o-transition: background-position 0.1s linear;
  transition: background-position 0.1s linear;
}
form .btn {
  border-color: #c5c5c5;
  border-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.25);
}
form .btn-large {
  padding: 9px 14px;
  font-size: 16px;
  line-height: normal;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}
form .btn-warning,
form a.btn-warning {
  color: #ffffff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  background-color: #faa732;
  background-image: -moz-linear-gradient(top, #fbb450, #f89406);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));
  background-image: -webkit-linear-gradient(top, #fbb450, #f89406);
  background-image: -o-linear-gradient(top, #fbb450, #f89406);
  background-image: linear-gradient(to bottom, #fbb450, #f89406);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0);
  border-color: #f89406 #f89406 #ad6704;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  *background-color: #f89406;
  /* Darken IE7 buttons by default so they stand out more given they won't have borders */

  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
}
form .btn-warning:hover,
form .btn-warning:active {
  color: #ffffff;
  border-color: #f89406 #f89406 #ad6704;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  background-color: #f89406;
  *background-color: #df8505;
}
form .btn-info,
form a.btn-info {
  color: #ffffff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  background-color: #49afcd;
  background-image: -moz-linear-gradient(top, #5bc0de, #2f96b4);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#2f96b4));
  background-image: -webkit-linear-gradient(top, #5bc0de, #2f96b4);
  background-image: -o-linear-gradient(top, #5bc0de, #2f96b4);
  background-image: linear-gradient(to bottom, #5bc0de, #2f96b4);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2f96b4', GradientType=0);
  border-color: #2f96b4 #2f96b4 #1f6377;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  *background-color: #2f96b4;
  /* Darken IE7 buttons by default so they stand out more given they won't have borders */

  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
}
form .btn-info:hover,
form .btn-info:active {
  color: #ffffff;
  border-color: #2f96b4 #2f96b4 #1f6377;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  background-color: #2f96b4;
  *background-color: #2a85a0;
}
form .btn-block {
	display: block;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
form button.btn {
  *padding-top: 3px;
  *padding-bottom: 3px;
}
form button.btn::-moz-focus-inner {
  padding: 0;
  border: 0;
}
form button.btn.btn-large {
  *padding-top: 7px;
  *padding-bottom: 7px;
}
form button.btn.btn-small {
  *padding-top: 3px;
  *padding-bottom: 3px;
}

.mod-desc .btn {
	margin-bottom: 5px;
}
form .btn.disabled,
form .btn[disabled] {
	cursor: default;
	background-image: none;
	opacity: 0.65;
	filter: alpha(opacity=65);
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
}
/* end - buttons */

/* buttons group yes/no */
.panel .controls .btn-group > .btn {
	min-width: 50px;
}
.panel .controls .btn-group.btn-group-yesno > .btn {
	min-width: 84px;
	padding: 2px 12px;
}
.panel .radio.btn-group input[type=radio] {
	display: none;
}
.panel .radio.btn-group > label:first-of-type {
	margin-left: 0;
	-webkit-border-bottom-left-radius: 4px;
	border-bottom-left-radius: 4px;
	-webkit-border-top-left-radius: 4px;
	border-top-left-radius: 4px;
	-moz-border-radius-bottomleft: 4px;
	-moz-border-radius-topleft: 4px;
}
form .panel .controls fieldset.radio.btn-group {
	padding-left: 0 !important;
}
.panel .btn-group > .btn {
	position: relative;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	border-radius: 0;
}
.panel .btn-danger.active,
.panel .btn-success.active {
	color: rgba(255,255,255,0.75);
}
.panel .btn-danger.active,
.panel .btn-success.active {
	color: rgba(255,255,255,0.95);
}
.panel .btn-danger {
	color: #fff;
	text-shadow: 0 -1px 0 rgba(0,0,0,0.25);
	background-color: #da4f49;
	background-image: -moz-linear-gradient(top,#ee5f5b,#bd362f);
	background-image: -webkit-gradient(linear,0 0,0 100%,from(#ee5f5b),to(#bd362f));
	background-image: -webkit-linear-gradient(top,#ee5f5b,#bd362f);
	background-image: -o-linear-gradient(top,#ee5f5b,#bd362f);
	background-image: linear-gradient(to bottom,#ee5f5b,#bd362f);
	background-repeat: repeat-x;
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffbd362f', GradientType=0);
	border-color: #bd362f #bd362f #802420;
	*background-color: #bd362f;
	filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
}
.panel .btn-danger:hover,
.panel .btn-danger:focus,
.panel .btn-danger:active,
.panel .btn-danger.active,
.panel .btn-danger.disabled,
.panel .btn-danger[disabled] {
	color: #fff;
	background-color: #bd362f;
	*background-color: #a9302a;
}
.panel .btn-danger:active,
.panel .btn-danger.active {
	background-color: #942a25 \9;
}
.panel .btn-success {
	color: #fff;
	text-shadow: 0 -1px 0 rgba(0,0,0,0.25);
	background-color: #5bb75b;
	background-image: -moz-linear-gradient(top,#62c462,#51a351);
	background-image: -webkit-gradient(linear,0 0,0 100%,from(#62c462),to(#51a351));
	background-image: -webkit-linear-gradient(top,#62c462,#51a351);
	background-image: -o-linear-gradient(top,#62c462,#51a351);
	background-image: linear-gradient(to bottom,#62c462,#51a351);
	background-repeat: repeat-x;
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff51a351', GradientType=0);
	border-color: #51a351 #51a351 #387038;
	*background-color: #51a351;
	filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
}
.panel .btn-success:hover,
.panel .btn-success:focus,
.panel .btn-success:active,
.panel .panel .btn-success.active,
.panel .btn-success.disabled,
.panel .btn-success[disabled] {
	color: #fff;
	background-color: #51a351;
	*background-color: #499249;
}
.panel .btn-success:active,
.panel .btn-success.active {
	background-color: #408140 \9;
}
.panel .btn-group > .btn:last-child {
	-webkit-border-top-right-radius: 4px;
	-moz-border-radius-topright: 4px;
	border-top-right-radius: 4px;
	-webkit-border-bottom-right-radius: 4px;
	-moz-border-radius-bottomright: 4px;
	border-bottom-right-radius: 4px;
}
/* end - buttons group yes/no */

/* icons */
@font-face {
	font-family: 'IcoMoon';
	src: url('../../jui/fonts/IcoMoon.eot');
	src: url('../../jui/fonts/IcoMoon.eot?#iefix') format('embedded-opentype'),
		url('../../jui/fonts/IcoMoon.svg#IcoMoon') format('svg'),
		url('../../jui/fonts/IcoMoon.woff') format('woff'),
		url('../../jui/fonts/IcoMoon.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}
[class^="icon-"]:before,
[class*=" icon-"]:before {
	font-family: 'IcoMoon';
	font-style: normal;
	speak: none;
}
[class^="icon-"].disabled,
[class*=" icon-"].disabled {
	font-weight: normal;
}
form .icon-chevron-up:before {
	content: "\e005";
}
form .icon-chevron-down:before {
	content: "\e007";
}
form .icon-chevron-left:before {
	content: "\e008";
}
form .icon-chevron-right:before {
	content: "\e006";
}
form .icon-apply:before {
	content: "\2b";
}
form .icon-cog:before {
	content: "\38";
}
form .icon-cancel:before {
	content: "\4a";
}
/* end - icons */

/* accordion */
.pweb-accordion .accordion {
	margin-bottom: 18px;
}
.pweb-accordion .accordion-group {
	margin-bottom: 2px;
	border: 1px solid #e5e5e5;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
}
.pweb-accordion .accordion-heading {
	border-bottom: 0;
}
.pweb-accordion .accordion-heading .accordion-toggle {
	display: block;
	padding: 8px 15px;
}
.pweb-accordion .accordion-toggle {
	cursor: pointer;
}
.pweb-accordion .accordion-inner {
	padding: 9px 15px;
	border-top: 1px solid #e5e5e5;
}
.pweb-accordion .collapse {
  position: relative;
  height: 0;
  overflow: hidden;
  -webkit-transition: height 0.35s ease;
     -moz-transition: height 0.35s ease;
       -o-transition: height 0.35s ease;
          transition: height 0.35s ease;
}

.pweb-accordion .collapse.in {
  height: auto;
}
/* end - accordion */

/* alerts */
form .alert {
	padding: 8px 35px 8px 14px;
	margin-bottom: 18px;
	text-shadow: 0 1px 0 rgba(255,255,255,0.5);
	background-color: #fcf8e3;
	border: 1px solid #fbeed5;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
}
form .alert,
form .alert h4 {
	color: #c09853;
}
form .alert h4 {
	margin: 0;
}
form .alert-success {
	background-color: #dff0d8;
	border-color: #d6e9c6;
	color: #468847;
}
form .alert-success h4 {
	color: #468847;
}
form .alert-error {
	background-color: #f2dede;
	border-color: #eed3d7;
	color: #b94a48;
}
form .alert-error h4 {
	color: #b94a48;
}
/* end - alerts */

/* general */
form .text-center {
    text-align: center;
}
form .text-center button {
    float: none;
}
form .control-group {
    clear: both;
}
form .row-fluid {
	width: 100%;
	*zoom: 1;
}
form .row-fluid:before,
form .row-fluid:after {
	display: table;
	content: "";
	line-height: 0;
}
form .row-fluid:after {
	clear: both;
}
form .row-fluid [class*="span"] {
	display: block;
	width: 100%;
	min-height: 28px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	float: left;
	margin-left: 2.1276595744681%;
	*margin-left: 2.0744680851064%;
}
form .row-fluid [class*="span"]:first-child {
	margin-left: 0;
}
form .row-fluid .controls-row [class*="span"] + [class*="span"] {
	margin-left: 2.1276595744681%;
}
form .row-fluid .span12 {
	width: 100%;
	*width: 99.946808510638%;
}
#pweb_clear_layout_settings {
    margin-bottom: 10px;
}
form .pane-sliders .panel h3 {
    background-color: transparent;
}
form .pane-sliders .panel h3 button {
    float: right;
    margin-top: -7px;
}
/* end - general */

/* inputs and labels */
form .panel input,
form .panel textarea,
form .panel select,
form .panel .help-inline,
form .panel .uneditable-input,
form .panel .input-prepend,
form .panel .input-append {
	display: inline-block;
	*display: inline;
	*zoom: 1;
	margin-bottom: 0;
	vertical-align: middle;
}
form .panel .radio input[type="radio"] {
	float: left;
	margin-left: -20px;
}
form .panel .controls > .radio:first-child {
	padding-top: 5px;
}
form .panel .controls fieldset.radio {
	min-height: 18px;
	padding-left: 20px !important;
}
form .panel .control-label {
	width: auto;
	padding-right: 5px;
	text-align: left;
}
form {
	margin: 0 0 18px;
}
.panel fieldset {
	padding: 0;
	margin: 0;
	border: 0;
}
.panel legend {
	display: block;
	width: 100%;
	padding: 0;
	margin-bottom: 18px;
	font-size: 19.5px;
	line-height: 36px;
	color: #333;
	border: 0;
	border-bottom: 1px solid #e5e5e5;
}
.panel legend small {
	font-size: 13.5px;
	color: #999;
}
.panel label,
.panel input,
.panel button,
.panel select,
.panel textarea {
	font-size: 13px;
	font-weight: normal;
	line-height: 18px;
}
.panel input,
.panel button,
.panel select,
.panel textarea {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.panel label {
	display: block;
	margin-bottom: 5px;
}
.panel select,
.panel textarea,
.panel input[type="text"],
.panel input[type="color"] {
	display: inline-block;
	height: 18px;
	padding: 4px 6px;
	margin-bottom: 9px;
	font-size: 13px;
	line-height: 18px;
	color: #555;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	vertical-align: middle;
}
.panel input,
.panel textarea {
	width: 206px;
}
.panel textarea {
	height: auto;
}
.panel textarea,
.panel input[type="text"],
.panel input[type="color"] {
	background-color: #fff;
	border: 1px solid #ccc;
	-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
	-moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
	box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
	-webkit-transition: border linear .2s, box-shadow linear .2s;
	-moz-transition: border linear .2s, box-shadow linear .2s;
	-o-transition: border linear .2s, box-shadow linear .2s;
	transition: border linear .2s, box-shadow linear .2s;
}
.panel textarea:focus,
.panel input[type="text"]:focus,
.panel input[type="color"]:focus {
	border-color: rgba(82,168,236,0.8);
	outline: 0;
	outline: thin dotted \9;
	-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
	-moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
	box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
}
.panel input[type="radio"] {
	margin: 4px 0 0;
	*margin-top: 0;
	margin-top: 1px \9;
	line-height: normal;
}
.panel input[type="file"],
.panel input[type="image"],
.panel input[type="submit"],
.panel input[type="button"],
.panel input[type="radio"],
.panel input[type="checkbox"] {
	width: auto;
}
.panel select,
.panel input[type="file"] {
	height: 28px;
	*margin-top: 4px;
	line-height: 28px;
}
.panel select {
	width: 220px;
	border: 1px solid #ccc;
	background-color: #fff;
}
.panel select[multiple],
.panel select[size] {
	height: auto;
}
.panel select:focus,
.panel input[type="file"]:focus,
.panel input[type="radio"]:focus,
.panel input[type="checkbox"]:focus {
	outline: thin dotted #333;
	outline: 5px auto -webkit-focus-ring-color;
	outline-offset: -2px;
}
.panel .input-mini {
	width: 60px;
}
.panel select.input-mini {
	height: 33px;
}
.panel .input-small {
	width: 90px;
}
.panel .input-medium {
	width: 150px;
}
.panel .input-large {
	width: 210px;
}
.panel .input-xlarge {
	width: 270px;
}
.panel .input-xxlarge {
	width: 380px;
}
/* end - inputs and labels */

/* bootstrap modal */
.fade {
  opacity: 0;
  -webkit-transition: opacity 0.15s linear;
     -moz-transition: opacity 0.15s linear;
       -o-transition: opacity 0.15s linear;
          transition: opacity 0.15s linear;
}

.fade.in {
  opacity: 1;
}

.close {
  float: right;
  font-size: 20px;
  font-weight: bold;
  line-height: 20px;
  color: #000000;
  text-shadow: 0 1px 0 #ffffff;
  opacity: 0.2;
  filter: alpha(opacity=20);
}

.close:hover,
.close:focus {
  color: #000000;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.4;
  filter: alpha(opacity=40);
}

button.close {
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
}
.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  background-color: #000000;
}

.modal-backdrop.fade {
  opacity: 0;
}

.modal-backdrop,
.modal-backdrop.fade.in {
  opacity: 0.8;
  filter: alpha(opacity=80);
}

.modal-header {
  padding: 9px 15px;
  border-bottom: 1px solid #eee;
}

.modal-header .close {
  margin-top: 2px;
}

.modal-header h3 {
  margin: 0;
  line-height: 30px;
}

.modal-body {
  position: relative;
  max-height: 400px;
  padding: 15px;
  overflow-y: auto;
}

.modal-form {
  margin-bottom: 0;
}

.modal-footer {
  padding: 14px 15px 15px;
  margin-bottom: 0;
  text-align: right;
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;
  -webkit-border-radius: 0 0 6px 6px;
     -moz-border-radius: 0 0 6px 6px;
          border-radius: 0 0 6px 6px;
  *zoom: 1;
  -webkit-box-shadow: inset 0 1px 0 #ffffff;
     -moz-box-shadow: inset 0 1px 0 #ffffff;
          box-shadow: inset 0 1px 0 #ffffff;
}

.modal-footer:before,
.modal-footer:after {
  display: table;
  line-height: 0;
  content: "";
}

.modal-footer:after {
  clear: both;
}

.modal-footer .btn + .btn {
  margin-bottom: 0;
  margin-left: 5px;
}

.modal-footer .btn-group .btn + .btn {
  margin-left: -1px;
}

.modal-footer .btn-block + .btn-block {
  margin-left: 0;
}
div.modal {
  position: fixed;
  top: 10%;
  left: 50%;
  z-index: 1050;
  width: 560px;
  margin-left: -280px;
  background-color: #ffffff;
  border: 1px solid #999;
  border: 1px solid rgba(0, 0, 0, 0.3);
  *border: 1px solid #999;
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
  outline: none;
  -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
     -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
          box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
  -webkit-background-clip: padding-box;
     -moz-background-clip: padding-box;
          background-clip: padding-box;
}

div.modal.fade {
  top: -25%;
  -webkit-transition: opacity 0.3s linear, top 0.3s ease-out;
     -moz-transition: opacity 0.3s linear, top 0.3s ease-out;
       -o-transition: opacity 0.3s linear, top 0.3s ease-out;
          transition: opacity 0.3s linear, top 0.3s ease-out;
}

div.modal.fade.in {
  top: 10%;
}

/* Joomla JUI NOTE: Original .modal definition has to be commented */

@media (max-width: 767px) {
  div.modal {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    width: auto;
    margin: 0;
  }
  div.modal.fade {
    top: -100px;
  }
  div.modal.fade.in {
    top: 20px;
  }
}

@media (max-width: 480px) {
  div.modal {
    top: 10px;
    right: 10px;
    left: 10px;
  }
}
/* end - modal */