/*
 * 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: #5486b1;
}

.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 .catalog-filters {
    margin-bottom: 8px;
}

.legacy-content .catalog-filters .pikkuotsikko {
    padding: 5px 8px;
    font-size: .68rem;
    line-height: 1.4;
}

.legacy-content .catalog-filters--subgroups .pikkuotsikko {
    background: #386052;
}

.legacy-content a.pikkuotsikko[aria-current="page"] {
    color: var(--ink, #142031);
    background: #fff;
    box-shadow: inset 0 0 0 1px #8693a0;
}

.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;
    text-align:center;
}

.legacy-content .negviesti,
.legacy-right-content .negviesti {
    margin-top: 10px;
    padding: 9px 10px 9px 42px;
    color: #9e3030;
    background: #fbe3e3 url('/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('/site_images/neutraali.gif') no-repeat 9px 50% / 30px;
    text-align:center;
    font-size: .82rem;
    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('/site_images/uusi.png');
}

.legacy-content .slider-item-offer {
    background-image: url('/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: 230px;
    padding: 14px 12px;
    color: #5486b1;
    background: #5486b13d;
    /* border: 1px solid #5486b1; */
    border-top: 3px solid #5486b1;
    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('/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;
    display: flex;
    align-content: space-between;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;

}

.extra-item{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:2px;
}

.extra-item small{
    width:100%;
    display:block;
    margin-bottom:2px;
    font-weight:600;
    color:#333;
}

.extra-option{
    position:relative;
    cursor:pointer;
    margin:0;
}

.extra-option input[type="radio"]{
    position:absolute;
    opacity:0;
    pointer-events:none;
    width:0;
    height:0;
}

.extra-option-text{
    display:inline-block;
    padding:6px 12px;
    border:1px solid #ccc;
    border-radius:20px;
    background:#fff;
    font-size:0.95em;
    transition:all .15s ease;
}

.extra-option:hover .extra-option-text{
    border-color:#28c941;
    background:#f7fff8;
}

.extra-option input[type="radio"]:checked + .extra-option-text{
    border-color:#28c941;
    background:#e9ffef;
    box-shadow:0 2px 6px rgba(0,0,0,0.08);
    font-weight:600;
}

.extra-option input[type="radio"]:checked + .extra-option-text{
    border: 2px solid;
    border-color:#3ba013;
    background:#e9ffef;
    font-weight:600;
}

.extra-price {
    display: inline-block;
    margin-left: 8px;
    color: #2d7f39;
    font-size: 0.92em;
    font-weight: 600;
}

.extra-popular{
    font-size:0.7em;
    color:#c28b00;
    margin-left:4px;
    white-space:nowrap;
}

.extra-option-text:has(.extra-popular){
    border-color:#e3c15b;
    background:#fffdf5;
}

#tuotehinta{
    transition:all .25s ease;
}
.hinta-paivittyy{
    transform:scale(1.07);
    color:#28c941;
}

@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;
    }
}
.legacy-content .cart-actions {
    display: flex;
    align-items: stretch;
    gap: .75rem;
    clear: both;
    margin: 1.25rem 0 .75rem;
}
.legacy-content .cart-actions a.menunapit {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    box-sizing: border-box;
    float: none;
    margin: 0;
    padding: .9rem .65rem;
    border-radius: .65rem;
    font-size: 1rem;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}
.legacy-content .cart-actions a.cart-actions__continue {
    background: var(--surface, #f2f5f8);
    border: 1px solid var(--line, #d5dce3);
    color: var(--ink, #172a3a);
    font-weight: 500;
}
.legacy-content .cart-actions a.cart-actions__checkout {
    background: var(--blue, #1769d2);
    color: #fff;
    font-weight: 700;
}
.legacy-content .cart-actions a:hover {
    filter: brightness(.95);
}
.legacy-content .cart-shipping {
    clear: both;
    margin: 0 0 1.5rem;
    padding: 1rem;
    border: 1px solid var(--line, #d5dce3);
    border-radius: .65rem;
    background: var(--surface, #f2f5f8);
}
.legacy-content .cart-shipping__cost {
    margin: 0 0 .5rem;
    font-size: 1rem;
}
.legacy-content .cart-shipping__cost strong {
    display: inline-block;
    margin-left: .4rem;
    font-size: 1.25rem;
    white-space: nowrap;
}
.legacy-content .cart-shipping__details {
    color: var(--muted, #526576);
    font-size: .875rem;
    line-height: 1.5;
}
.legacy-content .cart-shipping__details p {
    margin: .25rem 0 0;
}

/* Paytrail return: use the same theme and controls as the cart. */
.legacy-content .payment-result { color: var(--ink, #172a3a); line-height: 1.65; }
.legacy-content .payment-result__eyebrow { margin: 0 0 .5rem; color: var(--muted, #526576); font-size: .875rem; font-weight: 600; }
.legacy-content .payment-result h2 { margin: 0 0 1rem; }
.legacy-content .payment-result h3 { margin: 0 0 .5rem; border: 0; padding: 0; text-align: left; }
.legacy-content .payment-result__success { padding: .85rem 1rem; border: 1px solid #8bcdb4; border-radius: 8px; background: #e8f5ee; color: #185b44; font-weight: 600; }
.legacy-content .payment-result__details { margin: 1.5rem 0; padding: 1.15rem; border: 1px solid var(--line, #d5dce3); border-radius: 10px; background: var(--surface, #f2f5f8); }
.legacy-content .payment-result__details p:last-child { margin-bottom: 0; }
.legacy-content .payment-result__mail-status { color: var(--muted, #526576); font-size: .875rem; }
.legacy-content .payment-result__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.legacy-content .payment-result a.payment-result__button { display: inline-flex; align-items: center; justify-content: center; flex: 1 1 220px; min-height: 48px; padding: .8rem 1rem; box-sizing: border-box; border: 1px solid var(--line, #d5dce3); border-radius: 10px; background: var(--surface, #f2f5f8); color: var(--ink, #172a3a); text-align: center; text-decoration: none; font-weight: 600; line-height: 1.4; }
.legacy-content .payment-result a.payment-result__button--primary { background: var(--blue, #1769d2); border-color: var(--blue, #1769d2); color: #fff; }
.legacy-content .payment-result a.payment-result__button:hover { filter: brightness(.95); }
.legacy-content .payment-result a:focus-visible { outline: 3px solid var(--blue, #1769d2); outline-offset: 3px; }
.legacy-content .payment-result__cancel { margin-top: 1rem; font-size: .9rem; }

.legacy-content .payment-result a.payment-result__button--primary,
.legacy-content .payment-result a.payment-result__button--primary:visited,
.legacy-content .payment-result a.payment-result__button--primary:hover,
.legacy-content .payment-result a.payment-result__button--primary:focus,
.legacy-content .payment-result a.payment-result__button--primary:active {
    color: #fff !important;
}
