.bsp-public-shell {
	--bsp-accent: #0b765f;
	--bsp-accent-soft: #e7f3ef;
	--bsp-bg: #f5f7f6;
	--bsp-surface: #ffffff;
	--bsp-text: #16231e;
	--bsp-muted: #65736d;
	--bsp-line: #d8e2dd;
	--bsp-error: #a02f2f;
	box-sizing: border-box;
	color: var(--bsp-text);
	direction: rtl;
	font-family: Tahoma, Arial, sans-serif;
	margin: 30px auto;
	max-width: 820px;
}

.bsp-public-shell *,
.bsp-public-shell *::before,
.bsp-public-shell *::after {
	box-sizing: border-box;
}

.bsp-public-heading {
	margin-bottom: 22px;
	text-align: center;
}

.bsp-public-heading h2,
.bsp-public-list-heading h2 {
	font-size: 28px;
	font-weight: 600;
	margin: 0 0 8px;
}

.bsp-public-heading p,
.bsp-public-list-heading p,
.bsp-public-form section > p,
.bsp-public-success p {
	color: var(--bsp-muted);
}

.bsp-public-progress {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(5, 1fr);
	margin-bottom: 20px;
}

.bsp-public-progress span {
	color: var(--bsp-muted);
	font-size: 13px;
	padding-top: 15px;
	position: relative;
	text-align: center;
}

