:root {
    --viinikellari-vari: #B3A679;
}
* {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    padding: 0;
    margin: 0;
}

img, svg, div {
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}



body, html {
    width: 100%;
    min-height: calc(100vh - 100px);
    background-color: #ffffff;
}

body {
    overflow-x: hidden;
}

body.dark-theme {
    --default-main-color: #C5B580;
    --default-main-color-filter: brightness(0) invert(75%) sepia(11%) saturate(934%) hue-rotate(9deg) brightness(95%) contrast(92%);

    --default-accent-color: #92164E;
    --default-accent-color-filter: invert(14%) sepia(50%) saturate(4303%) hue-rotate(315deg) brightness(96%) contrast(96%);

    --default-dark-color: #1C1C1C;
    --default-dark-color-filter: invert(0%) sepia(14%) saturate(2559%) hue-rotate(177deg) brightness(78%) contrast(78%);

    --default-box-shadow: 0 4px 8px rgba(0,0,0,.05);

    --default-main-header-color: #1C1C1C;
}

body.wine-theme {
    --default-main-color: #92164E;
    --default-main-color-filter: brightness(0) invert(15%) sepia(59%) saturate(4069%) hue-rotate(317deg) brightness(85%) contrast(95%);

    --default-accent-color: #92164E;
    --default-accent-color-filter: invert(14%) sepia(50%) saturate(4303%) hue-rotate(315deg) brightness(96%) contrast(96%);

    --default-dark-color: #92164E;
    --default-dark-color-filter: invert(14%) sepia(50%) saturate(4303%) hue-rotate(315deg) brightness(96%) contrast(96%);

    --default-box-shadow: 0 4px 8px rgba(0,0,0,.05);

    --default-main-header-color: #92164E;
}

body.white-theme {
    --default-main-color: #C5B580;
    --default-main-color-filter: brightness(0) invert(75%) sepia(11%) saturate(934%) hue-rotate(9deg) brightness(95%) contrast(92%);

    --default-accent-color: #92164E;
    --default-accent-color-filter: invert(14%) sepia(50%) saturate(4303%) hue-rotate(315deg) brightness(96%) contrast(96%);

    --default-dark-color: #1C1C1C;
    --default-dark-color-filter: invert(0%) sepia(14%) saturate(2559%) hue-rotate(177deg) brightness(78%) contrast(78%);

    --default-box-shadow: 0 4px 8px rgba(0,0,0,.05);

    --default-main-header-color: #fff;
}

/* White theme styling */

.white-theme #login-view, .white-theme #register-view {
    background-color: #F3F3F3!important;
}

.white-theme img.login-viinilehti-logo {
    filter: brightness(0);
}

.white-theme .white-theme-text {
    color: #222222!important;
}

.white-theme .navigation {
    box-shadow: 0 -2px 8px rgba(0,0,0,.11);
    background-color: #fff!important;
}

.white-theme .navigation .navelement img {filter: none;}
.white-theme .navigation .navelement span {color: black;}

.white-theme .navigation .navelement.active img {
    filter: invert(75%) sepia(11%) saturate(934%) hue-rotate(9deg) brightness(95%) contrast(92%);
}

.white-theme .navigation .navelement.active span {
    color: #C5B580FF!important;
}

.white-theme #viinihaku-palkki {
    color: black!important;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
}

.white-theme .spacer {
    background-color: #000;
}

.white-theme .order-search-results--container::before {
    color: black!important;
}

.white-theme .popup {
    background-color: #F3F3F3;
}

.white-theme img.white-theme-element {
    filter: brightness(0) !important;
}

.white-theme .white-theme-element::before,
.white-theme .white-theme-element::after {
    filter: brightness(0) !important;
}

/*
p, h5, span {
    font-size: 14px;
}
*/

.nofilter {
    filter: none!important;
}

.simple-error-msg {
    color: #df1029;
}

.simple-success-msg {
    color: #C5B580;
}

/* General styles */

#scroll-to-top {
    width: 40px;
    height: 40px;
    background-color: var(--default-main-color);
    position: fixed;
    right: 10px;
    bottom: 80px;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    display: none;
}

#scroll-to-top img {
    width: 10px;
    filter: brightness(100);
    transform: rotate(90deg);
}

.white-bg {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: var(--default-box-shadow);
}

img:not(.search-criterion.more img) {
    max-width: 100%;
    height: auto;
}

input[type="number"],
input[type="text"] {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 4px;
    border: 1px solid rgb(141,141,141);
    color: rgb(141,141,141);
    font-family: "Montserrat", sans-serif;
    outline: 2px solid transparent;
    transition: outline .1s ease-in;
}

input[type="number"]:not(.search-input):focus,
input[type="text"]:not(.search-input):focus {
    outline-color: var(--default-main-color);
}

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

.btn {
    width: fit-content;
    width: -moz-fit-content;
    color: white;
    border-radius: 5px;
    background-color: var(--default-main-color);
    box-shadow: 0 3px 6px rgba(197, 181, 128, .2);
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    text-align: center;
    padding: 10px 30px;
    margin: 30px auto;
    font-weight: 500;
    border: 0;
}

.center {
    margin: 0 auto;
}

.block {
    display: block;
}

.text-uppercase {
    text-transform: uppercase!important;
}

.accent-text {
    color: var(--default-accent-color);
}

.my-0 {margin-top: 0!important;margin-bottom: 0!important;}
.mx-0 {margin-left: 0!important;margin-right: 0!important;}

.my-30 {margin-top: 30px;margin-bottom: 30px;}
.mt-30 {margin-top: 30px}
.mr-30 {margin-right: 30px}
.mb-30 {margin-bottom: 30px}
.ml-30 {margin-left: 30px}

.my-20 {margin-top: 20px;margin-bottom: 20px;}
.mt-20 {margin-top: 20px}
.mr-20 {margin-right: 20px}
.mb-20 {margin-bottom: 20px}
.ml-20 {margin-left: 20px}

.my-0 {margin: 0 0}
.mt-0 {margin-top: 0}
.mr-0 {margin-right: 0}
.mb-0 {margin-bottom: 0}
.ml-0 {margin-left: 0}

.my-15 {margin-top: 15px;margin-bottom: 15px;}
.mt-15 {margin-top: 15px}
.mr-15 {margin-right: 15px!important}
.mb-15 {margin-bottom: 15px}
.ml-15 {margin-left: 15px}
.mx-15 {margin-left: 15px; margin-right: 15px}

.my-5 {margin-top: 5px;margin-bottom: 5px;}
.mt-5 {margin-top: 5px}
.mr-5 {margin-right: 5px!important}
.mb-5 {margin-bottom: 5px}
.ml-5 {margin-left: 5px}
.mx-5 {margin-left: 5px; margin-right: 5px}

.my-50 {margin-top: 50px!important;margin-bottom: 50px!important;}
.mt-50 {margin-top: 50px!important;}
.mr-50 {margin-right: 50px!important;}
.mb-50 {margin-bottom: 50px!important;}
.ml-50 {margin-left: 50px!important;}

.my-10 {margin-top: 10px;margin-bottom: 10px;}
.mt-10 {margin-top: 10px}
.mr-10 {margin-right: 10px}
.mb-10 {margin-bottom: 10px}
.ml-10 {margin-left: 10px}

.gap-0 {gap: 0;}
.gap-5 {gap: 5px}
.gap-10 {gap: 10px}
.gap-15 {gap: 15px}
.gap-30 {gap: 15px}
.gap-45 {gap: 15px}


.small {
    font-size: 14px;
}

.heading-big {
    font-size: 25px!important;
}

.popup {
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--default-dark-color);
    z-index: 999;
    /*transform: translateZ(15px);*/
    color: white!important;
}

.popup .popup-content {
    width: 100%;
    margin: 30px auto;
    padding: 15px;
    color: white!important;
}

.popup .popup-content h2 {
    font-family: "Montserrat", sans-serif!important;
    font-weight: 300!important;
    text-align: center!important;
    text-transform: uppercase;
    font-size: 20px!important;
}

.close-popup-container {
    position: relative;
}

.close-popup-container .go-back::before {
    content: "";
    width: 17px;
    height: 19px;
    display: inline-block;
    background-image: url(/assets/kuvakkeet/chevron-left.svg);
    background-size: contain;
    background-repeat: no-repeat;
    filter: brightness(100);
    margin-right: 5px;
}

.close-popup-container .go-back {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

.close-popup-container #close-popup {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    filter: brightness(100);
}

.popup .popup-content form textarea {
    width: 100%;
    margin: 15px 0;
    padding: 10px;
    font-family: "Montserrat", sans-serif;
    background-color: #333333;
    color: white!important;
    border: 0;
    font-size: 14px;
    border-radius: 6px;
    box-shadow: var(--default-box-shadow);
}

.popup .popup-content form select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 40px;
    background-color: #333333;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    box-shadow: var(--default-box-shadow);
    border-radius: 6px;
    padding: 0 10px;
    position: relative;
    font-size: 14px;
}

.popup .popup-content form .select-container {
    width: 100%;
    height: fit-content;
    position: relative;
}

.popup .popup-content form .select-container::after {
    content: "";
    background-image: url("assets/kuvakkeet/chevron-left.svg");
    position: absolute;
    width: 10px;
    height: 21px;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
}

.popup .popup-content form input[type="submit"]:not(.not-fixed) {
    position: absolute;
    bottom: 15px;
    width: 92%;
    left: 4%;
}

.error-msg {
    width: 95%;
    position: fixed;
    left: 2.5%;
    bottom: 50px;
}

#select-review-star-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 15px 0;
}

