/*
 * Vanhan kaupan sisältökomponenttien yhteensopivuustyylit.
 *
 * Kaikki säännöt on rajattu uuden sivupohjan keskisisältöön tai oikeaan
 * sivupalkkiin. Tähän tiedostoon ei lisätä body-, header-, nav-, main-,
 * footer-, .content- tai .sidebar-sääntöjä.
 */

.legacy-content h1,
.legacy-right-content h1 {
    margin: 5px 0 6px;
    font-family: "Barlow Condensed", Inter, Arial, sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.1;
}

.legacy-content h2,
.legacy-right-content h2 {
    margin: 0px 0 16px;
    color: var(--muted);
    font-family: "Barlow Condensed", Inter, Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.15;
}

.legacy-content h3,
.legacy-content h4,
.legacy-right-content h3,
.legacy-right-content h4 {
    color: #435264;
    font-family: Inter, Arial, sans-serif;
    font-weight: 700;
}

.legacy-content a:not(.button):not(.pikkuotsikko):not(.menunapit),
.legacy-right-content a {
    color: var(--blue);
}

.legacy-content a:not(.button):not(.pikkuotsikko):not(.menunapit):hover,
.legacy-right-content a:hover {
    color: #c0070f;
}

.legacy-content .tuoteotsikko {
    margin-top: 3px;
    color: #435264;
    font-size: .8rem;
    font-weight: 700;
}

.legacy-content .otsikko {
    margin: 10px 0;
    padding: 10px 0;
    color: var(--ink);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-family: "Barlow Condensed", Inter, sans-serif;
    font-size: clamp(1.35rem, 1.5vw, 1.65rem);
    letter-spacing: .02em;
    text-align: center;
}

.legacy-content .klikki {
    display: block;
    margin-bottom: 5px;
    padding: 10px;
    color: #fff;
    background: var(--success);
    border-radius: 4px;
    cursor: pointer;
    font-size: .875rem;
    text-align: center;
}

.legacy-content .tavat {
    width: 100%;
    margin: 0 5px 5px 0;
    padding: 10px;
    color: var(--ink);
    background: #f2f7fb;
    border: 1px solid var(--line);
    border-radius: 5px;
    text-align: left;
}

.legacy-content #pikalinkit {
    position: fixed;
    z-index: 1000;
    top: 40%;
    left: 0;
    width: min-content;
    padding: 10px 10px 10px 20px;
    border-radius: 0 15px 15px 0;
    font-family: monospace;
    font-size: .8rem;
    letter-spacing: 1px;
    line-height: 1.7;
    opacity: .65;
    text-align: left;
    text-transform: uppercase;
}

