/**
 * ADSS Billboard Preview - saved campaigns in the WooCommerce account area.
 *
 * Deliberately light on opinions: this markup lands inside whatever the theme
 * gives the account page, so it only styles its own elements and inherits
 * everything else.
 */

.abp-account,
.abp-account-empty {
	--abp-a-red: #e11d2e;
	--abp-a-ink: #0f172a;
	--abp-a-muted: #9ca3af;
	--abp-a-line: #e5e7eb;
	--abp-a-soft: #f4f5f7;

	box-sizing: border-box;
	color: #4b5563;
}

.abp-account *,
.abp-account-empty * {
	box-sizing: inherit;
}

/* ---------------------------------------------------------------- empty */

.abp-account-empty {
	padding: 44px 24px;
	border: 1px dashed var(--abp-a-line);
	border-radius: 14px;
	background: #fafbfc;
	text-align: center;
}

.abp-account-empty h3 {
	margin: 0 0 8px;
	color: var(--abp-a-ink);
	font-size: 19px;
	font-weight: 800;
}

.abp-account-empty p {
	margin: 0 0 18px;
	font-size: 14.5px;
}

/* ----------------------------------------------------------------- grid */

.abp-account__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
}

.abp-account-card {
	border: 1px solid var(--abp-a-line);
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.abp-account-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 36px -22px rgba(15, 23, 42, 0.6);
}

.abp-account-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--abp-a-soft);
	line-height: 0;
}

.abp-account-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.abp-account-card__placeholder {
	position: absolute;
	inset: 0;
	background:
		repeating-linear-gradient(
			-45deg,
			#fafbfc,
			#fafbfc 6px,
			#f1f3f5 6px,
			#f1f3f5 12px
		);
}

.abp-account-card__count {
	position: absolute;
	bottom: 8px;
	inset-inline-start: 8px;
	padding: 4px 9px;
	border-radius: 6px;
	background: rgba(15, 23, 42, 0.82);
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.4;
}

.abp-account-card__body {
	padding: 14px 16px 16px;
}

.abp-account-card__title {
	margin: 0 0 3px;
	font-size: 15.5px;
	font-weight: 800;
	line-height: 1.3;
}

.abp-account-card__title a {
	color: var(--abp-a-ink);
	text-decoration: none;
}

.abp-account-card__title a:hover {
	color: var(--abp-a-red);
}

.abp-account-card__meta {
	margin: 0 0 14px;
	font-size: 12.5px;
	color: var(--abp-a-muted);
}

.abp-account-card__actions {
	display: flex;
	gap: 8px;
}

/* --------------------------------------------------------------- single */

.abp-account__back {
	margin: 0 0 10px;
	font-size: 13.5px;
}

.abp-account__back a {
	color: var(--abp-a-muted);
	text-decoration: none;
}

.abp-account__back a:hover {
	color: var(--abp-a-red);
}

.abp-account__title {
	margin: 0 0 20px;
	color: var(--abp-a-ink);
	font-size: 26px;
	font-weight: 800;
	line-height: 1.15;
}

.abp-account__frames {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 18px;
}

.abp-account-frame {
	margin: 0;
	border: 1px solid var(--abp-a-line);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.abp-account-frame img {
	display: block;
	width: 100%;
	height: auto;
}

.abp-account-frame__placeholder {
	display: block;
	aspect-ratio: 16 / 9;
	background:
		repeating-linear-gradient(
			-45deg,
			#fafbfc,
			#fafbfc 6px,
			#f1f3f5 6px,
			#f1f3f5 12px
		);
}

.abp-account-frame figcaption {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 11px 14px;
	border-top: 1px solid var(--abp-a-line);
	color: var(--abp-a-ink);
	font-size: 13.5px;
	font-weight: 700;
}

.abp-account-frame__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 5px;
	background: var(--abp-a-soft);
	color: var(--abp-a-muted);
	font-size: 11px;
	font-weight: 800;
}

.abp-account__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

/* -------------------------------------------------------------- buttons */

.abp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 9px;
	background: var(--abp-a-soft);
	color: var(--abp-a-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.abp-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.abp-btn--primary {
	background: var(--abp-a-red);
	color: #fff;
}

.abp-btn--primary:hover {
	background: #b8141f;
	color: #fff;
}

.abp-btn--ghost {
	background: #fff;
	border-color: var(--abp-a-line);
}

.abp-btn--ghost:hover {
	border-color: var(--abp-a-muted);
}

.abp-btn--danger {
	background: #fff;
	border-color: var(--abp-a-line);
	color: #b91c1c;
}

.abp-btn--danger:hover {
	background: #fef2f2;
	border-color: #fca5a5;
}