.rating-1 .star:nth-child(-n+1) svg path { fill: #B3A679!important; }
.rating-2 .star:nth-child(-n+2) svg path { fill: #B3A679!important; }
.rating-3 .star:nth-child(-n+3) svg path { fill: #B3A679!important; }
.rating-4 .star:nth-child(-n+4) svg path { fill: #B3A679!important; }
.rating-5 .star:nth-child(-n+5) svg path { fill: #B3A679!important; }

#login-error-text {
    color: #fff;
    width: 100%;
    padding: 5px;
    border-radius: 5px;
    background-color: rgba(219, 18, 47, 0.38);
    border: 1px solid #df1029;
    display: none;
}

#login-error-text.show {
    display: block!important;
}

#register-error-text {
    color: #fff;
    width: 100%;
    padding: 5px;
    border-radius: 5px;
    background-color: rgba(219, 18, 47, 0.38);
    border: 1px solid #df1029;
    display: none;
}

#register-error-text.show {
    display: block!important;
}

.inner-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    position: relative;
}

.inner-navigation p {
    font-size: 16px;
    font-weight: 500;
}

.inner-navigation .go-back {
    height: 40px;
    width: 40px;
    box-shadow: var(--default-box-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 5px;
    position: absolute;
    left: 0;
    top: 0;
}

.inner-navigation .go-back img {
    width: 10px;
    height: 21px!important;
    margin: 0 40px;
}

.success-popup,
.error-popup{
    position: fixed;
    z-index: 1000;
    top: 50px;
    left: 0;
    width: 100%;
    padding: 0 15px;
    display: none;
}

.success-popup .content,
.error-popup .content{
    border-radius: 6px;
    color: #fff;
    padding: 10px 15px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.success-popup .content {
    background-color: #155724;
}

.error-popup .content {
    background-color: #7b1414;
}

/* END OF General styles */

/* New features popup */

#new-features-container {
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 99;
    background-color: var(--default-dark-color);
    color: #fff;
    overflow-y: auto;
}

#close-new-features-popup {
    position: absolute;
    right: 20px;
    top: 20px;
}

.new-features-container {
    padding: 15px;
    padding-bottom: 25px;
}

.new-features {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-direction: column;
}

.new-features div {
    display: flex;
    gap: 15px;
}

.new-features div span {
    padding-bottom: 15px;
    border-bottom: 2px solid #7B7B7B;
}

.new-features div img {
    filter: brightness(0) invert(75%) sepia(11%) saturate(934%) hue-rotate(9deg) brightness(95%) contrast(92%);
    flex: 1 0 20px;
    width: 22px;
    max-width: 20px!important;
}


/* END OF New features popup */

/* Asetukset */

.kokonimi {
    text-align: center;
    font-weight: 300;
    margin: 15px 0;
    color: var(--default-main-color);
    font-family: "Ivar Display", Montserrat, sans-serif;
    font-size: 25px;
    letter-spacing: 1px;
}

.wine-theme .settings-sections .settings-section {
    background-color: #fff!important;
}

.wine-theme .settings-sections .settings-section p {
    color: #222222!important;
}

.settings-sections {
    box-shadow: var(--default-box-shadow);
    border-radius: 6px;
    overflow: hidden;
}

.settings-sections .settings-section {
    background-color: #333333;
    color: #fff;
    padding: 20px 30px;
    display: flex;
    position: relative;
    gap: 15px;
}

.settings-sections .settings-section:not(:last-child) {
    border-bottom: 3px solid var(--default-dark-color);
}

.settings-sections .settings-section img {
    filter: var(--default-main-color-filter);
}

.settings-sections .settings-section:not(.logout)::after {
    content: "";
    width: 20px;
    height: 25px;
    background-image: url(/assets/kuvakkeet/chevron-left.svg);
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(180deg) translateY(-50%);
    position: absolute;
    right: 30px;
    bottom: 50%;
}

#upgrade-profile-form .label-input-container img:not(.nofilter) {
    filter: invert(75%) sepia(11%) saturate(934%) hue-rotate(9deg) brightness(95%) contrast(92%);
}

#upgrade-profile-form .label-input-container:not(:last-child) {
    margin-bottom: 15px;
}

/* END OF Asetukset */

/* Theme */

.chose-theme {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chose-theme > div::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    border-radius: 100%;
}

.chose-theme > div {
    width: 100%;
    padding: 15px 50px;
    color: #fff;
    background-color: #333333;
    box-shadow: var(--default-box-shadow);
    font-family: "Montserrat", sans-serif;
    border-radius: 6px;
    position: relative;
}

.chose-theme > div.active {
    background-color: #C5B580FF;
}

.chose-theme .theme-wine::before {
    background-color: #92164E;
}

.chose-theme .theme-white::before {
    background-color: #fff;
}

.chose-theme .theme-dark::before {
    background-color: #000;
}

/* END OF Theme */

/* Login */

#login-view,
#register-view{
    width: 100%;
    height: 100%;
    background-color: var(--default-dark-color);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transform: translateZ(15px);
    align-items: center;
    flex-direction: column;
    padding: 30px 15px;
    color: white;
    overflow-y: auto;
}

#login-view {
    display: flex;
}

#register-view {
    display: none;
}

#register-view.show {
    display: flex;
}

.login-viinilehti-logo {
    width: 300px;
}

.headline {
    font-family: "Ivar Display", Montserrat, sans-serif;
    margin: 15px 0;
    font-size: 18px;
    color: #C5B580FF;
}

#login-view #login-form,
#register-view #register-form{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 15px;
    font-size: 14px;
}

.label-input-container input:focus,
.label-input-container input:focus-within {
    outline-color: var(--default-main-color);
    outline-width: 1px;
}

.label-input-container input {
    width: 100%;
    padding: 15px 40px;
    border-radius: 5px;
    background-color: #fff;
    color: #464646;
    font-family: "Montserrat", sans-serif;
    border: 0;
    box-shadow: var(--default-box-shadow);
    font-size: 14px;
}

.label-input-container input::placeholder {
    color: #464646;
}

.label-input-container [type="date"] {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 48px;
    color: white!important;
}

#tilaa-viikon-viinivinkki .label-input-container input {
    padding: 15px!important;
}

#tilaa-viikon-viinivinkki .label-input-container.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 20px;
}

.input-text {
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.main-login-button {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    border-radius: 5px;
    padding: 15px 40px;
    text-align: center;
    background-color: #C5B580FF;
    font-family: "Montserrat", sans-serif;
    border: 0;
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--default-box-shadow);
}

#submit-review-button {
    position: relative!important;
    width: 100% !important;
    left: 0!important;
    margin-top: 15px;
}

.main-login-button.accent-btn {
    background-color: var(--default-accent-color);
}

.main-login-button.fixed-button {
    position: fixed!important;
}

.label-input-container {
    width: 100%;
}

.label-input-container label {
    position: relative;
}

.label-input-container label img {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

#social-login-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0 40px 0;
}

#social-login-links .some-login {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    position: relative;
    box-shadow: 0 0 0 2px #707070;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-button {
    width: 100%;
    padding: 10px 40px;
    text-align: center;
    font-weight: 500;
    font-family: "Montserrat", sans-serif;
    border: 2px solid #707070;
    border-radius: 6px;
}

.icon-list {
    display: flex;
    flex-flow: column wrap;
    gap: 20px;
}

.icon-list .icon {
    display: flex;
    gap: 10px;
}

.icon-list .icon img {
    width: 20px;
}

.icon-list .icon p {
    width: 100%;
}

.login-heading {
    color: #C5B580;
    margin: 30px 0;
    font-family: Montserrat, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 21px;
}

[type="checkbox"]:checked,
[type="checkbox"]:not(:checked) {
    position: absolute;
    left: -9999px;
}
[type="checkbox"]:checked + label,
[type="checkbox"]:not(:checked) + label
{
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    line-height: 20px;
    display: inline-block;
    color: white;
}
[type="checkbox"]:checked + label:before,
[type="checkbox"]:not(:checked) + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fff;
}
[type="checkbox"]:checked + label:after,
[type="checkbox"]:not(:checked) + label:after {
    content: '';
    width: 14px;
    height: 16px;
    background-image: url(/assets/kuvakkeet/check.svg);
    position: absolute;
    background-size: 90%;
    background-repeat: no-repeat;
    background-position: center center;
    top: 3px;
    left: 3px;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}
[type="checkbox"]:not(:checked) + label:after {
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
}

