/* Welcome to Compass.
 * In this file you should write your main styles. (or centralize your imports)
 * Import this file using the following HTML or equivalent:
 * <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" /> */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
}

html {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

caption, th, td {
  text-align: left;
  font-weight: normal;
  vertical-align: middle;
}

q, blockquote {
  quotes: none;
}
q:before, q:after, blockquote:before, blockquote:after {
  content: "";
  content: none;
}

a img {
  border: none;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
  display: block;
}

.hidden {
  display: none;
}

.basic {
  color: #e2e3e1;
  background: #fff;
}
.basic.new {
  color: #e2e3e1;
}

.error {
  color: #fff;
  background: #d9362e;
}
.error.new {
  color: #d9362e;
}

.alert-high {
  color: #fff;
  background: #fcd431;
}
.alert-high.new {
  color: #fcd431;
}

.alert {
  color: #fff;
  background: #fcd431;
}
.alert.new {
  color: #fcd431;
}

.info {
  color: #fff;
  background: #6fc654;
}
.info.new {
  color: #6fc654;
}

body {
  font: 100% "Muli", Arial, Helvetica, Verdana, sans-serif;
  color: #4c4e52;
}

/* headings */
h1, h2, h3 {
  font-family: "Muli", Arial, Helvetica, Verdana, sans-serif;
  font-weight: bold;
}

h1, .h1 {
  font-size: 2.2em;
  margin-bottom: 1em;
  margin-top: 0.5em;
}

h2, .h2 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
}

h3, .h3 {
  font-size: 1em;
  margin-bottom: 0.5em;
}

h4, .h4 {
  font-size: 0.7em;
}

/* links */
a, a:link, a:visited {
  color: #84c22d;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  margin-bottom: 10px;
}

#content, #footer {
  font-size: 14px;
}

#wrapper {
  width: 100%;
}

.sivukuva {
  position: relative;
  float: right;
  width: 254px;
  height: 250px;
}

/* -------------- header -------------- */
#header {
  width: 800px;
  margin: 0 auto;
  min-height: 185px;
  background-size: 800px auto;
  position: relative;
}

#header .navipolku {
  position: relative;
  top: 157px;
  text-align: center;
  font-weight: bold;
}

/* -------------- end header -------------- */
/* -------------- content -------------- */
#content {
  width: 760px;
  margin: 0 auto;
  padding: 0;
  margin-top: 20px;
  font-size: 14px;
}

#content h2 {
  color: #4c4e52 !important;
}

#content h2 span {
  color: #4c4e52 !important;
}

#content h3 {
  margin-top: 10px;
}

#content:before, #content:after {
  content: " ";
  display: table;
}
#content:after {
    
  clear: both;
}

.row {
  margin-bottom: 25px;
  width: 450px;
  float: left;
}
.row:before, .row:after {
  content: " ";
  display: table;
}
.row:after {
  clear: both;
}

/* -------------- end content -------------- */
/* -------------- footer -------------- */
#footer {
  text-align: center;
  padding: 0;
  margin-top: 40px;
  height: 90px;
  line-height: 90px;
}

#footer a {
  color: #fff;
}

/* -------------- end footer -------------- */
/* -------------- dialog -------------- */
#info-dialog, #info-dialog-files {
  display: none;
  text-align: center;
  background: #fff;
  padding-bottom: 20px;
}

#info-dialog .close-dialog, #info-dialog-files .close-dialog {
  text-align: right;
  width: 100%;
  float: right;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
  padding-top: 10px;
  margin-bottom: 10px;
}

#info-dialog .close-dialog .close, #info-dialog-files .close-dialog .close {
  display: block;
  width: 20px;
  height: 23px;
  background: url("../img/button_close.png") no-repeat;
  background-size: 100%;
  float: right;
}

#info-dialog .close-dialog .close:hover, #info-dialog-files .close-dialog .close:hover {
  cursor: pointer;
}

#info-dialog .h3, #info-dialog-files .h3 {
  color: #54c41b;
  margin-bottom: 10px;
}

#info-dialog p, #info-dialog-files p {
  padding-top: 20px;
  float: left;
}

.ui-widget-overlay {
  background: #000;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);
  opacity: 0.5;
}

.ui-dialog .ui-dialog-titlebar {
  display: none;
}

/* -------------- END dialog -------------- */
/* -------------- ketjun valintasivu -------------- */
.valintavirhe {
  color: red;
  float: left;
  width: 100%;
  font-size: 14px;
}

#valintalomake {
  max-width: 600px;
}

#valintalomake .row {
  margin-bottom: 0;
}

