/**
 * WooCommerce notices — Daily design.
 */

/* ── Wrapper ── */
.woocommerce-notices-wrapper,
.woocommerce .woocommerce-notices-wrapper,
.adult-store-woocommerce .woocommerce-notices-wrapper,
.adult-store-checkout-page .woocommerce-notices-wrapper,
.adult-store-pdp .woocommerce-notices-wrapper,
.woocommerce-account .woocommerce-notices-wrapper {
	width: 100%;
	max-width: 1180px;
	margin: 16px auto 12px;
	padding: 0 24px;
	box-sizing: border-box;
	position: relative;
	z-index: 5;
}

.woocommerce-notices-wrapper:empty {
	display: none;
	margin: 0;
	padding: 0;
}

/* ── Base notice ── */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce-page .woocommerce-message,
.woocommerce-page .woocommerce-info,
.woocommerce-page .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error,
.adult-store-checkout-page .woocommerce-message,
.adult-store-checkout-page .woocommerce-info,
.adult-store-checkout-page .woocommerce-error {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	width: 100%;
	max-width: 100%;
	margin: 0 0 12px;
	padding: 15px 18px 15px 52px;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	border-radius: 4px;
	border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(0, 0, 0, 0.22) 100%) !important;
	background-color: #121214 !important;
	box-shadow: none !important;
	color: rgba(242, 242, 242, 0.88) !important;
	font-size: 0.88rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	line-height: 1.55;
	list-style: none !important;
	box-sizing: border-box;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.woocommerce-error {
	align-items: flex-start;
	flex-direction: column;
}

.woocommerce-message:last-child,
.woocommerce-info:last-child,
.woocommerce-error:last-child {
	margin-bottom: 0;
}

/* Soft status accent — thin left edge, not WC green/red banner */
.woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-message,
.adult-store-checkout-page .woocommerce-message {
	border-left: 2px solid rgba(201, 168, 106, 0.72) !important;
}

.woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-error,
.adult-store-checkout-page .woocommerce-error {
	border-left: 2px solid rgba(220, 110, 110, 0.72) !important;
	background: linear-gradient(180deg, rgba(220, 90, 90, 0.07) 0%, rgba(0, 0, 0, 0.22) 100%) !important;
	background-color: #141012 !important;
}

.woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-info,
.adult-store-checkout-page .woocommerce-info {
	border-left: 2px solid rgba(201, 168, 106, 0.45) !important;
}

/* ── Kill WooCommerce font icons / green top bar leftovers ── */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-error::before,
.woocommerce-page .woocommerce-message::before,
.woocommerce-page .woocommerce-info::before,
.woocommerce-page .woocommerce-error::before {
	font-family: inherit !important;
	font-size: 0 !important;
	font-weight: 400 !important;
	speak: never;
	content: '' !important;
	position: absolute !important;
	top: 16px;
	left: 16px;
	display: block !important;
	width: 20px;
	height: 20px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background-color: transparent !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 18px 18px !important;
	line-height: 1 !important;
	text-indent: 0 !important;
	color: transparent !important;
	box-shadow: none !important;
}

/* Success — circle check */
.woocommerce-message::before,
.woocommerce .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-message::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a86a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8.2 12.2l2.4 2.4 5.2-5.3'/%3E%3C/svg%3E") !important;
}

/* Error — alert */
.woocommerce-error::before,
.woocommerce .woocommerce-error::before,
.woocommerce-notices-wrapper .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' stroke='%23d87a7a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.2'/%3E%3Ccircle cx='12' cy='16.2' r='0.9' fill='%23d87a7a' stroke='none'/%3E%3C/svg%3E") !important;
}

/* Info — info circle */
.woocommerce-info::before,
.woocommerce .woocommerce-info::before,
.woocommerce-notices-wrapper .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' stroke='%23c9a86a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 10.8v5'/%3E%3Ccircle cx='12' cy='7.8' r='0.9' fill='%23c9a86a' stroke='none'/%3E%3C/svg%3E") !important;
}

/* ── Text / lists ── */
.woocommerce-message,
.woocommerce-info {
	color: rgba(242, 242, 242, 0.88) !important;
}

.woocommerce-error li,
.woocommerce-info li,
.woocommerce-message li {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	background: transparent;
	list-style: none !important;
	color: inherit;
}

.woocommerce-error li:last-child,
.woocommerce-info li:last-child,
.woocommerce-message li:last-child {
	margin-bottom: 0;
}

.woocommerce-error li::before,
.woocommerce-info li::before,
.woocommerce-message li::before {
	content: none !important;
	display: none !important;
}

