/* Preloved Bazaar — the Bag (/bag/). A Depop-style multi-seller holding list.
   Enqueued only on the bag page by Bag\BagPage. Depends on pb-design-system
   (brand tokens). */

.pb-bag {
	max-width: 760px;
	margin: 0 auto;
	padding: 8px 16px 56px;
}
.pb-bag__title {
	font-size: 24px;
	font-weight: 700;
	color: #16202a;
	margin: 0 0 20px;
}

.pb-bag-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.pb-bag-item {
	display: flex;
	gap: 14px;
	padding: 14px;
	background: #fff;
	border: 1px solid #e6ebf0;
	border-radius: 16px;
}
.pb-bag-item__media {
	flex: 0 0 auto;
	width: 96px;
	height: 96px;
	border-radius: 12px;
	overflow: hidden;
	display: block;
	background: #f1f4f6;
}
.pb-bag-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.pb-bag-item__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.pb-bag-item__seller {
	font-size: 13px;
	font-weight: 600;
	color: #1f8fb2;
	text-decoration: none;
}
.pb-bag-item__seller:hover { text-decoration: underline; }
.pb-bag-item__name {
	font-size: 15px;
	font-weight: 600;
	color: #16202a;
	text-decoration: none;
	line-height: 1.3;
}
.pb-bag-item__name:hover { color: #1f8fb2; }

.pb-bag-item__break {
	margin: 6px 0 2px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.pb-bag-item__break-row {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: #6b7785;
}
.pb-bag-item__break-row dt,
.pb-bag-item__break-row dd { margin: 0; }
.pb-bag-item__break-row.is-total {
	margin-top: 4px;
	padding-top: 6px;
	border-top: 1px solid #eef1f4;
	font-size: 15px;
	font-weight: 700;
	color: #16202a;
}
.pb-bag-item__free { color: #1f8fb2; font-weight: 600; }

/* Actions sit on the right of the row, both proportionate. Owner 2026-05-28:
   the prior layout (full-width teal pill + tiny outline circle X far right)
   read as "one big thing then a lonely button" — keep both right-aligned,
   modest in size, with Remove as a quiet text link rather than a competing
   circular button. */
.pb-bag-item__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
	margin-top: 10px;
}
.pb-bag-item__buy-form,
.pb-bag-item__remove-form { margin: 0; flex: 0 0 auto; }

/* Motta theme styles bare <button>s as 160×60 pills with line-height:60 (the
   same gotcha noted in the auth notes). Use !important here so the bag
   buttons honour our sizing instead of inheriting Motta's defaults. */
.pb-bag-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	cursor: pointer;
	border-radius: 999px !important;
	border: 0 !important;
	font-size: 14px !important;
	line-height: 1 !important;
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
	width: auto !important;
	/* Motta's theme button styles add min-width:160px to bare <button>s, which
	   here would overflow the actions row and push Buy now off the left side
	   (same gotcha noted in CLAUDE.md auth section). Reset it. */
	min-width: 0 !important;
}
.pb-bag-btn--buy {
	height: 40px !important;
	min-height: 40px !important;
	padding: 0 22px !important;
	background: var(--pb-brand-teal, #2095b8) !important;
	color: #fff !important;
}
.pb-bag-btn--buy:hover { background: var(--pb-brand-teal-dark, #197a96) !important; color: #fff !important; }

/* Remove = compact icon-only bin button, sits next to Buy now. Secondary so
   no fill; goes red on hover to signal destructive intent. */
.pb-bag-btn--remove {
	width: 40px !important;
	height: 40px !important;
	min-height: 40px !important;
	padding: 0 !important;
	background: transparent !important;
	color: #6b7785 !important;
	border-radius: 999px !important;
}
.pb-bag-btn--remove:hover { color: #dc2626 !important; background: transparent !important; }
.pb-bag-btn__icon { display: block; }

.pb-bag-item__sold {
	flex: 1 1 auto;
	font-weight: 700;
	color: #9aa6b2;
	font-size: 14px;
	align-self: center;
}

/* Empty / logged-out state */
.pb-bag--empty { text-align: center; padding: 32px 0 16px; }
.pb-bag__empty-msg { color: #6b7785; font-size: 15px; margin: 0 auto 18px; max-width: 360px; }
.pb-bag--empty .pb-bag-btn--buy { display: inline-flex; }

@media (max-width: 480px) {
	.pb-bag-item__media { width: 80px; height: 80px; }
}
