/**
 * Buildzair Partners — partner area ([buildzair_partner_portal]).
 *
 * Scoped under .bzpo. The edit forms reuse the application form styles
 * (.bzpf, application.css). Logical properties throughout: the same file
 * serves Arabic (RTL) and French (LTR).
 */

.bzpo {
	--bzpo-primary: #06CE78;
	--bzpo-primary-hover: #05B86A;
	--bzpo-primary-soft: #E6FAF1;
	--bzpo-primary-ink: #04301C;
	--bzpo-primary-text: #037D47;
	--bzpo-navy: #0d2147;
	--bzpo-navy-2: #15306a;
	--bzpo-ink: #142039;
	--bzpo-muted: #5b6880;
	--bzpo-line: #e3e8f1;
	--bzpo-surface: #f5f7fb;
	--bzpo-radius: 16px;
	--bzpo-radius-sm: 10px;

	max-width: 1080px;
	margin-inline: auto;
	color: var(--bzpo-ink);
	font-size: 15px;
	line-height: 1.6;
}

.bzpo *,
.bzpo *::before,
.bzpo *::after {
	box-sizing: border-box;
}

.bzpo .bzpo-icon {
	flex: none;
}

/* ---------- Buttons ---------- */

.bzpo .bzpo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 9px 16px;
	border-radius: var(--bzpo-radius-sm);
	border: 1px solid transparent;
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.bzpo .bzpo-btn--primary {
	background: var(--bzpo-primary);
	color: var(--bzpo-primary-ink);
	font-weight: 700;
}

.bzpo .bzpo-btn--primary:hover {
	background: var(--bzpo-primary-hover);
	color: var(--bzpo-primary-ink);
}

.bzpo .bzpo-btn--ghost {
	border-color: rgba(255, 255, 255, 0.24);
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
}

.bzpo .bzpo-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

.bzpo .bzpo-btn:focus-visible,
.bzpo .bzpo-tab:focus-visible,
.bzpo a:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--bzpo-primary) 55%, transparent);
	outline-offset: 2px;
}

/* ---------- Header ---------- */

.bzpo-head {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 20px;
	padding: 26px 28px;
	border-radius: var(--bzpo-radius);
	background:
		radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--bzpo-primary) 30%, transparent) 0%, transparent 50%),
		linear-gradient(135deg, var(--bzpo-navy) 0%, var(--bzpo-navy-2) 100%);
	color: #fff;
	overflow: hidden;
}

[dir="rtl"] .bzpo-head,
.rtl .bzpo-head {
	background:
		radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--bzpo-primary) 30%, transparent) 0%, transparent 50%),
		linear-gradient(225deg, var(--bzpo-navy) 0%, var(--bzpo-navy-2) 100%);
}

.bzpo-logo {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	flex: none;
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.bzpo-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.bzpo-logo.is-initial {
	background: var(--bzpo-primary);
	color: var(--bzpo-primary-ink);
	font-size: 34px;
	font-weight: 800;
}

.bzpo-head-text {
	display: grid;
	gap: 4px;
	min-width: 0;
	flex: 1 1 260px;
}

.bzpo-eyebrow {
	color: #9fe9c6;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bzpo .bzpo-title {
	margin: 0;
	color: #fff;
	font-size: clamp(22px, 3vw, 30px);
	line-height: 1.2;
	font-weight: 800;
}

.bzpo-head-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-block-start: 4px;
}

.bzpo-status,
.bzpo-package {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 11px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.bzpo-status--active {
	background: var(--bzpo-primary);
	color: var(--bzpo-primary-ink);
}

.bzpo-status--expired,
.bzpo-status--suspended,
.bzpo-status--cancelled {
	background: #fde7e7;
	color: #8a2222;
}

.bzpo-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--bzpo-pkg, var(--bzpo-primary));
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.bzpo-head-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* ---------- Company switch ---------- */

.bzpo-switch {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-block-start: 14px;
	font-size: 14px;
}

.bzpo-switch select {
	min-height: 38px;
	padding: 6px 10px;
	border: 1px solid var(--bzpo-line);
	border-radius: 8px;
	font: inherit;
}

/* ---------- Tabs ---------- */

