/* Compact service studio: horizontal choices and balanced detail columns. */
body.sanpota-custom-spacing #custom-types .cp-packaging-header{max-width:none;margin-bottom:20px !important;}
body.sanpota-custom-spacing #custom-types .cp-section-title{font-size:clamp(26px,2.6vw,36px) !important;letter-spacing:-.03em;}
.cp-service-explorer{padding:12px;background:#fffdf8;border:1px solid #eadfce;border-radius:24px;box-shadow:0 10px 30px #004a3e0a;}
.cp-explorer-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0 0 12px;border-bottom:1px solid #eee5d8;}
.cp-explorer-nav-label{display:none;}
.cp-explorer-nav button{display:flex;align-items:center;gap:10px;text-align:left;min-height:66px;padding:14px;border:1px solid transparent;border-radius:14px;background:#f4f1e9;color:#315b50;font-family:inherit;cursor:pointer;}
.cp-explorer-nav button strong{font-size:14px;line-height:1.35;}
.cp-explorer-nav button span:first-child{display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;border-radius:50%;background:#fff9;color:#8c6855;font-size:11px;}
.cp-explorer-nav button span:last-child{display:none;}
.cp-explorer-nav button[aria-pressed=true]{background:#004a3e;color:white;box-shadow:0 4px 10px #004a3e18;}
.cp-explorer-nav button[aria-pressed=true] span:first-child{background:#ffffff20;color:#fff;}
.cp-explorer-nav button:hover{border-color:#7fa494;}
.cp-explorer-nav button:focus-visible{outline:3px solid #d38838;outline-offset:2px;}
body.sanpota-custom-spacing #custom-types .cp-explorer-panel[hidden]{display:none !important;}
body.sanpota-custom-spacing #custom-types .cp-explorer-panel{display:grid !important;grid-template-columns:310px minmax(0,1fr) !important;grid-template-rows:auto auto auto !important;align-content:start;gap:16px 32px !important;padding:26px !important;border:0 !important;border-radius:0 !important;box-shadow:none !important;background:transparent !important;min-height:0 !important;}
.cp-explorer-visual{grid-column:1;grid-row:1 / 4;min-width:0;}
body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-packaging-image{display:block;width:100% !important;height:auto !important;min-height:0 !important;padding:0 !important;margin:0 0 18px !important;overflow:hidden;border-radius:16px;background:#f3e8d5;aspect-ratio:3 / 2;}
body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-packaging-image img{display:block;width:100% !important;max-width:100% !important;height:auto !important;max-height:none !important;object-fit:contain !important;transform:none !important;margin:0 !important;}
.cp-explorer-visual h4{font-size:12px;color:#40675b;margin:0 0 10px;}
.cp-explorer-visual .cp-service-products{gap:6px;margin:0;}
.cp-explorer-visual .cp-service-products li{background:#fff;border:1px solid #e4e5d9;border-radius:7px;font-size:12px;padding:7px 9px;}
body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-packaging-head{grid-column:2;grid-row:1;}
body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-card-eyebrow{display:none;}
body.sanpota-custom-spacing #custom-types .cp-explorer-panel h3{font-size:clamp(24px,2.2vw,30px) !important;line-height:1.2 !important;margin:0 0 10px !important;letter-spacing:-.025em;}
body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-packaging-head p{margin:0 !important;}
body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-service-info{grid-column:2;grid-row:2;border:0;padding:0;}
.cp-explorer-panel .cp-service-methods{gap:10px;padding:0;margin:0 0 12px;}
.cp-explorer-panel .cp-service-methods>div{border:1px solid #e3e8de;border-radius:12px;background:#f2f6ef;padding:13px 15px;}
.cp-explorer-panel .cp-service-methods strong{color:#004a3e;font-size:14px;}
.cp-explorer-panel .cp-service-prep{background:transparent;border:0;border-left:2px solid #d8ab72;padding:0 0 0 12px;margin:0;}
body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-packaging-button{grid-column:2;grid-row:3;width:fit-content !important;min-width:210px;gap:22px;background:#c23829 !important;justify-self:start;}
.cp-chooser-help{margin-top:16px;padding:18px 22px;background:#fffdf8;border-color:#e8dfd0;}
@media(max-width:900px){body.sanpota-custom-spacing #custom-types .cp-explorer-panel{grid-template-columns:260px minmax(0,1fr) !important;gap:16px 22px !important;padding:22px !important;}.cp-explorer-nav button{padding:10px;}.cp-explorer-nav button strong{font-size:12px;}}
@media(max-width:680px){.cp-explorer-nav{grid-template-columns:repeat(2,minmax(0,1fr));}.cp-explorer-nav button{min-height:58px;}.cp-explorer-nav button strong{font-size:13px;}body.sanpota-custom-spacing #custom-types .cp-explorer-panel{grid-template-columns:minmax(0,1fr) !important;padding:18px 8px !important;gap:20px !important;}body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-packaging-head{grid-column:1;grid-row:1;}.cp-explorer-visual{grid-column:1;grid-row:2;}body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-packaging-image{max-width:300px !important;margin:0 auto 16px !important;}body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-service-info{grid-column:1;grid-row:3;}body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-packaging-button{grid-column:1;grid-row:4;width:100% !important;}.cp-explorer-panel .cp-service-methods{grid-template-columns:1fr;}}
/* Individual product selector with a compact preview. */
.cp-explorer-visual{grid-row:1 / 4;align-self:start;}
body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-packaging-image.cp-single-product{aspect-ratio:1;max-width:280px !important;margin:0 auto 10px !important;}
.cp-product-caption{text-align:center;font-size:13px;font-weight:700;color:#004a3e;}
.cp-product-gallery{grid-column:1 / -1;grid-row:4;border-top:1px solid #ece5d9;padding-top:18px;min-width:0;}
.cp-product-gallery h4{margin:0 0 12px;font-size:13px;color:#315b50;}
.cp-product-gallery .cp-service-products{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0;list-style:none;padding:0;}
.cp-product-gallery .cp-service-products li{padding:0;border:0;background:transparent;min-width:0;}
.cp-product-gallery button{display:flex;align-items:center;gap:10px;width:100%;height:100%;padding:8px;border:1px solid #e6e1d6;border-radius:12px;background:white;color:#315b50;text-align:left;font-family:inherit;cursor:pointer;}
.cp-product-gallery button img{display:block;width:62px;height:62px;object-fit:contain;border-radius:8px;flex-shrink:0;}
.cp-product-gallery button span{font-size:12px;line-height:1.4;font-weight:650;}
.cp-product-gallery button[aria-pressed=true]{border:2px solid #c23829;padding:7px;background:#fff5e9;color:#9e2e21;}
.cp-product-gallery button:hover{border-color:#c23829;}
.cp-product-gallery button:focus-visible{outline:3px solid #ddaa5b;outline-offset:3px;}
@media(max-width:1000px){.cp-product-gallery .cp-service-products{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:680px){.cp-explorer-visual{grid-row:2;}.cp-product-gallery{grid-column:1;grid-row:3;}body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-service-info{grid-row:4;}body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-packaging-button{grid-row:5;}.cp-product-gallery .cp-service-products{grid-template-columns:repeat(2,minmax(0,1fr));}.cp-product-gallery button img{width:52px;height:52px;}body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-packaging-image.cp-single-product{max-width:230px !important;}}
/* Balanced three-column catalogue: choices / preview / concise information. */
.cp-service-explorer{width:100%;max-width:none;box-sizing:border-box;margin-inline:0;padding:14px;border-radius:20px;}
.cp-explorer-nav{gap:6px;padding-bottom:14px;}
.cp-explorer-nav button{min-height:56px;padding:10px 12px;border-radius:10px;}
body.sanpota-custom-spacing #custom-types .cp-explorer-panel{grid-template-columns:190px 260px minmax(0,1fr) !important;grid-template-rows:auto !important;gap:24px !important;padding:24px 12px 12px !important;align-items:start;}
.cp-product-gallery{grid-column:1;grid-row:1;border:0;padding:0;}
.cp-product-gallery h4{font-size:12px;margin:0 0 10px;}
.cp-product-gallery .cp-service-products{grid-template-columns:minmax(0,1fr);gap:7px;}
.cp-product-gallery button{min-height:58px;gap:9px;padding:6px;border-radius:10px;}
.cp-product-gallery button[aria-pressed=true]{padding:5px;}
.cp-product-gallery button img{width:44px;height:44px;}
.cp-product-gallery button span{font-size:12px;}
.cp-explorer-visual{grid-column:2;grid-row:1;align-self:start;padding:12px;background:#f6f0e6;border-radius:16px;}
body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-packaging-image.cp-single-product{width:100% !important;max-width:260px !important;border-radius:12px;margin:0 auto 12px !important;}
.cp-product-caption{font-size:12px;line-height:1.5;}
.cp-detail-column{grid-column:3;grid-row:1;display:flex;flex-direction:column;gap:16px;min-width:0;}
body.sanpota-custom-spacing #custom-types .cp-explorer-panel h3{font-size:27px !important;margin-bottom:8px !important;}
body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-packaging-head p{font-size:14px !important;line-height:1.55 !important;}
.cp-detail-column .cp-service-methods{grid-template-columns:1fr;gap:8px;margin-bottom:14px;}
.cp-detail-column .cp-service-methods>div{padding:10px 12px;background:#f0f5ee;border:0;border-radius:9px;}
.cp-detail-column .cp-service-prep{padding-left:12px;border-radius:0;}
body.sanpota-custom-spacing #custom-types .cp-detail-column .cp-packaging-button{width:100% !important;min-width:0 !important;min-height:44px !important;padding:12px 16px !important;}
@media(max-width:1050px){body.sanpota-custom-spacing #custom-types .cp-explorer-panel{grid-template-columns:160px 220px minmax(0,1fr) !important;gap:18px !important;padding:20px 6px 8px !important;}.cp-explorer-nav button span:first-child{display:none;}body.sanpota-custom-spacing #custom-types .cp-explorer-panel h3{font-size:24px !important;}}
@media(max-width:850px){body.sanpota-custom-spacing #custom-types .cp-explorer-panel{grid-template-columns:230px minmax(0,1fr) !important;}.cp-explorer-visual{grid-column:1;grid-row:1;}.cp-product-gallery{grid-column:1;grid-row:2;}.cp-detail-column{grid-column:2;grid-row:1 / 3;}.cp-product-gallery .cp-service-products{grid-template-columns:1fr;}}
@media(max-width:600px){.cp-service-explorer{padding:10px;}.cp-explorer-nav{grid-template-columns:repeat(2,minmax(0,1fr));}.cp-explorer-nav button strong{font-size:12px;}body.sanpota-custom-spacing #custom-types .cp-explorer-panel{grid-template-columns:minmax(0,1fr) !important;gap:18px !important;padding:18px 4px 6px !important;}.cp-explorer-visual{grid-column:1;grid-row:1;max-width:240px;width:100%;box-sizing:border-box;justify-self:center;}.cp-product-gallery{grid-column:1;grid-row:2;}.cp-product-gallery .cp-service-products{grid-template-columns:repeat(2,minmax(0,1fr));}.cp-detail-column{grid-column:1;grid-row:3;}.cp-product-gallery button img{width:40px;height:40px;}}
/* Service tab hover and keyboard focus. */
.cp-explorer-nav button{transition:background-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease,border-color .18s ease;}
@media(hover:hover) and (pointer:fine){
 .cp-explorer-nav button:hover{transform:translateY(-2px);box-shadow:0 5px 12px rgba(0,74,62,.13);}
 .cp-explorer-nav button:not([aria-pressed=true]):hover{background:#e4eee6;color:#004a3e;border-color:#8caf9d;}
 .cp-explorer-nav button[aria-pressed=true]:hover{background:#006052;color:#fff;border-color:#006052;}
}
.cp-explorer-nav button:focus-visible{outline:3px solid #d88b42;outline-offset:3px;}
@media(prefers-reduced-motion:reduce){.cp-explorer-nav button{transition:none;}.cp-explorer-nav button:hover{transform:none;}}
/* Compact information rows balance the existing product columns. */
.cp-detail-column{gap:12px;}
.cp-detail-column .cp-service-methods{gap:6px;margin-bottom:12px;}
.cp-detail-column .cp-service-methods>div{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:baseline;gap:12px;padding:10px 12px;}
body.sanpota-custom-spacing #custom-types .cp-detail-column .cp-service-methods p{margin:0!important;line-height:1.5!important;}
body.sanpota-custom-spacing #custom-types .cp-detail-column .cp-service-prep p{margin:3px 0 0!important;line-height:1.5!important;}
@media(max-width:1050px){.cp-detail-column .cp-service-methods>div{grid-template-columns:1fr;gap:4px;}}
/* Emboss has five product choices: retain a taller, readable detail layout. */
.cp-explorer-panel[data-service-slug="emboss-molding"] .cp-detail-column{gap:16px;}
.cp-explorer-panel[data-service-slug="emboss-molding"] .cp-service-methods{gap:8px;margin-bottom:14px;}
.cp-explorer-panel[data-service-slug="emboss-molding"] .cp-service-methods>div{display:block;padding:10px 12px;}
body.sanpota-custom-spacing #custom-types .cp-explorer-panel[data-service-slug="emboss-molding"] .cp-service-methods p{margin:5px 0 0!important;line-height:1.6!important;}
/* Consistent two-column product browser, regardless of product count. */
body.sanpota-custom-spacing #custom-types .cp-explorer-panel{grid-template-columns:minmax(0,380px) minmax(0,1fr)!important;grid-template-rows:auto!important;gap:32px!important;padding:24px 16px 18px!important;align-items:start;}
body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-explorer-visual{grid-column:1;grid-row:1;display:block;width:100%;max-width:none;min-width:0;box-sizing:border-box;padding:0;background:transparent;align-self:start;}
body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-packaging-image.cp-single-product{width:220px!important;max-width:100%!important;aspect-ratio:1;margin:0 auto 8px!important;border-radius:14px;}
body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-detail-column{grid-column:2;grid-row:1;gap:16px;}
.cp-explorer-visual .cp-product-caption{margin:0 0 14px;font-size:12px;text-align:center;}
.cp-explorer-visual .cp-product-gallery{padding:0;border:0;}
.cp-explorer-visual .cp-product-gallery h4{font-size:11px;margin:0 0 8px;text-align:center;}
.cp-explorer-visual .cp-product-gallery .cp-service-products{display:flex;flex-wrap:nowrap;gap:6px;margin:0;padding:0;}
.cp-explorer-visual .cp-product-gallery .cp-service-products li{flex:1 1 0;min-width:0;padding:0;border:0;background:transparent;}
.cp-explorer-visual .cp-product-gallery button{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;width:100%;box-sizing:border-box;gap:5px;min-height:89px;padding:6px 3px;border:1px solid #e4dfd5;border-radius:10px;background:#fff;text-align:center;}
.cp-explorer-visual .cp-product-gallery button[aria-pressed=true]{border:2px solid #c23829;padding:5px 2px;background:#fff5e9;}
.cp-explorer-visual .cp-product-gallery button img{width:46px;height:46px;max-width:100%;object-fit:contain;}
.cp-explorer-visual .cp-product-gallery button span{font-size:11px;line-height:1.3;overflow-wrap:normal;}
body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-detail-column .cp-service-methods{grid-template-columns:1fr;gap:8px;margin-bottom:14px;}
body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-detail-column .cp-service-methods>div{display:block;padding:10px 12px;}
body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-detail-column .cp-service-methods p{margin:5px 0 0!important;line-height:1.6!important;}
@media(max-width:950px){body.sanpota-custom-spacing #custom-types .cp-explorer-panel{grid-template-columns:minmax(0,320px) minmax(0,1fr)!important;gap:22px!important;padding:20px 8px!important;}}
@media(max-width:700px){body.sanpota-custom-spacing #custom-types .cp-explorer-panel{grid-template-columns:minmax(0,1fr)!important;gap:24px!important;padding:18px 4px!important;}body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-explorer-visual{grid-column:1;grid-row:1;max-width:380px;justify-self:center;}body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-detail-column{grid-column:1;grid-row:2;}body.sanpota-custom-spacing #custom-types .cp-explorer-panel .cp-packaging-image.cp-single-product{width:200px!important;}.cp-explorer-visual .cp-product-gallery button span{font-size:10px;}}
