/************** Forms & pseudo-form **************/
.form fieldset,
.fieldset {
border: 1px solid #d9d9d9;
padding: 1em 1.667em 1.667em 1.667em;
margin-bottom: 1.667em;
}
/* IE class */
.ie7 .block-content .form fieldset.no-margin,
.ie7 .form.block-content fieldset.no-margin,
.ie7 .form .block-content fieldset.no-margin {
display: block;
width: 100%;
}
.fieldset {
position: relative;
z-index: 89;
padding-top: 1.667em;
}
.with-legend {
margin-top: 1em;
}
/* IE class */
.ie .form fieldset {
padding-top: 0;
}
.ie .form fieldset.no-legend {
        padding-top: 1.667em;
}
.legend {
        position: absolute;
        left: 1.667em;
        top: -1.083em;
}
/* IE class */
.ie .form legend {
        margin-bottom: 1em;
        margin-top: -1em;
        }
        .ie .form .fieldset-with-legend {
                margin-top: 2em;
        }
        .ie .form .fieldset-with-legend-first-child {
                margin-top: 1em;
        }
.form legend a,
.legend a {
        display: block;
        margin: -0.25em -0.333em -0.333em -0.5em;
        padding: 0.25em 20px 0.333em 0.5em;
        color: #666;
        background: url(/images/icons/fugue/chevron-off.png) no-repeat right 60%;
        }
        .form legend a:hover,
        .legend a:hover {
                color: #3399cc;
                background-image: url(/images/icons/fugue/chevron.png);
        }

.form fieldset.collapsed,
.fieldset.collapsed {
background: none;
}
.form fieldset.no-margin.collapsed,
.fieldset.no-margin.collapsed {
        padding-left: 1.667em;
}
.form fieldset.no-margin.collapsed:last-child,
.fieldset.no-margin.collapsed:last-child {
        padding-bottom: 1.667em;
}
/* IE class */
.form fieldset.no-margin.collapsed.last-child,
.fieldset.no-margin.collapsed.last-child {
        padding-bottom: 0.667em;
}
.form fieldset.collapsed > *,
.fieldset.collapsed > * {
        display: none;
        }
        .form fieldset.collapsed legend,
        .fieldset.collapsed .legend {
                display: block;
                margin-left: 0;
                }
                .ie7 .form fieldset.collapsed legend,
                .ie7 .fieldset.collapsed .legend {
                        display: inline-block;
                }
                .form fieldset.collapsed legend a,
                .fieldset.collapsed .legend a {
                        background-image: url(/images/icons/fugue/chevron-expand-off.png);
                        }
                        .form fieldset.collapsed legend a:hover,
                        .fieldset.collapsed .legend a:hover {
                                background-image: url(/images/icons/fugue/chevron-expand.png);
                        }

fieldset legend .show-expanded, .fieldset .legend .show-expanded { display: inline; }
fieldset legend .show-collapsed, .fieldset .legend .show-collapsed { display: none; }
fieldset.collapsed legend .show-expanded, .fieldset.collapsed .legend .show-expanded { display: none; }
fieldset.collapsed legend .show-collapsed, .fieldset.collapsed .legend .show-collapsed { display: inline; }

.block-content .form fieldset.no-margin,
.block-content.form fieldset.no-margin,
.form .block-content fieldset.no-margin,
.block-content .fieldset.no-margin {
border-color: #999999;
border-width: 1px 0 1px 0;
-moz-border-radius: 0;
-webkit-border-radius: 0;
-webkit-background-clip: padding-box;
border-radius: 0;
}
.form fieldset.no-margin legend,
.fieldset.no-margin .legend {
        margin-left: 0;
}
.form fieldset:last-child,
.fieldset:last-child {
margin-bottom: 0;
}
/* IE class */
.form fieldset.last-child,
.fieldset.last-child {
margin-bottom: 0;
}
.block-content .form fieldset.no-margin:last-child,
.block-content.form fieldset.no-margin:last-child,
.form .block-content fieldset.no-margin:last-child,
section .fieldset.no-margin:last-child {
border-bottom: 0;
-moz-border-radius: 0 0 0.167em 0.167em;
-webkit-border-bottom-left-radius: 0.167em;
-webkit-border-bottom-right-radius: 0.167em;
border-radius: 0 0 0.167em 0.167em;
}
/* IE class */
.block-content .form fieldset.no-margin.last-child,
.block-content.form fieldset.no-margin.last-child,
.form .block-content fieldset.no-margin.last-child,
.fieldset.no-margin.last-child {
border-bottom: 0;
}

.form label,
.form .label {
color: #808080;
font-weight: bold;
display: block;
margin-bottom: 0.5em;
}
.form label.light,
.form .label.light {
        font-weight: normal;
        color: #777;
}
.form label.inline,
.form .label.inline {
        display: inline;
        float: none;
        margin: 0;
        font-weight: normal;
}