.bzpo-tabs {
	display: flex;
	gap: 4px;
	margin-block: 18px;
	padding: 5px;
	border: 1px solid var(--bzpo-line);
	border-radius: 14px;
	background: #fff;
	overflow-x: auto;
	scrollbar-width: none;
}

.bzpo-tabs::-webkit-scrollbar {
	display: none;
}

.bzpo .bzpo-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 1 0 auto;
	justify-content: center;
	min-height: 42px;
	padding: 8px 14px;
	border-radius: 10px;
	color: var(--bzpo-muted);
	font-weight: 600;
	font-size: 14.5px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.bzpo .bzpo-tab:hover {
	background: var(--bzpo-surface);
	color: var(--bzpo-ink);
}

.bzpo .bzpo-tab.is-current {
	background: var(--bzpo-primary);
	color: var(--bzpo-primary-ink);
}

.bzpo-count {
	min-width: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: #e5484d;
	color: #fff;
	font-size: 12px;
	line-height: 20px;
	text-align: center;
}

/* ---------- Alerts ---------- */

.bzpo-alert {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-block-end: 16px;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid;
	font-size: 14.5px;
}

.bzpo-alert > div {
	display: grid;
	gap: 2px;
}

.bzpo-alert .bzpo-icon {
	margin-block-start: 2px;
}

.bzpo-alert--success {
	background: var(--bzpo-primary-soft);
	border-color: #b5ecd2;
	color: var(--bzpo-primary-ink);
}

.bzpo-alert--info {
	background: #eef4ff;
	border-color: #cfdcf7;
	color: #1d3a73;
}

.bzpo-alert--warning {
	background: #fff6e0;
	border-color: #f3dca2;
	color: #6b4a00;
}

.bzpo-alert--error {
	background: #fdecec;
	border-color: #f5c2c2;
	color: #8a1f24;
}

/* ---------- Overview ---------- */

.bzpo-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
}

.bzpo .bzpo-card {
	display: grid;
	gap: 4px;
	align-content: start;
	padding: 18px 20px;
	border: 1px solid var(--bzpo-line);
	border-radius: 14px;
	background: #fff;
	color: inherit;
	text-decoration: none;
}

.bzpo .bzpo-card--package {
	border-block-start: 4px solid var(--bzpo-pkg, var(--bzpo-primary));
}

.bzpo .bzpo-card--link:hover {
	border-color: var(--bzpo-primary);
}

.bzpo-card-label {
	color: var(--bzpo-muted);
	font-size: 13.5px;
	font-weight: 600;
}

.bzpo-card-value {
	font-size: 28px;
	line-height: 1.15;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.bzpo-card-sub {
	color: var(--bzpo-muted);
	font-size: 13px;
}

.bzpo-card--link .bzpo-card-sub {
	color: var(--bzpo-primary-text);
	font-weight: 600;
}

.bzpo-shortcuts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 14px;
	margin-block-start: 18px;
}

