/* The saved category guidance and its contact actions form one red frame. */
html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) :is(.wzd-hub-page,.wzd-category-editorial) .wzd-category-quote-editorial.wzd-category-quote-editorial.wzd-category-quote-editorial{margin:24px 0!important;padding:24px!important;border:1px solid #8e2521!important;border-radius:20px!important;background:linear-gradient(160deg,#8e2521,#4a1815)!important;color:#fff!important;box-shadow:0 8px 22px rgba(102,32,28,.12)!important}
html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) :is(.wzd-hub-page,.wzd-category-editorial) .wzd-category-quote-editorial :is(h2,h3,p,li,summary){color:#fff!important}
html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) :is(.wzd-hub-page,.wzd-category-editorial) .wzd-category-quote-editorial :is(h2,h3){margin:0 0 12px!important;padding:0!important;border:0!important;font-size:22px!important;line-height:1.45!important}
html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) .wzd-category-quote-editorial :is(h2,h3)::before{display:none!important}
html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) .wzd-category-quote-editorial p{margin:0 0 16px!important;font-size:15px!important;line-height:1.7!important}
html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) .wzd-category-quote-editorial ul{padding-left:22px!important;margin:0 0 20px!important}
html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) .wzd-category-quote-editorial a:not(.wzd-category-quote-btn){color:#fff!important;background:transparent!important;text-decoration:underline!important;text-underline-offset:3px}
html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) .wzd-category-quote-editorial .wzd-category-quote-actions{margin-top:20px}
html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) .wzd-category-quote-editorial a.wzd-category-quote-btn{background:#fff!important;color:#8e2521!important;border-color:#fff!important;border-radius:12px!important;font-size:14px!important;min-height:48px!important;white-space:normal!important}
html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) [data-category-card-list="บทความ"]{grid-template-columns:repeat(3,minmax(0,1fr))!important}
@media(max-width:768px){
 html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) :is(.wzd-hub-page,.wzd-category-editorial) .wzd-category-quote-editorial.wzd-category-quote-editorial.wzd-category-quote-editorial{padding:20px!important;margin:16px 0!important}
 html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) .wzd-category-quote-editorial :is(h2,h3){font-size:21px!important}
 html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) .wzd-category-articles-hint{display:none!important}
 html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) [data-category-card-list]{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-auto-flow:row!important;grid-auto-columns:auto!important;gap:12px!important;overflow:visible!important;scroll-snap-type:none!important;padding:0!important}
 html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) [data-category-card-list="บทความ"] .wzd-category-article{display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;align-items:stretch!important;scroll-snap-align:none}
 html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) [data-category-card-list="บทความ"] .wzd-category-article-image{aspect-ratio:1/1;min-height:100px}
 html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) [data-category-card-list="บทความ"] .wzd-category-article-copy{display:flex!important;justify-content:center;padding:12px!important}
 html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) [data-category-card-list="บทความ"] .wzd-category-article-copy h3{display:block!important;-webkit-line-clamp:unset!important;overflow:visible!important;font-size:14px!important;line-height:1.55!important}
 html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) [data-category-card-list="ผลงานจัดส่ง"] .wzd-delivery-project-card{display:grid!important;grid-template-columns:112px minmax(0,1fr)!important}
 html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) [data-category-card-list="ผลงานจัดส่ง"] .wzd-delivery-project-card__image{aspect-ratio:auto;min-height:112px;height:100%}
 html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) .wzd-hub-page .wzd-hub-sidebar{margin-top:24px!important}
 html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat).page-template-page-category-hub .wzd-hub-section{padding-bottom:20px!important}
 html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat).page-template-page-category-hub .wzd-hub-section>.wzd-container:last-child>.wzd-category-articles{margin-bottom:0!important}
 html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat):is(.page-template-page-category-hub,.tax-product_cat) .wzd-foot{margin-top:0!important}
 html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat).tax-product_cat .wzd-shop-catalog{padding-bottom:20px!important}
}

@media(max-width:768px){html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) .wzd-main{padding-bottom:0!important}}
html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) [data-category-card-list]>[hidden]{display:none!important}

@media(max-width:768px){html body.wzd-body.tax-product_cat .wzd-shop-catalog>.wzd-container>.wzd-category-articles:last-child{margin-bottom:0!important}}

html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) .wzd-delivery-projects-all{display:flex;justify-content:center;margin-top:16px}

