/* Dopełnij arkusz / Dobierz inne wzory — koszyk i okno galerii. */

.sheet-fill-hint{
  margin:.55rem 0 0;font-size:1.045rem;color:var(--ink-70);line-height:1.4;
  text-align:center
}
.sheet-pack-note.sheet-pack-note-fill{text-align:center;font-size:1.005rem}
.sheet-fill-actions{
  display:flex;flex-wrap:wrap;gap:.55rem;margin:.65rem 0 0;max-width:100%;
  align-items:stretch
}
.sheet-fill-form{margin:0;flex:1 1 12rem;min-width:0;display:flex}
.sheet-fill-btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;width:100%;padding:.65rem 1rem;border-radius:12px;
  border:1px solid var(--ink);background:var(--ink);color:#fff;
  font:inherit;font-weight:600;line-height:1.25;cursor:pointer;box-sizing:border-box;
  white-space:normal;text-align:center
}
.sheet-fill-form .sheet-fill-btn{flex:1}
.sf-l1 + .sf-l2{margin-left:.25em}
.sheet-fill-btn-secondary{
  flex:1 1 12rem;background:transparent;color:var(--ink);border-color:var(--rule)
}
.sheet-fill-btn:disabled{opacity:.45;cursor:not-allowed}
.sheet-fill-catalog{margin:.7rem 0 0;max-width:100%}
.sheet-fill-picker{
  border:0;padding:0;max-width:32rem;width:calc(100% - 1.6rem);
  background:transparent
}
.sheet-fill-picker::backdrop{background:rgba(20,22,27,.35)}
.sheet-fill-picker-inner{
  background:var(--liner-3,#fff);border:1px solid var(--rule);
  border-radius:16px;padding:1.1rem 1.2rem;max-height:min(80vh, 36rem);
  overflow:auto
}
.sheet-fill-picker h2{margin:0 0 .6rem;font-size:1.15rem}
.sheet-fill-picker-count{margin:0 0 .8rem;font-size:.92rem;color:var(--ink-70)}
.sheet-fill-picker-grid{
  display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:.55rem
}
.sheet-fill-pick-card{
  margin:0;border:1px solid var(--rule);border-radius:12px;overflow:hidden;
  background:#fff;cursor:pointer;text-align:left;padding:0;
  min-height:44px;font:inherit;color:inherit
}
.sheet-fill-pick-card.is-on{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}
.sheet-fill-pick-card img{width:100%;aspect-ratio:1;object-fit:contain;display:block;background:#fff}
.sheet-fill-pick-card span{
  display:block;padding:.35rem .45rem .5rem;font-size:.8rem;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.sheet-fill-picker-actions{
  display:flex;flex-wrap:wrap;gap:.55rem;margin:1rem 0 0
}
.sheet-fill-picker-actions .sheet-fill-btn{flex:1 1 10rem}

@media (max-width:420px){
  .sheet-fill-actions{flex-direction:column;align-items:stretch}
  .sheet-fill-form,.sheet-fill-btn-secondary{flex:none;width:100%}
  .sheet-fill-picker{
    max-width:none;width:100%;margin:0;height:100%;
    max-height:none
  }
  .sheet-fill-picker-inner{
    border-radius:16px 16px 0 0;margin-top:auto;max-height:92vh;
    position:fixed;left:0;right:0;bottom:0;width:100%;
    box-sizing:border-box
  }
  .sheet-fill-picker-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}
  .sheet-fill-picker-actions{flex-direction:column}
}
@media (max-width:760px){
  .sheet-fill-btn:has(> .sf-l1){flex-direction:column}
  .sf-l1,.sf-l2{display:block}
  .sf-l1 + .sf-l2{margin-left:0}
}
