.aacd-notice-wrapper,
.aacd-notice-wrapper * {
	box-sizing: border-box;
}

.aacd-notice-wrapper {
	width: 100%;
	padding: 14px 20px 0;
	display: block;
	position: relative;
	z-index: 999;
	transition: opacity 0.2s ease;
}

.aacd-notice-wrapper:empty {
	display: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.aacd-notice-wrapper.aacd-fade-out {
	opacity: 0;
}

.aacd-notice-container {
	max-width: 1480px;
	margin: 0 auto;
	padding: 14px 24px;
	background-color: var(--wp--preset--color--accent-4, #a8bda0);
	color: #1a2318;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
	overflow: hidden;
	position: relative;
}

.aacd-notice-close {
	display: none;
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	padding: 6px;
	cursor: pointer;
	color: #1a2318;
	opacity: 0.65;
	line-height: 1;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: opacity 0.15s ease, background-color 0.15s ease;
	z-index: 2;
}

.aacd-notice-close:hover {
	opacity: 1;
	background-color: rgba(0, 0, 0, 0.08);
}

.aacd-notice-wrapper.aacd-is-sticky {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: 14px 20px 0;
	pointer-events: none;
	z-index: 9999;
	animation: aacdStickyFadeIn 0.25s ease-out;
}

@keyframes aacdStickyFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.admin-bar .aacd-notice-wrapper.aacd-is-sticky {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .aacd-notice-wrapper.aacd-is-sticky {
		top: 46px;
	}
}

.aacd-notice-wrapper.aacd-is-sticky .aacd-notice-container {
	pointer-events: auto;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.aacd-notice-wrapper.aacd-is-sticky .aacd-notice-close {
	display: inline-flex;
}

.aacd-notice-inner {
	max-width: 1280px;
	margin: 0 auto;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.aacd-notice-content {
	display: flex;
	flex-direction: column;
	gap: 3px;
	max-width: 100%;
}

.aacd-notice-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 1rem;
	font-weight: 700;
	color: #1a2318;
	line-height: 1.35;
	word-break: break-word;
}

.aacd-notice-description {
	font-size: 0.875rem;
	color: #2c382a;
	line-height: 1.4;
	word-break: break-word;
}

.aacd-notice-description p {
	margin: 0;
}

.aacd-notice-cta {
	flex-shrink: 0;
}

.aacd-notice-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 18px;
	font-size: 0.825rem;
	font-weight: 600;
	text-decoration: none;
	background-color: #141414;
	color: #ffffff !important;
	border-radius: 6px;
	white-space: nowrap;
	max-width: 100%;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.aacd-notice-button:hover {
	background-color: #2b2b2b;
	color: #ffffff !important;
}

@media (max-width: 768px) {
	.aacd-notice-wrapper,
	.aacd-notice-wrapper.aacd-is-sticky {
		padding: 0;
		pointer-events: auto;
	}

	.aacd-notice-container,
	.aacd-notice-wrapper.aacd-is-sticky .aacd-notice-container {
		border-radius: 0;
		max-width: 100%;
		padding: 12px 16px;
	}

	.aacd-notice-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.aacd-notice-cta {
		width: 100%;
	}

	.aacd-notice-button {
		width: 100%;
		text-align: center;
		white-space: normal;
		padding: 7px 14px;
		font-size: 0.75rem;
		border-radius: 4px;
	}

	.aacd-notice-close {
		top: 8px;
		right: 8px;
		transform: none;
	}
}