.legacy-content .pikalinkki {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.legacy-content .pikalinkki:hover {
    color: #d87800;
}

.legacy-content .pikalinkki.animaatio {
    animation: kt-legacy-pikalinkki 0.5s ease-out;
}

.legacy-content .tuoteKuvaus {
    display: -webkit-box;
    max-height: 6em;
    margin: 0;
    overflow: hidden;
    font-size: .9rem;
    line-height: 1.5;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.legacy-content .pikkuotsikko {
    display: inline-block;
    margin: 2px;
    padding: 9px 10px;
    color: #fff;
    background: var(--navy-2);
    border-radius: 3px;
    cursor: pointer;
    font-family: Inter, Arial, sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.legacy-content a.pikkuotsikko:link,
.legacy-content a.pikkuotsikko:visited,
.legacy-content h3.otsikko a,
.legacy-content h3.pikkuotsikko a {
    color: #fff;
}

.legacy-content a.pikkuotsikko:hover {
    color: #ffd36a;
    background: var(--blue);
}

.legacy-content .posviesti,
.legacy-right-content .posviesti {
    clear: both;
    margin-bottom: 10px;
    padding: 10px;
    color: #126744;
    background: #e8f6ef;
    border: 1px solid #83cbb0;
    border-radius: 4px;
    font-size: .82rem;
}

.legacy-content .negviesti,
.legacy-right-content .negviesti {
    margin-top: 10px;
    padding: 9px 10px 9px 42px;
    color: #9e3030;
    background: #fbe3e3 url('/new/site_images/huom.gif') no-repeat 8px center;
    border: 1px solid #dc7777;
    border-radius: 4px;
}

.legacy-content .neutralviesti,
.legacy-right-content .neutralviesti {
    margin-bottom: 10px;
    padding: 9px 10px 9px 70px;
    color: #8d5c2f;
    background: #fff6c8 url('/new/site_images/neutraali.gif') no-repeat 9px bottom / contain;
    border: 1px solid #d4a264;
    border-radius: 4px;
}

.legacy-content .price-tag {
    position: relative;
    width: fit-content;
    padding: 10px 10px;
    font-size: 16px;
    color: #fff;
    background-color: var(--blue);
    border: 0;
    border-radius: 4px;
    box-shadow: none;
    line-height: .8;
}

.legacy-content .menunapit {
    display: inline-block;
    margin: 0 1px 5px 3px;
    padding: 10px 23px;
    color: #fff;
    background: var(--success);
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    text-align: center;
}

.legacy-content a.menunapit,
.legacy-content .menunapit a {
    color: #fff;
}

.legacy-content input[type="text"],
.legacy-content input[type="email"],
.legacy-content input[type="password"],
.legacy-content textarea,
.legacy-right-content input[type="text"],
.legacy-right-content input[type="email"],
.legacy-right-content textarea {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    color: var(--ink);
    background: #f2f7fb;
    border: 1px solid #91a8bb;
    border-radius: 3px;
}

.legacy-content .slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
}

.legacy-content .mySlides {
    display: none;
}

.legacy-content .prev,
.legacy-content .next {
    position: absolute;
    top: 50px;
    width: auto;
    padding: 16px;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 700;
    transition: background-color .2s ease;
    user-select: none;
}

.legacy-content .next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.legacy-content .prev:hover,
.legacy-content .next:hover {
    color: #fff;
    background: rgba(0, 0, 0, .8);
}

.legacy-content .text,
.legacy-content .numbertext {
    position: absolute;
    padding: 8px 12px;
    color: #f2f2f2;
}

.legacy-content .text {
    bottom: 8px;
    width: 100%;
    font-size: .94rem;
    text-align: center;
}

.legacy-content .numbertext {
    top: 0;
    font-size: .75rem;
}

.legacy-content .dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin: 0 2px;
    background: #bbc5ce;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color .2s ease;
}

.legacy-content .dot.active,
.legacy-content .dot:hover {
    background: #61778b;
}

.legacy-content .fade {
    animation: kt-legacy-fade 1.5s;
}

.legacy-content .artotsikko {
    position: relative;
    z-index: 2;
    margin-bottom: -40px;
    padding: 10px;
    color: #fff;
    background: var(--blue);
    border-radius: 6px 6px 0 0;
    text-align: center;
    text-shadow: 2px 2px 7px rgba(0, 0, 0, .7);
}

.legacy-content .paketti-ikoni {
    width: 50px;
    margin-bottom: -10px;
    animation: kt-legacy-pomppu 1.5s ease-in-out infinite;
    transform-origin: center bottom;
}

.legacy-content .fadeIn {
    animation: kt-legacy-slide-in 1s ease-in-out;
}

/* Vaakasuuntainen tuote- ja tuoteryhmäkaruselli. */
.legacy-content .slider-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.legacy-content .slider-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

.legacy-content .slider-viewport::-webkit-scrollbar {
    display: none;
}

.legacy-content .slider-viewport.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.legacy-content .slider-content {
    display: flex;
    width: max-content;
    padding: 0 10px;
    gap: 10px;
}

.legacy-content .slider-item,
.legacy-content .slider-item-new,
.legacy-content .slider-item-offer {
    position: relative;
    display: flex;
    flex: 0 0 180px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 250px;
    padding: 0 10px 10px;
    background-color: transparent;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
    scroll-snap-align: start;
    text-align: center;
}

.legacy-content .slider-item-new,
.legacy-content .slider-item-offer {
    background-repeat: no-repeat;
    background-position: 10px 10px;
    background-size: 40px;
}

.legacy-content .slider-item-new {
    background-image: url('/new/site_images/uusi.png');
}

.legacy-content .slider-item-offer {
    background-image: url('/new/site_images/offer.png');
}

.legacy-content .product-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100px;
    margin: -20px 0 10px;
    object-fit: contain;
    background: transparent;
    pointer-events: none;
}