/* ── Inline links (Undo / product name / etc.) ── */
.woocommerce-message a:not(.button):not(.wc-forward),
.woocommerce-info a:not(.button):not(.wc-forward),
.woocommerce-error a:not(.button):not(.wc-forward),
.woocommerce-message a.restore-item,
.woocommerce-message a[href*='undo'],
.woocommerce-notices-wrapper a:not(.button):not(.wc-forward) {
	color: var(--adult-store-accent, #c9a86a) !important;
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-decoration: underline !important;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
	text-decoration-color: rgba(201, 168, 106, 0.55);
	box-shadow: none !important;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.woocommerce-message a:not(.button):not(.wc-forward):hover,
.woocommerce-info a:not(.button):not(.wc-forward):hover,
.woocommerce-error a:not(.button):not(.wc-forward):hover,
.woocommerce-message a.restore-item:hover,
.woocommerce-notices-wrapper a:not(.button):not(.wc-forward):hover {
	color: #e4c98a !important;
	text-decoration-color: rgba(228, 201, 138, 0.85);
}

.woocommerce-message a:not(.button):focus-visible,
.woocommerce-info a:not(.button):focus-visible,
.woocommerce-error a:not(.button):focus-visible {
	outline: 1px solid var(--adult-store-accent, #c9a86a);
	outline-offset: 3px;
}

/* ── Notice action buttons (View cart / Checkout) ── */
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button,
.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-message a.wc-forward,
.woocommerce-info a.wc-forward,
.woocommerce-notices-wrapper .button,
.woocommerce-notices-wrapper a.button,
.woocommerce-notices-wrapper a.wc-forward {
	float: none !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	order: 2;
	width: auto !important;
	min-height: 34px;
	margin: 0 0 0 auto !important;
	padding: 0 14px !important;
	border: 1px solid rgba(201, 168, 106, 0.65) !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--adult-store-accent, #c9a86a) !important;
	font-size: 0.68rem !important;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none !important;
	box-shadow: none !important;
	white-space: nowrap;
	vertical-align: middle;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-error .button:hover,
.woocommerce-message a.button:hover,
.woocommerce-info a.button:hover,
.woocommerce-message a.wc-forward:hover,
.woocommerce-info a.wc-forward:hover,
.woocommerce-notices-wrapper .button:hover,
.woocommerce-notices-wrapper a.button:hover,
.woocommerce-notices-wrapper a.wc-forward:hover {
	background: var(--adult-store-accent, #c9a86a) !important;
	border-color: var(--adult-store-accent, #c9a86a) !important;
	color: #0a0a0a !important;
	filter: none;
}

/* Close / dismiss if present */
.woocommerce-message .woocommerce-Button,
.woocommerce-info .woocommerce-Button {
	float: none !important;
}

/* ── Page spacing tweaks ── */
.adult-store-woocommerce .woocommerce-notices-wrapper {
	max-width: 1180px;
	margin: 20px auto 8px;
	padding: 0 24px;
}

.adult-store-cart + .woocommerce-notices-wrapper,
.adult-store-woocommerce .adult-store-cart .woocommerce-notices-wrapper {
	margin-bottom: 18px;
}

.single-product .woocommerce-notices-wrapper,
.adult-store-pdp .woocommerce-notices-wrapper {
	max-width: 1500px;
	margin: 12px auto 8px;
	padding: 0 clamp(16px, 3vw, 48px);
}

.adult-store-checkout-page .woocommerce-notices-wrapper {
	max-width: 1480px;
	margin: 16px auto 18px;
	padding: 0 clamp(16px, 3vw, 32px);
}

.adult-store-checkout-page .woocommerce-form-login-toggle .woocommerce-info,
.adult-store-checkout-page .woocommerce-info {
	margin-bottom: 16px;
}

/* Notices printed outside wrapper (some templates) */
.woocommerce > .woocommerce-message:first-child,
.woocommerce > .woocommerce-info:first-child,
.woocommerce > .woocommerce-error:first-child,
.entry-content > .woocommerce-message,
.entry-content > .woocommerce-info,
.entry-content > .woocommerce-error {
	max-width: 1180px;
	margin-left: auto;
	margin-right: auto;
}

/* ── Account / forms ── */
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-error {
	margin-bottom: 18px;
}

/* ── Mobile ── */
@media (max-width: 900px) {
	.woocommerce-notices-wrapper,
	.woocommerce .woocommerce-notices-wrapper,
	.adult-store-woocommerce .woocommerce-notices-wrapper,
	.adult-store-checkout-page .woocommerce-notices-wrapper,
	.adult-store-pdp .woocommerce-notices-wrapper,
	.single-product .woocommerce-notices-wrapper,
	.woocommerce-account .woocommerce-notices-wrapper {
		max-width: 100%;
		margin: 12px auto 10px;
		padding: 0 16px;
		box-sizing: border-box;
	}

	.woocommerce-message,
	.woocommerce-info,
	.woocommerce-error,
	.woocommerce-notices-wrapper .woocommerce-message,
	.woocommerce-notices-wrapper .woocommerce-info,
	.woocommerce-notices-wrapper .woocommerce-error {
		padding: 14px 14px 14px 48px;
		font-size: 0.84rem;
		line-height: 1.5;
	}

	.woocommerce-message::before,
	.woocommerce-info::before,
	.woocommerce-error::before {
		top: 15px;
		left: 14px;
		width: 18px;
		height: 18px;
		background-size: 16px 16px !important;
	}

	.woocommerce-message .button,
	.woocommerce-info .button,
	.woocommerce-error .button,
	.woocommerce-message a.button,
	.woocommerce-info a.button,
	.woocommerce-message a.wc-forward,
	.woocommerce-info a.wc-forward,
	.woocommerce-notices-wrapper .button,
	.woocommerce-notices-wrapper a.button,
	.woocommerce-notices-wrapper a.wc-forward {
		display: inline-flex !important;
		order: 3;
		width: 100% !important;
		max-width: 100%;
		margin: 6px 0 0 !important;
		white-space: normal;
		text-align: center;
	}
}

@media (max-width: 414px) {
	.woocommerce-message,
	.woocommerce-info,
	.woocommerce-error {
		letter-spacing: 0.01em;
	}
}
