/*
Theme Name: Digitaali
Author: Digitaali Oy
*/

:root {
    --dark-black: #121212;
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .h1, h1 {
        font-size: 1.7rem;
    }
}

.error404 .main-content {
    margin-top: 2rem;
}

ul.top-icons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

ul.top-icons li {
    margin: 0 4px;
}

ul.top-icons .dg-icon-wrapper {
    position: relative;
    width: 25px;
    height: 25px;
}
ul.top-icons .dg-icon-wrapper img,
ul.top-icons .dg-icon-wrapper svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
ul.top-icons .dg-icon-wrapper svg { 
    fill: white;
}
@media (min-width: 992px) {
    ul.top-icons .dg-icon-wrapper svg { 
        fill: black;
    }    
}

.dg-icon-wrapper .cart-item-count {
    position: absolute;
    top: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    right: -10px;
    width: 20px;
    height: 20px;

    background-color: #F09F4A;
    color: #ffffff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}
footer#colophon::before {
    content: ' ';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #000;
    clear: both;
}
.site-footer-footer {
    color: #fff;
    background-color: #000;
}
.site-footer-footer a {
    color: #F09F4A;
}

.dg-hero .title {
    color: #fff;
}

.dg-hero .carousel-indicators {
    bottom: auto;   
    top: 10px;
}
.dg-hero .carousel-indicators li {
    width: 25px;
    height: 5px;
    border-radius: 0;
}


.search-field-wrapper-lg {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
}
@media (max-width: 767px) {
    .search-field-wrapper-lg {
        display: none !important;
    }
}


.top-icons .search-icon-wrapper {
    position: relative;
}

.dg-catalog-cover {
    position: relative;
    width: 300px;
    max-width: 100%;
    margin-right: 20px;
    margin-bottom: 20px;
}
.dg-catalog-cover-content * {
    font-size: 1rem;
    text-transform: none;
    color: black;
    text-decoration: none;
}
.dg-catalog-cover-content .terms {
    font-weight: bold;
}

.dg-catalog-cover-hover-image {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 140%;
    overflow: hidden;
}
.dg-catalog-cover-hover-image img {
    position: absolute;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s;
}
.dg-catalog-cover-hover-content {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}
.dg-catalog-cover-hover-content:hover {
    opacity: 1;
}

.dg-ajax-articles-wrapper .dg-catalog-grid {
    display: flex;
    flex-wrap: wrap;
}



select.form-control {
    width: auto;
    padding-right: 30px;
    font-weight: bold;
    max-width: 100%;
}

.slick-arrow.slick-prev, .slick-arrow.slick-next {  
    width: 35px;
    height: 35px;
    z-index: 2;
    background: #F09F4A;
}

.slick-arrow.slick-prev:before, .slick-arrow.slick-next:before {
    content: '';
    display: block;
    width: 35px;
    height: 35px;
    background-image: url('images/icon-arrow-right-white.svg');
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
}
.slick-arrow.slick-prev:before {
    transform: rotate(180deg);
}
.slick-arrow.slick-prev:hover, 
.slick-arrow.slick-prev:focus, 
.slick-arrow.slick-next:hover, 
.slick-arrow.slick-next:focus {
    background: #F09F4A;
}

.slick-arrow.slick-next {
    right: -20px;
}
.testimonials .testimonial {
    margin: 0 10px 20px 10px;
    padding: 80px;
    background-color: var(--dark-black);
    color: #fff;
}
.testimonial .testimonial-author {
    font-weight: bold;
    color: #F09F4A;
}
.testimonials .slick-track {
    display: flex;
}
.testimonials .slick-track .slick-slide {
    height: auto;
}

.slick-slider .slick-dots li {
    margin: 0 3px;
}
.slick-slider .slick-dots li button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--dark-black);
    border: 0;
}
.slick-slider .slick-dots li.slick-active button {
    background-color: #F09F4A;
}
.slick-slider .slick-dots li button:before {
   display: none;
}

.person a[href^="tel:"], 
.person a[href^=mailto], 
.person span.maddr, 
.person span.maddr .at {
    color: #000;
}

.woocommerce.columns-4 {
    max-width: none !important
}

.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link {
    display: inline-block !important;
}
.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link.added:after {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.8em;
    color: #F09F4A;
}

.dg-product-thumbnail {
    position: relative;
}
.dg-product-thumbnail > a {
    display: block;
    width: 100%;
    height: 100%;
}
.dg-product-thumbnail-with-hover-overlay .dg-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}
.dg-product-thumbnail-with-hover-overlay .dg-hover-overlay:hover {
    opacity: 1;
}

