.bos-wrap {
	max-width: 1280px;
}

.bos-page-header {
	align-items: center;
	background: #ffffff;
	border: 1px solid #dbe3ef;
	border-radius: 16px;
	box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
	display: flex;
	justify-content: space-between;
	margin: 18px 0 20px;
	padding: 34px 28px;
}

.bos-page-title {
	align-items: center;
	display: flex;
	gap: 18px;
}

.bos-brand-mark {
	align-items: center;
	background: #3847ec;
	border-radius: 14px;
	box-shadow: 0 12px 22px rgba(56, 71, 236, 0.22);
	color: #ffffff;
	display: inline-flex;
	height: 46px;
	justify-content: center;
	width: 46px;
}

.bos-page-header h1 {
	color: #111827;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 8px;
}

.bos-page-header p {
	color: #596579;
	font-size: 14px;
	margin: 0;
}

.bos-version-badge {
	background: #eef2ff;
	border: 1px solid #c7d2fe;
	border-radius: 999px;
	color: #3847ec;
	font-size: 12px;
	font-weight: 800;
	padding: 8px 12px;
}

.bos-section-layout {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	overflow: hidden;
}

.bos-section-tabs {
	align-content: start;
	background: #f8fafc;
	border-right: 1px solid #dbe3ef;
	display: grid;
	gap: 8px;
	grid-auto-rows: max-content;
	padding: 16px;
}

.bos-section-tab {
	border-radius: 10px;
	color: #354052;
	font-size: 13px;
	font-weight: 800;
	padding: 14px 15px;
	text-decoration: none;
}

.bos-section-tab:hover,
.bos-section-tab:focus {
	background: #eef2ff;
	color: #2432d0;
}

.bos-section-tab.active {
	background: #3847ec;
	box-shadow: 0 12px 22px rgba(56, 71, 236, 0.22);
	color: #ffffff;
}

.bos-section-content {
	display: grid;
	gap: 16px;
	padding: 18px;
}

.bos-card {
	background: #ffffff;
	border: 1px solid #dbe3ef;
	border-radius: 14px;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
	overflow: hidden;
}

.bos-card-head {
	align-items: center;
	border-bottom: 1px solid #e8edf5;
	display: flex;
	justify-content: space-between;
	padding: 16px 20px;
}

.bos-card h2 {
	color: #111827;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.3;
	margin: 0;
}

.bos-card-body {
	padding: 20px;
}