.bsp-public-progress span::before {
	background: var(--bsp-line);
	border-radius: 5px;
	content: "";
	height: 5px;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.bsp-public-progress span.is-current,
.bsp-public-progress span.is-done {
	color: var(--bsp-accent);
	font-weight: 600;
}

.bsp-public-progress span.is-current::before,
.bsp-public-progress span.is-done::before {
	background: var(--bsp-accent);
}

.bsp-public-form {
	background: var(--bsp-surface);
	border: 1px solid var(--bsp-line);
	border-radius: 18px;
	padding: 26px;
}

.bsp-public-form section[hidden],
.bsp-public-button[hidden] {
	display: none;
}

.bsp-public-form h2 {
	font-size: 22px;
	font-weight: 600;
	margin: 0 0 8px;
}

.bsp-public-drop {
	align-items: center;
	background: var(--bsp-bg);
	border: 2px dashed var(--bsp-line);
	border-radius: 14px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 8px;
	justify-content: center;
	min-height: 210px;
	padding: 24px;
	text-align: center;
}

.bsp-public-drop .dashicons {
	color: var(--bsp-accent);
	font-size: 38px;
	height: 38px;
	width: 38px;
}

.bsp-public-drop strong {
	font-size: 17px;
}

.bsp-public-drop small,
.bsp-public-field small,
.bsp-public-choices small {
	color: var(--bsp-muted);
}

.bsp-public-drop input {
	max-width: 100%;
}

.bsp-public-file-name {
	background: var(--bsp-accent-soft);
	border-radius: 10px;
	color: var(--bsp-accent);
	margin-top: 12px;
	padding: 10px 12px;
}

.bsp-public-field {
	margin-bottom: 16px;
}

.bsp-public-field label,
.bsp-public-choices legend {
	display: block;
	font-weight: 600;
	margin-bottom: 7px;
}

.bsp-public-field input,
.bsp-public-field textarea,
.bsp-public-field select {
	background: var(--bsp-bg);
	border: 1px solid var(--bsp-line);
	border-radius: 10px;
	color: var(--bsp-text);
	display: block;
	font-size: 16px;
	padding: 11px 12px;
	width: 100%;
}

.bsp-public-field textarea {
	min-height: 110px;
	resize: vertical;
}

.bsp-public-field small {
	display: block;
	margin-top: 5px;
}

.bsp-public-fields-row {
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr 1fr;
}

.bsp-public-choices {
	border: 0;
	margin: 0 0 18px;
	padding: 0;
}

.bsp-public-choices > label {
	align-items: flex-start;
	background: var(--bsp-bg);
	border: 1px solid var(--bsp-line);
	border-radius: 11px;
	cursor: pointer;
	display: flex;
	gap: 10px;
	margin-bottom: 8px;
	padding: 12px;
}

.bsp-public-choices > label:has(input:checked) {
	background: var(--bsp-accent-soft);
	border-color: var(--bsp-accent);
}

.bsp-public-choices input,
.bsp-public-check input {
	accent-color: var(--bsp-accent);
	margin-top: 4px;
}

.bsp-public-choices span,
.bsp-public-choices strong,
.bsp-public-choices small {
	display: block;
}

.bsp-public-check {
	align-items: flex-start;
	border-bottom: 1px solid var(--bsp-line);
	cursor: pointer;
	display: flex;
	gap: 9px;
	padding: 11px 0;
}

.bsp-public-check.is-required {
	font-weight: 600;
}

.bsp-public-note {
	background: var(--bsp-accent-soft);
	border-radius: 10px;
	color: var(--bsp-accent);
	font-size: 13px;
	margin: 13px 0 0;
	padding: 10px;
}

.bsp-public-review {
	display: grid;
	gap: 0;
}

.bsp-public-review > div {
	border-bottom: 1px solid var(--bsp-line);
	display: grid;
	gap: 12px;
	grid-template-columns: 140px 1fr;
	padding: 12px 0;
}

.bsp-public-review span {
	color: var(--bsp-muted);
}

.bsp-public-actions {
	display: flex;
	gap: 10px;
	justify-content: space-between;
	margin-top: 22px;
}

.bsp-public-button {
	background: var(--bsp-accent);
	border: 0;
	border-radius: 10px;
	color: #fff !important;
	cursor: pointer;
	display: inline-flex;
	font-weight: 600;
	justify-content: center;
	min-height: 44px;
	padding: 11px 17px;
	text-decoration: none !important;
}

.bsp-public-button.is-secondary {
	background: var(--bsp-bg);
	border: 1px solid var(--bsp-line);
	color: var(--bsp-text) !important;
}

.bsp-public-button:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.bsp-public-alert {
	background: #fff0f0;
	border: 1px solid #edb9b9;
	border-radius: 10px;
	color: var(--bsp-error);
	margin-bottom: 15px;
	padding: 12px 14px;
}

.bsp-public-success,
.bsp-public-empty {
	background: var(--bsp-surface);
	border: 1px solid var(--bsp-line);
	border-radius: 18px;
	padding: 38px 22px;
	text-align: center;
}

.bsp-public-success .dashicons {
	color: var(--bsp-accent);
	font-size: 54px;
	height: 54px;
	width: 54px;
}

.bsp-public-success code {
	background: var(--bsp-bg);
	border-radius: 7px;
	display: inline-block;
	margin: 8px;
	padding: 7px 10px;
}

.bsp-public-list-heading {
	align-items: end;
	display: flex;
	gap: 15px;
	justify-content: space-between;
	margin-bottom: 18px;
}

.bsp-public-table-wrap {
	overflow-x: auto;
}

.bsp-public-table {
	background: var(--bsp-surface);
	border-collapse: collapse;
	min-width: 620px;
	width: 100%;
}

.bsp-public-table th,
.bsp-public-table td {
	border-bottom: 1px solid var(--bsp-line);
	padding: 13px;
	text-align: right;
}

.bsp-public-status {
	background: var(--bsp-accent-soft);
	border-radius: 999px;
	color: var(--bsp-accent);
	display: inline-block;
	font-size: 13px;
	padding: 5px 9px;
}

.bsp-public-status.is-changes_requested {
	background: #fff4d6;
	color: #7a5200;
}

.bsp-public-status.is-rejected {
	background: #fff0f0;
	color: var(--bsp-error);
}

.bsp-public-status.is-published {
	background: #e7f3ef;
	color: var(--bsp-accent);
}

.bsp-public-review-message {
	color: var(--bsp-muted);
	display: block;
	font-size: 13px;
	font-weight: 400;
	margin-top: 5px;
	max-width: 360px;
}

.bsp-gallery-shell,
.bsp-photo-detail {
	max-width: 1180px;
}

.bsp-gallery-heading {
	align-items: center;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	margin-bottom: 22px;
}

.bsp-gallery-heading h2,
.bsp-photo-main h2 {
	font-size: 30px;
	margin: 0 0 7px;
}

.bsp-gallery-heading p {
	color: var(--bsp-muted);
	margin: 0;
}

.bsp-gallery-search {
	background: var(--bsp-surface);
	border: 1px solid var(--bsp-line);
	border-radius: 14px;
	display: flex;
	gap: 9px;
	margin-bottom: 24px;
	padding: 10px;
}

.bsp-gallery-search input {
	background: var(--bsp-bg);
	border: 1px solid var(--bsp-line);
	border-radius: 9px;
	font-size: 16px;
	min-width: 0;
	padding: 10px 12px;
	width: 100%;
}

.bsp-gallery-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bsp-gallery-card {
	background: var(--bsp-surface);
	border: 1px solid var(--bsp-line);
	border-radius: 15px;
	overflow: hidden;
	transition: box-shadow .18s ease, transform .18s ease;
}

.bsp-gallery-card:hover {
	box-shadow: 0 10px 28px rgba(22, 35, 30, .10);
	transform: translateY(-2px);
}

.bsp-gallery-image {
	aspect-ratio: 4 / 3;
	background: var(--bsp-bg);
	display: block;
	overflow: hidden;
}

.bsp-gallery-image img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
	width: 100%;
}

