/*
Theme Name:        Teräsmyynti
Theme URI:         https://wordpress.org/
Description:       A child theme for Twenty Twenty-Five
Author:            WebAula
Author URI:        https://webaula.fi
Template:          twentytwentyfive
Version:           1.0.0
Requires at least: 6.7
Tested up to:      6.7
Requires PHP:      7.2
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       twentytwentyfive-child
*/

/* ============================================================
   ADD YOUR CUSTOM STYLES BELOW
   These will override the parent theme's styles.
   ============================================================ */


body {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 400;
}

h1,h2,h3{
    font-family: "prohibition", sans-serif;
    font-weight: 400;
    font-style: normal;
}

p.eyebrow{
    letter-spacing: 20%;
    font-weight: 700;
    font-size: 17px;
    color:#EE003C;
    text-transform: uppercase;
}
p.subtitle{
    letter-spacing: 20%;
    font-weight: 600;
    font-size: 16px;
    color:#EE003C;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
}
p.subtitle::before {
    content: '';
    width: 44px;
    height: 1px;
    background-color: #EE003C;
    display: block;
}
.subtitle.center {
    justify-content: center;
}

@media screen and (max-width: 600px) {
    p.subtitle,
    p.eyebrow {
        font-size: 14px;
    }
    p.subtitle::before {
        width: 30px;
    }
}

/*======================
    Main menu & header
========================*/

header.wp-block-template-part {
    overflow-x: clip;
    position: absolute;
    width: 100%;
    top: 0;
    /* The header floats over the hero, so it has to win the stacking contest
       outright — the mega panel drops out of it and must cover page content.
       .header-main below is a static block, where z-index would do nothing. */
    z-index: 999;
}
.admin-bar header.wp-block-template-part {
    top: 32px;
}
.header-main{
    z-index: 999!important;
}

/* The dark bar the nav sits in. It used to be painted by Max Mega Menu's own
   stylesheet; now that the menu comes from Webaula Core, the theme owns it.
   The two pseudo elements paint the outward curves either side, so the bar
   reads as a tab hanging off the top of the page. */
.main-menu-wrap{
    --wa-bar-h: 83px;
    position: relative;
    height: var(--wa-bar-h);
    background-color: #3d3d3d;
    border-radius: 0 0 25px 25px;
}
.main-menu-wrap::after {
    content: "";
    position: absolute;
    background-color: #fff0;
    top: 0;
    right: -30px;
    left: unset;
    bottom: unset;
    height: 50px;
    width: 30px;
    border-radius: 25px 0 0 0;
    box-shadow: 0 -25px 0 0 #3d3d3d;
}
.main-menu-wrap::before {
    content: "";
    position: absolute;
    background-color: #fff0;
    top: 0;
    left: -30px;
    right: unset;
    bottom: unset;
    height: 50px;
    width: 30px;
    border-radius: 0px 25px 0px 0px;
    box-shadow: 0 -25px 0 0 #3d3d3d;
}

/* Webaula Core mega panel — brand tokens. Structure lives in the plugin's
   shared.css; only colours, type and geometry are set here. */
.wa-nav{
    --wb-mega-bg: #212121;
    /* Width of the dropdown band: 0 = compact (flush with the panel),
       100vw = full width of the page. This is the only line to change. */
    --wb-mega-bleed-x: 0px;
    /* Reach the band up behind the bar and let the bar paint over it, so the
       header strip is dark too and the pill floats on it. Tied to the bar
       height so the two cannot drift apart. */
    --wb-mega-rise: var(--wa-bar-h);
    --wb-mega-z: -1;
    --wb-mega-text: #ffffff;
    --wb-mega-accent: #EE003C;
    --wb-mega-accent-ink: #ffffff;
    --wb-mega-row-active: #4C4C4C; /* hovered / highlighted row background */
    --wb-mega-line: rgba(255,255,255,0.09);
    --wb-mega-divider: #676767; /* the rule between the two panel columns */
    --wb-mega-bleed: 30px;
    --wb-mega-row-h: 48px;
    --wb-mega-row-pad: 30px;
    --wb-mega-pad-top: 26px; /* gap between the bar and the first row */
    --wb-mega-size: 17px;
    --wb-mega-size-top: 18px;
}
/* One font for the whole nav; the mobile accordion inherits it too. */
.wa-nav{
    font-family: "Space Grotesk", sans-serif;
    font-weight: 400;
}

/* Account + cart: label beneath the icon, as in the header design. Neither
   block can do this on its own — the account block only offers its label
   beside the icon, and the mini cart has no label at all — so the words are
   set here. Edit the two content: strings below if the wording changes. */
.cta-row .wc-block-customer-account__link,
.cta-row .wc-block-mini-cart__button{
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #fff;
    text-decoration: none;
}
.cta-row .wc-block-customer-account__link::after,
.cta-row .wc-block-mini-cart__button::after{
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}
.cta-row .wc-block-customer-account__link::after{
    content: "Tili";
}
.cta-row .wc-block-mini-cart__button::after{
    content: "Ostoskori";
}
.cta-row .wc-block-customer-account__link:hover,
.cta-row .wc-block-mini-cart__button:hover{
    color: #EE003C;
}

/* Logged in, the account block shows the user's avatar instead of the icon
   (WooCommerce 11.3) and it came out far larger than the cart icon beside it.
   Same size as the line icon, round. */
.cta-row .wc-block-customer-account__visual{
    line-height: 0;
}
.cta-row img.wc-block-customer-account__avatar{
    width: 26px;
    height: 26px;
    max-width: none;
    border-radius: 50%;
    object-fit: cover;
}

/* The Mini Cart block writes the badge's colours as inline styles: the
   background from the block's "Product count" colour, and the text colour
   sniffed from the first ancestor it considers to have a background. It only
   counts "rgba(0, 0, 0, 0)" and "transparent" as transparent, so .header-main's
   #ffffff00 — transparent white — reads to it as opaque white, and the number
   came out white on a white badge. Pin both; !important is what beats the
   inline style. */
.cta-row .wc-block-mini-cart__badge{
    background: #EE003C !important;
    color: #fff !important;
}

@media screen and (max-width: 1600px) {
    .header-wrapper .logo-col{
        flex-basis: 25%!important;
    }
    .header-wrapper .menu-col{
        flex-basis: 50%!important;
    }
    .header-wrapper .buttons-col{
        flex-basis: 25%!important;
    }
}

/* The plugin swaps the bar for a hamburger at 1024px. This header keeps its
   three-column layout down to 875px, so hold the bar until then. */
@media screen and (min-width: 876px) and (max-width: 1024px) {
    .wa-nav{
        width: 100%;
        margin-left: 0;
    }
    .wa-nav__bar{
        display: flex;
    }
    .wa-nav .webaula-burger,
    .wa-nav .webaula-mobile{
        display: none;
    }
}

