/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0
*/

@media only screen and (max-width: 600px) {
 th.woocommerce-product-attributes-item__label {
    font-size: 18px !important;
	}td.woocommerce-product-attributes-item__value{
		font-size: 18px !important;
	}section.elementor-section.elementor-top-section.elementor-element.elementor-element-5f82082.elementor-section-boxed.elementor-section-height-default.elementor-section-height-default {
    padding: 20px 20px 20px 20px !important;
}.woocommerce-mini-cart__empty-message {
    font-size: 18px !important;
}a.added_to_cart.wc-forward {
    font-size: 16px !important;
}
	bdi {
    font-size: 18px !important;
}
	
}

.post p{
text-align: left !important;
}

/* Back in Stock Lomakkeen Paneelin Premium Tyylittely */
.cwginstock-panel-heading {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
    color: #ffffff !important;
    text-align: center;
    padding: 16px 20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 0.95em;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Lomakkeen body */
.cwginstock-panel-body {
    border: 1.5px solid #e5e7eb;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Input-kentät */
.cwginstock-panel-body input[type="email"],
.cwginstock-panel-body input[type="text"] {
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.92em;
    width: 100%;
    transition: all 0.2s ease;
}

.cwginstock-panel-body input[type="email"]:focus,
.cwginstock-panel-body input[type="text"]:focus {
    border-color: #6b7280;
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

/* Liittymisnappi - Premium tumma tyyli */
.cwgstock_button {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 6px;
    border: none;
    width: 100%;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92em;
    letter-spacing: 0.3px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-top: 12px;
}

.cwgstock_button:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.cwgstock_button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Onnistumisviesti */
.cwgstock_success_message {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1.5px solid #a7f3d0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
    font-weight: 500;
}
.seo-text {
    text-align: left;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.seo-text h1 {
    font-size: 22px;
    font-weight: bold;
    color: #222;
}

.seo-text h2 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-top: 15px;
}

.seo-text p {
    margin-bottom: 10px;
    color: #444;
}

.seo-text ul {
    padding-left: 20px;
}

.seo-text li {
    margin-bottom: 5px;
}

.seo-text button {
    background: #000000;
    color: white;
    padding: 8px 15px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    border-radius: 5px;
    transition: 0.3s;
}

.seo-text button:hover {
    background: #333333;
}

del {
    position: relative;
    display: inline-block;
}

del::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: red; /* Voit vaihtaa halutun värin */
    transform: rotate(-5deg); /* Pieni kallistus, näyttää luonnollisemmalta */
}



/* Piilotettu teksti oletuksena */
.hidden {
    display: none;
}

/* Poistaa "Ale!" -merkinnän kokonaan */
.onsale {
    display: none !important;
}

/* Poista "out of stock" */
.pi-edd.pi-edd-loop {
    display: none !important;
}




/* Saatavuuslaatikko - Kevyt Premium tyyli */
.availability {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 0.92em;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin: 16px 0;
    padding: 12px 20px;
    border-radius: 8px;
    width: fit-content;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Saatavilla heti / Keskusvarasto - Kevyt vihreä */
.availability.in-stock,
.availability.keskusvarasto,
.availability.keskusvarasto2,
.availability.keskusvarasto3 {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1.5px solid #a7f3d0;
}

.availability.in-stock:hover,
.availability.keskusvarasto:hover,
.availability.keskusvarasto2:hover,
.availability.keskusvarasto3:hover {
    background-color: #d1fae5;
    border-color: #6ee7b7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

/* Backorder - Kevyt sininen */
.availability.backorder {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1.5px solid #bfdbfe;
}

.availability.backorder:hover {
    background-color: #dbeafe;
    border-color: #93c5fd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Varasto loppu - Kevyt punainen, TUMMA teksti */
.availability.out-of-stock {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1.5px solid #fecaca;
}

.availability.out-of-stock:hover {
    background-color: #fee2e2;
    border-color: #fca5a5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* Ikoni ennen tekstiä */
.availability .status {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Checkmark-ikoni saatavilla oleville */
.availability.in-stock .status::before,
.availability.keskusvarasto .status::before,
.availability.keskusvarasto2 .status::before,
.availability.keskusvarasto3 .status::before {
    content: "✓";
    font-size: 14px;
    color: #059669;
}

/* Kello-ikoni backorderille */
.availability.backorder .status::before {
    content: "⏱";
    font-size: 13px;
    color: #2563eb;
}

/* X-ikoni loppuneelle */
.availability.out-of-stock .status::before {
    content: "✕";
    font-size: 13px;
    color: #dc2626;
}

/* Tekstin tyyli */
.availability span:last-child {
    display: inline-block;
    line-height: 1.3;
}

/* Varmista keskitys tuotesivulla */
.single-product .availability {
    display: flex;
    margin-left: 0 !important;
    margin-right: auto;
}

/* Responsiivisuus */
@media (max-width: 768px) {
    .availability {
        font-size: 0.88em;
        padding: 10px 16px;
        margin: 14px auto;
    }
    
    .availability .status {
        width: 14px;
        height: 14px;
        margin-right: 7px;
    }
}

/* Lisää kontrastia valkoisella taustalla */
.availability {
    position: relative;
}

.availability::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
}
/* Hintojen yhdenmukainen tyyli */
.woocommerce ul.products li.product .price {
    display: flex;
    justify-content: center; /* Keskittää hinnan */
    align-items: center;
    font-size: 20px !important; /* Sama fonttikoko kaikille hinnoille */
    font-weight: bold !important;
    color: #e63946; /* Punainen alennusväri */
    gap: 5px; /* Pieni väli normaalin ja alennushinnan väliin */
    flex-wrap: wrap; /* Estää leveyden ylityksen */
    max-width: 100%; /* Ei veny yli ruudun */
    overflow: hidden;
}

/* Normaalihinta (yliviivattu) */
.woocommerce ul.products li.product .price {
    display: flex !important;
    justify-content: center !important; /* LISÄTTY !important */
    align-items: center !important;
    font-size: 20px !important;
    font-weight: bold !important;
 
    gap: 5px !important;
    flex-wrap: wrap !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-align: center !important; /* LISÄTTY varmuuden vuoksi */
    margin-left: auto !important; /* LISÄTTY: pakottaa keskityksen */
    margin-right: auto !important; /* LISÄTTY: pakottaa keskityksen */
}

/* Alennushinnan muotoilu */
.woocommerce ul.products li.product .price ins {
    font-size: 20px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    
    display: inline-block;
}

/* Jos tuotteella EI OLE alennusta, keskitetään normaali hinta */
.woocommerce ul.products li.product .price:only-child {
    text-align: center;
    justify-content: center;
}

/* 🔧 Estetään koko sivun ylivuoto mobiilissa */
@media (max-width: 768px) {
    body {
        overflow-x: hidden; /* Estää sivun vaakasuuntaisen liikkumisen */
    }

    .woocommerce ul.products li.product {
        max-width: 100%; /* Estää elementtejä venymästä yli ruudun */
        overflow: hidden;
    }

    .woocommerce ul.products li.product .price {
        flex-wrap: wrap; /* Pitää hintatekstit näytön sisällä */
        white-space: normal;
    }
}

.tppdil_description {
    background: #f8f8f8; /* Vaaleanharmaa tausta */
    padding: 12px 15px;
    border-radius: 8px; /* Pyöristetyt reunat */
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Kevyt varjo */
}

.tppdil_description ul {
    list-style-type: none; /* Poistetaan perinteinen luettelotyyli */
    padding: 0;
    margin: 0;
}

.tppdil_description li {
    padding: 4px 0; /* Pieni väli jokaisen rivin väliin */
    border-bottom: 1px solid #ddd; /* Hento viiva rivien väliin */
}

.tppdil_description li:last-child {
    border-bottom: none; /* Ei viivaa viimeisen kohdan jälkeen */
}

.tppdil_description strong {
    color: #e63946; /* Punertava sävy avainsanoille */
    font-weight: bold;
}


.woocommerce-ordering {
    display: none !important;
}

/* Kontin yleisilme */
#bulk-pricing-options.bulk-pricing-container {
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 15px;
  clear: both; /* Estää mahdolliset float-ongelmat add-to-cart -napin kanssa */
}

#bulk-pricing-options h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 1.2em;
}

/* Lista */
#bulk-pricing-options ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* Jokainen bulk-hinnoittelurivi */
#bulk-pricing-options .bulk-pricing-item {
  display: flex;            /* Flex-layout */
  align-items: center;      /* Radiobutton ja tekstit samalle pystyriville */
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 4px;
  background-color: #f9f9f9; /* Vaalea tausta */
}

/* Suositellun valinnan korostus */
#bulk-pricing-options .bulk-pricing-item.recommended {
  background-color: #e0ffe0;
  border-left: 4px solid #1c7;
  /* Poistettu ylimääräinen padding, koska rivillä on jo 8px */
}

/* Säästön korostus (punaisella) */
#bulk-pricing-options .saving-highlight {
  color: #d00;
  font-weight: bold;
}

/* "Suositeltu" -badge (vihreä teksti) */
#bulk-pricing-options .recommended-badge {
  color: #090;
  font-weight: bold;
  margin-left: 5px;
}