.bzpo .bzpo-shortcut {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 18px 20px;
	border: 1px solid var(--bzpo-line);
	border-radius: 14px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.bzpo .bzpo-shortcut:hover {
	border-color: var(--bzpo-primary);
	transform: translateY(-1px);
}

.bzpo-shortcut > .bzpo-icon {
	width: 42px;
	height: 42px;
	padding: 10px;
	border-radius: 12px;
	background: var(--bzpo-primary-soft);
	color: var(--bzpo-primary-text);
}

.bzpo-shortcut span {
	display: grid;
	gap: 2px;
}

.bzpo-shortcut small {
	color: var(--bzpo-muted);
	font-size: 13px;
}

[dir="rtl"] .bzpo-arrow,
.rtl .bzpo-arrow {
	display: inline-block;
	transform: scaleX(-1);
}

/* ---------- Forms (on top of application.css) ---------- */

.bzpo .bzpf {
	max-width: none;
}

.bzpo-logo-field {
	display: flex;
	gap: 18px;
	align-items: center;
	margin-block-end: 16px;
}

.bzpo-logo-field strong {
	display: block;
	margin-block-end: 2px;
}

.bzpo .bzpo-logo-pick {
	width: 112px;
}

.bzpo .bzpo-logo-pick img {
	object-fit: contain;
	background: #fff;
}

.bzpo .bzpo-logo-pick.has-image .bzpf-product-image-empty {
	display: none;
}

.bzpo .bzpo-logo-pick.has-image {
	border-style: solid;
}

.bzpo .bzpo-submit-row {
	align-items: center;
	justify-content: space-between;
}

.bzpo .bzpo-submit-row .bzpf-help {
	flex: 1 1 280px;
	margin: 0;
}

/* ---------- Messages ---------- */

.bzpo-messages {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bzpo-message {
	border: 1px solid var(--bzpo-line);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}

.bzpo-message.is-unread {
	border-inline-start: 4px solid var(--bzpo-primary);
}

.bzpo-message summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	padding: 14px 18px;
	cursor: pointer;
	list-style: none;
}

.bzpo-message summary::-webkit-details-marker {
	display: none;
}

.bzpo-message-from {
	font-weight: 700;
}

.bzpo-message-subject {
	flex: 1 1 200px;
	min-width: 0;
	color: var(--bzpo-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bzpo-new {
	padding: 1px 9px;
	border-radius: 999px;
	background: var(--bzpo-primary);
	color: var(--bzpo-primary-ink);
	font-size: 12px;
	font-weight: 700;
}

.bzpo-message-date {
	color: var(--bzpo-muted);
	font-size: 13px;
}

.bzpo-message-body {
	display: grid;
	gap: 10px;
	justify-items: start;
	padding: 0 18px 18px;
	border-block-start: 1px solid var(--bzpo-line);
	padding-block-start: 14px;
}

.bzpo-message-body p {
	margin: 0;
}

.bzpo-message-contact a {
	color: var(--bzpo-primary-text);
}

.bzpo-pages {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin-block-start: 18px;
}

.bzpo .bzpo-page {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	border: 1px solid var(--bzpo-line);
	border-radius: 10px;
	background: #fff;
	color: var(--bzpo-ink);
	font-weight: 600;
	text-decoration: none;
}

.bzpo .bzpo-page.is-current {
	border-color: var(--bzpo-primary);
	background: var(--bzpo-primary);
	color: var(--bzpo-primary-ink);
}

/* ---------- Statistics ---------- */

.bzpo-chart {
	padding: 20px 22px;
	border: 1px solid var(--bzpo-line);
	border-radius: 14px;
	background: #fff;
}

.bzpo .bzpo-h3 {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 700;
}

.bzpo-bars {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
	align-items: end;
	height: 210px;
}

.bzpo-bar {
	display: grid;
	grid-template-rows: auto 1fr auto;
	justify-items: center;
	gap: 6px;
	height: 100%;
}

.bzpo-bar-value {
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.bzpo-bar-fill {
	align-self: end;
	width: min(44px, 100%);
	border-radius: 8px 8px 3px 3px;
	background: var(--bzpo-primary);
}

.bzpo-bar:last-child .bzpo-bar-fill {
	background: var(--bzpo-primary-text);
}

.bzpo-bar-label {
	color: var(--bzpo-muted);
	font-size: 12px;
	text-align: center;
	line-height: 1.3;
}

.bzpo-table-wrap {
	margin-block-start: 16px;
	border: 1px solid var(--bzpo-line);
	border-radius: 14px;
	background: #fff;
	overflow-x: auto;
}

.bzpo-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.bzpo-table th,
.bzpo-table td {
	padding: 11px 14px;
	border-block-end: 1px solid var(--bzpo-line);
	text-align: start;
	white-space: nowrap;
}

.bzpo-table td {
	font-variant-numeric: tabular-nums;
}

.bzpo-table thead th {
	background: var(--bzpo-surface);
	color: var(--bzpo-muted);
	font-size: 13px;
	font-weight: 600;
}

.bzpo-table tbody tr:last-child th,
.bzpo-table tbody tr:last-child td {
	border-block-end: 0;
}

.bzpo-note {
	margin-block-start: 10px;
	color: var(--bzpo-muted);
	font-size: 13px;
}

/* ---------- Empty states, sign-in ---------- */

.bzpo-empty {
	display: grid;
	justify-items: center;
	gap: 8px;
	padding: 40px 24px;
	border: 1px dashed #c9d3e3;
	border-radius: 14px;
	background: #fff;
	color: var(--bzpo-muted);
	text-align: center;
}

.bzpo-empty > .bzpo-icon {
	width: 40px;
	height: 40px;
	color: var(--bzpo-primary-text);
}

.bzpo-empty h3 {
	margin: 0;
	color: var(--bzpo-ink);
	font-size: 18px;
}

.bzpo-empty p {
	max-width: 560px;
	margin: 0;
}

.bzpo-gate {
	display: grid;
	place-items: center;
	padding: 24px 0;
}

.bzpo-gate-card {
	width: min(440px, 100%);
	padding: 32px 28px;
	border: 1px solid var(--bzpo-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 18px 40px -24px rgba(13, 33, 71, 0.35);
	text-align: center;
}

.bzpo-gate-icon {
	display: inline-grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-block-end: 10px;
	border-radius: 16px;
	background: var(--bzpo-primary-soft);
	color: var(--bzpo-primary-text);
}

.bzpo-gate-icon .bzpo-icon {
	width: 28px;
	height: 28px;
}

.bzpo .bzpo-gate-title {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 800;
}

.bzpo-gate-text {
	margin: 0 0 18px;
	color: var(--bzpo-muted);
}

.bzpo-gate form {
	display: grid;
	gap: 12px;
	text-align: start;
}

.bzpo-gate form p {
	display: grid;
	gap: 6px;
	margin: 0;
}

.bzpo-gate label {
	font-weight: 600;
	font-size: 14px;
}

.bzpo-gate input[type="text"],
.bzpo-gate input[type="password"] {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #cfd8e6;
	border-radius: var(--bzpo-radius-sm);
	font: inherit;
}

.bzpo-gate input[type="text"]:focus,
.bzpo-gate input[type="password"]:focus {
	outline: none;
	border-color: var(--bzpo-primary);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--bzpo-primary) 18%, transparent);
}

.bzpo-gate .login-remember label {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	font-weight: 400;
}

.bzpo-gate .login-remember input {
	accent-color: var(--bzpo-primary);
}

.bzpo-gate input[type="submit"] {
	width: 100%;
	min-height: 48px;
	border: 0;
	border-radius: var(--bzpo-radius-sm);
	background: var(--bzpo-primary);
	color: var(--bzpo-primary-ink);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.bzpo-gate input[type="submit"]:hover {
	background: var(--bzpo-primary-hover);
}

.bzpo-gate-links {
	margin: 16px 0 0;
	font-size: 14px;
}

.bzpo-gate-links a {
	color: var(--bzpo-primary-text);
	font-weight: 600;
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
	.bzpo-head {
		padding: 20px;
	}

	.bzpo-logo {
		width: 60px;
		height: 60px;
	}

	.bzpo-head-actions {
		width: 100%;
	}

	.bzpo-head-actions .bzpo-btn {
		flex: 1;
	}

	.bzpo .bzpo-tab span:not(.bzpo-count) {
		display: none;
	}

	.bzpo .bzpo-tab.is-current span {
		display: inline;
	}

	.bzpo-bars {
		gap: 6px;
		height: 180px;
	}

	.bzpo-logo-field {
		align-items: flex-start;
	}
}

/* ---------- Requests (not approved yet) ---------- */

.bzpo-gate--wide .bzpo-gate-card {
	width: min(640px, 100%);
}

.bzpo-requests {
	display: grid;
	gap: 8px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	text-align: start;
}

.bzpo-request {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	padding: 12px 14px;
	border: 1px solid var(--bzpo-line);
	border-radius: 12px;
	background: #fff;
}

.bzpo-request > span:first-child {
	display: grid;
	flex: 1 1 180px;
}

.bzpo-request small {
	color: var(--bzpo-muted);
}

.bzpo-request-state {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--bzpo-surface);
	color: var(--bzpo-muted);
	font-size: 13px;
	font-weight: 600;
}

.bzpo-request--pay .bzpo-request-state {
	background: #fff6e0;
	color: #6b4a00;
}

.bzpo-request--rejected .bzpo-request-state {
	background: #fdecec;
	color: #8a1f24;
}

.bzpo .bzpo-requests + .bzpo-cards,
.bzpo .bzpo-h3 + .bzpo-requests {
	margin-block-start: 0;
}

.bzpo-gate-form input[type="text"],
.bzpo-gate-form input[type="password"] {
	direction: ltr;
}

/* ---------- My package & upgrade ---------- */

.bzpo .bzpo-card-more {
	color: var(--bzpo-primary-text);
	font-weight: 600;
}

.bzpo-plan {
	display: grid;
	gap: 16px;
	padding: 22px 24px;
	border: 1px solid var(--bzpo-line);
	border-block-start: 5px solid var(--bzpo-pkg, var(--bzpo-primary));
	border-radius: 14px;
	background: #fff;
}

.bzpo-plan-label {
	color: var(--bzpo-muted);
	font-size: 13px;
	font-weight: 600;
}

.bzpo .bzpo-plan-name,
.bzpo .bzpo-offer-name {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 2px 0 0;
	font-size: 24px;
	font-weight: 800;
}

.bzpo .bzpo-offer-name {
	font-size: 19px;
}

.bzpo-plan-name .bzpo-dot,
.bzpo-offer-name .bzpo-dot {
	width: 12px;
	height: 12px;
	box-shadow: none;
}

.bzpo-plan-desc {
	margin: 4px 0 0;
	color: var(--bzpo-muted);
}

.bzpo-plan-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 10px;
	margin: 0;
}

.bzpo-plan-facts > div {
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--bzpo-surface);
}

.bzpo-plan-facts dt {
	color: var(--bzpo-muted);
	font-size: 12.5px;
	font-weight: 600;
}

.bzpo-plan-facts dd {
	margin: 2px 0 0;
	font-weight: 700;
}

.bzpo-plan-list {
	display: grid;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14.5px;
}

.bzpo-plan-list li {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.bzpo-plan-list .bzpo-icon {
	width: 17px;
	height: 17px;
	margin-block-start: 2px;
	color: var(--bzpo-primary-text);
}

.bzpo-upgrade {
	margin-block-start: 22px;
}

.bzpo-offers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 14px;
	margin-block-start: 12px;
}

.bzpo-offer {
	display: grid;
	gap: 14px;
	align-content: start;
	padding: 20px;
	border: 1px solid var(--bzpo-line);
	border-block-start: 5px solid var(--bzpo-pkg, var(--bzpo-primary));
	border-radius: 14px;
	background: #fff;
}

.bzpo-offer-calc {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--bzpo-surface);
	font-size: 14px;
}