.dg-product-thumbnail-with-hover-overlay .added_to_cart {
    background-color: #fff;
}

.btn.dg-btn-dropdown {
    padding: 10px 10px 8px 20px;
    font-size: .9rem;
    font-weight: 900;
    line-height: 1.2;
    color: #000;
    background-color: #fff;
    text-transform: uppercase;
    border: 0;
}
.btn.dg-btn-dropdown::after {
    content: '';
    display: inline-block;
    width:10px;
    height: 10px;
    margin-left: 5px;
    vertical-align: initial;
    background-image: url('images/arrow-right-black.svg');
    background-size: contain;
    background-repeat: no-repeat;
}
.btn.dg-btn-dropdown.open::after {
    transform: rotate(90deg);
}

.site-footer .btn.dg-btn-dropdown {
    width: 500px;
    max-width: 100%;
}


.dg-bulletin-separator-list a[href^="tel:"], 
.dg-bulletin-separator-list a[href^=mailto], 
.dg-bulletin-separator-list span.maddr, 
.dg-bulletin-separator-list span.maddr .at {
    color: #ffffff;
}

/* Jos sisällössä eijo Hero ekana, vaan pelkkä otsikko, ni se tulee iha ylävalikkoon kii. 
Yleensä sisältö alkaa otsikolla, joten pannaan niihi ylämargini jos ne on ekaa sisältöö. */
.entry-content > h1:first-child,
.entry-content > h2:first-child {
    margin-top: 2rem;
}

/* upotusvideot bugittaapi, tuplabändingistä toine pois, ja eväste-estolle samat ko iframelle T 15.10.2024 */
.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before {
	padding: 0;
}
.wp-embed-responsive .wp-has-aspect-ratio .video-placeholder-youtube {
    bottom: 0;
    height: 100%;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
}

:root :where(.is-layout-flow) > * {
    margin-block-start: 0;
}


.dg_price-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 10px 20px;
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
}

.dg_price-toggle-container .dg_toggle-text {
    color: #fff;
}

.dg_price-toggle-container .dg_highlight {
    font-weight: bold;
    color: #f4a261;
}

.dg_price-toggle-container .dg_toggle-wrapper {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

@media (min-width: 992px) {
    .dg_price-toggle-container .dg_toggle-wrapper { margin-bottom: 0; }
}

.dg_price-toggle-container .dg_toggle-wrapper input {
    opacity: 0;
    width: 0;
    height: 0;
}


.dg_price-toggle-container .dg_toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: background-color 0.3s ease;
    border-radius: 24px;
}

.dg_price-toggle-container .dg_toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 0;
    top: 0;
    background-color: #f4a261;
    transition: transform 0.3s ease;
    border-radius: 50%;
}
.dg_price-toggle-container .dg_toggle-wrapper input + .dg_toggle-slider:before {
    left: 0;
    right: auto;
}
.dg_price-toggle-container .dg_toggle-wrapper input:checked + .dg_toggle-slider:before {
    left: auto;
    right: 0;
}

.dg_price-toggle-container .dg_toggle-wrapper input:checked + .dg_toggle-slider {
    background-color: #666;
}

.price .dg-price-no-tax {
    margin-right: 10px;
}

/* .price .original-price {
    padding-left: 15px;
} */

.single-product .summary .price {
    gap: 20px;
    font-weight: 800;
    color: #000;
    font-size: 2.4rem;
}

.single-product .summary .price .price-description {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
}

.dg-lowest-price-container {
    display: inline-flex;
    font-size: .8rem;
    padding: 7.5px 15px;
    margin-bottom: 25px;
    background-color: #eee;
}
.dg-lowest-price-container p {
    margin-bottom: 0;
}
.single-product .dg-lowest-price .price-description {
    display: block;
    font-weight: 400;
    font-size: .8rem;
}

.price-description::before {
    content: '(';
}
.price-description::after {
    content: ')';
}

@media (max-width: 600px) {
    .woocommerce div.product .woocommerce-tabs ul.tabs li {
        padding: 0 1rem !important;
    }
}


