/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/
/* Add your custom styles here */
body {
  overflow-wrap: anywhere;
}
html, body {
  overflow-x: hidden;
}
.page-id-2300 .elementor-widget-theme-post-content img {
    /* Leverandører */
    max-width: 160px;
}
ul, ol {
    margin: 0 0 1.41575em 3em;
    padding: 0;    
}
a.custom-loop-item {
    text-decoration: none;
}
a.custom-loop-item img {
    max-height: 175px;
    width: 100%;
    object-fit: cover;
}
.columns-1 ul.products li.product a img {
    display: none;
}

/* Message */
.kmn-added-message {
    background: #2E453E;
    color: white;
    padding: 8px 12px;
    margin-bottom: 10px;
    border-radius: 4px;
    display: none;
    font-weight: bold;
}
/* Loader effect on button text */
.single_add_to_cart_button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}
/* Disabled Add to Cart button */
.single_add_to_cart_button:disabled,
.single_add_to_cart_button.disabled {
    background-color: #ccc !important; /* Grey background */
    color: #666 !important;            /* Dark grey text */
    cursor: not-allowed !important;    /* Not-allowed cursor */
    opacity: 0.7;                      /* Slightly faded */
    box-shadow: none !important;       /* Remove shadow if any */
    pointer-events: none;              /* Ensure no clicks */
}
/* Optional: add a subtle loading spinner inside the button */
.single_add_to_cart_button:disabled::after {
    content: '';
    display: inline-block;
    margin-left: 8px;
    width: 16px;
    height: 16px;
    border: 2px solid #666;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: kmn-spin 0.8s linear infinite;
}
@keyframes kmn-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.woocommerce-mini-cart a {
    text-decoration: none;
}
a.wc-block-components-button {
    color: white;
    text-decoration: none;
}
/* === Storefront Custom Cart === */
.kmn-custom-checkout-pages h1 {
    font-size: 30px;
    margin-bottom: 40px;
}
.woocommerce table.shop_table,
.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
    border: 0;
    border-radius: 0;
}
.woocommerce table.shop_table {
    margin-bottom: 60px;
}
.kmn-custom-checkout-pages button.button {
    border-radius: 0;
    padding: 20px 20px !important;
    margin: 10px 0;    
}
.kmn-custom-checkout-pages .woocommerce a.button{
    background-color: #2E453E;
    color: #C6EDD7;
}
.kmn-custom-checkout-pages .woocommerce a.button:hover {
    background-color: #C6EDD7;
    color: #2E453E;
}
.kmn-custom-checkout-pages td.actions {
    background-color: unset;
}
.kmn-custom-checkout-pages .woocommerce table.shop_table thead tr th {
    border: 0;
}
.kmn-custom-checkout-pages .cart_totals table th,
.kmn-custom-checkout-pages .cart_totals table td {
    padding: 20px 10px;
}
td.product-quantity input {
    min-width: 80px;
}


.woocommerce form .form-row .woocommerce-input-wrapper input {
    border-radius: 0;
    background-color: #C6EDD7;
}


.hidden { display: none;}

div.quantity input[name="quantity"] {
    min-width: 80px;
}





.product-cats-wrapper {
    display: flex;
    flex-flow: column;
    font-size: 16px;
}
.product-cats-container h4 {
    margin-top: 0;
}
.product-cats-wrapper a {
    text-decoration: none;
    width: max-content;
}
.product-cats-wrapper a:hover {
    text-decoration: underline;
}

.product-cats-wrapper a:active {
    font-weight: bold;
}

/* For skjermer under 600px bredde */
@media (max-width: 1024px) {

    .payment-option {
        display: block !important;
    }

    .woocommerce ul.order_details li {
        margin:10px;
    }

    table.woocommerce-orders-table tr { margin-bottom: 15px;}
    table.woocommerce-orders-table tr td a { margin: 5px 0 5px 5px !important;}

    h2.woocommerce-column__title {font-size: 24px; margin-top: 15px !important;}

    .product-cats-wrapper {
        display: flex;
        flex-flow: row;
        flex-wrap: wrap;
        gap: 10px;           /* mellomrom */        
        font-size: 14px;
    }

    .product-cats-container {
        position: relative !important;
        inset-inline-start: unset !important;
        top: unset !important;
    }

    a.custom-loop-item img {
        max-height: 125px;
    }
}

@media (max-width: 1340px) {

    .product-cats-wrapper {
        font-size: 14px;
    }

}