.legacy-content .arrow-button {
    position: absolute;
    z-index: 3;
    top: 50%;
    padding: 10px 12px;
    color: #fff;
    background: rgba(11, 30, 51, .78);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transform: translateY(-50%);
}

.legacy-content .arrow-button:hover {
    background: var(--blue);
}

.legacy-content .arrow-left {
    left: 4px;
}

.legacy-content .arrow-right {
    right: 4px;
}

.legacy-content .slider-item.group-card {
    height: 200px;
    padding: 14px 12px;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    border-top: 3px solid var(--blue);
    border-radius: 6px;
    align-items: stretch;
    justify-content: flex-start;
}

.legacy-content .group-card-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.legacy-content .group-card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-bottom: 8px;
    overflow: hidden;
    color: var(--ink);
    font-family: "Barlow Condensed", Inter, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.legacy-content .group-card-title a,
.legacy-content .group-card-title a:hover {
    color: inherit;
}

.legacy-content .group-card-divider {
    margin: 0 0 10px;
    border: 0;
    border-top: 1px solid var(--line);
}

.legacy-content .group-card-description {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    color: #455668;
    font-size: .78rem;
    line-height: 1.35;
    text-align: center;
}

.legacy-content .group-card-description span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.legacy-content .group-card-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 44px;
    margin-top: auto;
    padding-top: 10px;
    font-size: .95rem;
}

.legacy-content .group-card-price small {
    margin-bottom: 2px;
    color: var(--muted);
}

.legacy-content .group-card-price b {
    color: var(--ink);
    font-size: 1.15rem;
}

.legacy-right-content .siniPallo,
.legacy-content .siniPallo {
    width: 90%;
    max-width: 250px;
    padding: 20px;
    color: #275b67;
    background: #dceef5 url('/new/site_images/free-delivery.png') no-repeat -3% 10px / 30%;
    outline: 2px dashed #fff;
    outline-offset: -5px;
    text-align: center;
}

.legacy-right-content .oval,
.legacy-content .oval {
    /*    width: 200px;
    margin-left: -20px;
    padding: 20px;
    color: #275b67;
    background: #f2f2f2;
    border-radius: 50%;
    box-shadow: 5px 5px 10px 2px rgba(80, 95, 110, .3);
    text-align: center;*/
    transition: opacity .7s ease;
    float: left;
    width: 60%;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.3rem;
}

.legacy-right-content .haivytettavaKuva,
.legacy-content .haivytettavaKuva {
    transition: opacity .7s ease;
    float: right;
    max-width: 100px;
    margin: 10px;
}

.legacy-right-content .hidden,
.legacy-content .hidden {
    opacity: 0;
}

.legacy-right-content .custom_case_right,
.legacy-content .custom_case_right {
    margin-left: 17px;
/*    position: fixed;
    z-index: 200;
    bottom: 0;
    left: 10px;
    width: 15%;
    max-width: 200px;*/
}

@keyframes kt-legacy-pikalinkki {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes kt-legacy-slide-in {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes kt-legacy-pomppu {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-7px) rotate(-5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-7px) rotate(5deg); }
}

@keyframes kt-legacy-fade {
    from { opacity: .4; }
    to { opacity: 1; }
}

@media (max-width: 800px) {
    .legacy-content #pikalinkit,
    .legacy-content .arrow-button {
        display: none;
    }

    .legacy-content .slider-content {
        padding: 0 6px;
    }

    .legacy-content .slider-item,
    .legacy-content .slider-item-new,
    .legacy-content .slider-item-offer {
        flex-basis: min(180px, 72vw);
    }

/*    .legacy-right-content .custom_case_right,
    .legacy-content .custom_case_right {
        position: fixed;
        display: block;
        width: 100%;
        max-width: none;
    }
*/    

    .legacy-right-content .siniPallo,
    .legacy-content .siniPallo {
        width: 100%;
        max-width: none;
        margin-bottom: 10px;
        background-size: 30%;
        text-align: right;
    }
}
