A user seeks to customize accordion styling on a Shopify Dawn theme product page for mobile devices (≤750px). They want to:
Requirements:
Remove the bottom border from the last accordion row
Add border-radius to corners (top corners of first row, bottom corners of last row)
Solutions Provided:
Two community members offered CSS code snippets to add to the theme’s stylesheet (base.css, main.css, or similar):
Border removal: Target the accordion element with CSS to set border-top: none !important on adjacent accordions
Border radius: Apply border-top-left-radius and border-top-right-radius to the first accordion, and border-bottom-left-radius and border-bottom-right-radius to the last accordion using :last-of-type selectors
One responder included a reference image showing the expected result and requested the main-product.liquid file code for further guidance. The discussion appears to provide working solutions, though the original poster has not yet confirmed resolution.
Summarized with AI on November 5.
AI used: claude-sonnet-4-5-20250929.
How can I hide the bottom border of the last accordion row for mobile view (750px and below)?
How can I apply a border-radius to the top-left and top-right corners of the first accordion row, and the bottom-left and bottom-right corners of the last accordion row?