.form input:placeholder-shown::placeholder {
    color: #808080;
}
.form .required label,
.form .required .label,
.form label.required,
.form .label.required,
.form label.inline.required,
.form .label.inline.required {
        color: black;
}
.form [data-error],
.form .required input:placeholder-shown::placeholder,
.form .required label:after,
.form .required .label:after,
.form label.required:after,
.form .label.required:after {
    color: #c00000;
    content: "*";
    padding: 0 3px;
}

.form [data-error]:empty {
    display: none;
}

/** IE class **/
.form .required-label-before {
        color: #c00000;
}

p.inline-label,
.inline-label p {
padding-left: 20em;
}
p.inline-mini-label,
.inline-mini-label p {
padding-left: 5em;
}
p.inline-small-label,
.inline-small-label p {
padding-left: 11em;
}
p.inline-medium-label,
.inline-medium-label p {
padding-left: 15em;
}
.inline-label label,
.inline-label .label,
.inline-mini-label label,
.inline-mini-label .label,
.inline-small-label label,
.inline-small-label .label,
.inline-medium-label label,
.inline-medium-label .label {
        display: block;
        float: left;
        color: #333333;
        padding: 0.667em 0 0.583em;
        }
        .inline-label label,
        .inline-label .label {
                width: 19em;
                margin-left: -20em;
        }
        .inline-mini-label label,
        .inline-mini-label .label {
                width: 4em;
                margin-left: -5em;
        }
        .inline-small-label label,
        .inline-small-label .label {
                width: 10em;
                margin-left: -11em;
        }
        .inline-medium-label label,
        .inline-medium-label .label {
                width: 14em;
                margin-left: -15em;
        }

/** IE class **/
.input-group .input-group-addon,
input[type=text],
input[type=number],
input[type=email],
input[type=password],
.input-type-text {
    font-size: 1em;
    line-height: 1em;
    color: #333333;
    padding: 0.5em;
    border: 1px solid #d8d8d8;
    background: white;
    -webkit-background-clip: padding-box;
}
select:disabled,
textarea:disabled,
input[type=text]:disabled,
input[type=email]:disabled,
input[type=number]:disabled,
input[type=password]:disabled {
    color: #808080;
    cursor: not-allowed;
}
input[type=text]:read-only:not(.flatpickr-input),
input[type=number]:read-only {
    border: 0;
}
input[type=number]:disabled,
input[type=number]:read-only {
    -moz-appearance: textfield !important;
/*     -webkit-appearance: none !important; */
}
input[type=text]:focus,
input[type=number]:focus,
input[type=email]:focus,
input[type=password]:focus,
.input-type-text:focus,
select:focus,
textarea:focus {
        border-color: #888888;
}
/** IE selector **/
.input-focus {
        border-color: #888888;
}
span.input-type-text {
        display: inline-block;
}
/** IE class **/
.ie7 p.input-type-text {
        display: inline-block;
}
.input-type-text input[type=text],
.input-type-text input[type=password] {
        padding: 0;
        border: none;
        background: none;
        -moz-border-radius: 0;
        -webkit-border-radius: 0;
        -webkit-background-clip: padding-box;
        border-radius: 0;
        margin: 0 0 1px 0;
}
/** IE class **/
.ie7 .input-type-text input[type=text] {
        float: left;
}
.input-type-text img {
        margin: 0 0 -3px 0.2em;
}


select,
textarea {
    padding: 0.385em;
    font-size: 1em;
    -webkit-background-clip: padding-box;
}

.select2.select2-container {
    max-width: 100%;
}
.select2.select2-container .select2-selection,
select,
textarea {
    color: #333333;
    border: 1px solid #d8d8d8;
    border-radius: 0;
    background-color: white;
}
textarea {
    background: white;
}
.select2.select2-container .select2-selection,
select {
    border: 1px solid #d8d8d8;
    min-height: 28px;
}

input[type=text].small,
input[type=number].small,
input[type=password].small,
select.small,
textarea.small {
font-size: 1em;
padding: 0.167em;
}
input[type=text].small,
input[type=number].small,
input[type=password].small {
        padding: 0.25em;
}
input[type=text].smaller,
input[type=number].smaller,
input[type=password].smaller,
select.smaller,
textarea.smaller {
font-size: 1em;
padding: 0;
-moz-border-radius: 0;
-webkit-border-radius: 0;
-webkit-background-clip: padding-box;
border-radius: 0;
}
input[type=text].big,
input[type=number].big,
input[type=password].big,
select.big,
textarea.big {
font-size: 1.5em;
}
input[type=text].bigger,
input[type=number].bigger,
input[type=password].bigger,
select.bigger,
textarea.bigger {
font-size: 2.5em;
}

input[type=radio],
input[type=checkbox] {
vertical-align: -9%;
margin: 0;
padding: 0;
}
/** IE class **/
.input-type-check {
        vertical-align: -7%;
}
input[type=radio] + label,
input[type=checkbox] + label {
        color: #333333;
        font-weight: normal;
        display: inline;
        margin-bottom: 0;
        padding-right: 0.5em;
}
/** IE class **/
.input-type-check-label {
        color: #333333;
        font-weight: normal;
        display: inline;
        margin-bottom: 0;
        padding-right: 0.5em;
}
input[type=radio] + label:last-child,
input[type=checkbox] + label:last-child {
        padding-right: 0;
}
/** IE class **/
.input-type-check-label-last-child {
        padding-right: 0;
}

