/* Odisal Shop: saved items (the heart, the note and the saved page). */

.oshop-save {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 14px;
	margin: 12px 0 0;
	border: 1px solid var(--tc-line, rgba(127, 127, 127, 0.4));
	border-radius: 999px;
	background: transparent;
	color: var(--tc-text, inherit);
	font: inherit;
	font-size: 15px;
	cursor: pointer;
}

.oshop-save svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	transition: fill 0.15s ease, transform 0.2s ease;
}

.oshop-save[aria-pressed="true"] svg {
	fill: currentColor;
}

.oshop-save[aria-pressed="true"] {
	border-color: var(--tc-text, currentColor);
}

.oshop-save:focus-visible {
	outline: 2px solid var(--tc-accent, currentColor);
	outline-offset: 3px;
}

.oshop-save--card {
	margin-top: 8px;
	padding: 0 12px;
	font-size: 14px;
}

.oshop-saved-note {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 99999;
	padding: 10px 18px;
	border-radius: 999px;
	background: rgba(20, 20, 22, 0.92);
	color: #fff;
	font-size: 14px;
	opacity: 0;
	transform: translate(-50%, 8px);
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.oshop-saved-note.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
}

.oshop-saved__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 24px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.oshop-saved__item {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.oshop-saved__card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: inherit;
	text-decoration: none;
}

.oshop-saved__card img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--tc-radius, 8px);
}

.oshop-saved__name {
	font-weight: 600;
}

.oshop-saved__price {
	color: inherit;
	opacity: 0.8;
	font-size: 15px;
}

.oshop-saved__remove,
.oshop-saved__link {
	align-self: flex-start;
	min-height: 32px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	opacity: 0.8;
	font: inherit;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
}

.oshop-saved__btn {
	min-height: 44px;
	padding: 0 22px;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.oshop-saved__shared {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin: 0 0 24px;
}

.oshop-saved__shared p {
	flex: 1 1 100%;
	margin: 0;
}

.oshop-saved__note {
	color: inherit;
	opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
	.oshop-save svg,
	.oshop-saved-note {
		transition: none;
	}
}

/* Icon-only heart, e.g. on a product photo. */
.oshop-save--icon {
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	justify-content: center;
	border: 0;
	background: rgba(255, 255, 255, 0.85);
	color: #111;
	backdrop-filter: blur(6px);
}

.oshop-save--icon .oshop-save__text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.oshop-save--icon[aria-pressed="true"] {
	color: #c62828;
}

/* A neutral focus ring on the photo heart, whatever its colour. */
.oshop-save--icon:focus-visible {
	outline-color: #111;
}

.oshop-saved__buy {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 18px;
	border-radius: 999px;
	background: #1d1d1f;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
}

.oshop-saved__buy:hover,
.oshop-saved__buy:focus-visible {
	background: #000;
	color: #fff;
}

/* "Saved for later" inside the pop-up basket. */
.oshop-drawer__saved {
	flex: none;
	padding: 16px 24px;
	border-top: 1px solid var(--tc-line, rgba(127, 127, 127, 0.25));
}

.oshop-drawer__saved-title {
	margin: 0 0 10px;
	font-size: calc(13px + var(--oshop-bump, 0px));
	font-weight: 500;
	letter-spacing: var(--oshop-track, 0.08em);
	text-transform: var(--oshop-case, uppercase);
	opacity: 0.75;
}

.oshop-drawer__saved ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.oshop-drawer__saved li {
	display: flex;
	align-items: center;
	gap: 12px;
}

.oshop-drawer__saved-link {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.oshop-drawer__saved-link img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 6px;
}

.oshop-drawer__saved-name {
	font-size: 15px;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.oshop-drawer__saved-add {
	flex: none;
	min-height: 36px;
	padding: 8px 14px;
	border: 1px solid currentColor;
	border-radius: 999px;
	color: inherit;
	font-size: 13px;
	line-height: 1.2;
	text-decoration: none;
}

.oshop-drawer__saved-add.added,
.oshop-drawer__saved li .added_to_cart {
	display: none;
}

.oshop-drawer__saved-all {
	display: inline-block;
	margin-top: 10px;
	color: inherit;
	font-size: 14px;
}