[type="checkbox"]:checked + label:before {
    background: var(--default-main-color);
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

[type="checkbox"]:checked + label:after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

/* END OF login */

/* Navigation */

.navigation {
    --bottom-gutter: env(safe-area-inset-bottom, 0px);

    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 10;
    /*  transform: translateZ(10px); */
    width: 100%;
    background-color: var(--default-dark-color);
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    min-height: calc( var(--bottom-gutter, 0px) + 55px) !important;
    font-family: "Montserrat", sans-serif;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navigation.iphonex {
    padding-bottom: 25px!important;
}

.navigation.simple-nav {

    --bottom-gutter: env(safe-area-inset-bottom, 0px);

    min-height: calc( var(--bottom-gutter, 0) + 45px) !important;
}

.navigation .navelement img {
    max-height: 21px;
    height: 21px;
    width: 20px;
}

.navigation .navelement {
    text-align: center;
    flex: 1;
}

.navigation .navelement img {
    filter: invert(75%) sepia(11%) saturate(934%) hue-rotate(9deg) brightness(95%) contrast(92%);
}

.navigation .navelement span {
    color: #C5B580FF;
    text-align: center;
    font-size: 12px;
    display: block;
    overflow: hidden;
    transition: height .1s ease;
    height: 14px;
}

.height-0 {
    height: 0!important;
}

.navigation .navelement.active span {
    color: white!important;
}

.navigation .navelement.active {
    filter: brightness(0) invert(1);
}

.white-theme .navigation .navelement.active {
    filter: var(--default-main-color-filter);
}

/* END OF navigation */

/* Toggle between wine search and recipe search */

#toggle-wine-and-recipe-search,
.top-bar-active-clip {
    width: 100%;
    font-family: Montserrat, sans-serif;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    position: relative;
}

.top-bar-active-clip {
    position: absolute!important;
    left: 0!important;
    top: 0!important;
    width: 100%!important;
    height: 100%!important;
    will-change: clip-path;
    transition: clip-path .2s ease;
}

#toggle-wine-and-recipe-search div:not(#animating-active-bg-top-bar):not(.top-bar-active-clip),
.top-bar-active-clip div {
    width: 100%;
    color: #222222;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 13px;
}

#toggle-wine-and-recipe-search div img,
#toggle-wine-and-recipe-search div svg,
.top-bar-active-clip div svg,
.top-bar-active-clip div img {
    margin-right: 5px;
}

.top-bar-active-clip div {
    background-color: var(--default-dark-color) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    color: #fff!important;
}

/* Top bar styling */


.header > * {
    position: relative;
    z-index: 10;
}

.header {
    width: 100%;
    /* position: sticky;
    top: 0;
    z-index: 10; */
    background-color: #000000;
    padding-top: 20px;
    padding-bottom: 20px;
    transition: max-height .3s ease;
}

/* .header.header-wine-search::after {
    content: "";
    width: 100%;
    height: 90px;
    position: absolute;    
    top: 0;   
    background: linear-gradient(180deg, rgba(2,0,36,0.30575980392156865) 0%, rgba(0,0,0,0.6615021008403361) 68%);   
} */

.header .top-bar-content {
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.header .top-bar-content .current-page-name {
    color: white;
    text-align: center;
    font-size: 30px;
    text-transform: uppercase;
    text-shadow: 0 3px 10px rgba(0,0,0,0.15);
    font-weight: 300;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header.food-wine-search-active {
    background: linear-gradient( #474747, #1C1C1C ) !important;
    max-height: unset!important;
    height: auto!important;
    position: relative!important;
}

.header.food-wine-search-active #current-page-name {
    font-size: 24px;
}

/* END OF top bar styling */

/* Content zones styling */

/* Margin so that the last elements of each page are visible due to the sticky navigation */

.content {
    margin-bottom: 90px;
}

.content .content-zone {
    display: none;
    opacity: 0;
}

.content .content-zone.active {
    display: block!important;
    animation-duration: 1s;
    animation-fill-mode: both;
    -webkit-animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-name: fadeInUp;
    -webkit-animation-name: fadeInUp;
}

/* END OF content zones styling */

/* Suositellut */

#vinkit .vinkit--hero {
    width: 100%;
    height: 200px;
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    background-size: cover;
    background-image: url("/assets/kuvat/tervetuloa_bg.jpg");
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#vinkit .vinkit--hero h2 {
    font-family: "Ivar Display", sans-serif;
    color: #C5B580FF;
    text-shadow: 0 3px 10px #000;
}

.section-title {
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    color: var(--default-main-color);
    text-transform: uppercase;
    font-size: 20px;
}

.article {
    border-radius: 6px;
    margin: 0 15px;
    overflow: hidden;
}

.article img {
    width: 100%;
    height: auto;
}

.article .article-content {
    padding: 20px;
    font-family: "Barlow", "Montserrat", sans-serif;
}

.article .article-content p {
    font-size: 15px!important;
}

.article .article-content h2 {
    font-size: 22px;
    font-family: "Ivar Display", Montserrat, sans-serif;
}

.article .article-content .icon::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    -webkit-background-size: contain;
    background-size: contain;
}

.article .article-content .icon.location::before {
    background-image: url("/assets/kuvakkeet/map-marker-alt.svg");
}

.article .article-content .icon {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.article .recipe-type {
    position: relative;
}

.article .recipe-type span {
    position: absolute;
    left: 10px;
    top: 10px;
    background-color: #fff;
    color: #222222;
    padding: 5px 15px;
    border-radius: 15px;
}

.article .recipe-info {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-flow: row wrap;
}

.article .recipe-info .icon.time::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("/assets/kuvakkeet/time.svg");
    background-repeat: no-repeat;
    background-position: center;
    -webkit-background-size: contain;
    background-size: contain;
}

.article .recipe-info .tag {
    padding: 5px 15px;
    border-radius: 15px;
    background-color: var(--default-main-color);
    color: #fff;
}

/* END OF suositellut */

/* Recipe styles */

#recipe-search-results {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 20px;
}

#chose-food-type .recipe-search--container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#chose-food-type .recipe-search--container .recipe-search--option:not(#chose-food-type .two-column-food-type .recipe-search--option) {
    flex: 1;
    width: auto!important;
}

#chose-food-type .recipe-search--container .two-column-food-type {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: space-between;
}

#chose-food-type .recipe-search--container .two-column-food-type img {
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    overflow: hidden;
}

.recipe-search--container {
    gap: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.recipe-search--container .recipe-search--option {
    transition: all .3s ease;
    position: relative;
    width: 100%;
}

.recipe-search--container .recipe-search--option.selected img {
    box-shadow: 0 0 0 2pt #C5B580;
    border-radius: 6px;
}

.recipe-search--container .recipe-search--option.selected div {
    box-shadow: 0 0 0 2pt #C5B580;
    border-radius: 10px;
}

.recipe-search--container .recipe-search--option::before {
    content: "";
    width: 25px;
    height: 25px;
    background-image: url("/assets/kuvakkeet/check.svg");
    background-color: var(--default-main-color);
    border-radius: 100%;
    background-size: 70%;
    background-position: center;
    position: absolute;
    left: -10px;
    top: -10px;
    background-repeat: no-repeat;
    z-index: 5;
    opacity: 0;
}

.recipe-search--container .recipe-search--option.selected::before {
    animation-duration: .2s;
    animation-fill-mode: both;
    -webkit-animation-duration: .2s;
    -webkit-animation-fill-mode: both;
    animation-name: fadeInPop;
    -webkit-animation-name: fadeInPop;
}

/* END OF Recipe styles */

/* Viinihaku styles */

#search-result-amount {
    text-align: center;
}

.search-box.availability-search .search-input {
    background-color: transparent!important;
    border: 1px solid #C2C2C2!important;
    font-size: 15px!important;
    color: #C2C2C2;
}

.search-box.availability-search ~ .availability-search-head {
    display: flex;
    justify-content: space-between;
    align-items:center;
    margin-bottom: 15px;
    padding: 0 10px 15px 10px;
    border-bottom: 1px solid #606060;
    margin-top: 30px;
}

ul#availability-search-results {
    display: flex;
    list-style-type: none;
    flex-wrap: wrap;
}

ul#availability-search-results > * + * {
    margin-top: 15px;
}

ul#availability-search-results li {
    width: 100%;
    flex-basis: 100%;
    border-radius: 5px;
    background-color: #424242;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

ul#availability-search-results li span {
    font-size: 15px;
}

ul#availability-search-results li span:last-of-type {
    flex: 1 0 auto;
}

#viinihaku-search-box{
    max-width: 100% !important;
    padding: 15px;
    background: linear-gradient(180deg, rgb(0 0 0) 0%, rgb(0 0 0 / 54%) 68%);
}
.search-box.fixed{
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 999;
}


.search-box .submit-search-btn {
    appearance: none;
    -webkit-appearance: none;
    margin-left: 10px;
    height: 100%;
    background-color: #C5B580FF;
    padding: 10px 15px;
    border-radius: 6px;
    color: white!important;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    border: 0!important;
    flex: 1 0 auto;
    /*  background-image: url("assets/kuvakkeet/search-valk.svg");
    background-size: 17px;
    background-position: 8px center;
    background-repeat: no-repeat; */
    font-size: 14px;
}

.search-box .reset-search {
    display: none;
    appearance: none;
    -webkit-appearance: none;
    border: 0!important;
    width: 20px;
    height: 20px;
    justify-content: center;
    align-items: center;
    background-color: #444444;
    position: absolute;
    right: 95px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 100%;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    color: transparent;
}

.search-box .reset-search::after {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    filter: invert(1);
    width: 100%;
    height: 100%;
    background-image: url("/assets/kuvakkeet/times.svg");
    background-size: 50%;
    background-position: center;
    background-repeat: no-repeat;
}

#viinihaku-search-input:not(:placeholder-shown) ~ .reset-search,
#reseptihaku-search-input:not(:placeholder-shown) ~ .reset-search {
    display: flex;
}

.search-box {
    position: relative;
    margin: 0 auto;
    width: 100%;
}

#viinihaku-search-box.search-box,
#reseptihaku-search-box.search-box {
    max-width: calc(100% - 30px);
}

#reseptihaku-search-box.search-box form,
#viinihaku-search-box.search-box form {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-box .search-input {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    border-radius: 6px;
    font-family: "Montserrat", sans-serif;
    padding: 10px 15px;
    position: relative;
    width: 100%;
    font-size: 14px;
}

.search-box .show-results {
    /* 100% - search button width - margin between search input and search btn */
    width: calc(100% - 71px - 10px);
    background-color: #fff;
    box-shadow: 0px 4px 8px rgba(0,0,0,.3);
    position: absolute;
    left: 0;
    top: 0;
    padding: 45px 7px 7px;
    z-index: 1;
    border-radius: 6px;
}

.search-box .show-results .winesearch-result,
.search-box .show-results .recipe-result {
    padding: 5px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
}

.search-box .show-results .winesearch-result.winesearch-result-empty,
.search-box .show-results .recipe-result.recipe-result-empty {
    opacity: .5!important;
}

.search-box .show-results .winesearch-result:hover,
.search-box .show-results .winesearch-result.active,
.search-box .show-results .recipe-result:hover,
.search-box .show-results .recipe-result.active {
    background-color: #E7E7E7;
}

#viinihaku.content-zone,
#reseptihaku.content-zone {
    margin: 15px;
}



.hakupalkki.show {
    display: flex!important;
}

.hakupalkki {
    display: none;
    width: 100%;
    height: 40px;
    border-bottom-right-radius: 6px;
    border-bottom-left-radius: 6px;
    background-color: var(--default-main-header-color);
    position: absolute;
    bottom: -39px;
    left: 0;
    color: white;
    align-items: center;
    justify-content: space-between;
    font-size: 14px!important;
    z-index: 5!important;
    padding: 0 15px;
}

.rajaa-hakua {
    padding-right: 30px;
    position: relative;
}

