/**
 * WowAddons admin notices: campaign banners and the data-collection consent notice.
 * Loaded only on admin pages where one of them shows. Keep every selector scoped to its notice.
 */

:root {
	--prad-notice-accent: #86a62c;
	--prad-notice-bg: #ffffff;
	--prad-notice-primary: #86a62c;
	--prad-notice-dark: #070707;
	--prad-notice-dark-hover: rgb(38, 38, 38);
}

/* Countdown banner */
.prad-notice-wrapper.prad-banner-notice {
	height: auto !important;
	padding: 0 !important;
	position: relative;
	box-sizing: border-box;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}
.prad-notice-wrapper.prad-banner-notice .prad-banner-link {
	width: 100%;
	text-decoration: none;
	display: block;
}
.prad-notice-wrapper.prad-banner-notice .prad-banner-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 700px;
	margin: 0 auto;
	padding: 10px 16px;
	gap: 16px;
}
.prad-notice-wrapper.prad-banner-notice .prad-banner-side-image {
	display: block;
	max-width: 100%;
	height: auto;
	max-height: 32px;
}
.prad-notice-wrapper.prad-banner-notice .prad-banner-main .prad-banner-main-text {
	color: #ffffff;
}
.prad-notice-wrapper.prad-banner-notice .prad-banner-main {
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 18px;
	color: #333333;
	line-height: 1.2;
	text-align: center;
}

@media screen and (max-width: 1100px) {
	/* .prad-notice-wrapper.prad-banner-notice .prad-banner-content {
		flex-direction: column;
	} */
	.prad-notice-wrapper.prad-banner-notice .prad-banner-content .prad-banner-main-text {
		display: none;
	}
}
@media screen and (max-width: 490px) {
	.prad-notice-wrapper.prad-banner-notice {
		display: none;
	}
}
@media screen and (max-width: 782px) {
	.prad-notice-wrapper.prad-banner-notice .prad-banner-content {
		justify-content: center;
		padding: 12px 32px 12px 12px;
	}
	.prad-notice-wrapper.prad-banner-notice .prad-banner-main {
		font-size: 22px;
		line-height: 28px;
	}
}
@media screen and (max-width: 480px) {
	.prad-notice-wrapper.prad-banner-notice .prad-banner-content {
		padding: 10px 32px 10px 10px;
	}
	.prad-notice-wrapper.prad-banner-notice .prad-banner-main {
		font-size: 18px;
		line-height: 24px;
	}
}

/* Text and button notice */
.prad-content-notice-wrapper {
	border: 1px solid #c3c4c7;
	border-left: 3px solid var(--prad-notice-accent);
	margin: 15px 0 !important;
	display: flex;
	align-items: center;
	background-color: var(--prad-notice-bg);
	width: 100%;
	padding: 10px 0;
	position: relative;
	box-sizing: border-box;
}

.prad-content-notice-wrapper.notice {
	margin: 10px 0;
	width: calc(100% - 20px);
}

.wrap .prad-content-notice-wrapper.notice {
	width: 100%;
}

.prad-content-notice-icon {
	margin-left: 15px;
}

.prad-content-notice-discout-icon {
	margin-left: 10px;
}

.prad-content-notice-icon img {
	max-width: 42px;
	height: 70px;
}

.prad-content-notice-discout-icon img {
	height: 70px;
	width: 70px;
	object-fit: contain;
}

.prad-notice-content-wrapper {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 14px;
	line-height: 20px;
	margin-left: 15px;
}

.prad-content-notice-buttons {
	display: flex;
	align-items: center;
	gap: 15px;
}

.prad-content-notice-btn {
	font-weight: 600;
	text-transform: uppercase !important;
	padding: 2px 10px !important;
	background-color: var(--prad-notice-primary);
	border: none !important;
}

.prad-content-discount_btn {
	background-color: #ffffff;
	text-decoration: none;
	border: 1px solid var(--prad-notice-primary);
	padding: 5px 10px;
	border-radius: 5px;
	font-weight: 500;
	text-transform: uppercase;
	color: var(--prad-notice-primary) !important;
	text-decoration: none !important;
}

.prad-content-notice-wrapper .prad-content-notice-close {
	position: absolute;
	right: 2px;
	top: 5px;
	text-decoration: none;
	color: #b6b6b6;
	font-family: dashicons;
	font-size: 16px;
	line-height: 20px;
}

.prad-content-notice-wrapper .prad-content-notice-close-icon {
	font-size: 14px;
}

/* Image banner */
.prad-notice-wrapper.prad-image-notice-wrapper {
	padding: 0 !important;
	position: relative;
	box-sizing: border-box;
	overflow: hidden;
	border-radius: 0px;
	border: none !important;
}
.prad-notice-wrapper.prad-image-notice-wrapper .prad-image-banner {
	position: relative;
	line-height: 0;
}
.prad-notice-wrapper.prad-image-notice-wrapper .prad-btn-image {
	display: block;
}
.prad-notice-wrapper.prad-image-notice-wrapper .prad-btn-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
}
.prad-notice-wrapper.prad-image-notice-wrapper .prad-content-notice-close {
	top: 4px;
	right: 4px;
	position: absolute;
	z-index: 999;
}
@media screen and (max-width: 650px) {
	.prad-image-notice-wrapper {
		display: none;
	}
}

/* Data-collection consent notice */
.prad-consent-box {
	width: 656px;
	padding: 16px !important;
	border: 1px solid var(--prad-notice-dark);
	border-left-width: 4px;
	border-radius: 4px;
	background-color: #fff;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}
.prad-consent-content {
	display: flex;
	justify-content: flex-start;
	align-items: flex-end;
	gap: 26px;
}

.prad-consent-text-first {
	font-size: 14px;
	font-weight: 600;
	color: var(--prad-notice-dark);
}
.prad-consent-text-last {
	margin: 4px 0 0;
	font-size: 14px;
	color: var(--prad-notice-dark);
}

.prad-consent-accept {
	background-color: var(--prad-notice-dark);
	color: #fff !important; 
	border: none;
	padding: 6px 10px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}
.prad-consent-accept:hover {
	background-color: var(--prad-notice-dark-hover);
	color: #fff;
}
