/* Scoped beta UI. Original Listivo favorites stay intact in DOM as fallback. */
.gvfa-original-hidden{display:none!important}
.gvfa-panel{max-width:1250px;margin:15px auto 40px;padding:12px 15px;min-height:200px}
.gvfa-heading{font-size:24px;font-weight:700;color:#23394c;margin:8px 0 22px}
.gvfa-tabs{display:flex;overflow-x:auto;gap:9px;padding:3px 0 20px;scrollbar-width:thin}
.gvfa-tab{border:1px solid #dce4ef;background:#f7f9fc;color:#24384b;border-radius:30px;padding:10px 16px;white-space:nowrap;cursor:pointer;font:inherit;font-size:15px}
.gvfa-tab.active{color:#fff;background:#3674ea;border-color:#3674ea}
.gvfa-list{display:flex;flex-direction:column;gap:10px}
.gvfa-swipe-wrap{position:relative;overflow:hidden;background:#3674ea;border-radius:12px}
.gvfa-item{display:flex;align-items:center;gap:14px;position:relative;z-index:1;padding:13px;background:#fff;border:1px solid #e1e7ef;border-radius:12px;min-height:94px;transition:transform .2s;direction:inherit}
.gvfa-swipe-wrap.gvfa-open .gvfa-item{transform:translateX(-92px)}
.gvfa-swipe-action{position:absolute;right:0;top:0;bottom:0;width:92px;display:flex;align-items:center;justify-content:center;color:#fff;background:#3674ea;border:0;font:inherit;cursor:pointer}
.gvfa-item-thumb{flex:none;width:78px;height:78px;border-radius:10px;overflow:hidden;background:#f1f4f9;color:#6d88aa;display:flex;align-items:center;justify-content:center;font-size:36px}
.gvfa-item-thumb img{height:100%;width:100%;object-fit:cover}
.gvfa-item-content{flex:1;min-width:0}
.gvfa-item-title{font-size:16px;color:#24384b;text-decoration:none;font-weight:650;line-height:1.5;display:block;overflow-wrap:anywhere}
.gvfa-item-title:hover{color:#3674ea}
.gvfa-item-note{font-size:13px;color:#637b90;margin:5px 0;white-space:pre-wrap}
.gvfa-item-url{font-size:12px;color:#8393a4;word-break:break-word;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:4px}
.gvfa-item-date{display:block;font-size:12px;color:#8595a4;margin-top:8px}
.gvfa-item-side{display:flex;align-items:center;gap:5px;flex:none}
.gvfa-item-side button{border:0;background:#f2f5fa;border-radius:50%;height:34px;width:34px;color:#3674ea;cursor:pointer;font-size:17px}
.gvfa-item-side button:hover{background:#e3ecfe}
.gvfa-message{padding:35px;text-align:center;color:#6c8094;background:#f8fafd;border-radius:12px}
.gvfa-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:17px}
.gvfa-grid-item .gvfa-item{display:flex;flex-direction:column;align-items:stretch;min-height:unset;padding:9px;gap:7px}
.gvfa-grid-item .gvfa-item-thumb{width:100%;height:auto;aspect-ratio:1.4}
.gvfa-grid-item .gvfa-item-side{justify-content:flex-end}
.gvfa-btn{border-radius:7px;padding:9px 15px;border:1px solid #d4deeb;cursor:pointer;font:inherit}
.gvfa-primary{background:#3674ea;color:white;border-color:#3674ea}
.gvfa-plain{background:#fff;color:#334a60}
.gvfa-clear{margin:0 0 14px auto;display:block}
.gvfa-save-search,.gvfa-follow{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:41px;padding:8px 14px;cursor:pointer;color:#3674ea;background:white;border:1px solid #3674ea;border-radius:24px;font-size:14px;font-weight:650;white-space:nowrap}
.gvfa-save-search[aria-pressed="true"],.gvfa-follow[data-saved="1"]{color:#fff;background:#3674ea}
.gvfa-heart{font-size:23px;line-height:1}
.gvfa-follow{margin:10px 3px}
.gvfa-mask{position:fixed;inset:0;z-index:2147483000;background:rgba(12,26,44,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.gvfa-dialog{background:#fff;color:#24384b;width:min(100%,470px);border-radius:14px;padding:20px;box-shadow:0 10px 40px rgba(0,0,0,.2)}
.gvfa-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}
.gvfa-dialog-head h3{font-size:19px;margin:0}
.gvfa-close{font-size:27px;background:none;border:0;cursor:pointer;color:#5b6877}
.gvfa-field{display:flex;flex-direction:column;gap:7px;font-size:14px;margin:12px 0}
.gvfa-input{padding:10px;width:100%;border:1px solid #d1d8e3;border-radius:9px;box-sizing:border-box;font:inherit}
.gvfa-field input[type=checkbox]{width:22px;height:22px}
.gvfa-field textarea{min-height:100px;resize:vertical}
.gvfa-dialog-foot{display:flex;gap:10px;justify-content:flex-end;margin-top:17px}
@media(max-width:650px){.gvfa-panel{padding:9px 12px}.gvfa-heading{font-size:20px}.gvfa-item{gap:10px;padding:10px}.gvfa-item-thumb{width:64px;height:64px}.gvfa-item-title{font-size:14px}.gvfa-item-side{flex-direction:column}.gvfa-item-side button{width:30px;height:30px;font-size:16px}.gvfa-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gvfa-grid-item .gvfa-item-side{flex-direction:row}}

/* v0.1.2: search favorites use red in both normal and saved states. */
.gvfa-save-search {color:#e52e50!important;border-color:#e52e50!important;background:#fff!important}
.gvfa-save-search:hover,.gvfa-save-search:focus-visible {background:#fff1f4!important;color:#d51f44!important}
.gvfa-save-search[aria-pressed="true"] {background:#e52e50!important;color:#fff!important;border-color:#e52e50!important}
.gvfa-save-search[aria-pressed="true"]:hover {background:#cc2141!important}
/* Limit follow controls to the actual profile actions, not listing cards. */
.listivo-user-profile__buttons .gvfa-follow {margin:8px 0;min-height:43px}

/* v0.1.3: seller-follow control belongs to the public profile heading only. */
.listivo-user-profile__head .gvfa-follow{display:inline-flex;width:fit-content;margin:12px 0 6px;max-width:100%;white-space:normal}
.listivo-user-profile__head .gvfa-follow-self{cursor:not-allowed;opacity:.65;border-color:#9ca3af;color:#64748b;background:#f8fafc}
.gvfa-item-thumb img{display:block}