#valintalomake .row input[type="submit"] {
  margin-bottom: 0px;
  padding: 3px 5px;
  height: 30px;
  font-size: 14px;
}

#valintalomake .row.options {
  margin-top: 10px;
  margin-bottom: 15px;
}

/* -------------- END ketjun valintasivu -------------- */
/* -------------- lomakesivu -------------- */
.row.yhteystapa {
  margin-top: 20px;
  margin-bottom: 40px;
}

.row.number label {
  position: relative;
}
.row.number a {
  position: absolute;
  right: 0;
  height: 30px;
  width: 30px;
  z-index: 10;
  bottom: 0px;
  outline: none;
}
.row.number span {
  display: block;
  width: 0;
  height: 30px;
  padding-left: 30px;
  background: url("../img/button_info.png") no-repeat right 6px;
  background-size: 68%;
  overflow: hidden;
}

.cards {
  height: 320px;
  width: 270px;
}
.cards .card-a {
  height: 160px;
  width: 270px;
  background: url("../img/kortit.png") no-repeat 5px 0;
  margin-bottom: 5px;
}
.cards .card-b {
  height: 160px;
  width: 270px;
  background: url("../img/kortit.png") no-repeat 5px -174px;
}

em.lisaysohje {
  font-size: 0.8em;
}

.fileinputs label {
  position: relative;
}
.fileinputs label span {
  position: absolute;
  right: 0;
  height: 30px;
  width: 30px;
  z-index: 10;
  bottom: 0px;
  display: block;
  height: 30px;
  background: url("../img/button_info.png") no-repeat right 6px;
  background-size: 68%;
  overflow: hidden;
}
.fileinputs label span:hover {
  cursor: pointer;
}

/* -------------- END lomakesivu -------------- */
/* -------------- kiitossivu  -------------- */
.kiitossivu #header span {
  display: none;
}

.kiitossivu .row.buttons {
  margin-top: 20px;
}

/* -------------- END kiitossivu  -------------- */
/* -------------- error msg  -------------- */
.feedbackPanel {
  margin-top: 10px;
}
.feedbackPanel li {
  margin-bottom: 10px;
}
.feedbackPanel li .feedbackPanelERROR, .feedbackPanel li .feedbackPanelINFO {
  color: red;
}

/* -------------- Counter  -------------- */
.feedback-form .message label {
  width: 80%;
}

.feedback-form .message .msg-count-info {
  display: none;
  width: 100%;
  text-align: right;
  color: red;
}

.feedback-form .message .msg-count-info.limit {
  display: block;
  color: red;
}

.feedback-form .message .counter {
  display: inline-block;
  float: right;
}

.feedback-form .message .counter #laskuri {
  float: right;
}

.feedback-form .message .counter #laskuri.limit {
  color: red;
}

/* -------------- messages  -------------- */
.viestialue {
  width: 450px;
  float: left;
}

.viestialue .teksti {
  border-bottom: 1px solid #ccc;
  padding-bottom: 20px;
  margin-bottom: 20px;
  width: 450px;
}

.viestit {
  width: 450px;
}

.viestit .viesti {
  margin-bottom: 20px;
}

.viestit .viesti .msg-header {
  margin-left: 30px;
}

.viestit .viesti .msg-content {
  position: relative;
  padding-left: 30px;
}

.viestit .viesti .msg-content .msg-bg {
  position: absolute;
  display: block;
  width: 20px;
  height: 36px;
  background: url("../img/msg-left-bg.png") no-repeat 0 0;
  left: 11px;
  top: 4px;
}

.viestit .viesti .msg-content pre {
  -moz-border-radius: 6px;
  -webkit-border-radius: 6px;
  border-radius: 6px;
  border: solid 1px #7e7e7e;
  padding: 10px;
  min-height: 40px;
  white-space: pre-line;
}

.viestit .viesti[style] {
  padding-left: 0;
}

.viestit .viesti[style] .msg-header {
  margin-left: 0;
  margin-right: 30px;
  text-align: right;
}

.viestit .viesti[style] .msg-content {
  padding-left: 0px;
  padding-right: 30px;
}

.viestit .viesti[style] .msg-content .msg-bg {
  background: url("../img/msg-right-bg.png") no-repeat 0 0;
  left: auto;
  right: 11px;
  top: 4px;
}

.viestit .viesti[style] .msg-content pre {
  border: solid 1px #7a94a1;
  background: #edf8fe;
}

