#buying-list-page{width:min(1200px,calc(100vw - 28px));height:calc(100dvh - 28px);max-height:none;padding:0;border:1px solid #bbcbd1;border-radius:18px;color:#20364b;background:#f6f8fa}#buying-list-page::backdrop,#buying-list-saved::backdrop,#buying-list-share::backdrop{background:#102637ad}#buying-list-page header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 26px;background:#334b60;color:white}#buying-list-page h2{font-size:25px;font-weight:800;margin:0}#buying-list-page header p{margin:5px 0 0;font-size:13px;color:#d5e3ea}#buying-list-page main{padding:24px;overflow:auto;height:calc(100% - 99px)}#buying-list-page .buy-card{background:#fff;padding:22px;border:1px solid #d6e1e7;border-radius:13px}#buying-list-page label{display:grid;gap:7px;font-size:13px;font-weight:700}#buying-list-page .buy-fields{display:grid;grid-template-columns:2fr 1fr;gap:20px}#buying-list-page input{border:1px solid #c6d3df;border-radius:8px;padding:11px;color:#20364b;width:100%;background:white;font-size:14px}#buying-list-page button,#buying-list-saved button,#buying-list-share button,.buy-whatsapp-link{padding:10px 14px;border:1px solid #b8cbbf;border-radius:8px;background:white;color:#2c5a41;font-size:13px;font-weight:700;cursor:pointer}#buying-list-page button:disabled,#buying-list-share button:disabled{opacity:.5;cursor:wait}#buying-list-page .buy-primary,#buying-list-share .buy-primary{background:#2c6347;color:white;border-color:#2c6347}#buying-list-page .buy-danger,#buying-list-saved .buy-danger{color:#b52b40;border-color:#e7c8ce}#buying-list-page .buy-search-line{display:flex;gap:12px;margin:22px 0 16px}#buying-list-page .buy-search{position:relative;flex:1}#buy-matches{position:absolute;left:0;right:0;top:46px;z-index:3;background:white;border:1px solid #d3dee5;box-shadow:0 5px 16px #22384c25;border-radius:8px;max-height:280px;overflow:auto}#buy-matches:empty{display:none}#buy-matches button{display:block;text-align:left;width:100%;border:0;border-radius:0;color:#20364b}#buy-matches button:hover{background:#e6f0ea}.buy-table-wrap{overflow:auto}#buying-list-page table{width:100%;border-collapse:collapse}#buying-list-page th{background:#eaf0f5;text-align:left;padding:13px;font-size:13px}#buying-list-page td{padding:10px;border-bottom:1px solid #e3eaef}#buying-list-page tbody tr:nth-child(even){background:#f7f9fa}#buying-list-page td:first-child{width:40px}#buying-list-page td:nth-child(3){width:120px}#buying-list-page td:last-child{width:55px}#buying-list-page .buy-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:20px}#buying-list-page footer{display:flex;flex-wrap:wrap;gap:10px;border-top:1px solid #e2e9ed;margin-top:22px;padding-top:20px}#buy-list-feedback{font-size:13px;margin:14px 0;color:#326146}#buy-list-feedback.error{color:#b4233b}#buy-list-count,#buying-list-page .buy-note{font-size:12px;color:#60768a}#buying-list-saved,#buying-list-share{width:min(680px,calc(100vw - 30px));border:1px solid #c5d2dd;border-radius:15px;padding:24px;max-height:85dvh;overflow:auto;background:white;color:#20364b}#buying-list-saved h3,#buying-list-share h3{font-size:22px;font-weight:800;margin-bottom:12px}.buy-saved-row{display:flex;gap:8px;align-items:center;padding:13px 0;border-bottom:1px solid #e4eaee}.buy-saved-row div{flex:1;min-width:0;overflow-wrap:anywhere}.buy-saved-row small{display:block;color:#63798b}.buy-share-preview{display:block;margin:12px auto;max-width:100%;max-height:45dvh;border:1px solid #d5dee5}.buy-dialog-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.buy-whatsapp-link{display:inline-block;text-decoration:none}.buy-close{background:#fff!important;color:#20364b!important}@media(max-width:600px){#buying-list-page header{padding:16px}#buying-list-page h2{font-size:20px}#buying-list-page main{padding:12px}#buying-list-page .buy-card{padding:12px}#buying-list-page .buy-fields{grid-template-columns:1fr}#buying-list-page .buy-search-line{flex-wrap:wrap}#buying-list-page .buy-search{flex-basis:100%}#buying-list-page td{padding:6px}#buying-list-page td:nth-child(3){width:78px}#buying-list-page td:last-child{width:40px}#buying-list-page input{padding:9px;font-size:13px}#buying-list-page td button{padding:7px}.buy-saved-row{flex-wrap:wrap}.buy-saved-row div{flex-basis:100%}}

