/*
 * Theme wishlist (woocommerce/wishlist/). Brand green #82b440 as elsewhere.
 */

/* Product card heart: filled + green once the product is on the list. */
.item-description .meta_info a.add_to_wishlist.added,
.item-description .meta_info a.add_to_wishlist.added i {
	color: #82b440;
}

a.add_to_wishlist.loading,
.organik-wishlist-button.loading {
	opacity: 0.5;
	pointer-events: none;
}

/*
 * Single product page: sits in the Wishlist/Compare row, floated like the
 * Compare link beside it so the two line up.
 */
div.product .summary .organik-wishlist-single {
	float: left;
	margin-right: 20px;
	line-height: 35px;
}

.organik-wishlist-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #666;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}

.organik-wishlist-button i {
	font-size: 16px;
}

.organik-wishlist-button:hover,
.organik-wishlist-button:focus,
.organik-wishlist-button.added {
	color: #82b440;
}

/* Wishlist page */
.organik-wishlist {
	margin: 10px 0 50px;
}

.organik-wishlist-table {
	width: 100%;
	border: 1px solid #ebebeb;
	border-collapse: collapse;
}

.organik-wishlist-table th,
.organik-wishlist-table td {
	padding: 15px;
	border-bottom: 1px solid #ebebeb;
	text-align: left;
	vertical-align: middle;
}

.organik-wishlist-table thead th {
	background: #f9f9f9;
	font-weight: 700;
	text-transform: uppercase;
	color: #282828;
}

.organik-wishlist-table .product-remove {
	width: 50px;
	text-align: center;
}

.organik-wishlist-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 1px solid #ebebeb;
	border-radius: 50%;
	color: #999;
	font-size: 20px;
	line-height: 1;
	text-decoration: none;
}

.organik-wishlist-remove:hover {
	border-color: #e2401c;
	background: #e2401c;
	color: #fff;
}

.organik-wishlist-table .product-thumbnail {
	width: 110px;
}

.organik-wishlist-table .product-thumbnail img {
	display: block;
	width: 80px;
	height: auto;
}

.organik-wishlist-table .product-name a {
	color: #282828;
	font-weight: 700;
}

.organik-wishlist-table .product-name a:hover {
	color: #82b440;
}

.organik-wishlist-table .product-price {
	color: #82b440;
	font-weight: 700;
}

.organik-wishlist-table .in-stock {
	color: #82b440;
}

.organik-wishlist-table .out-of-stock {
	color: #e2401c;
}

.organik-wishlist-table .product-add-to-cart {
	text-align: right;
}

.organik-wishlist-table .product-add-to-cart .added_to_cart {
	display: block;
	margin-top: 6px;
	font-size: 13px;
}

.organik-wishlist-table tr.removing {
	opacity: 0.4;
}

.organik-wishlist-empty {
	padding: 60px 20px;
	border: 1px solid #ebebeb;
	text-align: center;
}

.organik-wishlist-empty .fa {
	font-size: 48px;
	color: #82b440;
}

.organik-wishlist-empty h2 {
	margin: 15px 0 10px;
	font-size: 24px;
	text-transform: uppercase;
}

.organik-wishlist-empty p {
	margin-bottom: 25px;
	color: #666;
}

/* Phones: each wishlist row becomes a card. */
@media (max-width: 767px) {
	.organik-wishlist-table thead {
		display: none;
	}

	.organik-wishlist-table,
	.organik-wishlist-table tbody,
	.organik-wishlist-table tr,
	.organik-wishlist-table td {
		display: block;
		width: 100%;
	}

	.organik-wishlist-table tr {
		position: relative;
		padding: 15px 15px 15px 110px;
		min-height: 110px;
		border-bottom: 1px solid #ebebeb;
	}

	.organik-wishlist-table td {
		padding: 3px 0;
		border: 0;
		text-align: left;
	}

	.organik-wishlist-table .product-thumbnail {
		position: absolute;
		top: 15px;
		left: 15px;
		width: 80px;
	}

	.organik-wishlist-table .product-remove {
		position: absolute;
		top: 10px;
		right: 10px;
		width: auto;
	}

	.organik-wishlist-table .product-name {
		padding-right: 36px;
	}

	.organik-wishlist-table .product-add-to-cart {
		padding-top: 10px;
		text-align: left;
	}
}

/*
 * Line each cell up under its column heading. The theme's generic
 * ".shop_table" rules centre table cells (and colour the Price heading
 * green), which left the values offset from the left-aligned headings.
 */
.organik-wishlist .organik-wishlist-table th,
.organik-wishlist .organik-wishlist-table td {
	text-align: left !important;
}

.organik-wishlist .organik-wishlist-table thead th {
	color: #282828 !important;
}

.organik-wishlist .organik-wishlist-table .product-remove {
	text-align: center !important;
}

.organik-wishlist .organik-wishlist-table .product-add-to-cart {
	text-align: right !important;
}

@media (max-width: 767px) {
	.organik-wishlist .organik-wishlist-table .product-add-to-cart {
		text-align: left !important;
	}
}

/* Button label never breaks onto two lines ("Select / Options"). */
.organik-wishlist .organik-wishlist-table .product-add-to-cart .button {
	white-space: nowrap;
}

/*
 * Tablets / iPad (768-1199px): the desktop table squeezed price ranges and
 * the button label onto two lines. Tighter cells and a smaller thumbnail
 * leave room to keep price and button on one line each.
 */
@media (min-width: 768px) and (max-width: 1199px) {
	.organik-wishlist .organik-wishlist-table th,
	.organik-wishlist .organik-wishlist-table td {
		padding: 12px 8px;
	}

	.organik-wishlist .organik-wishlist-table .product-remove {
		width: 40px;
	}

	.organik-wishlist .organik-wishlist-table .product-thumbnail {
		width: 76px;
	}

	.organik-wishlist .organik-wishlist-table .product-thumbnail img {
		width: 60px;
	}

	.organik-wishlist .organik-wishlist-table .product-price {
		white-space: nowrap;
	}

	.organik-wishlist .organik-wishlist-table .product-add-to-cart .button {
		padding: 8px 12px;
		font-size: 14px;
	}
}
