/*
Theme Name:     Ykkösväri Child
Theme URI:      https://ykkosvari.fi
Template:       kadence
Author:         JJ-Net Group Oy
Author URI:     https://jj-net.fi
Description:    Child Theme Description
Version:        1.0
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/


html .woocommerce .woocommerce-notices-wrapper, 
html .woocommerce-notices-wrapper,
html .cmplz-cookiebanner {
    z-index: 9999999999;
}

@media (max-width: 767px) {
    .page-id-2254 .kt-blocks-info-box-media {
        margin-right: 0 !important;
    }
}

html .with_frm_style .frm_required {
  color: #c00 !important;
}

.frm_style_formidable-style.with_frm_style .frm_error, 
.frm_style_formidable-style.with_frm_style .frm_limit_error,
.frm_style_formidable-style.with_frm_style .frm_error_style {
    color: #c00 !important;
}

/* Fix low contrast on skip-link. */
.skip-link.screen-reader-text {
    background-color: #ffffff !important;
}

/* Fix low contrast on disabled add-to-cart button. */
.single_add_to_cart_button.disabled,
.single_add_to_cart_button.wc-variation-selection-needed {
    opacity: 0.95 !important;
}

/* Fix contrast error on WooCommerce product search submit button. */
form.woocommerce-product-search button[type=submit] {
    font-size: 0 !important;
    color: #000;
}

html .ti-widget.ti-goog .ti-widget-container .ti-date {
    color: var(--global-palette5);
}

.nta_wa_button .wa__cs_info .wa__cs_name {
    color: var(--global-palette3) !important;
}

.nta_wa_button .wa__cs_info .wa__cs_status {
    color: var(--global-palette3) !important;
}

.wa__btn_w_icon .wa__btn_txt .wa__btn_title {
    color: var(--global-palette3) !important;
}

.wa__popup_chat_box .wa__popup_heading .wa__popup_title {
  color: var(--global-palette3) !important;
}

.wa__popup_chat_box .wa__popup_heading .wa__popup_intro {
  color: var(--global-palette3) !important;
}

.wa__popup_chat_box .wa__popup_notice {
  color: var(--global-palette3) !important;
}

.wa__member_duty {
  color: var(--global-palette3) !important;
}

.d-none {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.jj-loader {
    position: absolute;
    top: calc(50% - 0.5em);
    left: calc(50% - 0.5rem);
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 0.20em solid var(--global-palette5);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.jj-loading-overlay .jj-loader {
    transform: none;
    width: 2em;
    height: 2em;
    border-width: 0.25em;
    vertical-align: middle;
    margin-right: 5px;
}

.jj-loading {
    position: relative;
    color: transparent !important;
}

.jj-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}


@media (max-width: 719px) {
    .cart .quantity {
        float: none;
    }

    .woocommerce table.cart .product-thumbnail img {
        margin-right: 0 !important;
    }
}

.cart-item-reference {
    padding-top: 1rem;
}

.cart-item-reference .label{
    font-weight: bold;
}


.jj-cart-notice {
    padding: 1em 2em 1em 3.5em;
    margin: 0 0 2em;
    position: relative;
    background: unset;
    background-color: unset;
    background-color: var(--global-palette7);
    color: var(--global-palette4);
    border-left: 5px solid var(--global-palette-highlight);
    list-style: none outside;
    width: auto;
    word-wrap: break-word;
}

.jj-cart-notice--error {
    border-left: 5px solid #b81c23;
}

.cart-item-reference-dialog {
    background: rgb(31, 31, 31);
    color: #fff;
}

.cart-item-reference-dialog .dialog-header h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.cart-item-reference-dialog .dialog-header {
    position: relative;
}

.cart-item-reference-dialog .dialog-header .dialog-header-close {
    position: absolute;
    top: -0.85rem;
    right: -0.2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.cart-item-reference-dialog label {
    display: block;
    padding-bottom: 0.5rem;
}

.cart-item-reference-dialog input {
    margin: 0 0 1.5rem 0;
    width: 100%;
}

#cart-drawer .variation .variation-product-id,
#order_review .variation-product-id {
    display: none !important; 
}

#order_review .cart-item-reference {
    display: block;
    padding-top: 1rem;
}

.product .cart .product-reference {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

@media (max-width: 719px) {
    #woocommerce-checkout-form-coupon .button {
        font-size: 15px;
        padding: calc(.4em + 3px) 1em !important;
    }
}