@media screen and (max-width: 1350px){
    .wa-nav{
        --wb-mega-size-top: 16px;
        --wb-mega-size: 16px;
        --wb-mega-row-pad: 22px;
    }
    .header-wrapper .buttons-col .cta-row .wp-block-buttons{
        display: none;
    }
    .header-wrapper .logo-col{
        flex-basis: 20%!important;
    }
    .header-wrapper .menu-col{
        flex-basis: 60%!important;
    }
    .header-wrapper .buttons-col{
        flex-basis: 20%!important;
    }
}
@media screen and (max-width: 875px){
    /* No room for the labels once the header compacts. */
    .cta-row .wc-block-customer-account__link::after,
    .cta-row .wc-block-mini-cart__button::after{
        display: none;
    }
    .main-menu-wrap{
        height: auto;
        background-color: transparent;
        border-radius: 0;
    }
    .main-menu-wrap::after,
    .main-menu-wrap::before {
        display: none;
    }
    .header-wrapper .logo-col {
        flex-basis: 80%!important;
        order: 1;
    }
    .header-wrapper .menu-col {
        flex-basis: 10%!important;
        order: 3;
    }
    .header-wrapper .buttons-col {
        flex-basis: 10%!important;
        order: 2;
    }
    .header-wrapper{
        gap:10px!important;
    }
    .cta-row{
        gap: 0px;
    }
    .wp-block-site-logo {
        width: 175px;
    }
}
@media screen and (max-width: 450px){
    .header-wrapper{
        gap:10px!important;
    }
    .cta-row{
        gap: 0px;
    }
}

/* Mobile menu: "Pyydä tarjous" at the end of the panel, added by
   inc/mobile-nav/mobile-nav.php. Same look as the header button. */
.wa-nav .webaula-mobile .ts-mnav-cta{
    padding: 24px 0 8px;
}
.wa-nav .webaula-mobile a.ts-mnav-cta__button{
    display: block;
    padding: 14px 22px;
    border: 0;
    background-color: #DB0037;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
}
.wa-nav .webaula-mobile a.ts-mnav-cta__button:hover,
.wa-nav .webaula-mobile a.ts-mnav-cta__button:focus-visible{
    background-color: #EE003C;
    color: #fff;
}

/* Mobile menu: the category being viewed (inc/mobile-nav/mobile-nav.js). The
   levels above it are opened and turn red like any opened item; the category
   itself is bold so it stands out from that trail. */
.wa-nav .webaula-mobile a.is-current{
    color: var(--wb-mega-accent);
    font-weight: 600;
}

/*======================
        Global blocks
========================*/

.wp-block-button.is-style-outline a:hover {
    background-color: #EE003C;
}

.wp-block-cover.hero {
    padding: 80px;
    min-height: 1000px;
}

/* Red bullets on content lists. The category description arrives as a plain
   <ul> from the term description rather than a list block, so the archive
   wrapper is targeted alongside block lists. Lists that set list-style: none
   (the footer menu below, WooCommerce product grids) draw no marker at all,
   so they are untouched by this. */
.archive-text ul li::marker,
ul.wp-block-list li::marker {
    color: #EE003C;
    font-size: 1.2em;
}

ul.wp-block-list.footer-list {
    list-style-type: none;
    padding: 0;
}
ul.wp-block-list.footer-list li {
    margin-top: 15px!important;
}
ul.wp-block-list.footer-list li a{
    text-decoration: none;
    color:#fff;
    transition:ease-in-out .3s
}
ul.wp-block-list.footer-list li a:hover{
    color: var(--wp--preset--color--accent);
}

.services .service .content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.services .service .content-wrapper .wp-block-buttons{
    margin-top: auto;
    padding-top: 20px;
}

.avatar img,
.avatar {
    aspect-ratio: 1/1!important;
    width:90px;
    height: 90px;
}
.wp-block-media-text.has-media-on-the-right.is-stacked-on-mobile.timo img {
    border-radius: 100%;
    max-width: 375px;
    margin-left: 75px;
}
.faq-section h3{
    font-family: "Space Grotesk", sans-serif;
    font-weight: 400;
}

.wp-block-media-text>.wp-block-media-text__content {
    padding: 50px 0vw 50px 4.5vw!important;
    word-break: keep-all;
}
.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__content {
    padding: 50px 4.5vw 50px 0vw!important;
    word-break: keep-all;
}
.wp-block-media-text.is-image-fill-element figure.wp-block-media-text__media {
    align-items: center;
    background-position: 50%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    min-height: 475px;
    overflow: hidden;
    overflow: clip;
    padding: 1em;
    position: relative;
}
.wp-block-media-text__content h2,
.wp-block-media-text__content p.eyebrow{
    margin-block-start: 0em;
}
.wp-block-media-text__content h2:not(:first-child) {
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
}

@media screen and (max-width: 1335px) {
    .yritys-cta {
        flex-direction: column;
        gap:0px;
    }
    .yritys-cta .wp-block-column{
        flex-basis: 100%;
    }
    .timo-columns .wp-block-column.kuva{
        flex-basis: 18%!important;
    }
}
@media screen and (max-width: 1200px) {
    .services .service .content-wrapper {
        padding:30px!important;
    }
    .wp-block-group .services {
        gap: 35px!important;
    }
}
@media screen and (max-width: 1024px) {
    .services .service .content-wrapper {
        padding:20px!important;
    }
    .wp-block-group .services {
        gap: 25px!important;
    }
    .wp-block-cover.hero {
        padding: 80px 50px;
        min-height: 1000px;
    }
    .yritys-sarakkeet .kuva,
    .yritys-sarakkeet .teksti{
        flex-basis:100%;
    }
    .yritys-sarakkeet {
        flex-direction: column;
    }
    .yritys-cta {
        flex-direction: row;
        gap:0px;
    }
.why-choose.wp-block-group-is-layout-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3vw;
}
.wp-block-media-text.has-media-on-the-right.is-stacked-on-mobile.timo img {
    border-radius: 100%;
    max-width: 275px;
    margin-left: 15px;
    margin-bottom: 15px;
}
.yritys-info .wp-block-media-text.is-stacked-on-mobile {
    grid-template-columns: 100%!important;
}
.yritys-info .wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content {
    grid-column: 1;
    grid-row: 2;
}
.yritys-info .wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media {
    grid-column: 1;
    grid-row: 1;
}
}
@media screen and (max-width: 800px) {
.question,
.why-choose > .wp-block-group {
    padding: 20px!important;
}
    .wp-block-media-text__content h2:not(:first-child) {
    margin-block-start: 0.4em;
    margin-block-end: 0.83em;
}
    .wp-block-media-text.is-image-fill-element>.wp-block-media-text__media{
    min-height: 350px!important;
}
.wp-block-media-text>.wp-block-media-text__content,
.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__content{
    padding: 35px 3.5vw 35px 3.5vw!important;
    box-sizing: border-box;
}
    .services .service .content-wrapper {
        padding:20px!important;
    }
    .wp-block-group .services {
        gap: 25px!important;
        grid-template-columns: repeat(2, minmax(0, 1fr));    
    }
    .wp-block-cover.hero {
        padding: 80px 25px;
        min-height: 1000px;
    }
    .timo-columns .wp-block-column.kuva{
        flex-basis: 95px!important;
    }
}
@media screen and (max-width: 600px) {
    .why-choose.wp-block-group-is-layout-grid{
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 5vw;
    }
    .services .service .content-wrapper {
        padding:20px!important;
    }
    .wp-block-group .services {
        gap: 30px!important;
        grid-template-columns: repeat(1, minmax(0, 1fr));    
    }
    .yritys-cta {
        flex-direction: column;
        gap:0px;
    }
    .yritys-cta .napit .wp-block-buttons {
        justify-content: left!important;
        margin-top: 20px!important;
    }
    .numbers-row {
    flex-wrap: wrap;
}
}