/* -------------- END messages  -------------- */
/* -------------- media queries for modules  -------------- */
@media (max-width: 820px) {
  #header .navipolku .h2 {
    padding-left: 20px;
    padding-right: 20px;
    font-size: 1.1em;
  }

  #content {
    width: calc(100% - 40px);
    padding: 0 10px;
  }
}
@media (max-width: 820px) {
  #header {
    width: 100%;
    margin: 0 auto;
    min-height: inherit;
    background-size: 100% auto;
    position: relative;
  }

  #content .navipolku {
    position: relative;
    text-align: left;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
  }
  #content h3 {
    margin-top: 10px;
  }

  #footer {
    width: 100%;
    margin: 0 auto;
    margin-top: 20px;
    min-height: inherit;
    background-size: 100% auto;
    position: relative;
  }

  .row.message label {
    display: inline;
    width: 100%;
  }
}
@media (max-width: 767px) {
  .viestialue {
    width: 100%;
  }

  .viestialue .teksti {
    width: 100%;
  }

  .viestit {
    width: 100%;
  }
}
@media (max-height: 480px) and (orientation: landscape) {
  #info-dialog {
    padding: 10px;
  }

  .cards {
    width: 360px;
    height: 140px;
  }

  .cards .card-a, .cards .card-b {
    float: left;
    background-position: 0 0;
    background-size: 180px;
    width: 180px;
    height: 118px;
  }

  .cards .card-b {
    background-position: 0 -119px;
  }
}

label {
  font-size: 14px;
}

.feedback-form label {
  width: 100%;
  display: inline-block;
  font-size: 14px;
}

.feedback-form textarea {
  width: 99%;
  width: calc(100% - 12px);
  height: 70px;
  outline: none;
  padding: 5px;
  font-size: 14px;
  font-family: "Muli" Arial sans-serif;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -moz-box-shadow: rgba(153, 153, 153, 0.1) 0 1px 1px 2px inset;
  -webkit-box-shadow: rgba(153, 153, 153, 0.1) 0 1px 1px 2px inset;
  box-shadow: rgba(153, 153, 153, 0.1) 0 1px 1px 2px inset;
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
  border-radius: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: solid 1px #929292;
}
.feedback-form textarea:focus {
  border: 1px solid #00c84e;
  font-size: 16px;
}

.iphone.feedback-form textarea {
  font-size: 16px;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="submit"] {
  width: 99%;
  width: calc(100% - 12px);
  height: 25px;
  padding: 5px;
  border: solid 1px #929292;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -moz-box-shadow: rgba(153, 153, 153, 0.1) 0 1px 1px 2px inset;
  -webkit-box-shadow: rgba(153, 153, 153, 0.1) 0 1px 1px 2px inset;
  box-shadow: rgba(153, 153, 153, 0.1) 0 1px 1px 2px inset;
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
  border-radius: 0;
  font-size: 14px;
}

input:focus {
  border: 1px solid #00c84e;
  font-size: 16px;
}

input[type="submit"] {
  width: 100%;
  background: #d7d3d4;
  height: 35px;
  box-shadow: none;
  text-transform: uppercase;
  color: #000;
  font-size: 14px;
}

input[type="submit"]:hover {
  cursor: pointer;
}

input[type="submit"]:focus {
  background: #b5b2b2;
  border: solid 1px #929292;
  font-size: 14px;
}

input[name="postinumero"] {
  width: 96px;
  float: left;
}

input[name="postitoimipaikka"] {
  width: 320px;
  float: left;
  margin-left: 10px;
}

.iphone input[type="text"], .iphone input[type="email"], .iphone input[type="tel"], .iphone input[type="number"] {
  font-size: 16px;
}

/* ---------------- radio buttons ------------------*/
input[type="radio"] {
  float: left;
  height: 0;
  width: 0;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  opacity: 0;
  position: absolute;
  left: -9999px;
}

input[type="radio"] + label {
  padding-left: 26px;
  background: url("../img/radio_buttons.png") no-repeat 0 0px;
  line-height: 26px;
  height: 26px;
  display: inline-block;
  float: left;
  cursor: pointer;
  width: 100%;
  margin-bottom: 10px;
}

input[type="radio"]:checked + label {
  background: url("../img/radio_buttons.png") no-repeat 0 -80px;
  color: #00c84e;
}

.radio-group input[type="radio"] + label {
  width: auto;
}

.radio-group div {
  width: calc(33.3% - 20px);
  float: left;
  display: inline-block;
  margin-right: 20px;
}

.radio-group .hidden {
  display: none;
}

/* yhteydenottolomake - radio buttons */
.radio-group-list input[type="radio"] {
  float: left;
}

