/*
 * Awesome Wishlist storefront. --awish-color comes from the settings.
 *
 * Every selector starts with :root. Themes style bare buttons with rules
 * such as Hello Elementor's [type=button] and Elementor kits'
 * .elementor-kit-N button, which would otherwise recolour the heart and the
 * page's controls; the extra pseudo-class outranks them without !important.
 */

:root .awish-wrap {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
}

:root .awish-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--awish-color, #000);
	font: inherit;
	line-height: 1;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

:root .awish-btn:hover,
:root .awish-btn:focus {
	background: transparent;
	color: var(--awish-color, #000);
}

:root .awish-btn:focus-visible {
	outline: 2px solid var(--awish-color, #000);
	outline-offset: 2px;
}

/* --awish-size comes from the size attribute or Elementor's size control. */
:root .awish-heart {
	display: block;
	flex: none;
	width: var(--awish-size, 20px);
	height: var(--awish-size, 20px);
	fill: currentColor;
	transition: transform 0.15s ease;
}

:root .awish-heart__solid,
:root .awish-btn.is-active .awish-heart__line {
	display: none;
}

:root .awish-btn.is-active .awish-heart__solid {
	display: inline;
}

:root .awish-btn:active .awish-heart {
	transform: scale(0.85);
}

:root .awish-btn.is-busy {
	opacity: 0.5;
	pointer-events: none;
}

:root .awish-btn--icon .awish-btn__label,
:root .awish-btn--card .awish-btn__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* The white square in the top corner of a product image. */
:root .awish-btn--card,
:root .awish-btn--card:hover,
:root .awish-btn--card:focus {
	justify-content: center;
	width: calc(var(--awish-size, 20px) + 24px);
	height: calc(var(--awish-size, 20px) + 24px);
	padding: 0;
	background: #fff;
}

:root .awish-btn--text {
	padding: 8px 0;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Header counter */

:root .awish-counter {
	position: relative;
	display: inline-flex;
	align-items: center;
	color: var(--awish-color, #000);
	text-decoration: none;
}

:root .awish-counter__n {
	position: absolute;
	top: -6px;
	right: -9px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--awish-color, #000);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 17px;
	text-align: center;
	box-sizing: border-box;
}

:root .awish-counter.is-empty:not(.awish-counter--show-zero) .awish-counter__n {
	display: none;
}

/* List picker */

:root .awish-pop {
	position: fixed;
	z-index: 100000;
	width: 290px;
	max-width: calc(100vw - 16px);
	padding: 14px;
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	color: #111;
	font-size: 15px;
	box-sizing: border-box;
}

:root .awish-pop--sheet {
	top: auto !important;
	right: 0;
	bottom: 0;
	left: 0 !important;
	width: 100%;
	max-width: none;
	max-height: 75vh;
	overflow-y: auto;
	padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
	border-radius: 14px 14px 0 0;
}

:root .awish-pop__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

:root .awish-pop__close,
:root .awish-pop__close:hover,
:root .awish-pop__close:focus {
	padding: 0 6px;
	border: 0;
	background: none;
	color: inherit;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

:root .awish-pop__lists {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

:root .awish-pop__list {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 6px;
	border: 0;
	border-radius: 6px;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

:root .awish-pop__list:hover,
:root .awish-pop__list:focus {
	background: #f4f4f4;
	color: inherit;
}

:root .awish-pop__check {
	flex: none;
	width: 18px;
	height: 18px;
	border: 1.5px solid #111;
	border-radius: 4px;
	box-sizing: border-box;
}

:root .awish-pop__list[aria-pressed="true"] .awish-pop__check {
	background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 14px no-repeat;
}

:root .awish-pop__name {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

:root .awish-pop__n {
	opacity: 0.55;
	font-size: 13px;
}

:root .awish-pop__new {
	display: flex;
	gap: 6px;
	margin: 0;
}

:root .awish-pop__new input {
	flex: 1;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font: inherit;
	font-size: 16px;
}

:root .awish-pop__new button,
:root .awish-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 16px;
	border: 1px solid var(--awish-color, #000);
	border-radius: 6px;
	background: var(--awish-color, #000);
	color: #fff;
	font: inherit;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

:root .awish-button:hover,
:root .awish-button:focus,
:root .awish-pop__new button:hover,
:root .awish-pop__new button:focus {
	background: #333;
	color: #fff;
}

:root .awish-button--ghost {
	background: transparent;
	color: var(--awish-color, #000);
}

:root .awish-button--ghost:hover,
:root .awish-button--ghost:focus {
	background: #f4f4f4;
	color: var(--awish-color, #000);
}

:root .awish-button.is-disabled,
:root .awish-button:disabled {
	border-color: #ccc;
	background: #eee;
	color: #777;
	cursor: default;
}

:root .awish-pop__view {
	display: inline-block;
	margin-top: 10px;
	color: inherit;
	font-size: 14px;
}

/* Toast */

:root .awish-toast {
	position: fixed;
	z-index: 100001;
	bottom: 20px;
	left: 50%;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	max-width: calc(100vw - 32px);
	padding: 12px 18px;
	border-radius: 8px;
	background: #111;
	color: #fff;
	font-size: 14px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	transform: translate(-50%, 140%);
	transition: transform 0.25s ease;
	box-sizing: border-box;
}

:root .awish-toast.is-on {
	transform: translate(-50%, 0);
}

:root .awish-toast__act {
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

:root .awish-toast__act:hover,
:root .awish-toast__act:focus {
	background: none;
	color: #fff;
}

/* Wishlist page */

:root .awish-page {
	min-height: 120px;
}

:root .awish-loading {
	width: 28px;
	height: 28px;
	margin: 40px auto;
	border: 3px solid #ddd;
	border-top-color: #111;
	border-radius: 50%;
	animation: awish-spin 0.8s linear infinite;
}

@keyframes awish-spin {
	to {
		transform: rotate(360deg);
	}
}

:root .awish-app {
	color: inherit;
}

:root .awish-tabs {
	display: flex;
	gap: 6px;
	margin-bottom: 18px;
	padding-bottom: 4px;
	overflow-x: auto;
	scrollbar-width: thin;
}

:root .awish-tab {
	flex: none;
	padding: 8px 14px;
	border: 1px solid #ddd;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

:root .awish-tab:hover,
:root .awish-tab:focus {
	border-color: #111;
	background: #fff;
	color: #111;
}

:root .awish-tab[aria-selected="true"] {
	border-color: #111;
	background: #111;
	color: #fff;
}

:root .awish-tab__n {
	opacity: 0.6;
}

:root .awish-tab--new {
	border-style: dashed;
}

:root .awish-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	margin-bottom: 12px;
}

:root .awish-title {
	margin: 0;
}

:root .awish-kicker {
	margin: 0 0 4px;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.6;
}

:root .awish-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
}

:root .awish-vis {
	display: inline-flex;
	white-space: nowrap;
	align-items: center;
	gap: 6px;
	font-size: 14px;
}

:root .awish-vis select,
:root .awish-move {
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	font: inherit;
	font-size: 14px;
}

:root .awish-link {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

:root .awish-link:hover,
:root .awish-link:focus {
	background: none;
	color: inherit;
}

:root .awish-link--danger {
	color: #b3261e;
}

:root .awish-link--danger:hover,
:root .awish-link--danger:focus {
	color: #b3261e;
}

:root .awish-share {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
	padding: 12px;
	border-radius: 8px;
	background: #f6f6f6;
}

:root .awish-share[hidden] {
	display: none;
}

:root .awish-share input {
	flex: 1 1 260px;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	font-size: 14px;
}

:root .awish-inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
}

:root .awish-inline input {
	min-width: 200px;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font: inherit;
	font-size: 16px;
}

:root .awish-note {
	margin: 0 0 16px;
	padding: 10px 12px;
	border-radius: 6px;
	background: #f6f6f6;
	font-size: 14px;
}

:root .awish-empty {
	margin: 24px 0 12px;
}

:root .awish-items {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid #eee;
}

:root .awish-item {
	display: grid;
	grid-template-columns: 96px 1fr auto;
	align-items: center;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid #eee;
	background: #fff;
}

:root .awish-app--shared .awish-item {
	grid-template-columns: 96px 1fr auto;
}

:root .awish-item.is-dragging {
	position: relative;
	z-index: 2;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	opacity: 0.95;
}

:root .awish-item.is-gone {
	grid-template-columns: 1fr auto;
	opacity: 0.6;
}

/* Reordering: up, handle, down, at the foot of the row's actions. */
:root .awish-reorder {
	display: flex;
	align-items: center;
	margin-left: auto;
}

:root .awish-up,
:root .awish-down {
	min-width: 44px;
	min-height: 44px;
	padding: 4px;
	border: 0;
	background: none;
	color: inherit;
	font-size: 16px;
	cursor: pointer;
}

:root .awish-up:disabled,
:root .awish-down:disabled {
	opacity: 0.25;
	cursor: default;
}

:root .awish-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

:root .awish-drag {
	min-width: 44px;
	min-height: 44px;
	padding: 0 4px;
	border: 0;
	background: none;
	color: #999;
	font-size: 18px;
	letter-spacing: -4px;
	cursor: grab;
	touch-action: none;
}

:root .awish-drag:hover,
:root .awish-drag:focus {
	background: none;
	color: #111;
}

:root .awish-item__img img {
	display: block;
	width: 96px;
	height: 96px;
	object-fit: contain;
}

:root .awish-item__main {
	min-width: 0;
	font-size: 14px;
	line-height: 1.45;
}

:root .awish-item__name {
	color: inherit;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}

:root .awish-item__var,
:root .awish-item__added {
	opacity: 0.65;
}

:root .awish-item__price {
	margin: 2px 0;
}

:root .awish-item__change--down {
	color: #1b7a3a;
}

:root .awish-item__change--up {
	color: #8a5a00;
}

:root .awish-item__stock.is-out {
	color: #b3261e;
}

:root .awish-item__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

:root .awish-foot {
	display: flex;
	justify-content: flex-end;
	margin-top: 18px;
}

@media (max-width: 700px) {
	:root .awish-item {
		grid-template-columns: 72px 1fr;
		grid-template-areas:
			"img main"
			"act act";
		align-items: start;
		gap: 10px 12px;
	}

	:root .awish-app--shared .awish-item {
		grid-template-columns: 72px 1fr;
		grid-template-areas:
			"img main"
			"act act";
	}

	:root .awish-item__img {
		grid-area: img;
	}

	:root .awish-item__img img {
		width: 72px;
		height: 72px;
	}

	:root .awish-item__main {
		grid-area: main;
	}

	:root .awish-item__actions {
		grid-area: act;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: flex-start;
	}

	:root .awish-item__actions .awish-button {
		flex: 1 1 auto;
	}

	:root .awish-head {
		align-items: flex-start;
		flex-direction: column;
	}

	:root .awish-foot .awish-button {
		width: 100%;
	}
}