@media (max-width: 400px) {
    #woocommerce-checkout-form-coupon .button {
        font-size: 14px;
        padding: calc(.4em + 4px) 0.7em !important;
    }
}

@media (max-width: 719px) {
    #order_review #shipping_method li {
        flex-wrap: nowrap;
        align-items: start;
        margin-bottom: 20px;
    }

    #order_review #shipping_method li input {
        margin: 2px .5em 0 0;
    }

    #order_review #shipping_method li label {
         line-height: 1 !important;
    }
}

#tab-additional_information .additional-info-grid {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

#tab-additional_information  .additional-info-dimensions {
    flex: 7;
    min-width: 260px;
}

#tab-additional_information  .additional-info-downloads {
    flex: 5;
    min-width: 220px;
}

#tab-additional_information .downloadable-files-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.downloadable-files-list li {
   margin-bottom: 0;
}

#tab-additional_information  .downloadable-files-list a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--global-gray-400);
    border-radius: 3px;
    margin-bottom: 0.5rem;
    color: var(--global-palette3);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

#tab-additional_information .downloadable-files-list a::after {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--global-palette-highlight);
    border-bottom: 2px solid var(--global-palette-highlight);
    transform: rotate(-45deg);
    flex-shrink: 0;
    margin-bottom: -1px;
    margin-left: auto;
}

#tab-additional_information  .downloadable-files-list a:hover {
    background: var(--global-palette7);
    border-color: var(--global-palette-highlight);
    text-decoration: none;
}

#tab-additional_information h5 {
    padding-bottom: 1rem;
}


.woocommerce .woocommerce-notices-wrapper .woocommerce-error, 
.woocommerce-notices-wrapper .woocommerce-error {
  --kwsb-background: #c00 !important;
}

.woocommerce .form-row .required {
    color: #c00 !important;
}

.woocommerce #save-cart-form table.cart td.actions {
    text-align: left !important;
}

.woocommerce #save-cart-form table.cart td.actions .button {
    height: 35px;
    line-height: 35px;
    font-size: 14px;
}

#save-cart-form .save-cart-input {
    margin-top: -4px;
}

@media (max-width: 719px) {
    #save-cart-form .save-cart-input {
        width: 49%;
        margin-bottom: 1rem;
    }
}

.save-cart-form .save-cart-form-message {
    background-color: var(--global-palette7);
    color: var(--global-palette4);
    border-left: 5px solid var(--global-palette-highlight);
    padding: 1.25em 2em;
    margin: 0 0 var(--global-md-spacing);
    word-wrap: break-word;
}

.save-cart-form .save-cart-form-message::before,
.save-cart-form .save-cart-form-message::after {
    content: " ";
    display: table;
}

.save-cart-form .save-cart-form-message::after {
    clear: both;
}

#saved-cart-dialog {
    border: none;
    border-radius: 4px;
    padding: 2rem;
    min-width: 300px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

#saved-cart-dialog::backdrop {
    background: rgba(0,0,0,0.4);
}

#saved-cart-dialog .saved-cart-dialog-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

#saved-cart-dialog-cancel.button {
    background-color: transparent;
    color: var(--global-palette5);
    border: 2px solid var(--global-palette6);
    box-shadow: none;
}

#saved-cart-dialog-cancel.button:hover {
    background-color: var(--global-palette7);
    border-color: var(--global-palette5);
    color: var(--global-palette3);
}

.saved-cart-wrapper {
    border: 1px solid var(--global-gray-400);
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.saved-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    list-style: none;
    gap: 1rem;
    background-color: var(--global-palette7);
}

.saved-cart-header::-webkit-details-marker {
    display: none;
}

.saved-cart-header::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--global-palette5);
    border-bottom: 2px solid var(--global-palette5);
    transform: rotate(-45deg); /* points right ›  */
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-bottom: -2px; /* optical alignment */
}

.saved-cart-wrapper[open] > .saved-cart-header::after {
    transform: rotate(45deg); /* points down ∨ */
    margin-bottom: 2px;
}

.saved-cart-wrapper[open] > .saved-cart-header {
    border-bottom: 1px solid var(--global-gray-400);
}

.saved-cart-header .saved-cart-date {
    margin-left: auto;
    color: var(--global-palette5);
    font-size: 0.875em;
}

.saved-carts-wrapper .saved-cart-header {
    cursor: pointer;
}