.checkable-list {
padding-top: 0.333em;
line-height: 1.25em;
}
.checkable-list li {
        padding: 0 0 0.75em 1.25em;
        }
        .checkable-list li:last-child {
                padding-bottom: 0;
        }
        /** IE class **/
        .checkable-list li.last-child {
                padding-bottom: 0;
        }
        .checkable-list li input[type=radio],
        .checkable-list li input[type=checkbox] {
                float: left;
                vertical-align: baseline;
                margin: 1px 0 0 -1.167em;
        }
        /** IE class **/
        .ie .checkable-list li input[type=radio],
        .ie .checkable-list li input[type=checkbox] {
                margin: -3px 0 0 -1.25em;
        }
        .checkable-list li .input-type-radio,
        .checkable-list li .input-type-checkbox {
                float: left;
                margin: -3px 0 0 -1.25em;
        }

.full-width {
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
}
.ie7 .full-width {
        width: 93%;
}
.ie7 select.full-width {
        width: 100%;
}
.input-with-button input[type=text] {
width: 65%;
margin-right: 3%;
}
/** IE class **/
.input-with-button .input-type-text {
width: 65%;
margin-right: 3%;
}
.input-with-button select {
width: 70%;
margin-right: 3%;
}
.input-with-button button {
width: 25%;
}

.input-height {
display: block;
line-height: 1em;
padding: 0.583em 0 0.75em;
border: 1px solid transparent;
}
.input-height.grey-bg {
        background: #cccccc;
        border: 1px solid #cccccc;
        -moz-border-radius: 0.25em;
        -webkit-border-radius: 0.25em;
        -webkit-background-clip: padding-box;
        border-radius: 0.25em;
        padding-left: 0.75em;
        padding-right: 0.75em;
}
p.input-height,
p.input-height.grey-bg {
        line-height: 1.25em;
        padding-top: 0.5em;
        padding-bottom: 0.583em;
}

.one-line-input {
text-align: right;
}
.one-line-input label {
        float: left;
        margin: 0.2em 0 0 0;
}
.form .error .select2-container,
.form .select2.error {
    border-width: 1px;
    border-style: solid;
}

.form .error .select2-container,
.form .select2.error,
.form .error input,
.form .error select,
.form select.error,
.form input[type=text].error,
.form input[type=number].error,
.form input[type=password].error,
.form .input-type-text.error {
    border-color: #c00000;
}

.check-ok,
.check-error,
.check-warning {
display: block;
position: absolute;
z-index: 89;
width: 16px;
height: 16px;
right: -8px;
top: -8px;
}
.check-ok { background: url(/images/icons/fugue/tick-circle-blue.png) no-repeat; }
.check-error { background: url(/images/icons/fugue/cross-circle.png) no-repeat; }
.check-warning { background: url(/images/icons/fugue/exclamation-diamond.png) no-repeat; }

span.relative > input + .check-ok,
span.relative > select + .check-ok,
span.relative > input + .check-error,
span.relative > select + .check-error,
span.relative > input + .check-warning,
span.relative > select + .check-warning {
    margin-top: -0.667em;
    right: -4px;
}
p span.relative > input + .check-ok,
p span.relative > select + .check-ok,
p span.relative > input + .check-error,
p span.relative > select + .check-error,
p span.relative > input + .check-warning,
p span.relative > select + .check-warning {
    margin-top: -0.583em;
}
/** FORM: custom settings */
.inline-small-label label.big {
    margin-left:-7.5em;
    width: 7.5em;
    padding-top:0.4em;
}

.legend a.order-package-title {
display: block;
margin: -0.25em -0.333em -0.333em -0.5em;
padding: 0.25em 20px 0.333em 0.5em;
color: #666;
background: none;
}

.half-width {
    display: block;
    clear: both;
}
.half-width input {
    width: 10% !important;
    display: inline;
    float: left;
}

.half-width label {
    width: 50% !important;
    display: block;
    text-align: right;
    float: left;
}

.allegro-selection-template {
    padding: 5px;
    display: inline-block;
}

.allegro-result-template {
    display: block;
}

.allegro-result-template img {
    border: 1px solid #888;
    padding: 1px;
    display: inline-block;
    max-width: 68px;
    max-height: 39px;
}

.allegro-result-template div {
    display: inline-block;
    vertical-align: top;
}

.allegro-result-template p {
    margin: 2px 0 0 5px;
    font-size: 11px;
}

.allegro-result-template p.grey {
    color: #888;
}

.select2-highlighted .allegro-result-template p.grey {
    color: #ddd;
}

.validateTips:empty {
    display: none;
}

#login-form {
    padding: 15px;
}
.invoice-status-wrapper,
.tax-id-wrapper {
    display: flex;
    flex-direction: row;
    align-content: flex-start;
    align-items: normal;
    justify-content: space-between;
}
.invoice-field .tax-id-wrapper {
    flex-direction: column;
}
.editor-wrapper.error .tox.tox-tinymce {
    border-color: red;
}