/*======================
        Osasto grid
========================*/

.osasto-cta {
    height: 380px;
    width: 380px;
}
.osasto-cta .wp-block-cover__background {
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #000000 100%);
    opacity: 1!important;
    background-color: transparent!important;
}

/*======================
  Lomakkeet (WebAula Ecosystem)
========================*/

.wa-form {
    --wa-form-accent: #EE003C;
    --wa-form-radius: 0;
    --wa-form-field-bg: #232222;
    font-family: "Space Grotesk", sans-serif;
}
.wa-form.wa-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.wa-form.wa-form textarea,
.wa-form.wa-form select {
    background-color: #232222;
    border: 1px solid #3B3B3B;
    border-radius: 0;
    padding: 10px 14px;
    font-size: 18px;
    color: #fff;
}
.wa-form.wa-form textarea {
    min-height: 140px;
}
.wa-form.wa-form .wa-form__submit {
    background-color: #EE003C;
    border-color: #EE003C;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 30px;
}

/* Uutiskirje: email and button in one bordered box (front page + blog) */
.wa-form.wa-form[data-form-id="6427"] {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 16px;
    max-width: 740px;
    margin-inline: auto;
    padding: 12px;
    background-color: #232222;
    border: 1px solid #3B3B3B;
}
.wa-form.wa-form[data-form-id="6427"] > * {
    grid-column: 1 / -1;
}
.wa-form.wa-form[data-form-id="6427"] > .wa-form__grid {
    grid-column: 1;
    grid-row: 1;
}
.wa-form.wa-form[data-form-id="6427"] > .wa-form__submit {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 16px 34px;
    font-size: 18px;
}
.wa-form.wa-form[data-form-id="6427"] label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
/* three classes: beats the shared field rule above */
.wa-form.wa-form.wa-form[data-form-id="6427"] input[type=email] {
    border: none;
    background-color: transparent;
    padding-left: 16px;
}

.wa-form.wa-form[data-form-id="6427"] > .wa-form__status:empty {
    display: none;
}

@media (max-width:640px){
    .wa-form.wa-form[data-form-id="6427"] {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }
    .wa-form.wa-form[data-form-id="6427"] > .wa-form__submit {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
    }
}

/* Saatavuusilmoitus (Ecosystem module Saatavuusilmoitukset) on the product page:
   square box and field like the site's other product page fields. Doubled
   classes beat the module's own notify.css whatever the load order. */
.stock.out-of-stock {
    color: #EE003C;
}
.wa-bis.wa-bis {
    margin: 1.5rem 0 0;
    padding: 1.25rem;
    border: 1px solid #7E7E7E;
    border-radius: 0;
}
.wa-bis.wa-bis .wa-bis__l {
    font-size: 16px;
    font-weight: 700;
}
.wa-bis.wa-bis .wa-bis__in {
    box-sizing: border-box;
    height: 2.75rem;
    padding: 0 1.1em;
    border: 1px solid #949494;
    border-radius: 0;
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
}
.wa-bis.wa-bis .wa-bis__btn {
    height: 2.75rem;
    border-radius: 0;
}
.wa-bis.wa-bis .wa-bis__c {
    font-size: .875rem;
    line-height: 1.45;
    color: #B9B9B9;
    opacity: 1;
}
.wa-bis.wa-bis .wa-bis__m.is-bad {
    color: #EE003C;
}

/* Palautukset (Ecosystem module Palautukset): guest page and Oma tili. The module
   paints its fields white with rounded corners and a navy accent; here they match
   the other forms. Doubled classes beat returns.css whatever the load order. */
.wa-rma.wa-rma {
    --wa-rma-accent: #EE003C;
    --wa-rma-r: 0;
    --wa-rma-r-l: 0;
    color-scheme: dark;
}
.wa-rma.wa-rma select,
.wa-rma.wa-rma textarea,
.wa-rma.wa-rma input[type=email],
.wa-rma.wa-rma input[type=text] {
    background-color: #232222;
    border: 1px solid #3B3B3B;
    border-radius: 0;
    color: #fff;
    font-size: 18px;
}
.wa-rma.wa-rma .wa-rma__btn {
    border-radius: 0;
}
/* Lookup form: label above the field, like the module's other fields */
.wa-rma.wa-rma .wa-rma__lookup > p {
    display: grid;
    gap: 6px;
    max-width: 32em;
}
.wa-rma.wa-rma .wa-rma__lookup > p:last-child {
    justify-items: start;
}
.wa-rma.wa-rma .wa-rma__lookup label {
    font-size: .8125em;
    font-weight: 600;
}

/*======================
    Uutiset / News
========================*/

/* News listing / grid */

.uutiset .post-loop-wrapper .container {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 3fr 3fr;
    grid-template-rows: 1fr 1fr;
    gap:100px;
}

/*First Loop Card*/
.uutiset .clearfix.item-1 {
    grid-column: 1;
    grid-row-start: 1;
    grid-row-end: 4;
    z-index: 0;
    border-radius:0px;
    background-color: #2C2C2C;
    padding:25px 25px 35px 25px;
}
.uutiset .clearfix.item-1 .latest_post p{
    display: block;
}
.uutiset .clearfix.item-1 .item-wrapper{
    position: relative;
    display: flex;
    flex-direction: column;
}
.uutiset .clearfix.item-1 img{
    width: 100%;
    height: 500px;
}
.uutiset .clearfix.item-1 .latest_post {
    padding: 20px 15px 0 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}
.uutiset .clearfix.item-1 h3,
.uutiset .clearfix.item-1 h2{
    font-size: 30px;
    text-transform: uppercase;
    margin:0 0 10px 0;
    color: #fff;
}
.uutiset .clearfix.item-1.latest_post .read-more {
    margin-top: 20px;
}
.uutiset .clearfix.item-1 .item-wrapper .boxes_image{
    width: 100%;
}
.uutiset .clearfix.item-1 .item-wrapper .latest_post{
    width: 100%;
}

/*Loop grid*/

