/* Wishlist checkout follows Santae's Usershop market layout. */
html body dialog.profile-wish-popup {width:1080px;max-width:calc(100vw - 28px);max-height:90dvh;padding:0;overflow:hidden;border-radius:22px;background:var(--profile-ui-bg);border:1px solid var(--profile-ui-border);}
html body dialog.profile-wish-popup[open] {display:flex;flex-direction:column;}
html body .profile-wish-popup .profile-wish-header {position:relative;flex:0 0 auto;padding:16px 22px;}
html body .profile-wish-popup > .wishlist-app {flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px;scrollbar-gutter:stable;}
html body .profile-wish-popup .profile-wish-market {margin:0;padding:0;color:var(--profile-ui-ink);font:15px/1.5 'National Park',Arial,sans-serif;}
html body .profile-wish-popup .profile-wish-summary {display:grid;grid-template-columns:minmax(155px,.8fr) minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:start;padding:24px;margin:0 0 18px;border:1px solid var(--profile-ui-border);border-radius:18px;background:var(--profile-ui-card);}
html body .profile-wish-popup .profile-wish-item-art {height:155px;display:flex;align-items:center;justify-content:center;margin-bottom:12px;}
html body .profile-wish-popup .profile-wish-item-art img {width:140px;height:140px;object-fit:contain;filter:drop-shadow(0 0 15px #48d6e32a);}
html body .profile-wish-popup .profile-wish-item h2 {font:24px/1.25 'National Park',Arial,sans-serif;margin:0 0 12px;color:var(--profile-ui-ink);overflow-wrap:anywhere;}
html body .profile-wish-popup .profile-wish-chips {display:flex;flex-wrap:wrap;gap:6px;}
html body .profile-wish-popup .profile-wish-chips span {padding:4px 9px;border:1px solid var(--profile-ui-border);border-radius:30px;text-transform:uppercase;letter-spacing:.4px;font:11px/1.3 'National Park',Arial,sans-serif;color:var(--profile-ui-muted);}
html body .profile-wish-popup .profile-wish-market h3 {font:24px/1.15 'Bangers',sans-serif;letter-spacing:.4px;font-weight:400;color:var(--profile-ui-ink);margin:0 0 20px;}
html body .profile-wish-popup .profile-wish-details,html body .profile-wish-popup .profile-wish-market-stats {padding-top:12px;min-width:0;}
html body .profile-wish-popup .profile-wish-market dl {display:grid;gap:12px;margin:0;}
html body .profile-wish-popup .profile-wish-market dl > div {display:flex;justify-content:space-between;gap:14px;align-items:baseline;min-width:0;}
html body .profile-wish-popup .profile-wish-market dt {font:14px/1.4 'National Park',Arial,sans-serif;color:var(--profile-ui-muted);}
html body .profile-wish-popup .profile-wish-market dd {font:600 14px/1.4 'National Park',Arial,sans-serif;color:var(--profile-ui-ink);margin:0;text-align:right;overflow-wrap:anywhere;min-width:0;}
html body .profile-wish-popup .profile-wish-market dd a {color:var(--profile-ui-accent);text-decoration:underline;}
html body .profile-wish-popup .profile-wish-shops {overflow:hidden;border:1px solid var(--profile-ui-border);border-radius:18px;background:var(--profile-ui-card);}
html body .profile-wish-popup .profile-wish-shops > header {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;border-bottom:1px solid var(--profile-ui-border);background:var(--profile-ui-bg);}
html body .profile-wish-popup .profile-wish-shops > header h3 {margin:0;font-size:28px;}
html body .profile-wish-popup .profile-wish-market p {font:14px/1.5 'National Park',Arial,sans-serif;color:var(--profile-ui-muted);margin:0;}
html body .profile-wish-popup .profile-wish-shops > header p {text-align:right;max-width:250px;}
html body .profile-wish-popup .profile-wish-table {width:100%;table-layout:auto;border-collapse:collapse;margin:0;color:var(--profile-ui-ink);font:15px/1.4 'National Park',Arial,sans-serif;}
html body .profile-wish-popup .profile-wish-table th {padding:14px 16px;color:var(--profile-ui-muted);text-transform:uppercase;font:12px/1.3 'National Park',Arial,sans-serif;letter-spacing:1px;border-bottom:1px solid var(--profile-ui-border);background:var(--profile-ui-bg);text-align:left;}
html body .profile-wish-popup .profile-wish-table td {padding:16px;border-bottom:1px solid var(--profile-ui-border);vertical-align:middle;}
html body .profile-wish-popup .profile-wish-table tr:last-child td {border-bottom:0;}
html body .profile-wish-popup .profile-wish-table tr.is-best {background:#43c0d514;}
html body .profile-wish-popup .profile-wish-seller-identity {display:flex;align-items:center;gap:12px;min-width:0;}
html body .profile-wish-popup .profile-wish-seller-identity > div {min-width:0;}
html body .profile-wish-popup .profile-wish-seller-identity strong {display:block;font-size:16px;font-weight:600;letter-spacing:.2px;color:var(--profile-ui-ink);overflow-wrap:anywhere;}
html body .profile-wish-popup .profile-wish-seller-identity small {display:block;margin-top:4px;font-size:12px;color:var(--profile-ui-muted);overflow-wrap:anywhere;}
html body .profile-wish-popup .profile-wish-avatar {position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;border-radius:50%;border:1px solid var(--profile-ui-border);overflow:hidden;background:var(--profile-ui-bg);color:var(--profile-ui-accent);text-decoration:none;isolation:isolate;}
html body .profile-wish-popup .profile-wish-avatar img {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;}
html body .profile-wish-popup .profile-wish-stock {font-size:14px;white-space:nowrap;color:var(--profile-ui-muted);}
html body .profile-wish-popup .profile-wish-listing-price {font-size:18px;white-space:nowrap;color:var(--profile-ui-ink);}
html body .profile-wish-popup .profile-wish-best {display:inline-block;margin:5px 0 0 8px;padding:4px 8px;border:1px solid #8fbf5e;border-radius:30px;color:#41651b;background:#dbeeca;font:10px/1.2 'National Park',Arial,sans-serif;text-transform:uppercase;white-space:nowrap;}
body.dark-mode .profile-wish-popup .profile-wish-best {color:#c4e994;background:#213526;}
html body .profile-wish-popup .profile-wish-row-actions {display:flex;gap:8px;align-items:center;}
html body .profile-wish-popup .profile-wish-market :is(.profile-wish-buy,.profile-wish-visit) {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;margin:0;border:1px solid #57c8d9;border-radius:10px;font:19px/1.15 'Bangers',sans-serif;font-weight:400;text-decoration:none;white-space:nowrap;cursor:pointer;}
html body .profile-wish-popup .profile-wish-market .profile-wish-buy {background:linear-gradient(135deg,#58d7e6,#35b3cb);color:#062d42;border-color:#7fe6f0;box-shadow:inset 0 1px 0 #ffffff4d;}
html body .profile-wish-popup .profile-wish-market .profile-wish-visit {color:var(--profile-ui-ink);background:var(--profile-ui-bg);}
html body .profile-wish-popup .profile-wish-market .profile-wish-buy:hover {background:#83e8f1;}
html body .profile-wish-popup .profile-wish-market .profile-wish-visit:hover {border-color:var(--profile-ui-accent);}
html body .profile-wish-popup .profile-wish-market button:disabled {opacity:1;color:var(--profile-ui-muted);background:var(--profile-ui-bg);border-color:var(--profile-ui-border);cursor:wait;}
html body .profile-wish-popup .profile-wish-market form {margin:0;}
html body .profile-wish-popup .profile-wish-gift-choice {display:flex;align-items:center;gap:10px;justify-content:space-between;font:13px/1.3 'National Park',Arial,sans-serif;color:var(--profile-ui-muted);margin:0 0 8px;}
html body .profile-wish-popup .profile-wish-gift-choice select {min-height:38px;min-width:0;width:auto;max-width:220px;flex:1;font:14px/1.3 'National Park',Arial,sans-serif;padding:6px 8px;margin:0;background:var(--profile-ui-field);color:var(--profile-ui-ink);border:1px solid var(--profile-ui-border);border-radius:7px;}
html body .profile-wish-popup .profile-wish-inventory {display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px;margin:0 0 18px;background:var(--profile-ui-card);border:1px solid var(--profile-ui-border);border-radius:18px;}
html body .profile-wish-popup .profile-wish-inventory h3 {margin-bottom:8px;}
html body .profile-wish-popup .profile-wish-inventory > form {flex:0 0 260px;}
html body .profile-wish-popup .profile-wish-inventory .profile-wish-buy {width:100%;}
html body .profile-wish-popup .profile-wish-empty {padding:28px;text-align:center;color:var(--profile-ui-muted);}
html body .profile-wish-popup .profile-wish-pagination:empty {display:none;}
html body .profile-wish-popup .profile-wish-pagination .pagination {justify-content:center;gap:5px;margin:16px;flex-wrap:wrap;}
html body .profile-wish-popup .profile-wish-pagination .page-link {background:var(--profile-ui-bg);color:var(--profile-ui-ink);border:1px solid var(--profile-ui-border);border-radius:6px;}
html body .profile-wish-popup .profile-wish-pagination .active .page-link {background:var(--profile-ui-button);color:#fff;}
@media(max-width:900px){
 html body .profile-wish-popup .profile-wish-summary {gap:18px;padding:20px;grid-template-columns:150px minmax(0,1fr) minmax(0,1fr);}
 html body .profile-wish-popup .profile-wish-market dl > div {gap:8px;}
 html body .profile-wish-popup .profile-wish-table td,html body .profile-wish-popup .profile-wish-table th {padding:12px 10px;}
 html body .profile-wish-popup .profile-wish-row-actions {flex-wrap:wrap;}
 html body .profile-wish-popup .profile-wish-row-actions > * {flex:1;}
 html body .profile-wish-popup .profile-wish-best {margin-left:0;}
}
@media(max-width:680px){
 html body dialog.profile-wish-popup {max-width:calc(100vw - 16px);border-radius:16px;}
 html body .profile-wish-popup > .wishlist-app {padding:12px;}
 html body .profile-wish-popup .profile-wish-summary {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px 14px;padding:16px;border-radius:14px;}
 html body .profile-wish-popup .profile-wish-item {grid-column:1/-1;display:grid;grid-template-columns:96px minmax(0,1fr);gap:4px 16px;align-items:center;}
 html body .profile-wish-popup .profile-wish-item-art {grid-row:1/3;height:96px;margin:0;}
 html body .profile-wish-popup .profile-wish-item-art img {width:96px;height:96px;}
 html body .profile-wish-popup .profile-wish-item h2 {font-size:22px;margin:0;}
 html body .profile-wish-popup .profile-wish-chips {grid-column:2;}
 html body .profile-wish-popup .profile-wish-chips span {font-size:10px;}
 html body .profile-wish-popup .profile-wish-market h3 {font-size:22px;margin-bottom:14px;}
 html body .profile-wish-popup .profile-wish-market dl {gap:10px;}
 html body .profile-wish-popup .profile-wish-market dt,html body .profile-wish-popup .profile-wish-market dd {font-size:12px;}
 html body .profile-wish-popup .profile-wish-market dl > div {flex-wrap:wrap;gap:3px 8px;}
 html body .profile-wish-popup .profile-wish-market dd {margin-left:auto;}
 html body .profile-wish-popup .profile-wish-inventory {display:block;padding:16px;border-radius:14px;}
 html body .profile-wish-popup .profile-wish-inventory > form {margin-top:14px;}
 html body .profile-wish-popup .profile-wish-shops > header {display:block;padding:16px;}
 html body .profile-wish-popup .profile-wish-shops > header h3 {font-size:25px;margin-bottom:6px;}
 html body .profile-wish-popup .profile-wish-shops > header p {max-width:none;text-align:left;font-size:13px;}
 html body .profile-wish-popup .profile-wish-table,html body .profile-wish-popup .profile-wish-table tbody {display:block;}
 html body .profile-wish-popup .profile-wish-table thead {display:none;}
 html body .profile-wish-popup .profile-wish-table tr {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;padding:14px;border-bottom:1px solid var(--profile-ui-border);}
 html body .profile-wish-popup .profile-wish-table tr:last-child {border-bottom:0;}
 html body .profile-wish-popup .profile-wish-table td {display:block;padding:0;border:0;min-width:0;}
 html body .profile-wish-popup .profile-wish-table td:first-child {grid-row:1/3;}
 html body .profile-wish-popup .profile-wish-table td:nth-child(2) {grid-column:2;grid-row:2;text-align:right;}
 html body .profile-wish-popup .profile-wish-table td:nth-child(3) {grid-column:2;grid-row:1;text-align:right;}
 html body .profile-wish-popup .profile-wish-table td:nth-child(4) {grid-column:1/-1;margin-top:10px;}
 html body .profile-wish-popup .profile-wish-table td[colspan] {grid-column:1/-1;grid-row:auto;}
 html body .profile-wish-popup .profile-wish-avatar {flex-basis:40px;width:40px;height:40px;}
 html body .profile-wish-popup .profile-wish-seller-identity {gap:8px;}
 html body .profile-wish-popup .profile-wish-seller-identity strong {font-size:14px;}
 html body .profile-wish-popup .profile-wish-listing-price {font-size:16px;}
 html body .profile-wish-popup .profile-wish-stock {font-size:12px;}
 html body .profile-wish-popup .profile-wish-best {display:block;width:max-content;margin:4px 0 0 auto;}
 html body .profile-wish-popup .profile-wish-row-actions {display:flex;flex-wrap:nowrap;}
 html body .profile-wish-popup .profile-wish-row-actions > * {flex:1;padding:10px 8px;font-size:17px;}
}

@media (max-width:767.98px) {
/* Preserve the two summaries and let long names and prices wrap. */
html body dialog.profile-wish-popup {max-width:min(620px,calc(100vw - 14px));}
html body .profile-wish-popup .profile-wish-header {padding:6px 9px;}
html body .profile-wish-popup .profile-wish-header h3 {font-size:20px;}
html body .profile-wish-popup .profile-wish-header button {min-width:48px;min-height:32px;padding:3px 7px;font-size:15px;}
html body .profile-wish-popup > .wishlist-app {padding:6px;scrollbar-gutter:auto;}
html body .profile-wish-popup .profile-wish-summary {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px 10px;
    padding:8px;
    margin-bottom:6px;
}
html body .profile-wish-popup .profile-wish-item {
    grid-column:1/-1;
    display:grid;
    grid-template-columns:58px minmax(0,1fr);
    align-items:center;
    gap:2px 8px;
}
html body .profile-wish-popup .profile-wish-item-art {grid-row:1/3;height:58px;margin:0;}
html body .profile-wish-popup .profile-wish-item-art img {width:58px;height:58px;}
html body .profile-wish-popup .profile-wish-item h2 {font-size:18px;margin:0;}
html body .profile-wish-popup .profile-wish-chips {grid-column:2;gap:3px;}
html body .profile-wish-popup .profile-wish-chips span {font-size:10px;padding:1px 5px;}
html body .profile-wish-popup :is(.profile-wish-details,.profile-wish-market-stats) {padding-top:0;}
html body .profile-wish-popup .profile-wish-market h3 {font-size:18px;margin-bottom:4px;}
html body .profile-wish-popup .profile-wish-market dl {gap:3px;}
html body .profile-wish-popup .profile-wish-market dl > div {flex-wrap:wrap;gap:0 4px;}
html body .profile-wish-popup .profile-wish-market :is(dt,dd,p) {font-size:12px;line-height:1.3;}
html body .profile-wish-popup .profile-wish-inventory {padding:8px;margin-bottom:6px;}
html body .profile-wish-popup .profile-wish-inventory > form {margin-top:6px;}
html body .profile-wish-popup .profile-wish-gift-choice {gap:4px;margin-bottom:4px;}
html body .profile-wish-popup .profile-wish-gift-choice select {min-height:32px;padding:2px 4px;font-size:16px;}
html body .profile-wish-popup .profile-wish-shops > header {padding:6px 8px;}
html body .profile-wish-popup .profile-wish-shops > header h3 {font-size:18px;margin-bottom:2px;}
html body .profile-wish-popup .profile-wish-market :is(.profile-wish-buy,.profile-wish-visit) {
    min-height:32px;
    padding:4px 7px;
    font-size:15px;
}
html body .profile-wish-popup .profile-wish-empty {padding:8px;font-size:13px;}
}
@media (max-width:680px) {
    html body .profile-wish-popup .profile-wish-table tr {padding:6px 8px;gap:2px 6px;}
    html body .profile-wish-popup .profile-wish-table td:nth-child(4) {margin-top:3px;}
    html body .profile-wish-popup .profile-wish-avatar {width:30px;height:30px;flex-basis:30px;}
}

@media (max-width:680px) {
    html body .profile-wish-popup .profile-wish-best {padding:1px 4px;margin-top:1px;}
    html body .profile-wish-popup .profile-wish-seller-identity {gap:5px;}
    html body .profile-wish-popup .profile-wish-seller-identity small {margin-top:0;}
    html body .profile-wish-popup .profile-wish-listing-price {font-size:14px;}
    html body .profile-wish-popup .profile-wish-row-actions {gap:4px;}
    html body .profile-wish-popup .profile-wish-pagination .pagination {margin:6px;}
}
@media (min-width:390px) and (max-width:680px) {
    html body .profile-wish-popup .profile-wish-table form:has(.profile-wish-gift-choice) {
        display:grid;
        grid-template-columns:minmax(0,1fr) auto;
        gap:5px;
        align-items:end;
    }
    html body .profile-wish-popup .profile-wish-table .profile-wish-gift-choice {
        display:grid;
        gap:1px;
        margin:0;
        font-size:12px;
    }
    html body .profile-wish-popup .profile-wish-table .profile-wish-gift-choice select {width:100%;}
}