.rajaa-hakua::after {
    content: "";
    width: 23px;
    height: 23px;
    background-color: #fff;
    background-image: url("/assets/kuvakkeet/sliders-h.svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 15px;
    display: inline-block;
    border-radius: 100%;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.rajaa-hakua.active::after {
    background-image: url("/assets/kuvakkeet/times.svg");
    background-size: 13px;
}

.search-criteria--container {
    display: none;
    opacity: 0;
}

.search-criteria--container.show {
    display: block!important;
    animation-duration: .5s;
    animation-fill-mode: forwards;
    -webkit-animation-duration: .5s;
    -webkit-animation-fill-mode: forwards;
    animation-name: fadeInUp;
    -webkit-animation-name: fadeInUp;
}

.order-search-results--container::before {
    content: "Järjestä";
    display: block;
    position: absolute;
    left: 0;
    color: white!important;
    pointer-events: none;
}

.order-search-results--container {
    position: relative;
}

.order-search-results--container::after {
    content: "";
    width: 23px;
    height: 23px;
    background-color: #fff;
    background-image: url("/assets/kuvakkeet/sort.svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 13px;
    display: inline-block;
    border-radius: 100%;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.order-search-results{
    -webkit-appearance: none!important;
    -moz-appearance: none!important;
    appearance: none!important;
    border: 0!important;
    background: var(--default-main-header-color)!important;
    color: transparent!important;
    font-family: "Montserrat", sans-serif!important;
    font-size: 16px!important;
    width: 90px;
}

.order-search-results:focus {outline: none!important;}

.spacer {
    width: 1px;
    height: 60%;
    background-color: #fff;
    opacity: .5;
}

.search-criteria {
    display: flex;
    gap: 10px;
}

#recipe-search-filters .search-criteria {
    gap: 7px!important;
}

#recipe-search-filters .search-criteria .search-criterion {
    gap: 5px!important;
    padding: 8px 8px!important;
}

#recipe-search-filters .search-criteria .search-criterion.more::before {
    display: none!important;
}

.search-criteria .search-criterion::before {
    content: "";
    filter: invert(75%) sepia(11%) saturate(934%) hue-rotate(9deg) brightness(95%) contrast(92%);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
}

.nofilter-img::before {
    filter: none!important;
}

.search-criteria .search-criterion.winetype::before {
    width: 15px;
    height: 25px;
    background-image: url("/assets/kuvakkeet/viinit_musta.svg");
}

.search-criteria .search-criterion.price::before {
    width: 15px;
    height: 22px;
    background-image: url("/assets/kuvakkeet/euro-sign.svg");
}

.search-criteria .search-criterion.country::before {
    width: 20px;
    height: 21px;
    background-image: url("/assets/kuvakkeet/globe-europe.svg");
}

.search-criteria .search-criterion:not(.search-criterion.more) {
    flex-grow: 2;
}

.search-criteria .search-criterion.more {
    flex-grow: 1;
    gap: 0!important;
}

.search-criteria .search-criterion.diet::before {
    width: 15px;
    height: 25px;
    background-image: url("/assets/kuvakkeet/egg.svg");
}

    .search-criteria .search-criterion.food-type::before {
    width: 15px;
    height: 25px;
    background-image: url("/assets/kuvakkeet/utensils-alt.svg");
}

.search-criteria .search-criterion.category::before {
    width: 15px;
    height: 25px;
    background-image: url("/assets/kuvakkeet/soup.svg");
}

.search-criteria .search-criterion {
    padding: 9px 12px;
    color: #1C1C1CFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    position: relative;
}

.search-criteria .search-criterion.active {
    color: white!important;
    background-color: var(--default-dark-color);
}

.search-criteria .search-criterion::after {
    content: attr(data-amount);
    background-color: var(--default-accent-color);
    width: 20px;
    height: 20px;
    color: white;
    text-align: center;
    line-height: 20px;
    border-radius: 100%;
    position: absolute;
    right: -5px;
    top: -5px;
    opacity: 0;
    transition: opacity .3s ease;
}

.search-criteria .search-criterion.filter-bubble-active::after {
    opacity: 1;
}

.search-criteria .search-criterion.more.active img {
    filter: invert(1);
}

.criteria-boxes {
    margin-bottom: 15px;
}

.criteria-boxes > div {
    display: none;
    margin-top: 15px;
}

.criteria-boxes > div.show {
    display: block!important;
}

.criteria-boxes > div.show-grid {
    display: grid!important;
}

#wine-types.show {
    display: flex!important;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: space-between;
}

#wine-types .three-col-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

#wine-types .three-col-row .selectable-wine-type {
    max-width: 100%;
    width: 100%;
}

#wine-types.show .selectable-wine-type.punaviinit,
#wine-types.show .selectable-wine-type.valkoviinit {
    width: 48% !important;
}

#wine-types.show  .selectable-wine-type.shortcut::before,
#shortcut-country-search .country-shortcut::before{
    content: "";
    width: 25px;
    height: 25px;
    background-image: url("/assets/kuvakkeet/check.svg");
    background-color: var(--default-main-color);
    border-radius: 100%;
    background-size: 70%;
    background-position: center;
    position: absolute;
    left: -10px;
    top: -10px;
    background-repeat: no-repeat;
    z-index: 5;
    opacity: 0;
}

#wine-types.show  .selectable-wine-type.shortcut.selected::before,
#shortcut-country-search .country-shortcut.selected::before{
    animation-duration: .2s;
    animation-fill-mode: both;
    -webkit-animation-duration: .2s;
    -webkit-animation-fill-mode: both;
    animation-name: fadeInPop;
    -webkit-animation-name: fadeInPop;
}

#wine-types.show  .selectable-wine-type.shortcut {
    text-align: center;
    height: 110px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-radius: 6px;
    -webkit-border-radius: 6px;
    background-position: center;
    background-size: cover;
    position: relative;
    color: white;
    font-size: 14px;
    padding: 0 10px 10px 10px;
    transition: all .1s ease;
    box-shadow: var(--default-box-shadow);
    flex-flow: column wrap;
}

#wine-types.show  .selectable-wine-type.shortcut span {
    text-shadow: 0 2px 4px rgba(0,0,0,.4);
}

#wine-types.show  .selectable-wine-type.shortcut.selected {
    box-shadow: 0 0 0 3pt var(--default-main-color);
    transform: scale(.9);
}

#wine-types.show .selectable-wine-type.shortcut.punaviinit {
    background-image: url("/assets/kuvat/viinien_pikavalinnat/punaviinit_tausta.jpg");
}

#wine-types.show .selectable-wine-type.shortcut.valkoviinit {
    background-image: url("/assets/kuvat/viinien_pikavalinnat/valkoviinit_tausta.jpg");
}

#wine-types.show .selectable-wine-type.shortcut.roseeviinit {
    background-image: url("/assets/kuvat/viinien_pikavalinnat/roseet_tausta.jpg");
}

#wine-types.show .selectable-wine-type.shortcut.kuohuviinit {
    background-image: url("/assets/kuvat/viinien_pikavalinnat/kuohuvat_tausta.jpg");
}

#wine-types.show .selectable-wine-type.shortcut.makeat {
    background-image: url("/assets/kuvat/viinien_pikavalinnat/makeat_tausta.jpg");
}

#wine-types.show .selectable-wine-type.shortcut.muut_vakevat {
    background-image: url("/assets/kuvat/viinien_pikavalinnat/muut_vakevat_tausta.jpg");
}

#wine-types.show .selectable-wine-type.shortcut::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(transparent 40%, black);
    z-index: 1;
    border-radius: 6px;
}

#wine-types.show .selectable-wine-type.shortcut > * {
    z-index: 2;
}


.openable-box .box-title::before {
    content: attr(data-amount);
    background-color: var(--default-accent-color);
    width: 20px;
    height: 20px;
    color: white;
    text-align: center;
    line-height: 20px;
    border-radius: 100%;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity .3s ease;
}

.openable-box .box-title.filter-bubble-active::before {
    opacity: 1;
}

.openable-box {
    padding: 20px;
    border-radius: 6px;
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    width: 100%;
}

.openable-box:not(.openable-box.nobg) {
    box-shadow: var(--default-box-shadow);
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.04);
}

.openable-box:not(:last-child) {
    margin-bottom: 15px;
}

.openable-box .box-content {
    display: none;
}

.openable-box.active > .box-content {
    display: block!important;
}

.openable-box span.box-title {
    width: 100%;
    display: block;
    background-color: #fff;
    position: relative;
}

.openable-box .box-icon {
    width: 10%;
    display: inline-block;
}

.openable-box .box-icon + span.box-title {
    width: 90%;
    display: inline-block;
    float: right;
    height: 25px;
    line-height: 25px;
}

.openable-box span.box-title::after {
    content: "+";
    color: var(--default-main-color);
    font-weight: 700;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
}

.openable-box span.box-title.minus::after {
    content: "-";
    transform: translateY(-58%);
}

.openable-box .box-content {
    margin-top: 30px;
}



/* NoUiSlider */

.noUi-tooltip {
    font-size: 17px!important;
    border-color: #eee!important;
    padding: 5px 10px!important;
    font-weight: 600;
    background: white!important;
    line-height: 1;
    border-radius: 6px!important;
}

.viiniapp-slider {
    height: 5px!important;
    background-color: #D1D1D1!important;
    border: none!important;
    max-width: 95%;
    margin: 0 auto;
}

.noUi-handle {
    width: 20px!important;
    height: 20px!important;
    box-shadow: 0px 3px 6px rgba(0,0,0,.05) !important;
    border: 0px!important;
    border-radius: 20em!important;
    background-color: var(--default-main-color) !important;
    top: -8px!important;
    right: -8px!important;
}

.noUi-tooltip {
    display: none!important;
}

.noUi-handle.noUi-active .noUi-tooltip {display: block!important;}

.noUi-connect {
    background-color: var(--default-main-color) !important;
}

.noUi-handle::before,
.noUi-handle::after {display: none!important;}


.viiniapp-slider-text-inputs {
    display: flex;
    justify-content: space-between;
    margin: 15px auto 0 auto;
    height: 30px;
    max-width: 85%;
}

