/**
 * GiaSach Cart Success V1.4
 */

.gso-cart-success-wrap,
.gso-cart-success-wrap * {
	box-sizing: border-box;
}

.gso-cart-success-wrap {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
	margin: 0;
}

.gso-cart-added-button,
.gso-cart-view-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 9px;
	flex: 1 1 210px;
	min-height: 50px;
	margin: 0 !important;
	padding: 0 22px !important;
	border-radius: 8px !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	text-align: center;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: none !important;
}

.gso-cart-added-button {
	border: 2px solid #16a34a !important;
	background: #ffffff !important;
	background-image: none !important;
	color: #15803d !important;
	cursor: default !important;
	pointer-events: none;
}

.gso-cart-added-button::before {
	content: "✓";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 23px;
	width: 23px;
	height: 23px;
	border-radius: 50%;
	background: #16a34a;
	color: #ffffff;
	font-size: 15px;
	font-weight: 900;
	line-height: 1;
}

.gso-cart-view-button {
	border: 2px solid #ef4035 !important;
	background: #ef4035 !important;
	background-image: none !important;
	color: #ffffff !important;
	cursor: pointer;
	transition:
		background-color .18s ease,
		border-color .18s ease,
		transform .18s ease,
		box-shadow .18s ease;
}

.gso-cart-view-button:hover,
.gso-cart-view-button:focus-visible {
	border-color: #d93228 !important;
	background: #d93228 !important;
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 7px 18px rgba(239, 64, 53, .22) !important;
	outline: none;
}

.gso-cart-is-adding {
	opacity: .72 !important;
	cursor: wait !important;
	pointer-events: none !important;
}

.gso-cart-inline-error {
	width: 100%;
	margin: 0 0 10px;
	padding: 10px 13px;
	border: 1px solid #fecaca;
	border-radius: 8px;
	background: #fff7f7;
	color: #b42318;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.45;
}

a.added_to_cart.wc-forward:not(.gso-cart-view-button) {
	display: none !important;
}

.woocommerce-notices-wrapper:empty {
	display: none !important;
}

/* Trang chi tiết sản phẩm */
.single-product form.cart.gso-cart-success-active {
	display: block !important;
}

.single-product form.cart .gso-cart-success-wrap {
	width: 100%;
}

.single-product form.cart .gso-cart-added-button,
.single-product form.cart .gso-cart-view-button {
	flex: 1 1 calc(50% - 5px);
}

/* Trang chủ, shop, danh mục, tìm kiếm */
.woocommerce ul.products li.product .gso-cart-success-wrap,
.woocommerce-page ul.products li.product .gso-cart-success-wrap {
	margin-top: 8px;
}

.woocommerce ul.products li.product .gso-cart-added-button,
.woocommerce ul.products li.product .gso-cart-view-button,
.woocommerce-page ul.products li.product .gso-cart-added-button,
.woocommerce-page ul.products li.product .gso-cart-view-button {
	min-height: 44px;
	padding-right: 14px !important;
	padding-left: 14px !important;
	font-size: 13px !important;
}

@media (max-width: 575px) {
	.gso-cart-added-button,
	.gso-cart-view-button,
	.single-product form.cart .gso-cart-added-button,
	.single-product form.cart .gso-cart-view-button {
		flex: 1 1 100%;
		width: 100%;
	}
}