.bsp-gallery-card:hover .bsp-gallery-image img {
	transform: scale(1.025);
}

.bsp-gallery-card-body {
	padding: 15px;
}

.bsp-gallery-card h3 {
	font-size: 18px;
	line-height: 1.55;
	margin: 0 0 9px;
}

.bsp-gallery-card h3 a,
.bsp-photo-back a {
	color: var(--bsp-text);
	text-decoration: none;
}

.bsp-gallery-meta {
	color: var(--bsp-muted);
	display: flex;
	font-size: 13px;
	gap: 8px;
	justify-content: space-between;
	margin-bottom: 10px;
}

.bsp-gallery-card code,
.bsp-photo-facts code {
	font-size: 12px;
}

.bsp-gallery-pagination {
	align-items: center;
	display: flex;
	gap: 15px;
	justify-content: center;
	margin-top: 26px;
}

.bsp-gallery-pagination a {
	background: var(--bsp-surface);
	border: 1px solid var(--bsp-line);
	border-radius: 8px;
	color: var(--bsp-text);
	padding: 8px 13px;
	text-decoration: none;
}

.bsp-photo-back {
	margin-bottom: 14px;
}

.bsp-photo-figure {
	background: #101713;
	border-radius: 18px;
	margin: 0;
	overflow: hidden;
	padding: 16px;
	text-align: center;
}

.bsp-photo-figure img {
	display: block;
	height: auto;
	margin: auto;
	max-height: 78vh;
	max-width: 100%;
	width: auto;
}

.bsp-photo-content {
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr);
	margin-top: 24px;
}

.bsp-photo-main,
.bsp-photo-facts {
	background: var(--bsp-surface);
	border: 1px solid var(--bsp-line);
	border-radius: 15px;
	padding: 22px;
}

.bsp-photo-description {
	font-size: 17px;
	line-height: 1.9;
}

.bsp-photo-facts dl {
	margin: 0;
}

.bsp-photo-facts dl > div {
	border-bottom: 1px solid var(--bsp-line);
	padding: 10px 0;
}

.bsp-photo-facts dt {
	color: var(--bsp-muted);
	font-size: 13px;
}

.bsp-photo-facts dd {
	font-weight: 600;
	margin: 3px 0 0;
}

.bsp-photo-rights {
	background: var(--bsp-accent-soft);
	border-radius: 9px;
	color: var(--bsp-accent);
	font-size: 12px;
	line-height: 1.7;
	margin: 15px 0 0;
	padding: 10px;
}

@media (max-width: 900px) {
	.bsp-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bsp-photo-content {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.bsp-public-shell {
		margin: 18px auto;
	}

	.bsp-public-heading {
		text-align: right;
	}

	.bsp-public-heading h2,
	.bsp-public-list-heading h2 {
		font-size: 23px;
	}

	.bsp-public-progress span {
		font-size: 0;
		padding-top: 12px;
	}

	.bsp-public-progress span.is-current {
		font-size: 11px;
	}

	.bsp-public-form {
		border-radius: 13px;
		padding: 18px 13px;
	}

	.bsp-public-fields-row {
		grid-template-columns: 1fr;
	}

	.bsp-public-review > div {
		gap: 4px;
		grid-template-columns: 1fr;
	}

	.bsp-public-list-heading {
		align-items: stretch;
		flex-direction: column;
	}

	.bsp-gallery-heading {
		align-items: stretch;
		flex-direction: column;
	}

	.bsp-gallery-grid {
		grid-template-columns: 1fr;
	}

	.bsp-gallery-search {
		flex-direction: column;
	}

	.bsp-gallery-heading h2,
	.bsp-photo-main h2 {
		font-size: 24px;
	}

	.bsp-photo-figure {
		border-radius: 12px;
		padding: 8px;
	}
}