#fw-price-slider {
    width: 85%;
}

.viiniapp-slider-text-inputs > span {
    font-weight: 700;
}

.viiniapp-slider-text-inputs > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.viiniapp-slider-text-inputs input[type="number"] {
    padding: 10px;
    width: 60px;
    max-height: 100%;
    font-size: 14px;
}

/* General styling for selectable search criteria */

#countries,
#countries-selected-container,
#grapes-selected-container,
#wine-grapes{
    max-height: 250px;
    overflow-y: auto;
}

div#countries > .country-shortcut {
    display: block;
}

div#countries {
    display: block;
}

.selectable-search-criteria span,
.selected-search-criteria span {
    border: 1px solid rgb(141,141,141);
    border-radius: 5px;
    padding: 10px;
    color: rgb(141,141,141);
    text-align: center;
    background-color: #fff;
    display: block;
    font-weight: 400;
}

.selected-search-criteria span.selected,
.selectable-search-criteria span.selected {
    background-color: var(--default-dark-color)!important;
    color: white!important;
    border-color: var(--default-dark-color) !important;
    position: relative;
}

.selected-search-criteria span.selected::after,
.selectable-search-criteria span.selected::after,
#fw-selected-countries .country-shortcut::after {
    content: '\00d7';
    color: #fff;
    position: absolute;

    /* calc( width of screen - padding left (15px) and padding right (15px) - width of button ) */
    /* translate(calc( 100vw - 30px - 100% - 5px ), -35px); */

    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 25px;
    /*border-radius: 100%;
    background-color: var(--default-dark-color);*/
    z-index: 10;
}

#wine-price-ranges.selectable-search-criteria {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

#wine-price-ranges.selectable-search-criteria span {
    flex: 1 1 30%;
}

.show-steps .viiniapp-slider {max-width: 100% !important}

.show-steps .viiniapp-slider .noUi-connects {
    background-color: var(--default-main-color);
    border-radius: 0!important;
}

.show-steps {
    position: relative;
    height: 16px;
    width: 95%;
    margin: 0 auto;
}

.show-steps [class^="step-"] {
    width: 3px;
    border-radius: 3px;
    height: 100%;
    background-color: var(--default-main-color);
    position: absolute;
    top: -50%;
    transform: translateY(16%);
}

.show-steps .step-1 { left: 0 }
.show-steps .step-2 { left: 25% }
.show-steps .step-3 { left: 50% }
.show-steps .step-4 { left: 75% }
.show-steps .step-5 { left: 100% }


.selected-search-criteria {
    display: none;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,.2);
}

.selected-search-criteria.active {
    display: block!important;
}

.selected-search-criteria span:not(:last-child),
.selectable-search-criteria:not(#wine-price-ranges) span:not(:last-child){
    margin-bottom: 10px!important;
}

#wine-price-ranges span.price-range-shortcut.selected {
    padding-right: 20px;
}

span.price-range-shortcut.selected::after {
    right: 5px!important;
}

#shortcut-country-search {
    display: block;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    height: 280px;
    margin: 0 -15px;
}

#shortcut-country-search .flickity-prev-next-button {
    width: 64px!important;
    height: 64px!important;
}


#shortcut-country-search .flickity-prev-next-button .flickity-button-icon {
    width: 40% !important;
}

#shortcut-country-search button.flickity-button.flickity-prev-next-button.next .flickity-button-icon  {
    left: 15% !important;
}

#shortcut-country-search button.flickity-button.flickity-prev-next-button.previous .flickity-button-icon  {
    right: 15% !important;
    left: unset!important;
}

#shortcut-country-search button.flickity-button.flickity-prev-next-button.next  {
    right: -27px !important;
}

#shortcut-country-search button.flickity-button.flickity-prev-next-button.previous  {
    left: -27px!important;
}

#shortcut-country-search .carousel-cell {
    display: block;
    flex-wrap: wrap;
    flex-direction: column;
    width: 120px;
    margin-right: 10px;
    padding-top: 20px;
}

#shortcut-country-search .carousel-cell div {
    margin-bottom: 10px;
}

#shortcut-country-search .country-shortcut {
    width: 100%;
}

#shortcut-country-search .country-shortcut img{
    border-radius: 6px;
    box-shadow: none;
    transition: box-shadow .3s ease;
}

#shortcut-country-search .country-shortcut.selected img {
    box-shadow: 0 0 0 3pt var(--default-main-color);
}

#shortcut-country-search .country-shortcut {
    position: relative;
    transform: scale(1);
    transition: all .3s ease;
}

#shortcut-country-search .country-shortcut.selected {
    transform: scale(.9);
}

/* Search results */

.wine-search-results {   
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.search-result {
    width: 100%;
    max-width: 100%;
    flex-basis: 100%;
    border-radius: 8px;
    align-self: self-start;
    padding: 20px 15px;
    display: flex;
    gap: 20px;
    align-items: stretch;
    height: 100%;
    position: relative;
    cursor: pointer;
    flex-wrap: wrap;
}

.wine-search-results .search-result img.wine-image {
    max-height: 200px;
    max-width: 30%;
    object-fit: contain;
    object-position: center;
}
.wine-search-results .search-result.viinikellari-viini-search-result img.wine-image{
    object-fit: cover;
}

.wine-search-results .search-result .wine-content {
    display: flex;
    flex-flow: column wrap;
    justify-content: flex-start;
    align-items: flex-start;
    flex: 1;
}

.wine-search-results .search-result h3.wine-name {
    font-size: 19px;
    line-height: normal;
    margin-top: 10px;
    max-width: 100% !important;
    font-family: "Ivar Display", sans-serif;
}

.wine-search-results .search-result .wine-info {
    font-size: 15px;
    margin: 20px 0;
}

.wine-search-results .search-result strong.wine-price {
    font-weight: bold!important;
    margin-right: 5px;
    font-family: "Barlow Bold", "Montserrat", sans-serif;
}
.wine-search-results .search-result strong.wine-price.overline{
    text-decoration: line-through;
    color: var(--default-dark-color);
}
.wine-search-results .search-result strong.wine-price.sale{
    color: var(--default-accent-color);
}

.quality-price-ratio {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 30px;
}

.wine-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.wine-tags .winetag {
    font-size: 13px;
    padding: 5px 15px;
    border-radius: 5em;
    background-color: rgba(174, 174, 174, .3);
    width: fit-content;
    width: -moz-fit-content;
    line-height: 1;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
}
.wine-tags .winetag.viinikellari-tag{
    background-color: var(--viinikellari-vari);
    color: #fff;
}

.wine-tags-show-more {
    padding: 5px 10px;
    font-size: 14px;
    display: inline-block;
    line-height: 1;
    font-weight: 600;
    color: #968a5f;
    border-radius: 5em;
    background-color: white;
    transition: all .3s ease;
}

.hidden {
    display: none!important;
}

.more-wine-options {
    width: 100%;
    padding-top: 15px;
    border-top: 2px solid rgb(231,231,231);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Barlow", "Montserrat", sans-serif;
}

.more-wine-options b,
.more-wine-options strong {
    font-family: "Barlow Bold", "Montserrat", sans-serif;
    font-size: 15px;
}

.more-wine-options .this-wine-rating,
.more-wine-options .button {
    display: flex;
    align-items: center;
    justify-content: center;
}

#wine-page-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 998;
    width: 100%;
    height: 100%;
    display: none;
    overflow-y: auto;
    background-color: #F3F3F3;
    transform: translateZ(14px);
}

#wine-page-wrapper.active {
    display: block;
}

#wine-page-wrapper .this-wine-rating,
#wine-page-wrapper .more-wine-options .button {
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0, .05);
    border-radius: 6px;
    border: 1px solid #D2D2D2;
}

.more-wine-options img:not(.nofilter) {
    filter: var(--default-accent-color-filter);
}

#wine-page-wrapper .this-wine-rating {
    margin-left: auto;
}

.more-wine-options .availability {
    margin: 0 15px;
}

#go-back-btn {
    width: 30px;
    align-self: stretch;
    display: flex;
    justify-content: center;
    align-items: center;
}

#go-back-btn img {
    width: 10px;
    filter: brightness(0);
}

/* Wine page */

.wine-card-section {
    background-color: #fff;
    padding-bottom: 20px;
}
.wine-card-section.viinikellari-viini .more-wine-options{
    padding-top: 60px !important;
}

.wine-card-section .image-column {
    padding-top: 30px;
}

.wine-card-section .image-column .wine-image {
    max-height: 350px;
    display: block;
    margin: 0 auto;
}

.wine-card-section .wine-content .wine-title {
    font-family: "Ivar Display", sans-serif;
    font-size: 22px;
    text-align: center;
    padding: 10px 50px;
}

article.wine-card-section span, article.wine-card-section p {
    font-family: "Barlow", sans-serif;
}

.wine-card-section .wine-specs {
    margin: 15px auto;
    width: fit-content;
    width: -moz-fit-content;
}

article.wine-card-section .wine-content .wine-specs .wine-bottle-size {
    font-size: 22px;
}

article.wine-card-section .wine-content .wine-specs .wine-price {
    font-weight: bold;
    margin-right: 20px;
    font-size: 22px;
    font-family: "Barlow Bold";
}
article.wine-card-section .wine-content .wine-specs .wine-price.overline{
    text-decoration: line-through;
    color: var(--default-dark-color);
}
article.wine-card-section .wine-content .wine-specs .wine-price.sale{
    color: var(--default-accent-color);
}

article.wine-card-section .wine-tags {
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

article.wine-card-section .wine-content .all-ratings-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: fit-content;
    width: -moz-fit-content;
    margin: 40px auto 20px;
    gap: 10px;
}
article.wine-card-section .wine-content .all-ratings-container > div {
    flex: 1 0 48%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: fit-content;
    width: -moz-fit-content;
}

.three-mobile-columns {
    display: flex;
    flex-wrap: nowrap;
    padding: 30px;
    background-color: rgb(249,249,249);
    box-shadow: var(--default-box-shadow);
}

