/* OG Wishlist — OG look. Override the --ogwl-* tokens in your theme to restyle. */
:root {
	--ogwl-surface: #11151c;
	--ogwl-surface-2: #171c25;
	--ogwl-text: #f5f7fb;
	--ogwl-muted: #9da5b3;
	--ogwl-accent: #328eff;
	--ogwl-link: #7db8ff;
	--ogwl-heart: #ff4d6d;
	--ogwl-border: rgba(255, 255, 255, .12);
	--ogwl-radius: 12px;
	--ogwl-gap: 12px;
}

/* ---- heart button ---- */
.og-wl { margin-top: 8px; }
.og-wl--single { margin-top: 18px; }

.og-wl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 16px;
	border: 1px solid var(--ogwl-link);
	border-radius: var(--ogwl-radius);
	background: transparent;
	color: var(--ogwl-text);
	font: inherit;
	font-size: .95em;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
	-webkit-tap-highlight-color: transparent;
}
.og-wl--loop .og-wl-btn,
.og-wl--block .og-wl-btn { width: 100%; box-sizing: border-box; }

.og-wl-btn:hover { border-color: var(--ogwl-heart); background: rgba(255, 77, 109, .08); }
.og-wl-btn:focus-visible { outline: 2px solid var(--ogwl-accent); outline-offset: 2px; }
.og-wl-btn[aria-busy="true"] { opacity: .6; cursor: progress; }

.og-wl-heart { flex: 0 0 auto; fill: transparent; stroke: currentColor; stroke-width: 1.8; transition: fill .15s ease, stroke .15s ease, transform .2s ease; }
.og-wl-btn.is-on { border-color: var(--ogwl-heart); }
.og-wl-btn.is-on .og-wl-heart { fill: var(--ogwl-heart); stroke: var(--ogwl-heart); transform: scale(1.08); }

@media (prefers-reduced-motion: reduce) {
	.og-wl-btn, .og-wl-heart, .og-wl-toast { transition: none !important; }
}

/* ---- toast ---- */
.og-wl-toast {
	position: fixed;
	left: 50%;
	bottom: 16px;
	z-index: 99999;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	max-width: calc(100vw - 32px);
	box-sizing: border-box;
	padding: 12px 16px;
	border: 1px solid var(--ogwl-border);
	border-radius: var(--ogwl-radius);
	background: var(--ogwl-surface);
	color: var(--ogwl-text);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
	transform: translate(-50%, 140%);
	opacity: 0;
	pointer-events: none;
	transition: transform .2s ease, opacity .2s ease;
}
.og-wl-toast.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.og-wl-toast a { color: var(--ogwl-link); font-weight: 600; text-decoration: underline; }

/* ---- header link ---- */
.og-wl-link { display: inline-flex; align-items: center; gap: 6px; }
.og-wl-link .og-wl-heart { fill: currentColor; stroke: none; }
.og-wl-count { display: inline-block; min-width: 1.5em; padding: 0 6px; border-radius: 999px; background: var(--ogwl-heart); color: #fff; font-size: .75em; line-height: 1.5em; text-align: center; }
.og-wl-count[hidden] { display: none; }

/* ---- list (account tab, guest page, shared view) ---- */
.og-wl-list { color: var(--ogwl-text); }
.og-wl-note { color: var(--ogwl-muted); margin: 0 0 16px; }
.og-wl-note a { color: var(--ogwl-link); }

.og-wl-items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ogwl-gap); }
.og-wl-item {
	display: grid;
	grid-template-columns: 88px 1fr auto;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 12px;
	border: 1px solid var(--ogwl-border);
	border-radius: var(--ogwl-radius);
	background: var(--ogwl-surface-2);
}
.og-wl-item__image img { display: block; width: 88px; height: 88px; object-fit: cover; border-radius: 8px; }
.og-wl-item__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.og-wl-item__name { color: var(--ogwl-text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.og-wl-item__name:hover { color: var(--ogwl-link); }
.og-wl-item__price { color: var(--ogwl-muted); }
.og-wl-item__stock { color: #fbbf24; font-size: .9em; }
.og-wl-item__actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 150px; }

.og-wl-form { margin: 0; }
.og-wl-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	box-sizing: border-box;
	padding: 8px 16px;
	border: 1px solid var(--ogwl-link);
	border-radius: var(--ogwl-radius);
	background: transparent;
	color: var(--ogwl-text);
	font: inherit;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
.og-wl-button:hover { border-color: var(--ogwl-accent); color: var(--ogwl-text); }
.og-wl-button:focus-visible { outline: 2px solid var(--ogwl-accent); outline-offset: 2px; }
.og-wl-button--primary { background: var(--ogwl-accent); border-color: var(--ogwl-accent); color: #fff; }
.og-wl-button--primary:hover { background: #1f7ae8; color: #fff; }
.og-wl-button--quiet { border-color: var(--ogwl-border); color: var(--ogwl-muted); font-weight: 400; }
.og-wl-button--quiet:hover { border-color: var(--ogwl-heart); color: var(--ogwl-text); }

.og-wl-bar { display: flex; justify-content: flex-end; margin-top: 16px; }
.og-wl-bar .og-wl-form { width: auto; }
.og-wl-bar .og-wl-button { width: auto; }

.og-wl-empty { padding: 24px; border: 1px dashed var(--ogwl-border); border-radius: var(--ogwl-radius); text-align: center; color: var(--ogwl-muted); }
.og-wl-empty .og-wl-button { width: auto; }

.og-wl-share { margin-top: 32px; padding: 16px; border: 1px solid var(--ogwl-border); border-radius: var(--ogwl-radius); background: var(--ogwl-surface-2); }
.og-wl-share__title { margin: 0 0 8px; font-size: 1.1em; color: var(--ogwl-text); }
.og-wl-share__row { display: flex; gap: 8px; align-items: stretch; margin-top: 8px; }
.og-wl-share__row .og-wl-button { width: auto; white-space: nowrap; }
.og-wl-share__url { flex: 1 1 auto; min-width: 0; min-height: 44px; box-sizing: border-box; padding: 8px 12px; border: 1px solid var(--ogwl-border); border-radius: var(--ogwl-radius); background: var(--ogwl-surface); color: var(--ogwl-text); font: inherit; font-size: .9em; }
.og-wl-share > .og-wl-form .og-wl-button { width: auto; }

/* ---- standalone pages (guest list, shared list) ---- */
.og-wl-page { padding: 32px 16px 48px; }
.og-wl-page__inner { max-width: 960px; margin: 0 auto; }
.og-wl-page__title { margin: 0 0 16px; }
.og-wl-page__intro { color: var(--ogwl-muted); }

/* ---- phone (375px and up) ---- */
@media (max-width: 600px) {
	.og-wl-item { grid-template-columns: 72px 1fr; gap: 12px; }
	.og-wl-item__image img { width: 72px; height: 72px; }
	.og-wl-item__actions { grid-column: 1 / -1; flex-direction: row; min-width: 0; }
	.og-wl-item__actions > * { flex: 1 1 0; }
	.og-wl-bar .og-wl-form, .og-wl-bar .og-wl-button { width: 100%; }
	.og-wl-share__row { flex-wrap: wrap; }
	.og-wl-share__row .og-wl-button, .og-wl-share__row .og-wl-form { flex: 1 1 auto; }
	.og-wl-share__url { flex-basis: 100%; }
	.og-wl-page { padding: 24px 16px 40px; }
}