.dg-icon-wrapper .icon {
    display: inline-block;
    /* width: 25px;
    height: 23px; */
    width: 35px;
    height: 33px;
    max-width: 100%;
    max-height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.dg-icon-wrapper .icon.cart-icon {
    background-image: url('images/icon-cart-white-2.svg');
}
.dg-icon-wrapper .icon.heart-icon {
    background-image: url('images/icon-heart-white-2.svg');
}
.dg-icon-wrapper .icon.user-icon {
    background-image: url('images/icon-user-white-2.svg');
}

@media (min-width: 992px) {
    .dg-icon-wrapper .icon.cart-icon {
        background-image: url('images/icon-cart-2.svg');
    }
    .dg-icon-wrapper .icon.heart-icon {
        background-image: url('images/icon-heart-2.svg');
    }
    .dg-icon-wrapper .icon.user-icon {
        background-image: url('images/icon-user-2.svg');
    }
}

button.yith-wcan-filters-opener,
button.yith-wcan-reset-filters {
    margin-bottom: 25px;
}

aside#secondary .widget a {
 display: inherit;
}
input[type=checkbox], input[type=radio] {
    margin-right: 5px;
}
label {
    font-weight: 500;
}
.yith-wcan-filters .yith-wcan-filter .filter-items .filter-item.color .term-label {
    hyphens: auto;
}

/* Värifilttereissä tarvitaan border tuplavärien näyttämiseen  T 17.11.2025
.yith-wcan-filters .yith-wcan-filter .filter-items .filter-item.color .term-color .color-swatch {
    border: 1px solid #eee !important;
}
*/
/* woo attribute switches plugariin samaan tyyliin. Filtterillä kakkosväri borderiksi*/ 
.woo-variation-items-wrapper .variable-item-span-color.variable-item-span-dual-color {
    border-style: solid;
    border-width: 0 0 var(--yith-wcan-color_swatches_size, 45px) var(--yith-wcan-color_swatches_size, 45px);
    border-left-color: transparent !important;
    border-right-color: transparent !important;
}


.woocommerce ul.products li.product .button {
    margin-top: 0;
}
.woocommerce ul.products li.product .price, .wc-block-grid__product-price.price {
    line-height: 1;
}


/* Kysy tuotteesta - kutistetaan vähän lomaketta. */
.product-enquiry-form-wrap,
.product-enquiry-form {
	margin-top: 1rem;
}
.product-enquiry-form .nf-form-fields-required {
	display: none;
}

.label-above .nf-field-label {
	margin-bottom: 0 !important;
}
.nf-input-limit {
	margin: 0 !important;
}

.product-enquiry-form.initially-hidden {
	display: none;
}
#ninja_forms_required_items, .nf-field-container {
	margin-bottom: 15px !important;
}

/* matkitaan kassan lomakkeen ulkoasua */
.product-enquiry-form .nf-form-cont .nf-form-content .list-select-wrap .nf-field-element>div, 
.product-enquiry-form .nf-form-cont .nf-form-content input:not([type=button]):not([type=submit]), 
.product-enquiry-form .nf-form-cont .nf-form-content textarea {
    background-color: #fff;
    border: 1px solid hsla(0, 0%, 7%, .8);
    border-radius: 0;
    box-sizing: border-box;
    color: #2b2d2f;
    font-family: inherit;
    font-size: 1em;
    line-height: 1.25;
    height: 3.125em;
    line-height: 1em;
    margin: 0;
    min-height: 0;
    padding: 1em .5em;
    width: 100%;
}
.product-enquiry-form .nf-form-cont .nf-form-content textarea {
    height: 8rem;
}

/* Määräalennus YITH dynamic discount lisäosalla */
.ywdpd-table-discounts-wrapper {
    margin-bottom: 20px;
}
.ywdpd-table-discounts-label {
    margin-bottom: 0;
}

/* fibosearch hakulaatikko */
.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp {
    border-radius: 0;
}
@media (max-width: 768px) {
    .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp {
        background: black;
    }
    .dgwt-wcas-overlay-mobile .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp {
        background: white;
    }
}

/* Thankyou sivulla variaation tiedot hänksötti */
.woocommerce td.product-name .wc-item-meta p, 
.woocommerce td.product-name .wc-item-meta:last-child, 
.woocommerce td.product-name dl.variation p, 
.woocommerce td.product-name dl.variation:last-child {
    padding-left: 0;
}

/* Omatili -sivulla mm. valikkoa ja taulukkoa ja muuta hänksöttää */
.woocommerce-MyAccount-navigation ul {
    list-style-type: none;
    padding-left: 0;
}
.woocommerce-MyAccount-navigation ul a {
    font-weight: bold; 
    color: black;
}
.woocommerce .col2-set .col-1, .woocommerce-page .col2-set .col-1,
.woocommerce .col2-set .col-2, .woocommerce-page .col2-set .col-2 {
    width: 100% !important;
    max-width: 100% !important;
}
@media (min-width: 768px) {
    .woocommerce .col2-set .col-1, .woocommerce-page .col2-set .col-1,
    .woocommerce .col2-set .col-2, .woocommerce-page .col2-set .col-2 {
        width: 48% !important;
        max-width: 48% !important;
    }
}


a.admin-edit-link {
    color: inherit;
    text-decoration: inherit;
}
