/* Neutral defaults that inherit theme colors; geometry reserved server-side (zero CLS). */

/* The hidden attribute is our state mechanism (wp-bind--hidden); it must beat
   any display: rule below — the UA's [hidden] style loses to author classes. */
.wishmio [hidden],
.wishmio[hidden],
.wishmio-list [hidden],
.wishmio-list[hidden],
.wishmio-share[hidden],
.wishmio-alerts [hidden],
.wishmio-count[hidden] {
	display: none !important;
}

.wishmio-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.wishmio {
	display: inline-block;
	margin: 0.5em 0;
}

.wishmio-button {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.5em 1em;
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 999px;
	color: inherit;
	font: inherit;
	cursor: pointer;
	min-width: 10.5em; /* fits both labels: no reflow on state flip */
	justify-content: center;
}

.wishmio-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.wishmio-heart__fill {
	opacity: 0;
	transition: opacity 120ms ease-in-out;
}

.wishmio-button[aria-pressed="true"] .wishmio-heart__fill {
	opacity: 1;
}

.wishmio-share {
	display: flex;
	align-items: center;
	gap: 0.5em;
	flex-wrap: wrap;
	margin-bottom: 1em;
}

.wishmio-share__active {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	flex-wrap: wrap;
}

#wishmio-share-url {
	min-width: 18em;
	font-size: 0.85em;
}

.wishmio-share__off {
	background: transparent;
	border: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
	text-decoration: underline;
}

.wishmio-alerts {
	margin-bottom: 1em;
}

.wishmio-alerts__pitch {
	margin: 0 0 0.5em;
}

#wishmio-alerts-email {
	min-width: 18em;
	margin-right: 0.5em;
}

.wishmio-list__items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wishmio-list__row {
	display: flex;
	align-items: center;
	gap: 1em;
	padding: 0.75em 0;
	border-bottom: 1px solid rgba(128, 128, 128, 0.25);
}

.wishmio-list__image {
	width: 64px;
	height: 64px;
	object-fit: cover;
	flex-shrink: 0;
}

.wishmio-list__info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.15em;
	min-width: 0;
}

.wishmio-list__name {
	font-weight: 600;
	text-decoration: none;
}

.wishmio-list__oos {
	font-size: 0.85em;
	opacity: 0.7;
}

.wishmio-list__actions {
	display: flex;
	align-items: center;
	gap: 0.5em;
	flex-shrink: 0;
}

.wishmio-list__remove {
	background: transparent;
	border: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
	text-decoration: underline;
	padding: 0.25em;
}

@media (max-width: 480px) {
	.wishmio-list__row {
		flex-wrap: wrap;
	}
}
