/* Shared styles for ad placeholders */
#ezoic-pub-ad-placeholder-101,
#ezoic-pub-ad-placeholder-102,
#ezoic-pub-ad-placeholder-105,
#ezoic-pub-ad-placeholder-114 {
  background: #f9f9f9 url('images/rs.svg') no-repeat center center;
  background-size: contain;
  text-align: center;
}

/* Specific styles for #ezoic-pub-ad-placeholder-101 */
#ezoic-pub-ad-placeholder-101,
#ezoic-pub-ad-placeholder-102,
#ezoic-pub-ad-placeholder-114 {
  margin-left: -30px;
}

/* Dark mode styles */
html.darkmode #ezoic-pub-ad-placeholder-101,
html.darkmode #ezoic-pub-ad-placeholder-102,
html.darkmode #ezoic-pub-ad-placeholder-105,
html.darkmode #ezoic-pub-ad-placeholder-114 {
  background-color: #111;
}

/* Responsive styles for screens <= 768px */
@media (max-width: 768px) {
  #ezoic-pub-ad-placeholder-101,
  #ezoic-pub-ad-placeholder-102,
  #ezoic-pub-ad-placeholder-105,
	#ezoic-pub-ad-placeholder-114  {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    overflow: hidden;
  }

  #ezoic-pub-ad-placeholder-101 > *,
  #ezoic-pub-ad-placeholder-102 > *,
  #ezoic-pub-ad-placeholder-105 > *,
  #ezoic-pub-ad-placeholder-114 > *  {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
}
.phpbb-ads-center > :first-child:not(script) {
	max-width: 100%;
}

.phpbbad-slide-up {
	position: fixed;
	bottom: 0;
	width: 100%;
	transition: transform 0.3s;
	transform: translateY(100%);
}

.phpbbad-slide-up-center {
	text-align: center;
}

.phpbbad-slide-up-close {
	background-color: #ffffff;
	width: 30px;
	cursor: pointer;
}

.phpbb-ads-visual-demo {
	font-size: 12px;
	font-weight: bold;
	line-height: 44px;
	text-align: center;
	background-color: #f0e68c;
	border: #ff0000 dashed 3px;
	color: #bc2a4d;
	box-sizing: border-box;
	width: 100%;
	height: 50px;
}

.phpbb-ads-visual-demo-btn {
	text-align: center;
	width: 25%;
	margin: 0 auto !important;
	padding: 10px !important;
}

.phpbb-ads-button {
	font-family: system-ui, sans-serif;
	font-size: 13px;
	vertical-align: middle;
	background: #e3e3e3;
	background: linear-gradient(to bottom, #e3e3e3 0%, #f7f7f7 100%);
	border: solid 1px #afafaf;
	box-shadow: inset 1px 1px 2px #ffffff;
	margin: 2px 0;
	padding: 3px 8px;
}

.phpbb-ads-button:link {
	color: #000000;
}

.phpbb-ads-button:link:hover {
	text-decoration: none;
}

.phpbb-ads-button:hover {
	border-color: #bc2a4d;
	color: #bc2a4d;
	cursor: pointer;
}

.phpbb-ads-button:active {
	background: #c3c3c3;
}
/* =========================================
   AD BLOCKER NOTICE
   ========================================= */

/* Base layout – no display:flex !important so the extension can hide it */
#phpbb-aJHwDeoSqLhW.rules {
	align-items: center;
	gap: 10px;
	padding: 10px 16px !important;
	margin: 12px 0 !important;
	border-radius: 6px !important;
	font-size: 0.92rem !important;
	line-height: 1.45 !important;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif !important;
	border: 1px solid transparent !important;
	box-sizing: border-box;
}

/* Only apply flex when the notice is actually visible */
#phpbb-aJHwDeoSqLhW.rules[style*="display: block"],
#phpbb-aJHwDeoSqLhW.rules:not([style*="display: none"]) {
	display: flex !important;
}

/* Green status dot */
#phpbb-aJHwDeoSqLhW.rules::before {
	content: "";
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

/* Remove default phpBB rules styling interference */
#phpbb-aJHwDeoSqLhW.rules .inner {
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	border: none !important;
	color: inherit !important;
	font-weight: normal !important;
}

#phpbb-aJHwDeoSqLhW.rules strong {
	font-weight: 600 !important;
}

/* Light mode */
#phpbb-aJHwDeoSqLhW.rules {
	background: #f5f5f5 !important;
	color: #222 !important;
	border-color: #e5e5e5 !important;
}

/* Dark mode */
html.darkmode #phpbb-aJHwDeoSqLhW.rules {
	background: #111111 !important;
	color: #e8e8e8 !important;
	border-color: #2a2a2a !important;
}

html.darkmode #phpbb-aJHwDeoSqLhW.rules::before {
	background: #22c55e;
	box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
}

/* Optional: style any links inside the message */
#phpbb-aJHwDeoSqLhW.rules a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

html.darkmode #phpbb-aJHwDeoSqLhW.rules a {
	color: #a5acaf;
}