/* Compact sheet with fixed entry and action bars. */
#buying-list-page[open]{display:grid;grid-template-rows:66px minmax(0,1fr);width:calc(100vw - 24px);height:calc(100dvh - 24px);max-width:1800px;border-radius:12px}#buying-list-page header{padding:10px 20px}#buying-list-page h2{font-size:22px}#buying-list-page header p{font-size:11px;margin-top:2px}#buying-list-page main{height:auto;padding:0;overflow:hidden;min-height:0}#buying-list-page .buy-card{height:100%;border:0;border-radius:0;padding:0;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto auto;min-height:0}#buying-list-page .buy-fields{padding:10px 16px;grid-template-columns:minmax(180px,2fr) minmax(150px,1fr) auto;gap:16px;border-bottom:1px solid #d6e0e8;align-items:end}#buying-list-page label{gap:3px;font-size:12px}#buying-list-page input{padding:7px 9px;font-size:13px;height:34px;border-radius:5px}#buying-list-page .buy-list-tools{display:flex;gap:8px}#buying-list-page button{padding:8px 11px;font-size:12px}#buying-list-page .buy-entry{display:grid;grid-template-columns:minmax(130px,1fr) minmax(200px,3fr) 90px auto auto;gap:10px;align-items:end;padding:10px 16px;background:#f3f7f5;border-bottom:1px solid #d2ded9}#buying-list-page .buy-entry .buy-search{display:grid;position:relative}#buy-matches{top:52px}#buy-list-feedback{margin:0;padding:6px 16px;font-size:11px;min-height:26px;border-bottom:1px solid #e0e8ed}#buying-list-page .buy-table-wrap{overflow:auto;min-height:0;height:100%;background:#fff}#buying-list-page table{table-layout:fixed;min-width:600px}#buying-list-page th{position:sticky;top:0;z-index:1;padding:7px 10px;font-size:12px;border-right:1px solid #d2dde5;border-bottom:1px solid #bbcbd7}#buying-list-page td{padding:3px 9px;font-size:12px;height:28px;border-right:1px solid #e0e7ec;overflow-wrap:anywhere;line-height:1.25}#buying-list-page th:first-child,#buying-list-page td:first-child{width:42px;background:#f0f4f7;color:#667c8d;text-align:right}#buying-list-page th:nth-child(2),#buying-list-page td:nth-child(2){width:20%}#buying-list-page th:nth-child(3),#buying-list-page td:nth-child(3){width:auto}#buying-list-page th:nth-child(4),#buying-list-page td:nth-child(4){width:85px;text-align:right}#buying-list-page th:last-child,#buying-list-page td:last-child{width:132px;white-space:nowrap}#buying-list-page td button{padding:3px 8px;font-size:11px;border-radius:4px;margin-right:4px}#buying-list-page .buy-editing-row td{background:#e3f0e8}#buying-list-page .buy-empty{height:90px;text-align:center!important;width:auto!important}#buying-list-page footer{margin:0;padding:10px 16px;gap:8px;background:#fff}#buy-list-count{margin-left:auto;align-self:center}#buying-list-page .buy-note{margin:0;padding:4px 16px 7px;font-size:10px;background:#fff}@media(max-width:600px){#buying-list-page[open]{width:calc(100vw - 10px);height:calc(100dvh - 10px);grid-template-rows:66px minmax(0,1fr)}#buying-list-page header{padding:9px 12px}#buying-list-page h2{font-size:18px}#buying-list-page .buy-fields{grid-template-columns:minmax(0,1fr) 125px;gap:8px;padding:8px}#buying-list-page .buy-list-tools{grid-column:1/-1}#buying-list-page .buy-entry{grid-template-columns:minmax(0,1fr) 70px auto;gap:7px;padding:8px}#buying-list-page .buy-entry>label:first-child{grid-column:1/-1}#buying-list-page .buy-entry>label.buy-search{grid-column:auto}#buying-list-page .buy-entry [data-cancel-entry]{grid-column:1/-1}#buying-list-page footer{padding:8px}#buy-list-count{margin-left:0}}

@media(min-width:601px){#buying-list-page .buy-fields>label,#buying-list-page .buy-entry>label{display:flex;align-items:center;gap:8px;white-space:nowrap}#buying-list-page .buy-fields>label input,#buying-list-page .buy-entry>label input{flex:1;min-width:0;width:auto}#buying-list-page .buy-entry .buy-search{display:flex}#buy-matches{top:36px}#buying-list-page .buy-entry{grid-template-columns:minmax(140px,1fr) minmax(200px,3fr) 120px auto auto}#buying-list-page td{height:24px;padding:1px 9px}#buying-list-page td button{font-size:10px;line-height:1;padding:3px 7px}}

#buying-list-page th:nth-child(4),#buying-list-page td:nth-child(4){padding-right:22px;width:100px}#buying-list-page th:last-child,#buying-list-page td:last-child{padding-left:18px;width:150px}

#buy-matches button.buy-selected{background:#e6f0ea;outline:2px solid #2c6347;outline-offset:-2px}
