/*
Theme Name: TheGem Child
Description: Multi-Purpose Wordpress Theme
Author: Codex Themes.
Theme URI: http://codex-themes.com/thegem/
Author URI: http://codex-themes.com/thegem/
Template: thegem
Version: 1.0
Tags: one-column, two-columns, left-sidebar, right-sidebar, responsive-layout, custom-background, custom-colors, custom-header, custom-menu, featured-images, flexible-header, full-width-template, theme-options, translation-ready, dark, light
License: GNU General Public License
License URI: license.txt
*/

/* WooCommerce floating popup notices */
:root {
	--wc-popup-notice-top: 16px;
}

body.admin-bar {
	--wc-popup-notice-top: 48px;
}

@media (max-width: 782px) {
	body.admin-bar {
		--wc-popup-notice-top: 60px;
	}
}

#wc-popup-notices {
	position: fixed;
	top: var(--wc-popup-notice-top);
	right: 16px;
	z-index: 999999;
	width: min(420px, calc(100vw - 32px));
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
}

#wc-popup-notices .wc-popup-notice {
	position: relative;
	margin: 0;
	padding: 14px 44px 14px 16px;
	background: #f5f5f5;
	color: #222;
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
	pointer-events: auto;
	animation: wcNoticeIn 0.2s ease-out;
}

#wc-popup-notices .wc-popup-notice--success {
	background: #ecf8f1;
	color: #0f5132;
}

#wc-popup-notices .wc-popup-notice--info {
	background: #eef6ff;
	color: #1e4d8f;
}

#wc-popup-notices .wc-popup-notice--error {
	background: #fff1f1;
	color: #842029;
}

#wc-popup-notices .wc-popup-notice > .woocommerce-message,
#wc-popup-notices .wc-popup-notice > .woocommerce-info,
#wc-popup-notices .wc-popup-notice > .woocommerce-error {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
}

#wc-popup-notices .wc-popup-notice .wc-popup-notice__list {
	padding-left: 18px;
}

#wc-popup-notices .wc-popup-notice.is-closing {
	opacity: 0;
	transform: translateX(8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

#wc-popup-notices .wc-popup-notice .button {
	margin-left: 8px;
}

#wc-popup-notices .wc-popup-notice__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.08);
	color: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

#wc-popup-notices .wc-popup-notice__close:hover {
	background: rgba(0, 0, 0, 0.14);
}

@keyframes wcNoticeIn {
	from {
		opacity: 0;
		transform: translateX(10px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}




