/* Product images and titles lead to the page where shoppers choose a variation. */
.wp-theme-amaya .wc-block-product.product-type-variable
    .wp-block-woocommerce-product-button > a.add_to_cart_button.product_type_variable,
.wp-theme-amaya ul.products li.product-type-variable a.button.product_type_variable {
    display: none;
}

.wp-theme-amaya .wc-block-product.product-type-variable
    .wp-block-woocommerce-product-button:has(> a.add_to_cart_button.product_type_variable) {
    display: none;
}

@media (hover: none), (pointer: coarse) {
    .wp-theme-amaya .wc-block-product.product-type-variable .wc-block-components-product-image > a,
    .wp-theme-amaya ul.products li.product-type-variable .woocommerce-LoopProduct-link {
        touch-action: manipulation;
    }
}

@media (max-width: 781px) {
    .entry-content .wp-block-columns.kokomonk-category-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch !important;
        gap: 8px;
        margin-block: 8px 0;
    }

    .entry-content .kokomonk-category-links > .wp-block-column:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc((100% - 8px) / 2);
        justify-self: center;
    }

    .entry-content .kokomonk-category-links .wp-block-buttons,
    .entry-content .kokomonk-category-links .wp-block-button {
        width: 100%;
        height: 100%;
        margin: 0;
    }

    .entry-content .kokomonk-category-links .wp-block-button__link {
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        min-height: 44px;
        padding: 8px 10px;
        border-radius: 7px;
        font-size: 0.75rem;
        line-height: 1.25;
        letter-spacing: 0.06em;
        text-align: center;
        white-space: normal;
        text-wrap: balance;
    }

    .entry-content .kokomonk-category-links .wp-block-button__link:focus-visible {
        outline: 2px solid #5f3817;
        outline-offset: 2px;
    }

    .entry-content .kokomonk-category-links + .wp-block-spacer {
        display: none;
    }
}