.three-mobile-columns .winespec {
    flex: 1 1 30%;
    text-align: center;
}

.three-mobile-columns .winespec img{
    display: block;
    margin: 0 auto;
    height: 25px!important;
}

.three-mobile-columns .winespec h5 {
    margin-top: 10px;
}

.three-mobile-columns .winespec p:first-of-type {
    margin-top: 5px;
}

.three-mobile-columns .winespec p {
    font-size: 12px;
}

section.rating {
    padding: 20px;
}

section.rating h2 {
    font-family: "Ivar Display", sans-serif;
    margin: 15px 0;
}

.star-rating-container {
    flex-basis: 100% !important;
}

.star-rating {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 150px;
}

.star-rating-section > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.star-rating-section .star-image-container {
    height: 20px;
    flex-basis: 100px;
    display: flex;
    justify-content: flex-end;
}

.star-rating-section .wine-review-percentage-bar .progress-bar {
    display: block;
    width: 0;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--default-accent-color);
    border-radius: 3px;
}

.star-rating-section .wine-review-percentage-bar {
    flex: 1 1 200px;
    height: 20px;
    width: 100%;
    background-color: #CDCDCD;
    border-radius: 3px;
    box-shadow: 0 3px 6px rgba(0,0,0,.07);
    border: 1px solid rgba(0,0,0,.03);
    position: relative;
    overflow: hidden;
}

.star-rating-section p {
    flex-basis: 30px;
}

#tyhjenna-hakuehdot {
    text-align: center;
    margin-bottom: 15px;
    color: #92164EFF;
    text-decoration: underline;
}

#resepti-tyhjenna-hakuehdot {
    text-align: center;
    color: var(--default-accent-color);
    text-decoration: underline;
    margin-bottom: 15px;
}

.article-page-top-bar,
#wine-page-top-bar {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    height: 70px;
    width: 100%;
    position: sticky;
    top: 106px;
    background-color: #F3F3F3;
    z-index: 10;
}

#reseptisivu-top-bar {
    padding: 15px 0!important;
}

.article-page-top-bar > div,
#wine-page-top-bar > div {
    width: 40px;
    box-shadow: var(--default-box-shadow);
    background-color: #fff;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.article-page-top-bar > div.share-btn.facebook,
#wine-page-top-bar > div.share-btn.facebook {
    margin-left: auto;
    margin-right: 15px;
}

.more-wine-specs .rating .share {
    margin-top: 15px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #8D8D8D;
}

.more-wine-specs .rating .share .share-btn {
    padding: 10px 15px;
    box-shadow: 0 4px 8px rgba(0,0,0, .05);
    border-radius: 6px;
    border: 1px solid #D2D2D2;
    display: flex;
    background-color: #fff;
}

.more-wine-specs .rating .share .share-btn img {
    margin-right: 10px;
}

.more-wine-specs .rating .share {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.share a,
.share a:hover,
.share a:active {
    text-decoration: none;
    color: initial;
}

.share a:last-of-type .share-btn {
    margin-left: 15px;
}

.article-page-top-bar > div img,
#wine-page-top-bar > div img {
    height: 20px!important;
}

.load-more-posts-container .btn,
.search-other-btn {
    padding: 15px 30px;
    border: 1px solid #CDCDCD;
    color: white;
    font-weight: 500;
    font-family: "Montserrat", sans-serif;
    border-radius: 6px;
    box-shadow: 0px 3px 6px rgb(0,0,0,.05);
    font-size: 16px;
    line-height: 1;
    text-align: center;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: var(--default-accent-color);
    min-width: 160px;
    max-width: 100%;
    position: relative;
    margin-top: 30px;
}

.load-more-posts-container .btn.loading {
    color: var(--default-accent-color);
}

.load-more-posts-container .btn.loading::after {
    content: "";
    width: 30px;
    height: 30px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    background-image: url("/assets/viinihaku_small_loader.gif");
    background-position: center center;
    background-size: contain;
}

#no-wine-results {
    margin-top: 50px;
    text-align: center;
}

#no-wine-results .search-other-btn {
    display: flex!important;
}

#no-wine-results h2 {
    font-family: "Ivar Display", Montserrat, sans-serif;
}

/* END OF viinihaku styles */

/* Suosikit -näkymä */

#favourites-page-wrapper {
    margin: 0 15px;
}

#suosikit {
    max-width: 95%;
    margin: 0 auto;
    margin-top: 15px;
}

.open-favourite-list {
    padding: 15px;
    border-radius: 5px;
    box-shadow: var(--default-box-shadow);
    position: relative;
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
}

.open-favourite-list img {
    width: 15px;
    filter: var(--default-main-color-filter);
}

.open-favourite-list p {
    margin-right: auto;
    margin-left: 15px;
}

.open-favourite-list span {
    margin-right: 30px;
}

.open-favourite-list::after {
    content: "";
    display: block;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    width: 10px;
    height: 100%;
    background-image: url("/assets/kuvakkeet/chevron-left.svg");
    background-repeat: no-repeat;
    background-position: center;
}

.review {
    padding: 30px 0;
}

.review:not(:last-child) {
    border-bottom: 2px solid #C2C2C2;
}

.review .review-text {
    margin: 10px 0;
}

.review.own-review .review-head span {
    color: var(--default-accent-color);
}

/* End of Suosikit -näkymä */

/* Reseptisivu */

.article-page {
    margin: 15px;
}

.article-page .article-recipe-info {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-family: "Barlow", "Montserrat", sans-serif;
}

.article-page .article-location {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.article-page .article-title {
    text-align: center;
    font-family: 'Ivar Display', "Montserrat", sans-serif;
    margin: 20px 0;
}

.article-page .article-recipe-info span:first-of-type {
    margin-right: 5px;
}

.article-page .article-recipe-info img {
    display: inline-block;
}

.article-page .article-recipe-img-more-info {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,.05);
}

.article-page .article-recipe-img-more-info .more-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 25px 10px;
    text-align: center;
    gap: 5px
}

.article-page .article-recipe-img-more-info .more-info span {
    display: block;
}

.article-page .article-recipe-img-more-info .more-info .more-info-title {
    text-align: center;
    font-family: "Barlow Bold", "Montserrat", sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 16px;
    margin-bottom: 5px;
}

.article-page p {
    font-size: 17px;
    line-height: 1.7;
}

.article-page .article-content h2 {
    font-size: 25px;
    font-family: "Ivar Display", "Montserrat", sans-serif;
    margin: 20px 0;
}

.article-content ul {
    padding-left: 20px!important;
}

.article-content ul li {
    padding: 5px 0;
}

.article-content a {
    text-decoration: underline!important;
    color: #92164E!important;
    font-weight: 600;
}

/* END OF Reseptisivu */


/* Media queries */

@media only screen and (max-width: 320px) {

    .search-criteria {
        gap: 5px;
    }

    .search-criteria .search-criterion {
        font-size: 12px!important;
        padding: 7px 10px !important;
    }
}

/* END OF media queries */

@keyframes fadeInUp {
    from {
        transform: translate3d(0,40px,0)
    }

    to {
        transform: translate3d(0,0,0);
        opacity: 1;
    }
}

@-webkit-keyframes fadeInUp {
    from {
        transform: translate3d(0,40px,0)
    }

    to {
        transform: translate3d(0,0,0);
        opacity: 1;
    }
}

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
    -webkit-animation-duration: 1s;
    -webkit-animation-fill-mode: both
}

.animatedFadeInUp {
    opacity: 0
}

.fadeInUp {
    opacity: 0;
    animation-name: fadeInUp;
    -webkit-animation-name: fadeInUp;
}

@keyframes fadeOutDown {
    from {
        transform: translate3d(0,0,0);
        opacity: 1;
    }

    to {
        transform: translate3d(0,40px,0)
    }
}

@-webkit-keyframes fadeOutDown {
    from {
        transform: translate3d(0,0,0);
        opacity: 1;
    }

    to {
        transform: translate3d(0,40px,0)
    }
}

@keyframes fadeInPop {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

@-webkit-keyframes fadeInPop {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

@keyframes fadeInLeft {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translate(0%);
    }
}

@-webkit-keyframes fadeInLeft {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translate(0%);
    }
}

.loader {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.lds-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid var(--default-main-color);
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: var(--default-main-color) transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}
@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Maa flickity conf */

#shortcut-country-search {

}

/* END OF maa flickity conf */


.dark-theme .ohjeet-icon,
.wine-theme .ohjeet-icon {
    filter: brightness(100);
    display: inline-block;
}

.white-theme .ohjeet-icon {
    filter: brightness(0);
    display: inline-block;
}

.wine-theme .filter-not-white-theme,
.dark-theme .filter-not-white-theme {
    filter: invert(1);
}

/* Star slider */

.star-slider {
    display: flex;
    margin: 20px 0;
    justify-content: center;
    gap: 5px;
}