.bos-grid-two {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bos-grid-blocks {
	align-items: start;
	grid-template-columns: 360px minmax(0, 1fr);
}

.bos-field {
	display: grid;
	gap: 8px;
	margin-bottom: 16px;
}

.bos-field span,
.bos-switch-setting span {
	color: #354052;
	font-size: 13px;
	font-weight: 800;
}

.bos-field input,
.bos-field select,
.bos-field textarea,
.bos-filters input,
.bos-filters select {
	border: 1px solid #cbd5e1;
	border-radius: 9px;
	box-shadow: none;
	min-height: 38px;
	width: 100%;
}

.bos-field-inline {
	align-items: center;
	grid-template-columns: minmax(180px, 1fr) 120px;
}

.bos-primary {
	background: #3847ec !important;
	border-color: #3847ec !important;
	border-radius: 8px !important;
	color: #ffffff !important;
	font-weight: 800 !important;
}

.bos-primary:hover,
.bos-primary:focus {
	background: #2736d9 !important;
	border-color: #2736d9 !important;
}

.bos-actions {
	margin-top: 14px;
}

.bos-table {
	border: 0 !important;
	margin: 0;
}

.bos-table th {
	background: #f1f5f9;
	color: #24324a;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0;
}

.bos-table td,
.bos-table th {
	padding: 12px 14px;
	vertical-align: middle;
}

.bos-empty {
	color: #64748b;
	margin: 0;
	padding: 22px;
}

.bos-empty-state {
	color: #556174;
	padding: 52px 24px;
	text-align: center;
}

.bos-empty-state .dashicons {
	background: #eef2ff;
	border-radius: 12px;
	color: #3847ec;
	font-size: 28px;
	height: 44px;
	line-height: 44px;
	width: 44px;
}

.bos-empty-state h3 {
	color: #111827;
	font-size: 16px;
	margin: 14px 0 8px;
}

.bos-empty-state p,
.bos-description {
	color: #556174;
	font-size: 14px;
	margin: 0;
}

.bos-pill,
.bos-log-type,
.bos-warning-badge {
	border-radius: 999px;
	display: inline-flex;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	padding: 7px 9px;
}

.bos-pill,
.bos-log-type {
	background: #eef2ff;
	color: #3730a3;
}

.bos-warning-badge {
	background: #fff1f2;
	border: 1px solid #fecdd3;
	color: #be123c;
}

.bos-contact-stack {
	display: grid;
	font-weight: 800;
	gap: 3px;
}

.bos-contact-stack small {
	color: #64748b;
	font-weight: 600;
}

.bos-switch-row {
	align-items: center;
	cursor: pointer;
	display: inline-flex;
	gap: 10px;
	justify-content: space-between;
}

.bos-switch-row input {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.bos-switch-row i {
	background: #cbd5e1;
	border-radius: 999px;
	display: inline-block;
	height: 24px;
	position: relative;
	transition: background 0.16s ease;
	width: 44px;
}

.bos-switch-row i:after {
	background: #ffffff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
	content: "";
	height: 18px;
	left: 3px;
	position: absolute;
	top: 3px;
	transition: transform 0.16s ease;
	width: 18px;
}

.bos-switch-row input:checked + i {
	background: #3847ec;
}

.bos-switch-row input:checked + i:after {
	transform: translateX(20px);
}

.bos-switch-lock {
	align-items: center;
	background: #f0edff;
	border: 1px solid #d8d2ff;
	border-radius: 50%;
	color: #5b4be3;
	display: inline-flex;
	font-size: 13px;
	height: 24px;
	justify-content: center;
	line-height: 1;
	width: 24px;
}

.bos-switch-setting {
	display: flex;
	margin: 0 0 16px;
}

.bos-block-form textarea {
	min-height: 92px;
	resize: vertical;
}

.bos-filters {
	align-items: center;
	border-bottom: 1px solid #e8edf5;
	display: grid;
	gap: 10px;
	grid-template-columns: 170px 170px minmax(180px, 1fr) auto;
	padding: 16px 18px;
}

.bos-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bos-pagination a {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	color: #24324a;
	font-weight: 800;
	min-width: 34px;
	padding: 8px 10px;
	text-align: center;
	text-decoration: none;
}

.bos-pagination a.active {
	background: #3847ec;
	border-color: #3847ec;
	color: #ffffff;
}

.bos-muted {
	color: #9ca3af;
}

.bos-metabox {
	display: grid;
	gap: 12px;
}

.bos-customer-facts {
	display: grid;
	gap: 7px;
}

.bos-customer-facts p {
	align-items: center;
	border-bottom: 1px solid #e8edf5;
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 6px 0;
}

.bos-customer-facts span {
	color: #64748b;
	font-weight: 700;
}

.bos-customer-facts strong {
	color: #111827;
	text-align: right;
}

.bos-order-warning {
	background: #fff1f2;
	border: 1px solid #fecdd3;
	border-radius: 8px;
	color: #be123c;
	font-weight: 800;
	padding: 10px;
}

.bos-note {
	color: #475569;
	margin: 0;
}

.bos-order-actions {
	display: grid;
	gap: 8px;
}

.bos-inline-form {
	display: inline;
	margin: 0;
}

.bos-full-button {
	width: 100%;
}

.bos-suspicious-form {
	display: grid;
	gap: 8px;
}

.bos-suspicious-form label {
	font-weight: 800;
}

.bos-suspicious-form textarea {
	width: 100%;
}

.bos-clear-button {
	border-color: #be123c !important;
	color: #be123c !important;
}

@media (max-width: 1100px) {
	.bos-section-layout,
	.bos-grid-two,
	.bos-grid-blocks {
		grid-template-columns: 1fr;
	}

	.bos-section-tabs {
		border-right: 0;
		border-bottom: 1px solid #dbe3ef;
	}

	.bos-filters {
		grid-template-columns: 1fr;
	}
}

/* SafeOrder Pro 4.1 admin redesign. */
.bos-wrap {
	--bos-accent: #6d5dfc;
	--bos-accent-dark: #4d3ed5;
	--bos-ink: #171827;
	--bos-muted: #6f7284;
	--bos-line: #e7e7f0;
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	max-width: 1380px;
}

.bos-page-header {
	background:
		radial-gradient(circle at 76% 20%, rgba(122, 104, 255, 0.34), transparent 32%),
		linear-gradient(128deg, #171629 0%, #242044 58%, #3e3478 100%);
	border: 0;
	box-shadow: 0 24px 54px rgba(27, 23, 65, 0.2);
	min-height: 116px;
	padding: 30px 32px;
}

.bos-brand-mark {
	background: linear-gradient(145deg, #7767ff, #5948e5);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 17px;
	box-shadow: 0 14px 30px rgba(83, 68, 226, 0.36);
	height: 56px;
	width: 56px;
}

.bos-brand-mark .dashicons {
	font-size: 27px;
	height: 27px;
	width: 27px;
}

.bos-page-header h1 {
	color: #ffffff;
	font-size: 30px;
	letter-spacing: -0.035em;
}

.bos-page-header p {
	color: #c9c6dc;
	font-size: 13px;
}

.bos-header-badges {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	justify-content: flex-end;
}.bos-version-badge {
	align-items: center;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 999px;
	display: inline-flex;
	font-size: 11px;
	font-weight: 800;
	gap: 5px;
	padding: 8px 11px;
}

.bos-version-badge {
	background: rgba(255, 255, 255, 0.09);
	color: #dedbf2;
}

.bos-section-layout {
	border: 1px solid var(--bos-line);
	border-radius: 19px;
	box-shadow: 0 20px 50px rgba(25, 24, 56, 0.09);
}

.bos-section-tabs {
	background: linear-gradient(180deg, #fafafd 0%, #f6f5fb 100%);
	gap: 7px;
	padding: 18px 14px;
}

.bos-section-tab {
	align-items: center;
	display: flex;
	gap: 10px;
	padding: 13px 14px;
}

.bos-section-tab .dashicons {
	color: #9a9cad;
	font-size: 17px;
	height: 17px;
	transition: color 150ms ease;
	width: 17px;
}

.bos-section-tab:hover,
.bos-section-tab:focus {
	background: #eeecff;
	color: var(--bos-accent-dark);
}

.bos-section-tab.active {
	background: linear-gradient(135deg, #7666ff, #5a49e8);
	box-shadow: 0 12px 25px rgba(89, 72, 226, 0.24);
}

.bos-section-tab.active .dashicons {
	color: #ffffff;
}

.bos-section-content {
	background: #fcfcfe;
	gap: 18px;
	padding: 22px;
}

.bos-card {
	border-color: var(--bos-line);
	border-radius: 16px;
	box-shadow: 0 9px 28px rgba(28, 26, 61, 0.045);
}

.bos-metabox-notice {
	border: 1px solid;
	border-radius: 8px;
	font-weight: 700;
	padding: 9px 10px;
}

.bos-metabox-notice.is-success {
	background: #ecfdf3;
	border-color: #bbebd0;
	color: #167648;
}

.bos-metabox-notice.is-error {
	background: #fff1f2;
	border-color: #fecdd3;
	color: #b4233b;
}

@media (max-width: 782px) {.bos-page-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.bos-header-badges {
		justify-content: flex-start;
	}
}

/* ==========================================================================
   SafeOrder Pro Ultimate 5.0.0 additions
   ========================================================================== */

.bos-field[hidden],
[data-bos-expiry-hours][hidden] {
	display: none;
}

.bos-muted {
	color: #646970;
}

.bos-description {
	margin-top: 0;
}

.bos-section-title {
	font-size: 16px;
	margin: 24px 0 12px;
}

.bos-stat-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	margin-bottom: 18px;
}

.bos-stat {
	background: #ffffff;
	border: 1px solid #dbe3ef;
	border-left: 4px solid #3847ec;
	border-radius: 12px;
	display: grid;
	gap: 4px;
	padding: 16px 18px;
}

.bos-stat.is-danger {
	border-left-color: #d63638;
}

.bos-stat.is-warning {
	border-left-color: #dba617;
}

.bos-stat-label {
	color: #596579;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.bos-stat-value {
	color: #111827;
	font-size: 28px;
	line-height: 1.1;
}

.bos-stat-note {
	color: #646970;
	font-size: 12px;
}

.bos-dash-grid {
	margin-bottom: 18px;
}

.bos-chart-tabs {
	display: inline-flex;
	gap: 6px;
}

.bos-chart-tabs .button.is-active {
	background: #3847ec;
	border-color: #3847ec;
	color: #ffffff;
}

.bos-chart svg {
	display: block;
	height: auto;
	max-width: 100%;
}

.bos-chart-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 8px;
}

.bos-chart-legend span {
	align-items: center;
	display: inline-flex;
	font-size: 12px;
	gap: 6px;
}

.bos-chart-legend i {
	border-radius: 3px;
	display: inline-block;
	height: 10px;
	width: 10px;
}

.bos-bar {
	background: #f0f0f1;
	border-radius: 999px;
	display: flex;
	height: 14px;
	margin-bottom: 14px;
	overflow: hidden;
}

.bos-bar-low {
	background: #00a32a;
}

.bos-bar-medium {
	background: #dba617;
}

.bos-bar-high {
	background: #d63638;
}

.bos-risk-list {
	display: grid;
	gap: 8px;
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.bos-risk-list li {
	align-items: center;
	display: flex;
	justify-content: space-between;
}

.bos-badge {
	border-radius: 999px;
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	padding: 5px 9px;
	white-space: nowrap;
}

.bos-badge-low {
	background: #e6f6ea;
	color: #006d1f;
}

.bos-badge-allow {
	background: #e6f6ea;
	color: #006d1f;
}

.bos-badge-medium {
	background: #fcf3d6;
	color: #7a5b00;
}

.bos-badge-high {
	background: #fbe3e4;
	color: #a31618;
}

.bos-badge-muted {
	background: #f0f0f1;
	color: #50575e;
}

.bos-warning-badge {
	background: #fcf3d6;
	border: 1px solid #dba617;
	border-radius: 4px;
	color: #7a5b00;
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 6px;
}

.bos-log-type {
	font-weight: 600;
}

.bos-table-scroll {
	overflow-x: auto;
}

.bos-filters {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px 20px;
}

.bos-pagination {
	padding: 12px 20px;
}

.bos-pagination .page-numbers {
	border: 1px solid #dcdcde;
	border-radius: 4px;
	display: inline-block;
	margin-right: 4px;
	padding: 4px 10px;
	text-decoration: none;
}

.bos-pagination .page-numbers.current {
	background: #3847ec;
	border-color: #3847ec;
	color: #ffffff;
}

.bos-row-actions {
	white-space: nowrap;
}

.bos-inline-form {
	display: inline-block;
	margin: 0 4px 0 0;
}

.bos-details summary {
	cursor: pointer;
	font-weight: 600;
}

.bos-notice-lines {
	list-style: disc;
	margin: 0 0 8px 20px;
}

.bos-settings-grid {
	display: grid;
	gap: 14px 24px;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.bos-settings-grid .bos-field-wide {
	grid-column: 1 / -1;
}

.bos-check-field {
	align-items: flex-start;
	display: flex;
	gap: 10px;
}

.bos-check-field small {
	color: #646970;
	display: block;
}

.bos-code {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	overflow-x: auto;
	padding: 12px;
	white-space: pre;
}

.bos-log-actions {
	padding: 0 20px 12px;
}

.bos-risk-panel {
	border-top: 1px solid #dcdcde;
	margin-top: 10px;
	padding-top: 10px;
}

.bos-risk-panel p {
	display: flex;
	justify-content: space-between;
	margin: 0 0 8px;
}

.bos-reasons {
	margin: 0 0 8px 18px;
	list-style: disc;
}

.bos-reasons em {
	color: #a31618;
	font-style: normal;
	font-weight: 700;
}

.column-bos_risk {
	width: 110px;
}

@media (max-width: 782px) {
	.bos-stat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bos-row-actions {
		white-space: normal;
	}
}

.bos-license-actions {
	margin: 12px 0;
}