.saved-carts-wrapper .accordion-body {
    padding: 2rem;
}

@media (max-width: 450px) {
    .saved-carts-wrapper .accordion-body {
        padding: 0.5rem;
    }

    .saved-carts-wrapper .accordion-actions {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .saved-carts-wrapper .remove-cart-btn {
        margin-bottom: 1rem;
    }
}

.single-content .saved-carts-wrapper p {
    margin: 0;
}

.saved-carts-wrapper .accordion-actions {
    display: flex;
    justify-content: space-between;
}

.saved-carts-wrapper .remove-cart-btn {
    cursor: pointer;
}

.saved-cart td.product-name dl.variation {
    display: block;
}

.saved-cart td.product-name dl.variation dt,
.saved-cart td.product-name dl.variation dd {
    float: none;
    clear: none;
    display: inline;
    margin: 0;
}

.saved-cart td.product-name dl.variation dt::after {
    content: '';
}

.saved-cart td.product-name dl.variation dd::after {
    content: '\A';
    white-space: pre;
}

.share-cart-section {
    margin: 1rem 0;
}

.share-cart-section .share-cart-result label {
    display: block;
}

.share-cart-section .share-cart-result input {
    width: 80%;
}

@media (max-width: 719px) {
    .share-cart-section .share-cart-result input {
        width: 100%;
        margin-bottom: 1rem !important;
    }
}

#btn-share-cart {
    margin-bottom: 1rem;
}

html .woocommerce-cart .cart-collaterals .cart_totals table small, 
html .woocommerce-checkout .cart-collaterals .cart_totals table small, 
html #add_payment_method .cart-collaterals .cart_totals table small {
  color: var(--global-palette5);
}

html .quantity.spinners-added input.minus, 
html .quantity.spinners-added input.plus {
  color: var(--global-palette5);
}

html .woocommerce a.remove {
  color: #c00 !important;
}

html .woocommerce table.cart td.actions .coupon label {    
    display: block;
}

@media screen and (max-width: 719px) {
  html .woocommerce table.cart td.actions .coupon .input-text + .button {
    font-size: 14px;
  }

   html .woocommerce table.cart td.actions, 
   html .woocommerce-page table.cart td.actions {
    padding-left: 5px;
    padding-right: 5px;
  }

  html .woocommerce ul#shipping_method {
    padding: 1rem 0;
  }

  html .woocommerce table.shop_table_responsive ul#shipping_method li, 
  html .woocommerce-page table.shop_table_responsive ul#shipping_method li {
    justify-content: flex-start;
    width: 100%;
    font-size: 14px;
  }

  html .cart-item-reference-row .label {
    float: left;
  }
}



.with_frm_style #form_product-page-contact-form legend + h3, 
.with_frm_style #form_product-page-contact-form h3.frm_form_title {
  margin-bottom: 1rem;
}

@media (max-width: 400px) {
    .woocommerce div.product .button.single_add_to_cart_button {
        font-size: 16px !important;
    }
}


@media (max-width: 576px) {
    .woocommerce.single-product ul.products li.product:not(:last-child) {
        border-bottom: 1px solid var(--global-palette6);
    }
}

.woocommerce.single-product div.product .product_meta > span {
  color: var(--global-palette5);
}

.woocommerce.single-product .quantity.spinners-added input.minus, 
.woocommerce.single-product .quantity.spinners-added input.plus {
    color: var(--global-palette5);
}

.woocommerce.single-product .variations_form  .woocommerce-variation-availability {
    display: none;
}

body.single-product .price .price-without-vat,
.product-archive .price .price-without-vat,
.wc-block-components-product-price .price-without-vat {
    display: block;
}

body.single-product .additional-product-information .info-row img {
    width: 25px;
    height: auto;
    display: inline-block;
    margin: 0 5px;
}

html .woocommerce ul.products.woo-archive-action-on-hover li.product .product-action-wrap {
    position: relative;
    bottom: -2.2rem;
    padding: 0;
}

html .woocommerce ul.products.woo-archive-action-on-hover li.product:hover .product-action-wrap, 
html .woocommerce ul.products.woo-archive-action-on-hover li.product:focus-within .product-action-wrap {
  bottom: -2.2rem;
}

html .woocommerce ul.cart_list li .quantity, 
html .woocommerce ul.product_list_widget li .quantity {
  color: var(--global-palette5);
}