.star-slider.star-1 .star:nth-child(-n+1) svg path { fill: #C5B580 }
.star-slider.star-2 .star:nth-child(-n+2) svg path { fill: #C5B580 }
.star-slider.star-3 .star:nth-child(-n+3) svg path { fill: #C5B580 }
.star-slider.star-4 .star:nth-child(-n+4) svg path { fill: #C5B580 }
.star-slider.star-5 .star:nth-child(-n+5) svg path { fill: #C5B580 }


/* Viiniarkisto */

.lue-lisaa {
    color: #92164E !important;
    text-decoration: none!important;
    font-weight: bold;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lue-lisaa::after {
    content: "";
    width: 20px;
    height: 15px;
    display: inline-block;
    background-image: url("assets/kuvakkeet/chevron-left.svg");
    background-repeat: no-repeat;
    transform: rotate(180deg);
    filter: brightness(0) saturate(100%) invert(15%) sepia(25%) saturate(7500%) hue-rotate(314deg) brightness(96%) contrast(98%);
}

.accent-heading {
    font-size: 16px;
    text-transform: uppercase;
    color: var(--default-main-color);
    font-weight: bold;
}

#valitse-vv-arkisto-vuosi {
    width: 100% !important;
    padding: 15px!important;
    text-align: center;
    appearance: none!important;
    -webkit-appearance: none!important;
    -moz-appearance: none!important;
    border-radius: 6px;
    border: 0px!important;
    background-color: #fff;
    color: #000;
    box-shadow: 0px 4px 8px rgba(0,0,0,.1);
    font-family: "Montserrat", sans-serif;
}


.vv-arkisto-valitse-vuosi-container {
    position: relative;
}

.vv-arkisto-valitse-vuosi-container::after {
    content: "";
    width: 10px;
    height: 20px;
    background-image: url("assets/kuvakkeet/chevron-left.svg");
    filter: brightness(0);
    transform: rotate(-90deg);
    position: absolute;
    right: 20px;
    top: 15px;
    background-repeat: no-repeat;
}

.jarjesta-vv-arkisto--container {
    position: relative;
}

.jarjesta-vv-arkisto--container::before {
    content: "";
    width: 20px;
    height: 20px;
    position: absolute;
    right: 10px;
    top: 8px;
    background-image: url("assets/kuvakkeet/sort.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #fff;
    background-size: 10px;
    border-radius: 100%;
    pointer-events: none;
}

.jarjesta-vv-arkisto--container label {
    color: #fff;
    position: absolute;
    left: 15px;
    top: 10px;
    font-size: 14px;
    pointer-events: none;
}

select#jarjesta-vv-arkisto {
    width: 110px !important;
    padding: 10px 45px 10px 15px!important;
    text-align: center;
    appearance: none!important;
    -webkit-appearance: none!important;
    -moz-appearance: none!important;
    border-radius: 6px;
    border: 0px!important;
    background-color: #222222;
    color: #222222;
    font-family: "Montserrat", sans-serif;
}

/* Single viinivinkki */

#viinivinkkisivu .post-content {
    padding: 15px;
}

#viinivinkkisivu .post-content p {
    font-size: 16px!important;
    margin-top: 10px;
    font-family: "Montserrat", sans-serif;
}

#viinivinkkisivu .post-content a {
    font-size: 16px!important;
    color: #92164E!important;
}

#viinivinkkisivu .post-content a:first-child {
    color: #fff!important;
    text-decoration: none!important;
}

#viinivinkkisivu .post-content strong {
    font-size: 18px;
}

#viinivinkkisivu .post-content a[href^="https://www.alko.fi"] {
    margin-bottom: 30px;
    display: block;
}

/* END OF Viiniarkisto */

#change-password-login-page {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    background-color: var(--default-dark-color);
    z-index: 110;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 30px 15px;
}

#delete-own-review {
    margin-bottom: 60px;
    padding: 10px 10px;
    border-radius: 5px;
    background-color: #cf0909;
    color: #fff;
    width: 100%;
    text-align: center;
}

.food-wine-search-criteria {
    --auto-grid-placement: auto-fit;
    --gutter: 10px;

    width: 100%;

    display: grid;
    list-style-type: none;
    /*grid-template-columns: repeat(var(--auto-grid-placement, auto-fill), minmax(var(--auto-grid-min-item-size, 16rem), 1fr))*/
    grid-template-columns: repeat(6, 1fr);
    gap: var(--gutter);
    padding: 15px;
}

.food-wine-search-criteria .food-wine-search-criterion {
    background-color: #000000;
    color: #fff;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    transition: box-shadow .5s ease;
    cursor: pointer;
}

.food-wine-search-criteria .food-wine-search-criterion .close-current-search-criterion {

    --width: 21px;

    width: var(--width);
    height: var(--width);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    position: absolute;
    transform: scale(0);
    top: calc((var(--width) / 2) * -1);
    right: calc((var(--width) / 2) * -1);
    font-size: 25px;
    border-radius: 100%;
    transition: transform .5s ease;
    background-color: var(--default-main-color);
    z-index: 10;
}

.food-wine-search-criteria .food-wine-search-criterion.active .close-current-search-criterion {
    transform: scale(1);
}

.food-wine-search-criteria .food-wine-search-criterion.active {
    box-shadow: 0 0 0 3pt var(--default-main-color);
}

.food-wine-search-criteria .food-wine-search-criterion .bottom-part {
    position: relative;
    padding: 20px 5px 10px 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-basis: 100%;
}

.food-wine-search-criteria .food-wine-search-criterion .food-icon {
    width: 50px;
    height: 50px;
    border-radius: 100%;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000;
}

.food-wine-search-criteria .food-wine-search-criterion .food-icon img {
    max-width: 23px;
    filter: brightness(0) invert(1);
}

.food-wine-search-criteria .food-wine-search-criterion span {
    text-align: center;
    line-height: 1.5em;
}

.food-wine-search-criteria .food-wine-search-criterion .background-image {
    width: 100%;
    padding-top: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-top-right-radius: 6px;
    border-top-left-radius: 6px;
}


.food-wine-search-button {
    border-radius: 6px;
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,.05);
    appearance: none;
    border: none;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
}

.food-wine-search-button:active,
.food-wine-search-button:focus {
    outline: none;
}

.food-wine-search-button[data-default-disabled]:not(.active) {
    background-color: #fff;
    color: #000;
}

.food-wine-search-button:not([data-default-disabled]),
.food-wine-search-button[data-default-disabled].active {
    background-color: var(--default-main-color) !important;
    color: #fff!important;
}

.food-wine-search-button.fixed-bottom {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 190px;
}

.food-wine-popup-options {
    --gutter: 15px;
    --columns: 6;
    display: grid;
    grid-template-columns: repeat(var(--columns), calc(100% / var(--columns) - var(--gutter) / 2));
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--gutter);
    padding: 0 20px;
}

#popup.wine-type-popup .popup-content {
    height: calc(100% - 60px);
}

.wine-type-selection {
    --columns: 6;
    place-content: center;
}

.wine-type-selection.food-wine-popup-options .food-wine-popup-item .background-image {
    padding-top: 100%;
}

.food-wine-popup-options .food-wine-popup-item {
    border-radius: 6px;
    background-color: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.food-wine-popup-options .food-wine-popup-item .fw-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 10px 15px 10px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    flex-grow: 1;
}

[data-setting-key="wine-type"] .fw-content {
    height: 65px;
}

.food-wine-popup-options .food-wine-popup-item .fw-content span,
.food-wine-search-criteria .food-wine-search-criterion span {
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.food-wine-popup-options .food-wine-popup-item .background-image {
    width: 100%;
    padding-top: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 6px;
}

.food-wine-popup-options .food-wine-popup-item .background-image.grayscale {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

.fw-quick-select-price {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.fw-quick-select-price .food-wine-quick-select-price {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 10px;
    flex-basis: calc(100% / 3 - 15px);
    margin: 7px;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background-color: #404040;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
}

.fw-quick-select-price .food-wine-quick-select-price.active {
    background-color: var(--default-main-color);
}

#popup.wine-price-popup .viiniapp-slider-text-inputs input[type="number"] {
    border-color: #8D8D8D;
    background-color: #404040;
    color: #fff;
}

.fw-countries {
    --gutter: 15px;
    --columns: 3;

    display: grid;
    grid-template-columns: repeat(var(--columns), calc(100% / var(--columns) - var(--gutter) / 2));
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--gutter);
    margin-top: 30px;
}

/*.fw-countries .fw-country-select span.country-name {
    position: absolute;
    left: 50%;
    width: 100%;
    text-align: center;
    bottom: 10px;
    transform: translateX(-50%);
    padding: 0 5px;
}*/

.fw-element-select {
    width: 100%;
    position: relative;
    border-radius: 6px;
}

.fw-element-select.selected {
    box-shadow: 0 0 0 3pt var(--default-main-color);
}

.fw-element-select .remove-this-element {

    --width: 25px;

    width: var(--width);
    height: var(--width);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    position: absolute;
    transform: scale(0);
    top: calc((var(--width) / 2) * -1);
    right: calc((var(--width) / 2) * -1);
    font-size: 25px;
    border-radius: 100%;
    transition: transform .5s ease;
    background-color: var(--default-main-color);
    z-index: 10;
    will-change: transform;
}

.fw-element-select.selected .remove-this-element {
    transform: scale(1);
}

.fw-element-select img {
    border-radius: 5px;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.before-fw-search-results {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#food-wine {
    padding: 0 15px;
    /* margin-bottom: -40px; */
}

#sort-fw-search-results {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background-color: #000000;
    color: #fff;
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

label[for="sort-fw-search-results"] {
    background-color: #1C1C1C;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    padding: 7px 40px 7px 10px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    width: fit-content;
}

label[for="sort-fw-search-results"]::after {
    content: "";
    width: 20px;
    height: 20px;
    background-color: #fff;
    background-image: url(../sort.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 10px;
    display: inline-block;
    border-radius: 100%;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

#food-wine-search-countries {
    max-height: 360px;
    overflow-y: auto;
}

#food-wine-search-countries .country-shortcut.selected {
    display: none!important;
}

#fw-selected-countries {
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}


#fw-selected-countries .country-shortcut {
    background-color: #C5B580FF!important;
    color: #fff!important;
    border-color: transparent!important;
    position: relative;
}

#fw-selected-countries .country-shortcut::after {
    background-color: transparent!important;
}

#popup .fw-show-more-countries {
    color: #000!important;
    background-color: #fff!important;
    margin: 15px auto 50px auto;
    width: fit-content;
    width: -moz-fit-content;
}

.floating-reset-search-button {
    --height: 40px;
    --width: 40px;

    width: var(--width);
    height: var(--height);

    background-color: transparent;
    color: #fff;
    font-size: 21px;
    position: fixed;
    left: 15px;
    bottom: 80px;
    display: flex;
    align-items: center;
    z-index: 10;

    will-change: width;
    transition: width .5s ease, opacity .5s ease;
    overflow: hidden;
}

.floating-reset-search-button[data-state="disabled"] {
    opacity: 0;
}