.radio-group-list input[type="radio"] + label {
  width: 150px;
  width: calc(33.3% - 40px);
  float: left;
  display: inline-block;
  margin-left: 10px;
  line-height: 18px;
  margin-top: 20px;
  margin-bottom: 20px;
  padding-top: 2px;
}

.radio-group-list br {
  display: none;
}

.radio-group-list input[type="radio"] {
  float: none;
}

.radio-group-list input[type="radio"] + label {
  width: 100%;
  float: none;
  margin-left: 0px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.radio-group-list br {
  display: inherit;
}

.portrait .radio-group div {
  width: 100%;
  margin-right: 0;
}

.portrait .radio-group div .email {
  margin-bottom: 20px;
}

.portrait .radio-group div .tel {
  margin-bottom: 0;
}

.portrait .radio-group div input[type="radio"] + label {
  margin-bottom: 20px;
}

/* valintalomake - radio buttons */
.store-selection input[type="radio"] + label {
  line-height: 16px;
  height: auto;
  min-height: inherit;
  padding-top: 4px;
  margin-bottom: 12px;
  width: calc(100% - 26px);
  font-size: 14px;
}

select {
  width: 100%;
  padding: 5px;
  outline: none;
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
  border-radius: 0;
  font-size: 14px;
  border: solid 1px #929292;
}

select:focus {
  border: 1px solid #00c84e;
  font-size: 16px;
}

.iphone select {
  font-size: 16px;
}

.file-upload {
  padding-bottom: 20px;
  border-bottom: 1px solid #ccc;
  position: relative;
  float: left;
  width: 450px;
}

.file-upload:before, .file-upload:after {
  content: " ";
  display: table;
}

.file-upload:after {
  clear: both;
}

.file-upload .fileinputs {
  position: relative;
}

.file-upload .fileinputs a {
  width: 100%;
  width: calc(100% - 2px);
  height: 25px;
  padding: 5px 0;
  line-height: 25px;
  text-align: center;
  cursor: pointer;
  color: #4c4e52;
  text-transform: uppercase;
  border: solid 1px #929292;
  display: block;
  background-color: #f8f8f8;
  font-size: 14px;
}

.file-upload .fileinputs a:hover {
  text-decoration: none;
  cursor: pointer;
}

.file-upload .fileinputs a:active {
  background: #b5b2b2;
  border: solid 1px #929292;
}

.file-upload input.file {
  position: absolute;
  text-align: right;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  opacity: 0;
  z-index: 2;
  top: 20px;
  cursor: pointer;
}

.file-upload .uploaded-file {
  position: relative;
}

.file-upload .uploaded-file .file-name {
  width: 100%;
  height: 25px;
  padding: 5px 0;
  line-height: 25px;
  text-align: center;
  color: #4c4e52;
  text-transform: uppercase;
  border: solid 1px #929292;
  background-color: #f8f8f8;
  margin-top: 20px;
  font-size: 14px;
}

.file-upload .uploaded-file .remove-file {
  position: absolute;
  right: 0;
  top: -22px;
  padding-right: 22px;
  background: url("../img/button_delete.png") no-repeat right top;
  color: #4c4e52;
  height: 22px;
}

.file-upload .uploaded-file .remove-file:hover {
  text-decoration: none;
}

.file-upload .uploaded-label {
  display: none;
}

.vastausviestilomake .file-upload {
  margin-bottom: 30px;
}

img.ajax-loader {
  margin: 15px calc(50% - 50px) 15px calc(50% - 50px);
}

a.link-button {
  width: 100%;
  width: calc(100% - 2px);
  min-height: 23px;
  padding: 5px 0;
  line-height: 23px;
  text-align: center;
  cursor: pointer;
  color: #000;
  text-transform: uppercase;
  border: solid 1px #929292;
  display: block;
  background-color: #d7d3d4;
  margin-bottom: 25px;
  font-size: 14px;
}

a.link-button:hover {
  text-decoration: none;
}

a.link-button:focus {
  background: #b5b2b2;
}

a.link-button.hidden {
  display: none;
}

a.link-button.light {
  background: #fff;
  margin-bottom: 0;
}

.form-actions a.link-button {
  margin-bottom: 0;
}

.form-actions input {
  margin-bottom: 0;
}

/*---------------- Toimipaikkahaku --------------------*/
.toimipaikkalomakesivu .form-actions {
  margin-bottom: 0;
}

.toimipaikkalomakesivu .form-actions a.link-button {
  margin-bottom: 25px;
}

.toimipaikkalomakesivu .form-actions input {
  margin-bottom: 25px;
}

.scrollbox {
  height: 0;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  opacity: 0;
  position: absolute;
  left: -9999px;
}

.kunta {
  display: none;
}

.desktop .scrollbox {
  height: 160px;
  width: 100%;
  width: calc(100% - 2px);
  position: relative;
  left: auto;
  opacity: 1;
  overflow: hidden;
  overflow-y: scroll;
  border: solid 1px #929292;
  border-top: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.desktop .scrollbox table {
  width: 100%;
}

.desktop .scrollbox table td {
  padding: 3px 5px;
}

.mobile .scrollbox {
  height: 160px;
  width: 100%;
  width: calc(100% - 2px);
  position: relative;
  left: auto;
  opacity: 1;
  overflow: hidden;
  overflow-y: scroll;
  border: solid 1px #929292;
  border-top: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 14px;
}

.mobile .scrollbox table td {
  padding: 8px 5px;
}

/* Toimipaikan valintasivun custom scrollbox -removed */
#custom-select {
  position: relative;
  margin-bottom: 25px;
  height: 35px;
}

#custom-select #custom-select-button {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 102;
  width: 100%;
  height: 23px;
  padding: 5px 0;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  color: #4c4e52;
  border: solid 1px #a7a7a7;
  display: block;
  background-color: #fff;
  margin-bottom: 0;
}