.woocommerce-cart .woocommerce .woocommerce-notices-wrapper,
.woocommerce-checkout .woocommerce .woocommerce-notices-wrapper,
.wdpq_about_create_cart {
    position: relative;
    top: 0;
    left: 0;
    z-index: 0;
    font-size: unset;
    --kwsb-background: unset;
    --kwsb-color: unset;
    background: unset;
    background-color: var(--global-palette7);
    color: var(--global-palette4);
    border-left: 5px solid var(--global-palette-highlight);
    margin: 0 0 var(--global-md-spacing);
    max-width: unset;
}
.woocommerce-cart .woocommerce .woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-checkout .woocommerce .woocommerce-notices-wrapper .woocommerce-message,
.wdpq_about_create_cart {
    animation: unset;
    box-shadow: unset;
    opacity: 1;
    display: block;
    padding: 1.25em 2em 1.25em 2em;
    line-height: 28.9px;
    border-bottom: 1px solid #fff;
}
.woocommerce-cart .woocommerce .woocommerce-notices-wrapper .woocommerce-message p:nth-child(2),
.woocommerce-checkout .woocommerce .woocommerce-notices-wrapper .woocommerce-message p:nth-child(2)
{
    margin-bottom: 0;
}
.woocommerce-cart .woocommerce .woocommerce-notices-wrapper .woocommerce-message .kwsb-close,
.woocommerce-checkout .woocommerce .woocommerce-notices-wrapper .woocommerce-message .kwsb-close {
    color: var(--global-palette4);
}

.woocommerce-cart-form__cart-item .variation-product-id {
    display: none !important;
}

.single-product .product-type-variable .woocommerce-variation-price {
    display: none !important;
}

.woocommerce-order-received .woocommerce-column--shipping-address h3 {
   margin-top: 1rem;
   font-size: 20px;
}

.woocommerce-order-received ul.woocommerce-order-overview li {
    margin-bottom: 1rem !important;
}

@media screen and (max-width: 719px) {
    /* Order thank-you page: order overview list */
    .woocommerce-order-received ul.woocommerce-order-overview {
        list-style: none;
        margin: 0 0 2em;
        padding: 0;
        border: 1px solid var(--global-palette6, #e0e0e0);
        border-radius: 4px;
        overflow: hidden;
    }

    .woocommerce-order-received ul.woocommerce-order-overview li {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 1em;
        padding: 0.75em 1.1em;
        margin: 0 !important;
        border-bottom: 1px solid var(--global-palette6, #e0e0e0);
        font-size: 0.9em;
        color: var(--global-palette5);
        border-right: none;
        width: 100%;
    }

    .woocommerce-order-received ul.woocommerce-order-overview li:last-child {
        border-bottom: none;
    }

    .woocommerce-order-received ul.woocommerce-order-overview li strong {
        font-size: 1em;
        color: var(--global-palette3);
        text-align: right;
    }
}

.fractional-quantity-product-text {
    display: block;
    font-size: 16px;
    margin-bottom: 0.5rem;
}

.woocommerce-error.kwsb-snackbar-notice {
    color: #fff !important;
}

.woocommerce table.my_account_orders .button {
    margin: 0.2rem;
}

.woocommerce-cart-form:has([name="wdpq_create_cart"]) th.product-subtotal,
.woocommerce-cart-form:has([name="wdpq_create_cart"]) td.product-subtotal {
    display: none;
}

.kb-blocks-advanced-carousel .slick-next::before,
.kb-blocks-advanced-carousel .slick-prev::before {
  content: none;
}

.kb-blocks-advanced-carousel .kb-splide .splide__arrow--prev {
  left: 0;
}

.kb-blocks-advanced-carousel .kb-splide .splide__arrow--next {
  right: 0;
}

@media screen and (max-width: 450px) {
    #footer-navigation .footer-menu-container {
        width: 100%;
    }
    #footer-menu {
        display: grid;
        grid-template-columns: 1fr 1fr;
        list-style: none;
        margin: 1.2rem 0 0 0;
        padding: 0;
        width: 100%;
    }

    #footer-menu > li {
        text-align: center;
        width: 100%;
    }

    #footer-menu > li a {
        display: block;
        text-align: center;
    }
}

@media (max-width: 620px) {
    .ti-widget .ti-reviews-container-wrapper {
        flex-direction: column !important;
        display: flex !important;
        width: 100% !important;
    }

    .ti-widget .ti-column {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .ti-widget .ti-review-item {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}