.floating-reset-search-button .left-side {
    flex: 1 0 auto;
    width: calc(var(--width) / 2);
    height: var(--height);
    border-radius: var(--width) 0 0 var(--width);
    background-color: var(--default-dark-color);
}

.floating-reset-search-button .right-side {
    flex: 1 0 auto;
    width: calc(var(--width) / 2);
    height: var(--height);
    border-radius: 0 var(--width) var(--width) 0;
    background-color: var(--default-dark-color);
    margin-left: -1px; /* Fix flexbox 1px rounding error*/
}

.floating-reset-search-button .middle {
    height: var(--height);
    background-color: var(--default-dark-color);
    flex: 1 0 auto;
    margin-left: -1px; /* Fix flexbox 1px rounding error*/
}

.floating-reset-search-button .times {
    position: absolute;
    transform: translate(-50%, -50%);
    left: calc( var(--width) / 2 );
    top: calc( var(--height) / 2 );
}

.floating-reset-search-button span.times {
    font-size: 35px;
    font-weight: 200;
}

.floating-reset-search-button span.confirm {
    font-size: 15px;
    position: absolute;
    transform: translateY(-50%);
    left: calc( var(--width) / 2 );
    opacity: 0;
    width: 170px;
    top: 50%;
    transition: left .7s ease, opacity .5s ease;
}

.floating-reset-search-button[data-state="confirm"] {
    width: 220px;
}

.floating-reset-search-button[data-state="confirm"] span.confirm {
    left: var(--width);
    opacity: 1;
}

.app-title {
    font-weight: 200;
    text-transform: uppercase;
    font-size: 45px;
}

.white-theme .app-title {
    text-shadow: 0 0 15px #00000094;
}

.app-main-screen::before {
    content: "";
    width: 100%;
    height: 200px;
    background-image: url('https://app.viinilehti.fi/assets/viinivinkki_hero.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    z-index: -1;
    transform: translateZ(-1px);
    top: 0;
    left: 0;
}

.new-features-container.app-main-screen::before {
    background-image: url("/assets/kuvat/tervetuloa_bg.jpg");
}

.app-main-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    /* Linear gradient black from bottom */
    background: linear-gradient(rgba(0,0,0,0) 0%,rgba(28,28,28,1) 65%);
    z-index: -1;
    transform: translateZ(-1px);
}

.wine-theme .app-main-screen::after {
    background: linear-gradient(rgba(0,0,0,0) 0%, var(--default-dark-color) 65%);
}

.white-theme .app-main-screen::after {
    background: linear-gradient(rgba(0,0,0,0) 0%, #fff 65%);
}

.getting-started-text img {
    display: inline-block;
    margin: 0 5px;
    filter: brightness(0) invert(1);
    width: var(--size, 16px);
}

#popup.food-wine-popup {
    background-color: #1c1c1c;
}

#popup.food-wine-popup #close-popup {
    filter: brightness(0) invert(1) !important;
}

#popup.food-wine-popup .popup-content h2 {
    color: #fff;
}

.recommended-search-criteria .select-criteria {
    background-image: linear-gradient(to bottom, #1D1D1D, transparent 130%), url('../valitse_kriteeri.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: calc(100% + 30px);
    margin-left: -15px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.recommended-search-criteria .select-criteria p {
    font-size: 16px;
}

/* Foodwine Subtype */

#food-wine-load-more-results {
    margin-bottom: 125px;
}

.chose-wine-subtype-wrapper {
    padding: 0 15px;
    margin-top: 0;
}

.chose-wine-subtype-wrapper .chose-wine-subtype {
    margin: 0 auto;
    display: block;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 10px 40px 10px 15px;
    position: relative;
}

.chose-wine-subtype-wrapper .chose-wine-subtype::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    width: 10px;
    height: 20px;
    background-image: url('../chevron-left.svg');
    filter: brightness(0);
    background-size: contain;
    background-repeat: no-repeat;
}

.chose-wine-subtype-wrapper .chose-wine-subtype.active::after {
    transform: translateY(-50%) rotate(-90deg);
    filter: brightness(0) invert(1);
}

.chose-wine-subtype-wrapper .chose-wine-subtype.active.chevron-up::after {
    transform: translateY(-50%) rotate(90deg);
}

.chose-wine-subtype-wrapper .btn {
    background-color: #fff;
    color: #000;
}

.chose-wine-subtype-wrapper .subtypes {
    overflow-y: hidden;
    margin-top: 15px;
    margin-bottom: 60px;
}

.chose-wine-subtype-wrapper .subtypes.collapsed {
    max-height: 0!important;
    margin-bottom: 0;
    margin-top: 0;
}

.chose-wine-subtype-wrapper .subtypes p {
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.chose-wine-subtype-wrapper .subtypes p::before,
.chose-wine-subtype-wrapper .subtypes p::after {
    content: '';
    display: block;
    height: 1px;
    flex: 1 0 auto;
    background-color: #fff;
}

.chose-wine-subtype-wrapper .subtypes p::before { margin-right: 20px; }
.chose-wine-subtype-wrapper .subtypes p::after { margin-left: 20px; }

.chose-wine-subtype-wrapper .subtypes .btn {
    width: 100%;
    margin: 15px 0 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

.chose-wine-subtype-wrapper .subtypes .btn.active,
.chose-wine-subtype-wrapper .chose-wine-subtype.active {
    background-color: var(--default-main-color) !important;
    color: #fff!important;
}

.chose-wine-subtype-wrapper .subtypes .btn span:first-of-type {
    text-align: left;
}

.chose-wine-subtype-wrapper .subtypes .btn span:last-of-type {
    flex: 1 0 30%;
    text-align: right;
}
.viinikellari-top-el{
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 348px;
    background-color: #B3A679;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px 0px 100px 100px;
    padding: 10px 39px 12px;
}
.viinikellari-top-el .icon{
    width: 25px;
    height: 25px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("https://app.viinilehti.fi/uploads/viinikellari-icons/truck.svg");
    transform: rotateY(180deg);
    filter: invert(1);
    margin-right: 12px;
    margin-top: -2px;
}
.viinikellari-top-el p{
    color: #fff;
    font-family: 'brandon-grotesque', sans-serif;
    font-weight: 400;
    font-size: 16px;
}
.viinikellari-haku-el{
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    border-left: 30px solid rgba(255, 255, 255, 0);
    border-right: 30px solid var(--viinikellari-vari);
    border-bottom: 30px solid var(--viinikellari-vari);
    border-top: 30px solid rgba(255, 255, 255, 0);
    display: inline-block;
    border-radius: 0 0px 5px 0px;
}
.viinikellari-haku-el .icon{
    width: 25px;
    height: 25px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("https://app.viinilehti.fi/uploads/viinikellari-icons/truck.svg");
    transform: rotateY(180deg);
    filter: invert(1);
}
.more-wine-options.viinikellari{
    padding-right: 45px;
}


@media only screen and (max-width: 1024px) {
    .food-wine-search-criteria{
        grid-template-columns: repeat(3, 1fr);
    }
    .food-wine-popup-options{
        --columns: 3;
    }
    .wine-type-selection {
        --columns: 3;
    }
    #food-wine-palkki {
        padding-top: 0px;
    }


}

@media only screen and (max-width: 767px) {
    
    .food-wine-search-criteria{
        grid-template-columns: repeat(2, 1fr);
    }
    .food-wine-popup-options{
        --columns: 2;
    }
    .wine-search-results {
        grid-template-columns: 1fr;
    }

    .wine-type-selection {
        --columns: 2;
    }

    #viinihaku-search-box{
        padding: 10px 15px;
    }

   
}
.food-wine-pagination-container .previous,
.food-wine-pagination-container .next
{
    width: 20px;
    height: 20px;
    background-color: #000;
}
/*new styling starts for loyda-ruolle-viini*/

.viini-findwine-food-detail {
    margin-bottom: 50px;
}


#food-wine-search-options{
    position: relative;
}
#findwine-food-loader{
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    z-index: 2;
    background-color: #f3f3f3d1;
}
#findwine-food-loader-container{
    margin-top: 30px;
}
#food-wine-palkki-groups{
    max-width: 441px;
    margin: 0px auto;
    width: 100%;
	margin-bottom: 50px;
	max-height: 40vh;
    overflow: auto;
}
#food-wine-palkki-groups .chose-wine-subtype{
    margin: 0;
    width: 100%;
    background-color: #000;
    color: #fff;
    position: relative;
    font-family: 'Figtree';
    font-weight: 400;
    font-size: 17px;
    line-height: 16px;
    padding: 15px 46px;
}
#food-wine-palkki-groups .chose-wine-subtype::after{
    content: "";
    background-image: url("/wp-content/themes/viinilehti-fi/assets/images/icons/chevron-down.svg");
    position: absolute;
    width: 20px;
    height: 18px;
    filter: invert(1);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

#food-wine-palkki-groups .group .btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0px 0px 30px;
    width: 100%;
    background-color: #000;
    color: #fff;
    position: relative;
    font-family: 'Figtree';
    font-weight: 400;
    font-size: 17px;
    line-height: 16px;
    padding: 15px 15px;
}
#food-wine-palkki-groups .group .btn.active{
    background-color: #fff;
    color: #000;
}
#food-wine-palkki-groups .group .btn span{
    font-family: 'Figtree';
    font-weight: 400;
    font-size: 17px;
    line-height: 16px;
}

#food-wine-palkki-groups .group-title{
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}
#food-wine-palkki-groups .group-title::before, #food-wine-palkki-groups .group-title::after {
    content: '';
    display: block;
    height: 1px;
    flex: 1 0 auto;
    background-color: #000;
}
#food-wine-palkki-groups .group-title::before {
    margin-right: 20px;
}
#food-wine-palkki-groups .group-title::after {
    margin-left: 20px;
}
#food-wine-palkki-minified-new-search,
#food-wine-palkki-minified-reset-search {
    color: #ffffff;
    background: #000000;
    display: block;
    width: fit-content;
    margin: 0;
    padding: 19px 50px 15px 50px;
    font-family: "Newsreader", Sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1em;
    min-width: 233px;
}