.pym-design-gallery{border:1px solid #d9c5e4;border-radius:18px;background:#f7effa;color:#082f44;padding:20px;width:min(780px,94vw);max-height:85dvh;overflow-y:auto;overscroll-behavior:contain;margin:auto}
.pym-design-gallery::backdrop{background:rgba(8,47,68,.65)}
body:has(.pym-design-gallery[open]){overflow:hidden}
.pym-design-gallery__header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pym-design-gallery__header h2{font:700 clamp(22px,4vw,30px)/1.15 Georgia,serif;margin:0}
.pym-design-gallery__header button{min-width:44px;min-height:44px;border:1px solid #082f44;background:white;color:#082f44;border-radius:50%;font-size:28px;cursor:pointer}
.pym-design-gallery>p{font-size:15px;line-height:1.5;margin:12px 0}
.pym-design-gallery__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.pym-design-gallery__grid button{display:flex;flex-direction:column;padding:0;border:1px solid #d9c5e4;border-radius:10px;overflow:hidden;background:white;color:#082f44;cursor:pointer}
.pym-design-gallery__grid img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.pym-design-gallery__grid span{padding:10px;font-size:14px;line-height:1.3}
.pym-design-gallery button:focus-visible{outline:3px solid #082f44;outline-offset:3px}
.pym-design-gallery button:disabled{opacity:.55;cursor:wait}
@media(max-width:600px){.pym-design-gallery{padding:16px}.pym-design-gallery__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pym-customizer__canvas-actions{flex-wrap:wrap}.pym-customizer__canvas-actions button{flex:1 1 42%;min-height:44px}}

.pym-design-gallery__grid button{position:relative}
.pym-design-gallery__grid button[aria-checked="true"]{border:3px solid #082f44}
.pym-design-gallery__grid .pym-design-gallery__check{position:absolute;top:10px;right:10px;width:28px;height:28px;padding:0;display:grid;place-items:center;background:#fff;border:2px solid #082f44;border-radius:5px;color:transparent;font-size:20px;font-weight:700;box-shadow:0 1px 5px #0003}
.pym-design-gallery__grid button[aria-checked="true"] .pym-design-gallery__check{background:#082f44;color:#fff}
.pym-design-gallery__footer{position:sticky;bottom:-20px;background:#f7effa;border-top:1px solid #d9c5e4;padding:12px 0 20px;margin-top:16px;z-index:1}
.pym-design-gallery__footer>p{font-size:14px;line-height:1.4;margin:0 0 8px}
.pym-design-gallery__footer>p:empty{display:none}
.pym-design-gallery__selection{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pym-design-gallery__selection strong{font-size:15px}
.pym-design-gallery__selection button{background:#082f44;color:#fff;border:0;border-radius:24px;padding:12px 20px;min-height:48px;font:600 16px/1.2 Arial,sans-serif;cursor:pointer}
.pym-design-gallery__selection button:disabled{cursor:default}
@media(max-width:600px){.pym-design-gallery__footer{bottom:-16px;padding-bottom:16px}.pym-design-gallery__selection button{padding:12px 16px}}