/* Radiobuttonin label (flex) */
#bulk-pricing-options .bulk-pricing-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
  width: 100%;
  gap: 0.5em; /* Pieni väli radion ja tekstin välissä */
  margin: 0;
}

/* Radio-nappi */
#bulk-pricing-options .bulk-pricing-item input[type="radio"] {
  margin: 0;
  flex-shrink: 0; /* Estää radion leviämisen */
}

/* Pakota bulk-hinnoittelulomake omalle rivilleen */
.bulk-pricing-container {
  display: block;
  width: 100%;
  float: none;
  clear: both;
  margin-bottom: 1em; /* pientä tilaa nappiin */
}

/* Varmista, että Add to Cart -lomaketta ei pakoteta flexiksi */
.single-product form.cart {
  display: block !important;
}


/* Muuta ostoskorin määrä-kentän (input[type="number"]) leveyttä */
.woocommerce-cart table.cart td.product-quantity .quantity input.qty {
  width: 90px;       /* tai haluamasi leveys, esim. 80px */
  max-width: 100%;   /* estää liian suuren koon pienillä näytöillä */
  text-align: center;/* keskittää numerot */
}


/* Varmistaa, että h2-otsikot näkyvät tuotetietosivulla */
.single-product .product-details h2 {
    color: black !important;
    font-size: 24px !important;
    font-weight: bold !important;
}