.bzpo-offer-calc > div {
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.bzpo-offer-calc dd {
	margin: 0;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.bzpo-offer-calc .is-credit dd {
	color: var(--bzpo-primary-text);
}

.bzpo-offer-calc .is-total {
	padding-block-start: 6px;
	border-block-start: 1px dashed #cfd8e6;
	font-size: 16px;
}

.bzpo-offer-calc .is-total dd {
	font-weight: 800;
}

.bzpo-offer-end {
	margin: 0;
	color: var(--bzpo-muted);
	font-size: 13px;
}

.bzpo .bzpo-offer .bzpo-btn {
	width: 100%;
}

/* Included / not included */

.bzpo-plan-list li.is-off {
	color: #8a94a6;
}

.bzpo-plan-list li.is-off .bzpo-icon {
	color: #e5484d;
	opacity: 0.85;
}

.bzpo .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Offer cards: same height, price and button aligned at the bottom. */
.bzpo-offers {
	align-items: stretch;
}

.bzpo-offer {
	display: flex;
	flex-direction: column;
}

.bzpo-offer .bzpo-plan-list {
	flex: 1 1 auto;
}

/* ---------- Name, cover, catalogue ---------- */

.bzpo .bzpo-name-field {
	margin-block-end: 16px;
}

.bzpo-cover-field {
	display: grid;
	gap: 6px;
	margin-block-end: 18px;
}

.bzpo .bzpo-cover-pick {
	position: relative;
	display: grid;
	place-items: center;
	height: 150px;
	border: 1.5px dashed #c9d3e3;
	border-radius: 12px;
	background: linear-gradient(135deg, #0d2147, #15306a);
	background-image: var(--bzpo-cover, linear-gradient(135deg, #0d2147, #15306a));
	background-size: cover;
	background-position: center;
	color: #fff;
	cursor: pointer;
	overflow: hidden;
}

.bzpo .bzpo-cover-pick.has-image {
	border-style: solid;
}

.bzpo .bzpo-cover-pick input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.bzpo-cover-empty {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(13, 33, 71, 0.65);
	font-weight: 600;
	pointer-events: none;
}

.bzpo-inline-check {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-inline-start: 10px;
	font-weight: 600;
	white-space: nowrap;
}

.bzpo-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border: 1px solid var(--bzpo-line);
	border-radius: 10px;
	background: #fff;
}

.bzpo-file a {
	color: var(--bzpo-primary-text);
	font-weight: 600;
}

/* ---------- My ads (custom pop-ups / banners) ---------- */

.bzpo-ads-intro {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-block-end: 16px;
}

.bzpo-ads-intro .bzpo-h3 {
	margin: 0 0 4px;
}

.bzpo-ads-intro .bzpf-help {
	max-width: 640px;
	margin: 0;
}

.bzpo-ad-list {
	display: grid;
	gap: 12px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.bzpo-ad-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 16px;
	border: 1px solid #e3e8f1;
	border-radius: 14px;
	background: #fff;
}

.bzpo-ad-thumb {
	flex: none;
	width: 120px;
	height: 40px;
	border-radius: 8px;
	background: #f1f4f8;
	overflow: hidden;
}

.bzpo-ad-thumb.is-popup {
	width: 64px;
	height: 64px;
}

.bzpo-ad-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bzpo-ad-info {
	display: grid;
	flex: 1 1 auto;
	gap: 3px;
	min-width: 0;
}

.bzpo-ad-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
}

.bzpo-ad-meta {
	color: #5b6880;
	font-size: 13px;
}

.bzpo-ad-note {
	padding: 6px 10px;
	border-radius: 8px;
	background: #fdecea;
	color: #8a2222;
	font-size: 13px;
}

.bzpo-ad-note.is-info {
	background: #f1f6ff;
	color: #1d3a73;
}

.bzpo-ad-state {
	padding: 2px 10px;
	border-radius: 999px;
	background: #eef1f5;
	color: #3d4a63;
	font-size: 12px;
	font-weight: 700;
}

.bzpo-ad-state--pending { background: #fff3cd; color: #8a6300; }
.bzpo-ad-state--approved { background: #fde7d4; color: #8a3c00; }
.bzpo-ad-state--scheduled { background: #e5efff; color: #1d3a73; }
.bzpo-ad-state--running { background: #E6FAF1; color: #037D47; }
.bzpo-ad-state--rejected { background: #fdecea; color: #8a2222; }

.bzpo-ad-side {
	display: grid;
	flex: none;
	justify-items: end;
	gap: 8px;
}

.bzpo-ad-amount {
	font-size: 16px;
}

.bzpo-ad-kinds,
.bzpo-ad-modes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.bzpo-ad-kind,
.bzpo-ad-mode {
	position: relative;
	cursor: pointer;
}

.bzpo-ad-kind input,
.bzpo-ad-mode input {
	position: absolute;
	z-index: 1;
	inset-block-start: 14px;
	inset-inline-end: 14px;
	margin: 0;
	accent-color: #06CE78;
}

.bzpo-ad-kind-shape {
	margin-inline-end: 28px;
}

.bzpo-ad-kind-box,
.bzpo-ad-mode > span {
	display: grid;
	gap: 6px;
	height: 100%;
	padding: 16px;
	border: 2px solid #e3e8f1;
	border-radius: 14px;
	background: #fff;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.bzpo-ad-kind input:checked + .bzpo-ad-kind-box,
.bzpo-ad-mode input:checked + span {
	border-color: #06CE78;
	background: #f3fcf8;
}

.bzpo-ad-kind small,
.bzpo-ad-mode small {
	color: #5b6880;
	font-size: 13px;
	line-height: 1.45;
}

.bzpo-ad-kind .bzpo-ad-size {
	color: #037D47;
	font-weight: 700;
}

.bzpo-ad-kind-shape {
	display: block;
	height: 54px;
	border-radius: 8px;
	background: #f1f4f8;
	position: relative;
}

.bzpo-ad-kind-shape::after {
	content: "";
	position: absolute;
	border-radius: 6px;
	background: #06CE78;
}

.bzpo-ad-kind-shape.is-popup::after {
	inset: 8px 50% 8px auto;
	width: 38px;
	transform: translateX(50%);
}

.bzpo-ad-kind-shape.is-banner::after {
	inset: 8px 8px auto;
	height: 14px;
}

.bzpo-ad-places {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 8px;
}

.bzpo-ad-place {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid #e3e8f1;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
}

.bzpo-ad-place:has(input:checked) {
	border-color: #06CE78;
	background: #f3fcf8;
}

.bzpo-ad-place input {
	accent-color: #06CE78;
}

.bzpo-ad-place-name {
	flex: 1 1 auto;
	font-weight: 600;
}

.bzpo-ad-place-price {
	color: #5b6880;
	font-size: 12.5px;
	white-space: nowrap;
}

.bzpo-ad-busy {
	margin-block-start: 12px;
}

.bzpo-ad-booked {
	margin-block-start: 12px;
	color: #3d4a63;
	font-size: 13.5px;
}

.bzpo-ad-booked summary {
	cursor: pointer;
	font-weight: 600;
}

.bzpo-ad-total {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
	margin-block: 8px 4px;
	padding: 14px 18px;
	border-radius: 14px;
	background: #142039;
	color: #fff;
}

.bzpo-ad-total strong {
	font-size: 22px;
	color: #06CE78;
}

.bzpo-ad-total small {
	color: #b9c3d6;
}

.bzpo-ad-form .bzpf-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

@media (max-width: 700px) {
	.bzpo-ads-intro,
	.bzpo-ad-row {
		flex-direction: column;
		align-items: stretch;
	}

	.bzpo-ad-thumb {
		width: 100%;
		height: 80px;
	}

	.bzpo-ad-thumb.is-popup {
		width: 100%;
		height: 120px;
	}

	.bzpo-ad-side {
		justify-items: start;
	}

	.bzpo-ad-kinds,
	.bzpo-ad-modes {
		grid-template-columns: 1fr;
	}
}

/* Pause / resume / delete + confirmation dialog. */
.bzpo-ad-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
}

.bzpo-ad-actions form {
	margin: 0;
}

.bzpo .bzpo-ad-action {
	min-height: 32px;
	padding: 5px 12px;
	border: 1px solid #d5dce8;
	border-radius: 8px;
	background: #fff;
	color: #3d4a63;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.bzpo .bzpo-ad-action:hover {
	border-color: #9aa7bd;
	background: #f6f8fb;
}

.bzpo .bzpo-ad-action.is-primary {
	border-color: #06CE78;
	background: #06CE78;
	color: #04301C;
}

.bzpo .bzpo-ad-action.is-danger {
	border-color: #f2c4c4;
	color: #b42318;
}

.bzpo .bzpo-ad-action.is-danger:hover {
	background: #fdecea;
	border-color: #e59a9a;
}

.bzpo-ad-row--paused {
	background: #fffdf5;
}

.bzpo-ad-state--paused { background: #fff3cd; color: #6b4e00; }
.bzpo-ad-state--ended { background: #eef1f5; color: #5b6880; }

.bzpo-dialog {
	width: min(440px, calc(100vw - 32px));
	padding: 0;
	border: 0;
	border-radius: 18px;
	box-shadow: 0 30px 60px -20px rgba(13, 33, 71, 0.5);
}

.bzpo-dialog::backdrop {
	background: rgba(13, 33, 71, 0.55);
}

.bzpo-dialog-box {
	display: grid;
	gap: 10px;
	padding: 24px;
	text-align: center;
}

.bzpo-dialog-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin: 0 auto 4px;
	border-radius: 50%;
	background: #fdecea;
	color: #b42318;
}

.bzpo-dialog-icon .bzpo-icon {
	width: 26px;
	height: 26px;
}

.bzpo-dialog-title {
	margin: 0;
	color: #142039;
	font-size: 18px;
}

.bzpo-dialog-text {
	margin: 0;
	color: #3d4a63;
	font-size: 14.5px;
	line-height: 1.55;
}

.bzpo-dialog-warn {
	margin: 4px 0 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: #fff4e5;
	color: #8a3c00;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.5;
}

.bzpo-dialog-actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 10px;
}

.bzpo .bzpo-btn--light,
.bzpo-dialog .bzpo-btn--light {
	border-color: #d5dce8;
	background: #fff;
	color: #142039;
}

.bzpo .bzpo-btn--danger,
.bzpo-dialog .bzpo-btn--danger {
	background: #d92d20;
	color: #fff;
	font-weight: 700;
}

.bzpo-dialog .bzpo-btn--danger:hover {
	background: #b42318;
}

@media (max-width: 700px) {
	.bzpo-ad-actions {
		justify-content: flex-start;
	}
}

/* Always centred, even when the theme resets margins / positions. */
dialog.bzpo-dialog[open] {
	position: fixed !important;
	inset: auto !important;
	top: 50% !important;
	left: 50% !important;
	right: auto !important;
	bottom: auto !important;
	margin: 0 !important;
	max-height: calc(100vh - 32px);
	overflow: auto;
	transform: translate(-50%, -50%) !important;
	z-index: 100100;
}

.bzpo-lang-tag {
	display: inline-block;
	min-width: 26px;
	padding: 1px 6px;
	border-radius: 6px;
	background: #142039;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-align: center;
	vertical-align: 1px;
}

.bzpo-ad-lang-help {
	margin-block: 0 12px;
}

.bzpo-visitor-upsell {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 8px;
	padding: 16px 18px;
	border: 1px dashed #b5ecd2;
	border-radius: 14px;
	background: #f3fcf8;
}

.bzpo-visitor-upsell > .bzpo-icon {
	flex: none;
	width: 26px;
	height: 26px;
	color: #037D47;
}

.bzpo-visitor-upsell div {
	display: grid;
	flex: 1 1 auto;
	gap: 2px;
	font-size: 14px;
}

.bzpo-visitor-upsell span {
	color: #5b6880;
	font-size: 13.5px;
}

@media (max-width: 700px) {
	.bzpo-visitor-upsell {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ---------- "Advertise with us" page ---------- */

.bzpo-adreq .bzpo-hp {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

.bzpo-adreq-hero {
	position: relative;
	overflow: hidden;
	margin-block-end: 22px;
	padding: 34px 36px;
	border-radius: 22px;
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(6, 206, 120, 0.22) 0%, transparent 45%),
		linear-gradient(135deg, #0d2147 0%, #142a5c 60%, #0d2147 100%);
	color: #fff;
}

.bzpo-adreq-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border: 1px solid rgba(6, 206, 120, 0.45);
	border-radius: 999px;
	background: rgba(6, 206, 120, 0.12);
	color: #6ff0b5;
	font-size: 13px;
	font-weight: 700;
}

.bzpo-adreq-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #06CE78;
}

.bzpo .bzpo-adreq-title {
	margin: 14px 0 8px;
	color: #fff;
	font-size: clamp(22px, 2.6vw, 30px);
	font-weight: 800;
	line-height: 1.3;
}

.bzpo .bzpo-adreq-lead {
	max-width: 760px;
	margin: 0;
	color: #c7d2e6;
	font-size: 15.5px;
	line-height: 1.65;
}

.bzpo .bzpo-adreq-upsell {
	margin: 16px 0 0;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: #e7ecf6;
	font-size: 14px;
}

.bzpo .bzpo-adreq-upsell a {
	color: #6ff0b5;
	font-weight: 700;
	text-decoration: none;
}

.bzpo .bzpo-adreq-upsell small {
	display: block;
	margin-top: 4px;
	color: #9fb0cc;
}

.bzpo-adreq-choices .bzpo-ad-kind-box strong {
	padding-inline-end: 26px;
	font-size: 16px;
}

.bzpo-adreq-who {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-block-end: 16px;
}

.bzpo-adreq-who .bzpo-ad-mode > span {
	padding: 12px 16px;
}

.bzpo-adreq-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 14px 0 4px;
	color: #3d4a63;
	font-size: 14px;
	line-height: 1.55;
	cursor: pointer;
}

.bzpo-adreq-consent input {
	margin-top: 3px;
	accent-color: #06CE78;
}

.bzpo-gate-icon.is-success {
	background: #E6FAF1;
	color: #037D47;
}

@media (max-width: 700px) {
	.bzpo-adreq-hero {
		padding: 26px 20px;
	}

	.bzpo-adreq-who {
		grid-template-columns: 1fr;
	}
}

.bzpo-head ~ .bzpo-panel {
	margin-top: 18px;
}
