@font-face {
    font-family: ChevinPro;
    src: url(./opchevinpro-thin-webfont.61990837.eot);
    src: url(./opchevinpro-thin-webfont.61990837.eot?#iefix) format("embedded-opentype"), url(./opchevinpro-thin-webfont.8197077d.woff2) format("woff2"), url(./opchevinpro-thin-webfont.4923dbf9.woff) format("woff"),
        url(./opchevinpro-thin-webfont.af56e436.ttf) format("truetype"), url(./opchevinpro-thin-webfont.a7468d75.svg#svgFontName) format("svg");
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: ChevinPro;
    src: url(./opchevinpro-thinitalic-webfont.20e7ea54.eot);
    src: url(./opchevinpro-thinitalic-webfont.20e7ea54.eot?#iefix) format("embedded-opentype"), url(./opchevinpro-thinitalic-webfont.62d0bb64.woff2) format("woff2"), url(./opchevinpro-thinitalic-webfont.7a130e23.woff) format("woff"),
        url(./opchevinpro-thinitalic-webfont.fa9bfa5a.ttf) format("truetype"), url(./opchevinpro-thinitalic-webfont.47ce4d2d.svg#svgFontName) format("svg");
    font-weight: 100;
    font-style: italic;
}
@font-face {
    font-family: ChevinPro;
    src: url(./opchevinpro-light-webfont.1fe4576c.eot);
    src: url(./opchevinpro-light-webfont.1fe4576c.eot?#iefix) format("embedded-opentype"), url(./opchevinpro-light-webfont.25c675b6.woff2) format("woff2"), url(./opchevinpro-light-webfont.7815e608.woff) format("woff"),
        url(./opchevinpro-light-webfont.c53fdacc.ttf) format("truetype"), url(./opchevinpro-light-webfont.44d651e2.svg#svgFontName) format("svg");
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: ChevinPro;
    src: url(./opchevinpro-lightitalic-webfont.8e0b4ca5.eot);
    src: url(./opchevinpro-lightitalic-webfont.8e0b4ca5.eot?#iefix) format("embedded-opentype"), url(./opchevinpro-lightitalic-webfont.414331fa.woff2) format("woff2"), url(./opchevinpro-lightitalic-webfont.f19ad3ad.woff) format("woff"),
        url(./opchevinpro-lightitalic-webfont.178537fe.ttf) format("truetype"), url(./opchevinpro-lightitalic-webfont.e211df13.svg#svgFontName) format("svg");
    font-weight: 300;
    font-style: italic;
}
@font-face {
    font-family: ChevinPro;
    src: url(./opchevinpro-medium-webfont.af0e64d5.eot);
    src: url(./opchevinpro-medium-webfont.af0e64d5.eot?#iefix) format("embedded-opentype"), url(./opchevinpro-medium-webfont.d3d23dd1.woff2) format("woff2"), url(./opchevinpro-medium-webfont.eb39d6eb.woff) format("woff"),
        url(./opchevinpro-medium-webfont.dec1880b.ttf) format("truetype"), url(./opchevinpro-medium-webfont.06831b13.svg#svgFontName) format("svg");
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: ChevinPro;
    src: url(./opchevinpro-mediumitalic-webfont.fa0be9b1.eot);
    src: url(./opchevinpro-mediumitalic-webfont.fa0be9b1.eot?#iefix) format("embedded-opentype"), url(./opchevinpro-mediumitalic-webfont.31514b72.woff2) format("woff2"), url(./opchevinpro-mediumitalic-webfont.ae0a2f1e.woff) format("woff"),
        url(./opchevinpro-mediumitalic-webfont.711eb175.ttf) format("truetype"), url(./opchevinpro-mediumitalic-webfont.aa5c951a.svg#svgFontName) format("svg");
    font-weight: 500;
    font-style: italic;
}
@font-face {
    font-family: ChevinPro;
    src: url(./opchevinpro-bold-webfont.99605f60.eot);
    src: url(./opchevinpro-bold-webfont.99605f60.eot?#iefix) format("embedded-opentype"), url(./opchevinpro-bold-webfont.e05a2f98.woff2) format("woff2"), url(./opchevinpro-bold-webfont.f1f1223b.woff) format("woff"),
        url(./opchevinpro-bold-webfont.f3b3dcff.ttf) format("truetype"), url(./opchevinpro-bold-webfont.b068c81d.svg#svgFontName) format("svg");
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: ChevinPro;
    src: url(./opchevinpro-bolditalic-webfont.a9b32089.eot);
    src: url(./opchevinpro-bolditalic-webfont.a9b32089.eot?#iefix) format("embedded-opentype"), url(./opchevinpro-bolditalic-webfont.1feef526.woff2) format("woff2"), url(./opchevinpro-bolditalic-webfont.1d7ad8cc.woff) format("woff"),
        url(./opchevinpro-bolditalic-webfont.0981e0f2.ttf) format("truetype"), url(./opchevinpro-bolditalic-webfont.69848585.svg#svgFontName) format("svg");
    font-weight: 600;
    font-style: italic;
}
.op-lasku__widget div,
.op-lasku__widget span,
.op-lasku__widget footer,
.op-lasku__widget input,
.op-lasku__widget button,
.op-lasku__widget h1,
.op-lasku__widget h2,
.op-lasku__widget h3,
.op-lasku__widget h4,
.op-lasku__widget h5,
.op-lasku__widget h6,
.op-lasku__widget p,
.op-lasku__widget blockquote,
.op-lasku__widget pre,
.op-lasku__widget a,
.op-lasku__widget small,
.op-lasku__widget strong,
.op-lasku__widget b,
.op-lasku__widget u,
.op-lasku__widget i,
.op-lasku__widget dl,
.op-lasku__widget dt,
.op-lasku__widget dd,
.op-lasku__widget ol,
.op-lasku__widget ul,
.op-lasku__widget li,
.op-lasku__widget fieldset,
.op-lasku__widget form,
.op-lasku__widget label,
.op-lasku__widget legend,
.op-lasku-container div,
.op-lasku-container span,
.op-lasku-container footer,
.op-lasku-container input,
.op-lasku-container button,
.op-lasku-container h1,
.op-lasku-container h2,
.op-lasku-container h3,
.op-lasku-container h4,
.op-lasku-container h5,
.op-lasku-container h6,
.op-lasku-container p,
.op-lasku-container blockquote,
.op-lasku-container pre,
.op-lasku-container a,
.op-lasku-container small,
.op-lasku-container strong,
.op-lasku-container b,
.op-lasku-container u,
.op-lasku-container i,
.op-lasku-container dl,
.op-lasku-container dt,
.op-lasku-container dd,
.op-lasku-container ol,
.op-lasku-container ul,
.op-lasku-container li,
.op-lasku-container fieldset,
.op-lasku-container form,
.op-lasku-container label,
.op-lasku-container legend {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}
.op-lasku__widget small,
.op-lasku-container small {
    font-size: 11px;
}
.op-lasku__widget strong,
.op-lasku-container strong {
    white-space: nowrap;
}
.op-lasku__widget button,
.op-lasku__widget input,
.op-lasku-container button,
.op-lasku-container input {
    background-color: #fff;
}
.op-lasku__widget button[disabled="true"],
.op-lasku__widget input[disabled="true"],
.op-lasku-container button[disabled="true"],
.op-lasku-container input[disabled="true"] {
    background: #eee !important;
    pointer-events: none !important;
}
.op-lasku-container {
    padding: 24px;
}
.op-lasku-container .op-lasku__fieldset {
    border: 0;
    outline: 0;
    width: 100%;
    margin: 0;
    padding-bottom: 0.5em;
}
.op-lasku-container h2 {
    color: #323232;
    font-family: ChevinPro;
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    padding: 0 0 13px;
    margin: 0;
    width: 80%;
}
.op-lasku-container h2:focus {
    color: red;
}
@media screen and (max-width: 680px) {
    .op-lasku-container h2 {
        font-size: 19px;
        font-weight: 600;
        line-height: 24px;
    }
}
.op-lasku-container p {
    text-align: left;
    color: #323232;
    font-family: ChevinPro;
    font-size: 15px;
    font-weight: 300;
    line-height: 20px;
    padding: 0;
}
.op-lasku-container input::-webkit-outer-spin-button,
.op-lasku-container input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.op-lasku-container .op-lasku__result-rows dt {
    color: #484848;
    font-family: ChevinPro;
    font-size: 13px;
    font-weight: 600;
    line-height: 16px;
    padding-bottom: 3px;
    padding-top: 8px;
    border-style: solid !important;
    border-top: 1px #dcdcdc;
}
.op-lasku-container .op-lasku__result-rows dt:first-child {
    border-style: none !important;
}
.op-lasku-container .op-lasku__result-rows dd {
    color: #323232;
    font-family: ChevinPro;
    font-size: 15px;
    font-weight: 300;
    line-height: 20px;
    padding-bottom: 8px;
}
.op-lasku-container .op-lasku__result-rows dl {
    padding-top: 6px;
}
.op-lasku-container .op-lasku__result-row > span {
    font-size: 14px;
}
.op-lasku-container .op-lasku__result-row > span:nth-child(n + 2) {
    margin-left: auto;
}
.op-lasku-container .op-lasku__result-monthlypayment-info {
    color: #6c6c6c;
    font-family: ChevinPro;
    font-size: 13px;
    font-weight: 500;
    line-height: 16px;
    padding-bottom: 8px;
    padding-top: -5px;
}
.op-lasku-container footer {
    padding-top: 10px;
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    position: relative;
    flex-direction: column;
    align-items: flex-start;
}
.op-lasku-container footer p {
    color: #323232;
    font-family: ChevinPro;
    font-size: 13px;
    font-weight: 500;
    line-height: 16px;
}
.op-lasku-container footer .op-lasku__footercompany {
    display: flex;
    width: 100%;
    justify-content: space-between;
}
.op-lasku-container footer .op-lasku__footercompany p {
    color: #6c6c6c;
    padding-bottom: 0;
    margin-bottom: 2px;
    padding-top: 8px;
    float: left;
    width: 80%;
}
@media screen and (max-width: 340px) {
    .op-lasku-container footer .op-lasku__footercompany p {
        width: 70%;
    }
}
.op-lasku-container footer .op-lasku__footercompany:after {
    content: url(./OP_logo.e0c695c0.svg);
    height: 24px;
    width: 48px;
    align-self: flex-end;
}
.op-lasku-container img.op-lasku__op_logo {
    display: block;
    position: relative;
    float: right;
    width: 48px;
    min-width: 48px;
    height: 24px;
    bottom: -4px;
}
.op-lasku-container label {
    margin-bottom: 8px;
    font-size: 14px;
}
.op-lasku__widget {
    margin-bottom: 12px;
}
.op-lasku__widget:last-child {
    margin-bottom: 0;
}
.op-lasku__widget.op-lasku__type--lasku {
    position: relative;
}
button.op-lasku__btn-open {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 0;
    color: #222;
    padding: 0.75em 1em;
    max-width: 300px;
    font-size: 14px;
    transition: 0.15s background ease-in-out;
}
button.op-lasku__btn-open:hover {
    background: #f3f3f3;
}
.op-lasku--opened.op-lasku__type--solo .op-lasku__fieldset {
    display: none;
}
.op-lasku--opened.op-lasku__type--solo form {
    padding-top: 0;
}
.op-lasku__widget {
    font-family: ChevinPro;
    font-weight: 500;
    font-size: 15px;
    background: transparent;
    opacity: 1;
    transition: opacity 0.55s ease-in-out;
}
@media screen and (min-width: 25em) {
    .op-lasku__widget {
        z-index: 9;
    }
}
.op-lasku__widget .op-lasku__btn-open {
    user-select: none;
    cursor: pointer;
    height: auto;
    background-color: #fff;
    border: 1px solid #bebebe;
    padding: 4px 16px;
    gap: 8px;
    color: #484848;
    font-family: ChevinPro;
    line-height: 16px;
    display: flex;
    text-align: left;
}
.op-lasku__widget .op-lasku__btn-open:before {
    content: url(./OP_tunnus.24771aea.svg);
    height: 16px;
    width: 16px;
}

.op-lasku__widget.op-lasku--invalid .op-lasku__btn-open {
    display: none;
}
.op-lasku__widget.op-lasku--opened .op-lasku-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    z-index: 9999;
    pointer-events: none;
    overflow-x: auto;
    background-color: #ebeeef8f;
}
.op-lasku-container {
    display: none;
    background: white;
    z-index: 10000;
}
.op-lasku--opened .op-lasku__btn-close {
    position: absolute;
    background: transparent !important;
    display: block;
    width: 32px;
    height: 32px;
    cursor: pointer;
    top: 24px;
    right: 24px;
}
@media screen and (max-width: 680px) {
    .op-lasku--opened .op-lasku__btn-close {
        top: 24px;
        right: 16px;
    }
}
.op-lasku--opened .op-lasku__btn-close:focus {
    outline: 2px solid #ee5a00;
}
.op-lasku--opened .op-lasku__btn-close:after {
    content: "";
    position: absolute;
    display: block;
    inset: -16px;
    background: rgba(255, 0, 0, 0.5);
}
.op-lasku--opened.op-lasku-container {
    border: 1px solid #dcdcdc;
    box-shadow: 0 0 4px #0000004d;
    display: block;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 24px;
    width: 640px;
    border-radius: 4px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}
@media screen and (max-width: 680px) {
    .op-lasku--opened.op-lasku-container {
        padding-left: 16px;
        padding-right: 16px;
        width: calc(100vw - 32px);
    }
}



/* ==========================================================
   OP LASKU 1.2.0 - CLS + MODAL SCROLL FIX
   ========================================================== */

/* Pidetään oikean reunan scrollbar-gutter vakaana myös popupin aikana.
   Tämä estää keskitettyjen PrestaShop-containerien sivuttaisen liikkeen. */
html {
    overflow-y: scroll !important;
    scrollbar-gutter: stable;
}

/* Init-slot varaa saman pystysuuntaisen tilan jo ensimmäisessä renderöinnissä.
   Varsinainen OP-widget korvaa placeholderin tämän saman slotin sisällä. */
#op-lasku--init {
    display: block !important;
    box-sizing: border-box !important;
    min-height: 38px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

/* CSS-fallback vanhalle integraatiolle, jossa init-div on täysin tyhjä. */
#op-lasku--init:empty::before {
    content: "OP Laskun erämaksulla";
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 16px 4px 40px;
    border: 1px solid #bebebe;
    background: #fff url(./OP_tunnus.24771aea.svg) no-repeat 16px center / 16px 16px;
    color: #484848;
    font-family: ChevinPro, Arial, sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 16px;
    white-space: nowrap;
}

/* Oikea HTML-placeholder (suositeltu uusi Smarty-snippet). */
#op-lasku--init .op-lasku__placeholder {
    display: block;
    min-height: 26px;
    margin: 0;
    padding: 0;
}

#op-lasku--init .op-lasku__placeholder-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 16px 4px 40px;
    border: 1px solid #bebebe;
    background: #fff url(./OP_tunnus.24771aea.svg) no-repeat 16px center / 16px 16px;
    color: #484848;
    font-family: ChevinPro, Arial, sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 16px;
    white-space: nowrap;
}

/* Oikea widget pysyy slotin sisällä eikä muuta slotin vähimmäiskorkeutta. */
#op-lasku--init > .op-lasku__widget {
    margin: 0 !important;
}

/* Body jäädytetään nykyiseen scroll-kohtaan JS:llä. Root-scrollbar jää näkyviin,
   joten viewportin leveys ei muutu popupia avattaessa. */
body.op-lasku--prevent-scroll {
    overscroll-behavior: none;
}

.op-lasku-container {
    overscroll-behavior: contain;
}