.single-product .product-details h3 {
    color: black !important;
    font-size: 24px !important;
    font-weight: bold !important;
}



/* Muuttaa vain tuotetietojen linkit sinisiksi, ei navigaatiota */
.single-product .woocommerce-product-details__short-description a,
.single-product .woocommerce-Tabs-panel a {
    color: blue !important;
    text-decoration: underline;
}

/* Hiiren päällä väri muuttuu tummansiniseksi */
.single-product .woocommerce-product-details__short-description a:hover,
.single-product .woocommerce-Tabs-panel a:hover {
    color: darkblue !important;
    text-decoration: none;
}

/* Pakota h2 mustaksi vain tuotesivun tuotetiedoissa */
.woocommerce .elementor-972 .elementor-element.elementor-element-c1bba5d .woocommerce-tabs .woocommerce-Tabs-panel h2 {
    font-size: 28px !important;
    color: #000 !important;
}


/* Piilota blogi julkaisupäivämäärä front-endista */
/* Piilota pelkkä päivämäärä */
.elementor-post-info__item--type-date {
  display: none !important;
}

/* Piilota pelkkä kellonaika */
.elementor-post-info__item--type-time {
  display: none !important;
}

/* Piilota "(1 tuotearvio)" tuotesivulta */
.woocommerce-review-link {
    display: none !important;
}

/* Fix mobile overflow screen */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
}