#custom-select #custom-select-button:hover {
  text-decoration: none;
}

#custom-select #custom-select-button:focus, #custom-select #custom-select-button.border-focus {
  border-color: #00c84e;
}

#custom-select #custom-select-button span {
  background: url("../img/dropdown-arrow.png") no-repeat right 50%;
  padding-right: 20px;
  text-transform: ellipsis;
}

#custom-select #store-location {
  position: absolute;
  top: 0;
  left: 0;
  height: 35px;
  opacity: 0;
  z-index: 100;
}

#custom-select #store-location.store-location-open {
  filter: progid:DXImageTransform.Microsoft.Alpha(enabled=false);
  opacity: 1;
  z-index: 100;
}

#custom-select #store-location option {
  width: 100%;
  padding: 3px;
}

#custom-select #store-location option:hover {
  cursor: pointer;
}

/* -------------- Media queries for forms  -------------- */
@media (max-width: 820px) {
  .radio-group div {
    width: 100%;
    margin-right: 0;
  }

  .radio-group div .email {
    margin-bottom: 20px;
  }

  .radio-group div .tel {
    margin-bottom: 0;
  }

  .radio-group div input[type="radio"] + label {
    margin-bottom: 20px;
  }

  h2 {
    font-size: 1.1em;
  }

  /*---------------- Valintalomake --------------------*/
  .store-selection input[type="radio"] + label {
    line-height: 16px;
    height: auto;
    min-height: inherit;
    padding-top: 4px;
    margin-bottom: 12px;
    width: calc(100% - 26px);
    font-size: 14px;
  }

  #valintalomake .row.options {
    margin-top: 0;
    margin-bottom: 15px;
  }

  /*---------------- Toimipaikkahaku --------------------*/
  .scrollbox {
    width: calc(100% - 10px);
  }

  .mobile .scrollbox table td {
    padding: 8px 5px;
  }

  #custom-select #custom-select-button span {
    display: inline-block;
    max-width: calc( 100% - 30px );
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .feedback-form .counter {
    width: 100%;
    float: left;
    text-align: right;
  }

  .feedback-form .counter .msg-count-info {
    width: 80%;
  }

  .feedback-form .counter #laskuri {
    float: right;
    position: relative;
  }
}

@media (max-width: 767px) {
  .sivukuva {
    display: none;
  }

  .row, .file-upload {
    width: 100%;
  }

  input[name="postinumero"] {
    width: 96px;
    float: left;
  }
  
  input[name="postitoimipaikka"] {
    width: 75%;
    width: calc(100% - 130px);
    float: left;
    margin-left: 10px;
  }
}
@media (max-width: 480px) {
  /*---------------- Valintalomake --------------------*/
  .store-selection input[type="radio"] + label {
    line-height: 16px;
    height: auto;
    min-height: inherit;
    padding-top: 4px;
    margin-bottom: 7px;
    width: calc(100% - 26px);
    font-size: 12px;
  }

  #valintalomake .row.options {
    margin-top: 0;
    margin-bottom: 10px;
  }

  input[name="postinumero"] {
    width: 30%;
    float: none;
    margin-bottom: 10px;
  }
  
  input[name="postitoimipaikka"] {
    width: 100%;
    width: calc(100% - 12px);
    float: none;
    margin-left: 0;
  }
}