.uutiset .clearfix{
    grid-column: 2;
    border-radius:0px;
    background-color: #2C2C2C;
    padding:25px 30px 25px 25px;
    display: flex;
}
.uutiset .clearfix .latest_post a{
    text-decoration: none;
}
.uutiset .clearfix .item-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
}
.uutiset .clearfix .item-wrapper .boxes_image{
    width: 45%;
}
.uutiset .clearfix .item-wrapper .latest_post{
    width: 55%;
}
.uutiset .clearfix img, 
.uutiset figure.wp-block-post-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.uutiset .clearfix img.fallback {
    background-color: #fff;
}
.uutiset .clearfix h3,
.uutiset .clearfix h2{
    font-size: 24px;
    text-transform: uppercase;
    margin:0 0 10px 0;
    color: #fff;
}
.uutiset .clearfix h3 a,
.uutiset .clearfix h2 a{
    text-decoration: none;
}
.uutiset .clearfix .latest_post p{
    margin:5px 0 0 0;
    font-size: 16px;
}
.uutiset .clearfix .latest_post {
    box-sizing: border-box;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.uutiset .clearfix .latest_post .facet_cat,
.uutiset-archive .clearfix .latest_post .facet_cat{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.uutiset .clearfix .latest_post .facet_cat a,
.uutiset .clearfix .latest_post .facet_cat span{
    font-weight: 400;
    font-size: 15px;
    text-decoration: none; 
}
 .clearfix .latest_post .read-more {
    color:#fff;
    background-color: transparent;
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    padding:0;
    align-self: start;
    text-decoration: none;
    margin-top: auto;
    transition:ease-in-out .3s;
}
 .clearfix .latest_post .read-more:hover {
    color:var(--wp--preset--color--accent);
}
 .clearfix .latest_post .read-more::after{
    content: '';
    display: inline-block;
    width: 20px;
    height: 10px;
    background-image: url(/wp-content/uploads/2026/05/arrow.svg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: 15px;
    transition:ease-in-out .3s;
}

/*=== Archive page | Blogi ===*/

/* Tag filter (acf/avainsanat) */
.blogi-hero .ts-tag-filter ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.blogi-hero .ts-tag-filter a {
    display: block;
    background-color: #FFFFFF;
    color:#000;
    padding: 8px 18px;
    font-size: 16px;
    border-radius: 50px;
    text-decoration: none;
    transition: all ease-in-out .3s;
}
.blogi-hero .ts-tag-filter a[aria-current="page"] {
    background-color: #EE003C;
    color:#fff;
}

.post-loop-wrapper.archive .container{
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr 1fr;
    grid-column-gap: 85px;
    grid-row-gap: 85px;
}
.uutiset .post-loop-wrapper.archive .clearfix {
    grid-column: unset;
}
.post-loop-wrapper.archive .clearfix.item-1{
    grid-column: 1/4;
    grid-row-start: 1;
    grid-row-end: 4;
}
.uutiset .post-loop-wrapper.archive .clearfix .item-wrapper{
    flex-direction: column;
}
.uutiset .post-loop-wrapper.archive .clearfix .item-wrapper .boxes_image,
.uutiset .post-loop-wrapper.archive .clearfix .item-wrapper .latest_post {
    width: 100%;
}
.uutiset .post-loop-wrapper.archive .clearfix img{
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 0px;
}
.uutiset .post-loop-wrapper.archive .clearfix .latest_post {
    box-sizing: border-box;
    padding-top: 20px;
    padding-left: 0px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.uutiset .post-loop-wrapper.archive .clearfix.item-1 img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 0px;
}
.uutiset .post-loop-wrapper.archive .clearfix.item-1 .latest_post {
    padding: 45px 100px 45px 65px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex-grow: 1;
}
.uutiset .post-loop-wrapper.archive .clearfix.item-1 h2 {
    font-size: 42px;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    color: #fff;
}

.wp-block-query-pagination {
    text-align: center;
    margin-top: 35px;
}
.wp-block-query-pagination .wp-block-query-pagination-numbers .page-numbers {
    display: inline-block;
    padding: 3px 10px;
    margin-right: 10px;
    cursor: pointer;
    border: solid 1px #171717;
    background-color: #171717;
    color:#FFFFFF99;
    text-decoration: none;
    transition: all ease-in-out .3s;
}
.wp-block-query-pagination .wp-block-query-pagination-numbers .page-numbers.current, .wp-block-query-pagination .wp-block-query-pagination-numbers .page-numbers:hover {
    background-color: #232222;
    border-color:#3B3B3B;
    color: #fff;
}

/*Responsibility*/
@media screen and (max-width:1600px){
    .uutiset .post-loop-wrapper .container {
        gap:65px 50px;
    } 
}
@media screen and (max-width:1400px){
    .uutiset .clearfix.item-1 img{
        width: 100%;
        height: 450px;
    }
}
@media screen and (max-width:1200px){
    .uutiset .post-loop-wrapper.archive .clearfix.item-1 .latest_post, 
    .category-archive ul.alignfull.uutiset .post:first-child .latest_post {
        padding: 45px 55px 45px 55px;    
        display: flex;
        flex-direction: column;
        gap: 18px;
        flex-grow: 1;
    }
    .uutiset .post-loop-wrapper .container {
        list-style-type: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
    } 
    .uutiset .post-loop-wrapper .container {
        list-style-type: none;
        margin: 0;
        padding: 0;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        grid-column-gap: 45px;
        grid-row-gap: 20px;
    }
    .uutiset .post-loop-wrapper.archive .container{
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1fr 1fr 1fr;
        grid-column-gap: 75px;
        grid-row-gap: 75px;
    }
    .uutiset .post-loop-wrapper.archive .clearfix.item-1 {
        grid-column: 1/3;
        grid-row-start: 1;
        grid-row-end: 4;
    }
    .uutiset .clearfix.item-1 {
        grid-column: 1;
        grid-row-start: unset;
        grid-row-end: 1;
        z-index: 0;
        margin-bottom: 0px;
    }
    .uutiset .clearfix {
        grid-column: 1;
    }
    .uutiset .clearfix h3,
    .uutiset .clearfix h2 {
        font-size: 22px;
        text-transform: uppercase;
        margin:0 0 10px 0;
    }
    .uutiset .clearfix.item-1 h3,
    .uutiset .clearfix.item-1 h2 {
        font-size: 28px;
        text-transform: uppercase;
        margin:0 0 10px 0;
    }
}
@media screen and (max-width:1024px){
    .uutiset .post-loop-wrapper.archive .clearfix.item-1 .latest_post, 
    .category-archive ul.alignfull.uutiset .post:first-child .latest_post {
        padding: 45px 10px 45px 35px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        flex-grow: 1;
    }
    .uutiset-archive .clearfix img{
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 5px;
    }
    .uutiset-archive .clearfix .item-wrapper,
    .category-archive .clearfix .item-wrapper {
        display: flex;
        flex-direction: column;
    }
    .uutiset-archive .clearfix .latest_post,
    .category-archive .clearfix .latest_post {
        padding-left: 0px;
        padding-top: 20px;
    }
    .uutiset .clearfix .item-wrapper .boxes_image {
        width: 100%;
    }
    .uutiset .clearfix .item-wrapper .latest_post {
        width: 100%;
    }
    .category-archive .uutiset .clearfix .item-wrapper .boxes_image,
    .category-archive .uutiset .clearfix .item-wrapper .latest_post {
        flex-basis: 100%!important;
    }
    .uutiset .post-loop-wrapper.archive .container{
        grid-column-gap: 55px;
        grid-row-gap: 55px;
    }
}
@media screen and (min-width:800px){
    .post-loop-wrapper.archive .clearfix.item-1 .item-wrapper {
        position: relative;
        display: flex;
        flex-direction: row;
    }
    .uutiset .clearfix.swiper-slide {
        height: auto;
        width: auto;
    }
}
@media screen and (max-width:800px){
    .uutiset .post-loop-wrapper.archive .clearfix.item-1 .item-wrapper {
        flex-direction: column;
    }
    .uutiset .clearfix .item-wrapper .boxes_image,
    .uutiset .clearfix .item-wrapper .latest_post{
        width: 100%;
    }
    .category-archive .uutiset .clearfix .item-wrapper .boxes_image, 
    .category-archive .uutiset .clearfix .item-wrapper .latest_post {
        width: unset!important;
    }
    .uutiset .post-loop-wrapper.archive .clearfix.item-1 .latest_post, 
    .category-archive ul.alignfull.uutiset .post:first-child .latest_post {
        padding: 25px 5px 25px 5px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        flex-grow: 1;
    }
    .uutiset .clearfix.swiper-slide{
        box-sizing: border-box;
    }
    .uutiset .clearfix .item-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
       .category-archive .uutiset .clearfix .item-wrapper {
        display: flex;
        flex-direction: column;
    }
    .uutiset .post-loop-wrapper .container {
        display: flex;
        flex-direction: column;
        gap: 35px;
    }
    .uutiset-archive .post-loop-wrapper .container.kategoria-kuulutukset{
        list-style-type: none;
        margin: 0;
        padding: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        grid-column-gap: 30px;
        grid-row-gap: 35px;
    }
    .uutiset .clearfix h3,
    .uutiset .clearfix.item-1 h3,
    .uutiset .clearfix h2,
    .uutiset .clearfix.item-1 h2 {
        font-size: 22px;
        margin: 0;
    }
    .uutiset .clearfix .latest_post p{
        display: block;
    }
    .uutiset .clearfix img,
    .uutiset .clearfix.item-1 img {
        height: 400px;
        min-width: unset;
    }
    .uutiset .clearfix .latest_post p {
        margin: 0;
        font-size: 16px;
    }
    .uutiset .clearfix,
    .uutiset .clearfix.item-1 {
        padding: 18px 18px 25px 18px;
        height: auto;
    }
    .uutiset .clearfix.item-1 .latest_post,
    .uutiset .clearfix .latest_post {
        padding: 15px 0 0 0;
        gap: 15px;
        flex-grow: 1;
}
}
@media screen and (max-width:781px){
    .category-archive .uutiset .clearfix .item-wrapper {
        display: flex;
        flex-direction: row;
    }
    .brewery-info {
        grid-template-columns: repeat(1, minmax(0, 1fr))!important;
        gap: 35px;
    }
    .hero-titles {
        padding: 35px 20px!important;
    }
}
@media screen and (max-width:600px){
    .uutiset .post-loop-wrapper .container {
        display: flex;
        flex-direction: column;
    }
    .uutiset .clearfix.item-1 {
        margin-bottom: 0px!important;
    }
    .uutiset .clearfix .item-wrapper .latest_post,
    .uutiset .clearfix .item-wrapper .boxes_image{
        width: 100%;
    }
    .uutiset .otsikointi,
    .tapahtumat-front .otsikointi{
        flex-wrap: wrap;
    }
    .uutiset .post-loop-wrapper .container .item-wrapper{
        flex-direction: column;
    }
    .uutiset .post-loop-wrapper.archive .container, .category-archive ul.alignfull.uutiset {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        grid-column-gap: 30px;
        grid-row-gap: 35px;
    }
    .uutiset .post-loop-wrapper.archive .clearfix.item-1, .category-archive ul.alignfull.uutiset .post:first-child {
        grid-column: 1;
        grid-row-start: 1;
        grid-row-end: 4;
    }
    .uutiset .clearfix img, .uutiset .clearfix.item-1 img {
        height: 250px;
        min-width: unset;
    }
}


/*======================
    Google rating widget
========================*/

.ti-rating-text,
.ti-rating-text span,
.ti-rating-text strong{
    color: #fff!important;
}


.ti-widget.ti-goog .ti-review-item>.ti-inner{
    background-color: #fff!important;
}
@media screen and (min-width:1500px) {
    .ti-widget.ti-goog .ti-col-6 .ti-review-item {
    -ms-flex: 0 0 25%;
    flex: 0 0 25%!important;
    max-width: 25%!important;
    padding: 0 0px!important;
}
}
/* Wider space between the cards. Trustindex sizes each card to an exact share of the row and
   slides by that share, so a column-gap made the row wider than its clipped box and cut the
   outer cards. The space goes inside each card's slot instead. */
@media (min-width:1310px){
.ti-widget.ti-goog .ti-widget-container .ti-review-item{
    padding-left: 15px!important;
    padding-right: 15px!important;
}
}

/*======================
    Asiakas kokemukset
========================*/

.testimonial-container {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.testimonial-item {
    display: flex;
    min-height: 400px;
}

.testimonial-image {
    width: 50%;
    overflow: hidden;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    min-height:600px;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
}

.testimonial-content {
    background: #2a2a2a;
    padding: 45px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 50%;
    box-sizing: border-box;
}

.testimonial-quote-mark {
    display: block;
    font-size: 80px;
    line-height: 0.8;
    color: #e63030;
    font-family: Georgia, serif;
    margin-bottom: 16px;
}
.testimonial-quote-mark svg{
    height:60px;
}
.testimonial-quote-mark path{
    fill:#EE003C;
}

.testimonial-quote {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
    margin: 0 0 40px;
    flex-grow: 1;
}

.testimonial-name {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.testimonial-meta {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 30%;
    text-transform: uppercase;
    color: #fff;
    line-height: 20px;
    margin: 0 0 16px;
}

.testimonial-counter {
    font-size: 12px;
    letter-spacing: 0.1em;
    color: #fff;
}


@media (max-width: 1400px){
    .testimonial-container {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
    .testimonial-content {
        padding: 40px 35px;
    }
}
@media (max-width: 1200px){
    .testimonial-container {
        grid-template-columns: 1fr;
        gap: 80px;
    }
    .testimonial-content {
        padding: 45px 50px;
    }
}
@media (max-width: 768px) {
    .testimonial-container {
        grid-template-columns: 1fr;
    }
    .testimonial-item {
        display: flex;
        min-height: unset;
    }
    .testimonial-item {
        flex-direction: column;
    }

    .testimonial-image {
        width:100%;
        min-height: 220px;
    }
    .testimonial-image img {
        min-height: 220px;
    }

    .testimonial-content {
        width:100%;
        padding: 36px 28px;
    }
    .testimonial-quote {
        font-size: 19px;
    }
    .testimonial-name {
        font-size: 16px;
    }
    .testimonial-quote-mark svg {
        height: 50px;
    }
}

/*======================
        WC Products
========================*/

.frontpage-produce img,
.archive-loop li .wc-block-product{
    background-color: #fff;
}

.frontpage-produce li.wc-block-product .wc-product-content {
    border-left: solid 3px #343434;
    flex-grow: 1;
    transition:ease-in-out .3s
}
.frontpage-produce li.wc-block-product {
    display: flex;
    flex-direction: column;
}
.frontpage-produce li.wc-block-product:hover .wc-product-content{
    border-color:#EE003C;
}
.frontpage-produce li.wc-block-product .taxonomy-product_cat.wp-block-post-terms{
    margin-bottom: 15px;
}
.frontpage-produce li.wc-block-product .taxonomy-product_cat.wp-block-post-terms a,
.archive-loop li.wc-block-product .taxonomy-product_cat.wp-block-post-terms a{
    text-transform: uppercase;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    color: #fff;
}

.frontpage-produce li.wc-block-product img {
    display: block;
    margin-bottom: 0 !important; /* beats li.product img at max-width 675px */
}
.frontpage-produce li.wc-block-product .wc-product-content .is-nowrap {
    flex-wrap: wrap;
}
.frontpage-produce li.wc-block-product .wp-block-woocommerce-product-price {
    min-width: 0;
}
.frontpage-produce li.wc-block-product .ts-price-suffix__incl {
    white-space: normal;
}
@media screen and (max-width: 600px) {
    .frontpage-produce li.wc-block-product .wc-product-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/*WC Category Archive*/

.custom-category-image {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100%;
    min-height: 500px;
    display: block;
}
.archive-title {
    margin-top: 55px;
}
.archive-text{
    max-width: 100%;
}
.archive-text p:not(:last-child) {
    margin-bottom: 20px;
}
.category-hero .content-col {
    padding: 50px 70px;
    padding-left: 0;
    box-sizing: border-box;
}
.archive-loop .product img{
    object-fit: contain!important;
}
.archive-loop .product .content-wrap{
    background-color: #fff;
    display: flex!important;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
}
.archive-loop .product .wp-block-post-title {
    color: #000000!important;
    font-size: 16px!important;
    font-family: 'Space Grotesk'!important;
    text-transform: none;
    font-weight:700;
    margin-top: 15px;
}
.archive-loop .product span.woocommerce-Price-amount {
    font-size: 16px!important;
    margin: 0 0 0 0!important;
}
.archive-loop .product .wp-block-woocommerce-product-price {
    margin-top: auto!important;
}

.suodatin-title figure {
    margin-top: -10px!important;
}

.filter-details summary::after {
    content: '';
    display: block;
    width: 12px;
    height: 8px;
    background-image: url(https://devnokianpanimofi-wp33614.test.cchosting.fi/wp-content/uploads/2025/11/Down_Arrow_3_.svg);
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    right: 0;
    top: 7px;
}
.filter-details summary{
    position: relative;
    list-style-type: none;
}
select#woocommerce-orderby-2 {
    font-family: 'stratos';
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 0;
    border: solid 1px #273742;
    color:#000000;
}
form.woocommerce-ordering label {
    text-transform: uppercase;
    color: #273742;
    margin:0!important;
}
form.woocommerce-ordering {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media screen and (max-width:1440px){
.archive-loop ul{
    grid-template-columns: 1fr 1fr 1fr!important;
}
.archive-loop .product .content-wrap {
    padding: 20px;
}
}
@media screen and (max-width:1250px){
.archive-loop .product .wp-block-post-title{
    font-size: 26px!important;
}
.archive-text {
    max-width: 100%;
}
}
@media screen and (max-width:1024px){
    .archive-loop .product .wp-block-post-title {
        font-size: 22px!important;
    }
    .image-col, 
    .content-col {
        flex-basis: 100%!important;
    }
    .category-hero .wp-block-columns{
        flex-wrap: wrap!important;
    }
    .archive-title {
        margin-top: 25px;
    }
    .category-hero .content-col {
        padding: 35px 50px;
        box-sizing: border-box;
    }
}
@media (min-width: 1024px) {
  .filter-toggle:not(.shop-filter-top) {
    display: none;
  }
  .filter-content > .wc-block-product-categories {
    margin-top: 0;
  }
  .filter-top {
    transition: all 0.2s ease;
  }
  .filter-top.active {
    height: 0;
    visibility: hidden;
    opacity: 0;
    margin-top: 0;
  }
}
@media (max-width: 1023px) {
    .product-archive-columns{
        flex-wrap: wrap!important;
    }
  .admin-bar .filter-content.filter-top {
    margin-top: 46px;
  }
  .filter-content.filter-top.active .overlay {
    background-color: var(--wp--preset--color--black);
    opacity: 0.7;
    visibility: visible;
  }
  /* .wp-block-column.filter-col {
    display: none;
  } */
    .wp-block-column.product-col,
    .wp-block-column.filter-col {
        flex-basis: 100%!important;
    }
  .admin-bar .filter-content {
    margin-top: 46px;
  }
.filter-toggle {
    margin-top: 0px !important;
    padding: 10px 20px;
    font-weight: 700;
    font-family: 'stratos';
    font-size: 18px;
    text-transform: uppercase;
}
button#filter-toggle::before {
    content: '';
    background-image: url(https://devnokianpanimofi-wp33614.test.cchosting.fi/wp-content/uploads/2025/11/filter.svg);
    height: 18px;
    width: 18px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-right: 12px;
    margin-bottom: -3px;
}
  .filter-content {
    position: fixed;
    left: -100%;
    top: 65px;
    bottom: 0;
    max-width: 400px;
    width: 100%;
    z-index: 9;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    overflow-y: auto;
    margin-top: 0;
  }
  .filter-content.active {
    opacity: 1;
    visibility: visible;
    left: 0;z-index: 100;
  }
  .filter-content.active::before {
    left: 0;
  }
  .filter-content::before {
    content: "";
    position: fixed;
    max-width: 400px;
    left: -100%;
    right: 0;
    top: 0;
    bottom: 0;
    background-color:#1a1a1a;
    z-index: -1;
    transition: all 0.2s ease;
  }
  .filter-content .filter-close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 25px;
    width: 24px;
    height: 24px;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBhcmlhLWhpZGRlbj0idHJ1ZSIgZm9jdXNhYmxlPSJmYWxzZSI+PHBhdGggZD0iTTEzIDExLjhsNi4xLTYuMy0xLTEtNi4xIDYuMi02LjEtNi4yLTEgMSA2LjEgNi4zLTYuNSA2LjcgMSAxIDYuNS02LjYgNi41IDYuNiAxLTF6Ij48L3BhdGg+PC9zdmc+);
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 0;
  }
  .filter-content > .wp-block-group {
    position: relative;
  }
  .filter-content:not(.filter-top) .overlay {
    background-color: var(--wp--preset--color--black);
    opacity: 0;
  }
  .filter-content:not(.filter-top).active .overlay {
    opacity: 0.7;
    visibility: visible;
  }
}
.filter-content .overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -2;
  visibility: hidden;
}


@media screen and (max-width:675px){
    .custom-category-image {
    min-height: 380px;
}
.tuoteloop ul.products .wishlist, 
.archive-loop .wc-block-product-template .product .wishlist,
.product-meta-info {
    margin-bottom: 0;
}
li.product img {
    margin: 0 auto 10px auto!important;
}
.archive-loop .product .content-wrap {
    padding: 0.75rem;
}
.archive-loop .product .wp-block-post-title {
    font-size: 20px!important;
}
.archive-loop .product span.woocommerce-Price-amount {
    font-size: 19px!important;
    margin: 0 0 0 0!important;
}
.archive-loop ul {
    grid-template-columns: 1fr 1fr!important;
}
.category-hero .content-col {
    padding: 35px 25px;
    box-sizing: border-box;
}
.archive-text {
    max-width: 100%;
}
.archive-text p{
    font-size: 16px;
}
}
@media screen and (max-width:500px){
    .custom-category-image {
    min-height: 300px;
}
    .archive-title {
        margin-top: 15px;
    }
}

/* SINGLE PRODUCT */

.quantity.wc-block-components-quantity-selector {
    background-color: transparent!important;
}
.input-text.qty {
    color:#FFFFFF!important;
}
td.value select {
    color: #fff;
}
td.value select option{
    color: #000;
}

.custom-product-accordion {
    border-top: 1px solid #333;
    margin-top: 2rem;
}

.accordion-item {
    border-bottom: 1px solid #333;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    color: inherit;
}

.accordion-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body {
    display: none;
    padding: 0 0 1.25rem;
}

.accordion-body.is-open {
    display: block;
}

.wc-block-product-gallery-large-image.wp-block-woocommerce-product-gallery-large-image,
.wc-block-product-gallery-thumbnails__thumbnail {
    border: solid 1px #555555;
}
.wc-block-product-gallery-thumbnails{
    padding: 2px 0!important;
}
.wc-block-product-gallery-thumbnails__scrollable{
    padding-bottom: 5px!important;
}

.variations tr {
    display: flex;
    flex-direction: column;
}
.variations th.label {
    padding: 0!important;
    line-height: 1!important;
    margin-bottom: 10px!important;
}
.woocommerce div.product form.cart .variations{
    margin-bottom: 0px!important;
}

td.value {
    padding-bottom: 0!important;
}

/*======================
      Cart & Checkout
========================*/

.wc-block-checkout__form input[type=text],
.wc-block-checkout__form input[type=tel],
.wc-block-checkout__form input[type=email] {
    background-color: transparent!important;
    border-radius: 0px!important;
    border: solid 1px #949494!important;
    color:#fff!important;
}
.wc-block-checkout__form select {
    background: #171717!important;
    color:#fff!important;
    border-radius: 0px!important;
    border: solid 1px #949494!important;
}
textarea.wc-block-components-textarea{
    background-color: transparent!important;
    border-radius: 0px!important;
    border: solid 1px #949494!important;
    color:#fff!important;

}

/* Outline buttons in the cart blocks (side cart's "Näytä ostoskori"): WooCommerce
   draws a 1px inset shadow in the text colour inside the theme's red border, so
   both lines showed. Keep only the red border; the focus ring is left alone. */
.wc-block-components-button:not(.is-link).is-style-outline:not(:focus){
    box-shadow: none;
}

/* Pickup points (wc-shipit): the plugin paints the selected row white, which
   hides its white name on our dark checkout (hovered rows too). Keep the rows
   dark and mark the selected one red. */
body .wca-blocks #woo-carrier-agents-container .woo-carrier-agent:hover,
body .wca-blocks #woo-carrier-agents-container .woo-carrier-agent.active,
body #woo-carrier-agents .woo-carrier-agent:hover,
body #woo-carrier-agents .woo-carrier-agent.active {
    background: #232222;
}
body .wca-blocks #woo-carrier-agents-container .woo-carrier-agent.active,
body #woo-carrier-agents .woo-carrier-agent.active {
    box-shadow: inset 3px 0 0 #EE003C;
}

/* Pickup-point search button ("Hae", wc-shipit): the plugin leaves it as a grey
   browser-default button. Site button look, same height as the postcode field. */
body #woo-carrier-agents-search-button{
    height: 50px;
    margin-left: 8px;
    padding: 0 22px;
    border: 0;
    border-radius: 0;
    background-color: #DB0037;
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}
body #woo-carrier-agents-search-button:hover,
body #woo-carrier-agents-search-button:focus-visible{
    background-color: #EE003C;
    color: #fff;
}

/* Lähetä / Nouto varastolta toggle (checkout, shown while local pickup is on):
   WooCommerce paints the chosen option white, and with our white text it went
   blank. Dark tile with a red frame instead, like the selected pickup point. */
.wc-block-checkout__shipping-method-option{
    color: #fff;
}
.wc-block-checkout__shipping-method-option.wc-block-checkout__shipping-method-option--selected{
    background: #232222;
    border-color: #EE003C;
    color: #fff;
}

/* Order item badge ("Tilaustuote, toimitus n. 3 pv - 2 viikkoa"): WooCommerce
   keeps it on one line, and the long text pushed the price out of the checkout
   summary. Let it wrap. */
.wc-block-components-product-badge{
    white-space: normal;
}

/*======================
       kuvagalleria
========================*/

/* Galleria tabs: core Tabs block, tab bar pulled up onto the hero */
.galleria-tabs .wp-block-tab-list {
    position: relative;
    top: -125px;
    z-index: 10;
    gap: 25px;
}
.galleria-tabs .wp-block-tab-list button {
    min-width: 50px;
    padding: 12px 18px;
    border: 1px solid #21222f;
    background: #2c2c2c;
    color: #fff;
    font-size: 16px;
    line-height: 1.3;
    text-align: center;
}
.galleria-tabs .wp-block-tab-list button:hover,
.galleria-tabs .wp-block-tab-list button[aria-selected="true"] {
    background: #fff;
    color: #191919;
}
.galleria-tabs .wp-block-tab-list button[aria-selected="true"]::before {
    content: none;
}
/*======================
       Yhteystiedot
========================*/

.contact-boxes {
    gap: 3vw !important;;
}

.personel-loop li.personel {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.wp-block-acf-personal-acf {
    text-align: center;
}
p.job-title {
    margin-top: 0;
}

@media (max-width:1200px){
    .contact-boxes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
@media (max-width:900px){
    .contact-boxes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width:500px){
    .contact-boxes {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
}
/* ---------- Sisältölistat ----------
   Appended to the child theme's style.css. Kept here as a reference copy so the
   block can be re-applied if style.css is ever overwritten from an older copy.

   Scoped deliberately: the footer navigation also uses ul.wp-block-list, and
   product grids, category tiles and the account menu are all lists too. */

.wp-block-term-description ul,
.wp-block-post-content ul.wp-block-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wp-block-term-description ul li,
.wp-block-post-content ul.wp-block-list li {
    position: relative;
    padding-left: 34px;
    margin-block: 0; /* flex items do not collapse margins */
}

.wp-block-term-description ul li::before,
.wp-block-post-content ul.wp-block-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--wp--preset--color--accent, #EE003C);
}

/* Numbered lists: no left padding, like the bullet lists */
.wp-block-term-description ol,
.wp-block-post-content ol.wp-block-list {
    padding-left: 0;
}

/*========================
==========Focus===========
==========================*/

/* The browser default is a two-tone white/black ring, which reads as a flash on
   this dark ground. One accent ring instead — and only for keyboard focus, so a
   mouse click leaves no outline behind. */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: solid 2px var(--wp--preset--color--accent, #EE003C);
    outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
select:focus:not(:focus-visible),
summary:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
    outline: none;
}

/*======================
          404
========================*/

/* The not-found page (the "404" template in the Site Editor): one centred column with a huge
   accent "404", the heading, a product search and the ways back in. */

.tm-404 {
    overflow: hidden;
    margin-top: 0;
    padding: 120px 24px 140px;
    text-align: center;
}

.tm-404 > * {
    margin-left: auto !important;
    margin-right: auto !important;
}

.tm-404__code {
    font-family: "prohibition", sans-serif;
    font-size: clamp(9rem, 30vw, 20rem);
    line-height: 0.8;
    letter-spacing: 0.02em;
    color: var(--wp--preset--color--accent, #EE003C);
    margin-top: 0;
    margin-bottom: 65px;
}

.tm-404__title {
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    line-height: 1.05;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 0;
}

.tm-404__text {
    max-width: 580px;
    margin-top: 20px;
    margin-bottom: 0;
    color: #c9c9c9;
    font-size: 1.05rem;
}

/* Product search. Square and outlined like the checkout fields. */
.tm-404__search {
    max-width: 520px;
    margin-top: 40px;
}

.tm-404__search .wp-block-search__inside-wrapper {
    gap: 0;
}

.tm-404__search .wp-block-search__input {
    background-color: transparent;
    color: #fff;
    border: solid 1px #949494;
    border-right: 0;
    border-radius: 0;
    padding: 0.65rem 1rem;
    font-size: 1rem;
}

.tm-404__search .wp-block-search__input::placeholder {
    color: #9a9a9a;
}

.tm-404__search .wp-block-search__input:focus-visible {
    outline-offset: -2px;
}

.tm-404__search .wp-block-search__button {
    margin-left: 0;
    border-radius: 0;
}

.tm-404__actions {
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

@media screen and (max-width: 600px) {
    .tm-404 {
        padding: 80px 16px 100px;
    }
    .tm-404__code {
        margin-bottom: 40px;
    }
    .tm-404__actions .wp-block-button {
        flex: 1 1 100%;
    }
    .tm-404__actions .wp-block-button__link {
        width: 100%;
    }
}

/*======================
   Tuotesivu: mobiili
========================*/

/* Mobile order: photo, then name, price and buy, then the description accordions. Matched by structure, not a class, so Site Editor edits keep it working. */

@media screen and (max-width:781px) {
    .wp-block-columns:has(> .wp-block-column > .wp-block-woocommerce-product-gallery) > .wp-block-column:has(> .wp-block-woocommerce-product-gallery) {
        display: contents;
    }
    .wp-block-column > .wp-block-woocommerce-product-gallery {
        order: 1;
        flex-basis: 100%;
        min-width: 0;
    }
    .wp-block-columns:has(> .wp-block-column > .wp-block-woocommerce-product-gallery) > .wp-block-column:not(:has(> .wp-block-woocommerce-product-gallery)) {
        order: 2;
    }
    .wp-block-column > .wp-block-woocommerce-product-details {
        order: 3;
        flex-basis: 100%;
        min-width: 0;
    }
}

/*======================
     Ankkurilinkit
========================*/

/* In-page anchor links (e.g. the section buttons on Toimitus- ja palautusehdot) scroll
   smoothly across the site, unless the visitor has asked for less motion. */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/*======================
     Ilmoitukset
========================*/

/* WooCommerce notices ("lisätty ostoskoriin", errors, info) on the product page, cart,
   checkout and account. WooCommerce ships a light box; here it matches the dark site:
   a dark panel, a coloured bar on the left for the notice type, and the
   "Näytä ostoskori" link as a real button. */
.wc-block-components-notice-banner,
.wc-block-components-notice-banner.is-success,
.wc-block-components-notice-banner.is-error,
.wc-block-components-notice-banner.is-info,
.wc-block-components-notice-banner.is-warning{
    align-items: center;
    gap: 16px;
    padding: 18px 24px !important;
    border: 1px solid rgba(255,255,255,0.12);
    border-left: 4px solid #7E7E7E;
    border-radius: 0;
    background-color: #212121;
    color: #fff;
    font-size: 1rem;
}
.wc-block-components-notice-banner.is-success{
    border-left-color: #4AB866;
}
.wc-block-components-notice-banner.is-error{
    border-left-color: #EE003C;
}
.wc-block-components-notice-banner.is-warning{
    border-left-color: #F0B849;
}
.wc-block-components-notice-banner.is-error > svg{
    background-color: #EE003C;
}
.wc-block-components-notice-banner a{
    color: #fff;
}

/* Text on the left, button on the right; the button drops below on narrow screens.
   Only when there is a button, so error lists keep their normal flow. */
.wc-block-components-notice-banner > .wc-block-components-notice-banner__content:has(> .wc-forward){
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}
.wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward{
    float: none;
    order: 2;
    margin: 0;
    padding: 10px 22px !important;
    background: #DB0037 !important; /* WooCommerce sets it transparent with !important */
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    opacity: 1;
}
.wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward:hover,
.wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward:focus-visible{
    background: #EE003C !important;
    opacity: 1;
}

/* ==========================================================================
   Saavutettavuusseloste (page 8444)
   ========================================================================== */
.page-id-8444 main h2.wp-block-heading{
    font-size: clamp(24px, 1.2rem + 1vw, 28px);
}
.page-id-8444 main .wp-block-group p,
.page-id-8444 main .wp-block-group li{
    font-size: 16px;
    line-height: 1.6;
}
