/* Cart page — coupon field + notice layout */

#qodef-woo-page.qodef--cart .woocommerce-cart-form .shop_table td.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px 16px;
	position: relative;
}

#qodef-woo-page.qodef--cart .woocommerce-cart-form .shop_table td.actions .coupon {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	width: auto;
	max-width: 100%;
	flex: 1 1 auto;
	min-width: 0;
}

#qodef-woo-page.qodef--cart .woocommerce-cart-form .shop_table td.actions .coupon input[type="text"] {
	margin-right: 0;
}

#qodef-woo-page.qodef--cart .woocommerce-cart-form .shop_table td.actions > .button {
	float: none;
	margin-left: auto;
}

/* Coupon / cart notices sit on their own row under the apply controls */
#qodef-woo-page.qodef--cart .woocommerce-notices-wrapper,
#qodef-woo-page.qodef--cart .woocommerce-cart-form .shop_table td.actions .woocommerce-error,
#qodef-woo-page.qodef--cart .woocommerce-cart-form .shop_table td.actions .woocommerce-message,
#qodef-woo-page.qodef--cart .woocommerce-cart-form .shop_table td.actions .woocommerce-info,
#qodef-woo-page.qodef--cart .woocommerce-cart-form .shop_table td.actions .coupon .woocommerce-error,
#qodef-woo-page.qodef--cart .woocommerce-cart-form .shop_table td.actions .coupon .woocommerce-message,
#qodef-woo-page.qodef--cart .woocommerce-cart-form .shop_table td.actions .coupon .woocommerce-info {
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	order: 5;
	margin: 4px 0 0 !important;
}

#qodef-woo-page.qodef--cart .woocommerce-error,
#qodef-woo-page.qodef--cart .woocommerce-message,
#qodef-woo-page.qodef--cart .woocommerce-info {
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px !important;
	border-radius: 10px;
	font-family: "Manrope", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	color: #0c533d;
	background: #eef6f2;
	border: 1px solid rgba(12, 83, 61, 0.16);
}

#qodef-woo-page.qodef--cart .woocommerce-error {
	color: #8a2f2f;
	background: #fdf2f2;
	border-color: rgba(138, 47, 47, 0.18);
}

#qodef-woo-page.qodef--cart .woocommerce-message::before,
#qodef-woo-page.qodef--cart .woocommerce-info::before,
#qodef-woo-page.qodef--cart .woocommerce-error::before {
	content: "";
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	background: no-repeat center / 18px 18px;
}

#qodef-woo-page.qodef--cart .woocommerce-message::before,
#qodef-woo-page.qodef--cart .woocommerce-info::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='10' fill='%230c533d'/%3E%3Cpath d='M7.5 12.2l3 3 6-6.5' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

#qodef-woo-page.qodef--cart .woocommerce-error::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='10' fill='%238a2f2f'/%3E%3Cpath d='M8 8l8 8M16 8l-8 8' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

@media (max-width: 768px) {
	#qodef-woo-page.qodef--cart .woocommerce-cart-form .shop_table td.actions > .button {
		margin-left: 0;
		width: 100%;
	}

	#qodef-woo-page.qodef--cart .woocommerce-cart-form .shop_table td.actions .coupon {
		width: 100%;
	}

	#qodef-woo-page.qodef--cart .woocommerce-cart-form .shop_table td.actions .coupon input[type="text"] {
		flex: 1 1 auto;
		max-width: none;
		width: auto;
	}
}