/* Category previews: four desktop cards and a single archive action at the top. */
html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) :is(.wzd-category-articles-head,.wzd-delivery-projects>.wzd-section-head){display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:12px!important;margin-bottom:18px!important}
html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) :is(.wzd-category-articles-more,.wzd-delivery-projects .wzd-section-link){display:inline-flex!important;align-items:center!important;align-self:flex-start!important;gap:8px;box-sizing:border-box;min-height:44px;padding:9px 14px;border:1px solid #8e2521;border-radius:10px;background:#fff7f5!important;color:#8e2521!important;font-size:14px!important;font-weight:600;text-decoration:none!important;white-space:nowrap}
html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) :is(.wzd-category-articles-more,.wzd-delivery-projects .wzd-section-link):focus-visible{outline:2px solid #8e2521;outline-offset:3px}
html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) a.wzd-category-article{border:1px solid #e5c3bf!important;background:#fff7f5!important}
html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) .wzd-category-article-copy{background:#fff7f5!important}
@media(min-width:769px){
 html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) :is(.wzd-category-article-row,.wzd-delivery-projects-grid){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-flow:row!important;gap:16px!important;overflow:visible!important;align-items:stretch!important}
}
@media(max-width:768px){
 html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) [data-category-card-list]>:nth-child(n+4){display:none!important}
}

/* Consistent product-card and editorial spacing in the three requested hubs. */
html body.wzd-body:is(.page-id-27742,.page-id-18313,.page-id-27907) .wzd-hub-page .wzd-hub-card-info{display:flex;flex-direction:column;gap:6px;box-sizing:border-box;padding:16px!important;min-width:0}
html body.wzd-body:is(.page-id-27742,.page-id-18313,.page-id-27907) .wzd-hub-page .wzd-hub-card-info>div{margin:0!important;overflow-wrap:anywhere}
html body.wzd-body:is(.page-id-27742,.page-id-18313,.page-id-27907) .wzd-hub-page .wzd-hub-card-name{line-height:1.6!important}
html body.wzd-body:is(.page-id-27742,.page-id-18313,.page-id-27907) .wzd-hub-content :is(.wzd-seo-brick-section,.wzd08-box){box-sizing:border-box;min-width:0;border:1px solid var(--c-line,#dedbd7)!important;border-radius:16px!important;padding:24px!important;margin:20px 0!important;background:#fff!important}
html body.wzd-body:is(.page-id-27742,.page-id-18313,.page-id-27907) .wzd-hub-content :is(.wzd-seo-brick-section,.wzd08-box)>:is(h2,h3){margin:0 0 14px!important;line-height:1.5!important}
html body.wzd-body:is(.page-id-27742,.page-id-18313,.page-id-27907) .wzd-hub-content :is(.wzd-seo-brick-section,.wzd08-box)>p{margin:0 0 14px!important;line-height:1.75!important}
html body.wzd-body:is(.page-id-27742,.page-id-18313,.page-id-27907) .wzd-hub-content :is(.wzd-seo-brick-section,.wzd08-box)>:last-child{margin-bottom:0!important}
@media(max-width:768px){
 html body.wzd-body:is(.page-id-27742,.page-id-18313,.page-id-27907) .wzd-hub-page .wzd-hub-card-info{padding:12px!important;gap:6px}
 html body.wzd-body:is(.page-id-27742,.page-id-18313,.page-id-27907) .wzd-hub-content :is(.wzd-seo-brick-section,.wzd08-box){padding:16px!important;margin:16px 0!important}
}

/* Frame the existing quote guidance as part of the saved editorial content. */
html body.wzd-body:is(.page-id-27742,.page-id-18313) .wzd-hub-content>.wzd-quote-guidance{box-sizing:border-box;border:1px solid var(--c-line,#dedbd7);border-radius:16px;padding:24px;margin:20px 0;background:#fff;line-height:1.75}
html body.wzd-body:is(.page-id-27742,.page-id-18313) .wzd-hub-content>.wzd-quote-guidance>:last-child{margin-bottom:0!important}
@media(max-width:768px){html body.wzd-body:is(.page-id-27742,.page-id-18313) .wzd-hub-content>.wzd-quote-guidance{padding:16px;margin:16px 0}}

/* Mobile article previews: three full-width cards, cover above the title. */
@media(max-width:768px){
 html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) [data-category-card-list="บทความ"] .wzd-category-article{display:flex!important;flex-direction:column!important;min-width:0;max-width:100%;width:100%;height:auto!important}
 html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) [data-category-card-list="บทความ"] .wzd-category-article-image{display:block!important;width:100%!important;aspect-ratio:auto!important;height:auto!important;min-height:0!important;max-height:none!important;flex:none}
 html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) [data-category-card-list="บทความ"] .wzd-category-article-image img{width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important;object-position:center!important;transform:none!important}
 html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) [data-category-card-list="บทความ"] .wzd-category-article-copy{width:100%;box-sizing:border-box;flex:1;padding:14px!important;justify-content:flex-start!important}
 html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) [data-category-card-list="บทความ"] .wzd-category-article-copy h3{font-size:14px!important;line-height:1.6!important;margin:0!important}
 html body.wzd-body:is(.page-template-page-category-hub,.tax-product_cat) [data-category-card-list="บทความ"] .wzd-category-article:is(:nth-child(n+4),[hidden]){display:none!important}
}
