/* ==========================================================================
   LikeInk — notices and field validation, shared by cart + checkout.

   WooCommerce's stock notices come with the theme's own banner styling (large
   padding, coloured blocks, a tick/cross pseudo-element). These rules restate
   them in the checkout's language: a quiet tinted panel with a coloured spine,
   3px corners to match the buttons.

   Its own file because likeink-cart.css and likeink-checkout-2.css are both at
   this host's ~14.8 KB upload ceiling.
   ========================================================================== */

.likeink-cart-wrap .woocommerce-error,
.likeink-cart-wrap .woocommerce-message,
.likeink-cart-wrap .woocommerce-info,
.likeink-checkout-wrap .woocommerce-error,
.likeink-checkout-wrap .woocommerce-message,
.likeink-checkout-wrap .woocommerce-info {
	list-style: none !important;
	margin: 0 0 20px !important;
	padding: 14px 16px !important;
	border-radius: 3px !important;
	font-size: 13px !important;
	line-height: 1.5 !important;
	color: var(--likeink-ink) !important;
	background: #fbf7f2 !important;
	border: 1px solid var(--likeink-border) !important;
	border-left: 3px solid var(--likeink-step) !important;
}

/* Errors take the alert colour on the spine only — the copy itself stays
   black, since the theme renders both the text and its <strong> field names
   in red, which is hard to read on the tinted panel. */
.likeink-cart-wrap .woocommerce-error,
.likeink-checkout-wrap .woocommerce-error {
	background: #fdf1ef !important;
	border-color: #f0cdc7 !important;
	border-left-color: var(--likeink-accent) !important;
}

.likeink-cart-wrap .woocommerce-error,
.likeink-cart-wrap .woocommerce-error li,
.likeink-cart-wrap .woocommerce-error li strong,
.likeink-cart-wrap .woocommerce-error a,
.likeink-checkout-wrap .woocommerce-error,
.likeink-checkout-wrap .woocommerce-error li,
.likeink-checkout-wrap .woocommerce-error li strong,
.likeink-checkout-wrap .woocommerce-error a {
	color: #000 !important;
}

/* Success keeps the green from the trust badges. */
.likeink-cart-wrap .woocommerce-message,
.likeink-checkout-wrap .woocommerce-message {
	background: var(--likeink-success-bg) !important;
	border-color: #cfe3d8 !important;
	border-left-color: var(--likeink-success) !important;
}

/* The theme prints a tick/cross glyph before every notice. */
.likeink-cart-wrap .woocommerce-error::before,
.likeink-cart-wrap .woocommerce-message::before,
.likeink-cart-wrap .woocommerce-info::before,
.likeink-checkout-wrap .woocommerce-error::before,
.likeink-checkout-wrap .woocommerce-message::before,
.likeink-checkout-wrap .woocommerce-info::before {
	display: none !important;
	content: none !important;
}

.likeink-cart-wrap .woocommerce-error li,
.likeink-checkout-wrap .woocommerce-error li {
	margin: 0 0 6px !important;
	padding: 0 !important;
	list-style: none !important;
}

.likeink-cart-wrap .woocommerce-error li:last-child,
.likeink-checkout-wrap .woocommerce-error li:last-child {
	margin-bottom: 0 !important;
}

.likeink-cart-wrap .woocommerce-error li strong,
.likeink-checkout-wrap .woocommerce-error li strong {
	font-weight: 600 !important;
}

/* The notice group WooCommerce injects above the form on failed submit. */
.likeink-checkout-wrap .woocommerce-NoticeGroup {
	margin-bottom: 20px;
}

/* ---------- Field-level validation ----------
   WooCommerce flags each row while typing; mark the field itself rather than
   relying on the theme's red glow. */

.likeink-checkout-wrap .form-row.woocommerce-invalid .input-text,
.likeink-checkout-wrap .form-row.woocommerce-invalid select,
.likeink-checkout-wrap .form-row.woocommerce-invalid textarea {
	border-color: var(--likeink-accent) !important;
	background-color: #fffbfa !important;
}

.likeink-checkout-wrap .form-row.woocommerce-invalid label {
	color: var(--likeink-accent) !important;
}

/* Valid rows stay neutral — a green tick on every filled field is noise. */
.likeink-checkout-wrap .form-row.woocommerce-validated .input-text,
.likeink-checkout-wrap .form-row.woocommerce-validated select {
	border-color: var(--likeink-border-strong) !important;
}

/* The required asterisk. */
.likeink-checkout-wrap .required {
	color: var(--likeink-accent) !important;
	text-decoration: none !important;
}
