/* Pictono Canvas Sales — shop-matched presentation; styles scoped to shortcode */
.pcs-root{--pcs-ink:#171717;--pcs-muted:#555;--pcs-line:#e6e6e6;color:var(--pcs-ink);font-family:inherit;width:100%;max-width:1200px;margin:0 auto;padding:20px 0 64px}
.pcs-root *{box-sizing:border-box}
.pcs-heading{text-align:left;margin:0 0 22px}
.pcs-heading h2{font-family:inherit!important;font-size:clamp(30px,3vw,42px)!important;font-weight:400!important;line-height:1.2!important;letter-spacing:normal!important;text-transform:none!important;margin:0 0 12px!important;color:#111!important}
.pcs-heading p{font-size:15px;line-height:1.6;color:#555;margin:0 0 18px}
.pcs-search{display:flex;align-items:stretch;gap:10px;margin:0 0 30px;width:100%;max-width:none}
.pcs-search input{flex:1;min-width:0;padding:12px 15px!important;border:1px solid #d7d7d7!important;border-radius:0!important;background:#fff!important;color:#222!important;font:inherit;font-size:14px!important;box-shadow:none!important}
.pcs-search button,.pcs-add,.pcs-tile-action{background:#080808!important;color:#fff!important;border:0!important;border-radius:999px!important;font-family:inherit!important;font-size:13px!important;font-weight:400!important;line-height:1.4!important;text-transform:none!important;letter-spacing:normal!important;box-shadow:none!important}
.pcs-search button{padding:12px 22px!important;cursor:pointer;white-space:nowrap;border-radius:0!important;min-height:48px!important}
.pcs-search button:hover,.pcs-add:hover,.pcs-tile:hover .pcs-tile-action{background:#333!important}
.pcs-results{font-size:14px;color:#555;margin:0 0 22px}.pcs-results a{color:#111;text-decoration:underline}
.pcs-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 24px;align-items:start}
.pcs-tile{appearance:none!important;display:flex!important;flex-direction:column!important;align-items:center!important;width:100%;min-width:0;text-align:center!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#171717!important;box-shadow:none!important;cursor:pointer;overflow:visible!important}
.pcs-tile-image{display:block;width:100%;aspect-ratio:1.43/1;overflow:hidden;background:#fff;border-radius:0}
.pcs-tile-image img{display:block;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center;max-width:100%!important;border-radius:0!important;transition:transform .3s ease}
.pcs-tile:hover .pcs-tile-image img{transform:scale(1.025)}
.pcs-tile-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;min-height:2.8em;max-width:100%;margin:14px 0 14px;font-family:inherit!important;font-size:15px!important;font-weight:400!important;line-height:1.4!important;letter-spacing:normal!important;text-transform:none!important;color:#222!important}
.pcs-tile-action{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:12px 26px!important;margin-top:auto}
.pcs-pages{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:42px 0 0}.pcs-pages a,.pcs-pages span{padding:8px 12px;color:#171717;text-decoration:none}.pcs-pages .current{font-weight:700;border-bottom:2px solid #171717}
.pcs-dialog{position:fixed;width:min(940px,calc(100% - 28px));max-height:calc(100dvh - 32px);border:0;border-radius:2px;padding:0;box-shadow:0 22px 75px #0005;overflow:auto;color:#171717;background:#fff}
.pcs-dialog::backdrop{background:rgba(0,0,0,.7)}.pcs-dialog-grid{display:grid;grid-template-columns:1.15fr 1fr}
.pcs-preview{background:#f7f7f7;min-height:350px;display:flex;align-items:center;justify-content:center;padding:32px}
.pcs-preview img{display:block;max-height:68vh;max-width:100%;width:auto;height:auto;object-fit:contain;box-shadow:0 5px 18px #0002}
.pcs-detail{padding:50px 38px 35px}.pcs-eyebrow{font-size:11px;letter-spacing:.12em;color:#777;text-transform:uppercase}
.pcs-photo-title{font-family:inherit!important;font-size:23px!important;font-weight:400!important;line-height:1.3!important;text-transform:none!important;letter-spacing:normal!important;margin:12px 0!important}
.pcs-description,.pcs-hint{font-size:14px;line-height:1.6;color:#555}.pcs-detail label{display:block;margin:24px 0 8px;font-size:14px;font-weight:600}
.pcs-detail select{display:block;width:100%;padding:12px;border:1px solid #ccc;border-radius:0;background:white;color:#111;font-size:15px}
.pcs-price{font-size:25px;font-weight:600;margin:20px 0 8px}.pcs-hint{font-size:12px}.pcs-add{display:block;width:100%;padding:14px 22px!important;margin-top:16px;cursor:pointer}.pcs-add:disabled{opacity:.55;cursor:wait}
.pcs-message{font-size:14px;min-height:1.5em;margin-top:12px}.pcs-message a{text-decoration:underline}.pcs-close{position:absolute;right:12px;top:10px;z-index:2;border:0!important;background:#fff!important;color:#222!important;font-size:29px;cursor:pointer;width:38px;height:38px;line-height:1;border-radius:50%}
@media(max-width:760px){.pcs-root{padding:16px 0 45px}.pcs-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 14px}.pcs-search{flex-direction:column}.pcs-dialog-grid{grid-template-columns:1fr}.pcs-preview{min-height:210px;padding:20px}.pcs-preview img{max-height:35vh}.pcs-detail{padding:24px}.pcs-tile-title{font-size:14px!important}}
@media(max-width:420px){.pcs-grid{gap:24px 10px}.pcs-tile-title{font-size:13px!important}.pcs-tile-action{font-size:12px!important;padding:11px 13px!important}}

.pcs-checkout-photo img{width:48px!important;height:48px!important;object-fit:contain!important;max-width:none!important;border-radius:0!important}

/* v0.6.1: search form layout overrides for themes with generic form rules. */
.pcs-root form.pcs-search{display:flex!important;flex-direction:row!important;align-items:stretch!important;justify-content:stretch!important;gap:10px!important;width:100%!important;max-width:100%!important;margin:0 0 30px!important;padding:0!important;}
.pcs-root form.pcs-search input[type="search"]{display:block!important;flex:1 1 0%!important;width:1%!important;min-width:0!important;max-width:none!important;height:48px!important;min-height:48px!important;margin:0!important;border-radius:0!important;}
.pcs-root form.pcs-search button[type="submit"]{display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:175px!important;height:48px!important;min-height:48px!important;margin:0!important;padding:0 18px!important;border-radius:0!important;line-height:1!important;white-space:nowrap!important;transform:none!important;}
@media(max-width:600px){.pcs-root form.pcs-search{gap:6px!important}.pcs-root form.pcs-search button[type="submit"]{min-width:0!important;padding:0 12px!important;font-size:12px!important}}

/* v0.6.2: square gallery action buttons, matching search button. */
.pcs-root .pcs-tile-action{border-radius:0!important;}

/* v0.6.4: Show complete compositions in gallery and checkout thumbnails. */
.pcs-root .pcs-tile-image{background:#fff!important;}
.pcs-root .pcs-tile-image img{object-fit:contain!important;object-position:center!important;}
.pcs-checkout-photo img{object-fit:contain!important;background:#fff!important;}

/* v0.6.5: Three-line existing attachment description below each gallery title. */
.pcs-root .pcs-tile-title{margin-bottom:8px!important;}
.pcs-root .pcs-tile-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;max-width:100%;margin:0 0 14px!important;font-family:inherit!important;font-size:13px!important;font-weight:400!important;line-height:1.5!important;color:#666!important;text-align:center!important;white-space:normal!important;}

/* v0.6.6: Description replaces visible title; retain three-line gallery preview. */
.pcs-root .pcs-tile-description{margin-top:14px!important;}
.pcs-root .pcs-detail .pcs-description{margin:16px 0 20px!important;white-space:pre-line;}
