/**
 * Deposet Admin Styles
 *
 * @package Deposet
 */

/* =========================================================================
   Modern Settings Page
   ========================================================================= */
.deposet-settings-wrap {
	max-width: 1180px;
	margin: 0 auto;
	--deposet-accent: #4f46e5;
	--deposet-accent-dark: #4338ca;
	--deposet-border: #e5e7eb;
	--deposet-muted: #6b7280;
	--deposet-bg: #f9fafb;
	--deposet-radius: 14px;
}

.deposet-settings-wrap * {
	box-sizing: border-box;
}

/* Page header (minimal, light) */
.deposet-page-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 18px 0 22px;
	padding: 16px 20px;
	background: #fff;
	border: 1px solid var(--deposet-border);
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	color: #111827;
}

.deposet-page-header__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: #eef2ff;
	flex-shrink: 0;
}

.deposet-page-header__icon .dashicons {
	font-size: 22px;
	width: 22px;
	height: 22px;
	color: var(--deposet-accent);
}

.deposet-page-header__text h1 {
	margin: 0;
	padding: 0;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.2;
	color: #111827;
}

.deposet-page-header__subtitle {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--deposet-muted);
}

/* Info banner */
.deposet-banner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 18px;
	margin: 0 0 24px;
	background: #eef2ff;
	border: 1px solid #c7d2fe;
	border-left: 4px solid var(--deposet-accent);
	border-radius: 10px;
}

.deposet-banner__icon {
	color: var(--deposet-accent);
	font-size: 20px;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	flex-shrink: 0;
}

.deposet-banner p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: #3730a3;
}

/* Success variant */
.deposet-banner--success {
	background: #f0fdf4;
	border-color: #bbf7d0;
	border-left-color: #16a34a;
}

.deposet-banner--success .deposet-banner__icon {
	color: #16a34a;
}

.deposet-banner--success p {
	color: #15803d;
}

/* Two-column layout: main + trust sidebar */
.deposet-layout {
	display: flex;
	align-items: flex-start;
	gap: 24px;
}

.deposet-main {
	flex: 1 1 auto;
	min-width: 0;
}

.deposet-sidebar {
	flex: 0 0 300px;
	width: 300px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	position: sticky;
	top: 50px;
}

/* Cards layout */
.deposet-cards {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

/* ----- Sidebar cards ----- */
.deposet-side-card {
	background: #fff;
	border: 1px solid var(--deposet-border);
	border-radius: var(--deposet-radius);
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
	padding: 20px;
}

.deposet-side-card__title {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 700;
	color: #111827;
	display: flex;
	align-items: center;
	gap: 8px;
}

.deposet-side-card__title .dashicons {
	color: var(--deposet-accent);
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.deposet-side-card__text {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--deposet-muted);
}

/* Brand card (light primary shade) */
.deposet-side-card--brand {
	background: #eef2ff;
	border: 1px solid #c7d2fe;
	color: #1e1b4b;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
}

.deposet-side-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.deposet-side-brand .dashicons {
	font-size: 24px;
	width: 44px;
	height: 44px;
	line-height: 44px;
	text-align: center;
	border-radius: 12px;
	background: #e0e7ff;
	color: var(--deposet-accent);
}

.deposet-side-brand strong {
	display: block;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	color: #111827;
}

.deposet-side-brand__by {
	font-size: 12px;
	color: var(--deposet-muted);
}

.deposet-side-card--brand .deposet-side-card__text {
	color: #4b5563;
}

.deposet-side-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	background: var(--deposet-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	border-radius: 9px;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.05s ease;
}

.deposet-side-btn:hover {
	background: var(--deposet-accent-dark);
	color: #fff;
}

.deposet-side-btn:active {
	transform: translateY(1px);
}

.deposet-side-btn .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
}

/* Support links */
.deposet-side-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.deposet-side-links li {
	margin: 0;
	border-bottom: 1px solid #f1f2f4;
}

.deposet-side-links li:last-child {
	border-bottom: none;
}

.deposet-side-links a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 4px;
	font-size: 13.5px;
	color: #374151;
	text-decoration: none;
	transition: color 0.15s ease, padding 0.15s ease;
}

.deposet-side-links a:hover {
	color: var(--deposet-accent);
	padding-left: 8px;
}

.deposet-side-links a > .dashicons:first-child {
	font-size: 17px;
	width: 17px;
	height: 17px;
	color: #9ca3af;
}

.deposet-side-links a:hover > .dashicons:first-child {
	color: var(--deposet-accent);
}

.deposet-side-links__arrow {
	margin-left: auto;
	font-size: 15px !important;
	width: 15px !important;
	height: 15px !important;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.deposet-side-links a:hover .deposet-side-links__arrow {
	opacity: 1;
}

/* Other products */
.deposet-side-products {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.deposet-side-product {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px;
	border: 1px solid var(--deposet-border);
	border-radius: 10px;
	text-decoration: none;
	transition: all 0.15s ease;
}

.deposet-side-product:hover {
	background: #eef2ff;
	border-color: #c7d2fe;
	transform: translateY(-1px);
}

.deposet-side-product__icon {
	font-size: 20px;
	width: 38px;
	height: 38px;
	line-height: 38px;
	text-align: center;
	border-radius: 9px;
	background: #eef2ff;
	color: var(--deposet-accent);
	flex-shrink: 0;
}

.deposet-side-product__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.deposet-side-product__body strong {
	font-size: 13.5px;
	font-weight: 600;
	color: #111827;
}

.deposet-side-product__body span {
	font-size: 12px;
	line-height: 1.45;
	color: var(--deposet-muted);
}

/* Trust badge card */
.deposet-side-card--trust {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #f0fdf4;
	border-color: #bbf7d0;
	padding: 16px 18px;
}

.deposet-side-card--trust .dashicons {
	font-size: 26px;
	width: 26px;
	height: 26px;
	color: #16a34a;
	flex-shrink: 0;
}

.deposet-side-card--trust p {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: #15803d;
}

/* Sidebar responsive */
@media screen and (max-width: 1100px) {
	.deposet-layout {
		flex-direction: column;
	}

	.deposet-sidebar {
		flex-basis: auto;
		width: 100%;
		position: static;
	}
}

.deposet-card {
	background: #fff;
	border: 1px solid var(--deposet-border);
	border-radius: var(--deposet-radius);
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.deposet-card:hover {
	box-shadow: 0 6px 18px -8px rgba(16, 24, 40, 0.18);
}

.deposet-card__header {
	padding: 20px 26px;
	border-bottom: 1px solid var(--deposet-border);
	background: linear-gradient(180deg, #fcfcfd 0%, #fafafb 100%);
}

.deposet-card__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #111827;
	display: flex;
	align-items: center;
}

.deposet-card__title::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 18px;
	margin-right: 12px;
	border-radius: 4px;
	background: var(--deposet-accent);
}

.deposet-card__desc p {
	margin: 8px 0 0 16px;
	font-size: 13px;
	color: var(--deposet-muted);
}

.deposet-card__body {
	padding: 8px 26px 14px;
}

/* Form table rows inside cards */
.deposet-card__body .form-table {
	margin: 0;
}

.deposet-card__body .form-table tr {
	border-bottom: 1px solid #f1f2f4;
}

.deposet-card__body .form-table tr:last-child {
	border-bottom: none;
}

.deposet-card__body .form-table th {
	width: 240px;
	padding: 20px 20px 20px 0;
	font-size: 13.5px;
	font-weight: 600;
	color: #374151;
	vertical-align: middle;
}

.deposet-card__body .form-table td {
	padding: 18px 0;
	vertical-align: middle;
}

.deposet-card__body .form-table td .description {
	margin-top: 6px;
	font-size: 12.5px;
	color: var(--deposet-muted);
	font-style: normal;
}

/* Inputs */
.deposet-card__body input[type="number"],
.deposet-card__body input[type="text"],
.deposet-card__body select {
	min-height: 40px;
	padding: 6px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background-color: #fff;
	font-size: 14px;
	color: #111827;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.deposet-card__body input[type="number"] {
	max-width: 220px;
}

.deposet-card__body select {
	min-width: 200px;
}

.deposet-card__body input[type="number"]:focus,
.deposet-card__body input[type="text"]:focus,
.deposet-card__body select:focus {
	border-color: var(--deposet-accent);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
	outline: none;
}

/* Toggle switch for single checkboxes (Enable / Force / Require ...) */
.deposet-card__body .form-table td > label {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 13.5px;
	color: #374151;
	cursor: pointer;
}

.deposet-card__body .form-table td > label > input[type="checkbox"] {
	appearance: none !important;
	-webkit-appearance: none !important;
	box-sizing: border-box;
	position: relative;
	width: 44px !important;
	height: 24px !important;
	min-width: 44px;
	min-height: 24px;
	max-width: 44px;
	padding: 0;
	margin: 0;
	border: none !important;
	border-radius: 999px !important;
	background: #cbd5e1;
	box-shadow: none !important;
	cursor: pointer;
	transition: background 0.2s ease;
	flex-shrink: 0;
	vertical-align: middle;
}

/* Neutralize WordPress core checkmark glyph */
.deposet-card__body .form-table td > label > input[type="checkbox"]:checked::after,
.deposet-card__body .form-table td > label > input[type="checkbox"]:checked::before {
	content: "";
}

.deposet-card__body .form-table td > label > input[type="checkbox"]::before {
	content: "";
	display: block;
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	margin: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease;
	color: transparent;
	font-size: 0;
}

.deposet-card__body .form-table td > label > input[type="checkbox"]:checked {
	background: var(--deposet-accent);
}

.deposet-card__body .form-table td > label > input[type="checkbox"]:checked::before {
	transform: translateX(20px);
}

.deposet-card__body .form-table td > label > input[type="checkbox"]:focus {
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2) !important;
	outline: none;
}

/* Card action row (e.g. Add Rule button) */
.deposet-card__actions {
	margin-top: 4px;
	padding-top: 16px;
	border-top: 1px solid #f1f2f4;
}

.deposet-card__actions .button.deposet-save-btn {
	min-height: 42px;
	padding: 0 24px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 10px;
	background: var(--deposet-accent);
	border-color: var(--deposet-accent);
	box-shadow: 0 6px 16px -6px rgba(79, 70, 229, 0.6);
}

.deposet-card__actions .button.deposet-save-btn:hover {
	background: var(--deposet-accent-dark);
	border-color: var(--deposet-accent-dark);
}

/* Payment-plan schedule builder */
.deposet-plan-builder {
	max-width: 620px;
	border: 1px solid var(--deposet-border);
	border-radius: 10px;
	overflow: hidden;
}

.deposet-plan-rows {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.deposet-plan-rows thead th {
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
	padding: 10px 14px;
	background: #f9fafb;
	border-bottom: 1px solid var(--deposet-border);
}

.deposet-plan-rows tbody td {
	padding: 10px 14px;
	border-bottom: 1px solid #f1f2f4;
	vertical-align: middle;
}

.deposet-plan-rows tbody tr:last-child td {
	border-bottom: none;
}

.deposet-plan-rows td {
	white-space: nowrap;
}

.deposet-plan-rows input.small-text {
	width: 64px;
	height: 34px;
	margin: 0;
}

.deposet-interval-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: nowrap;
}

.deposet-interval-wrap em {
	color: #6b7280;
	font-style: italic;
}

.deposet-plan-rows .deposet-after-label {
	color: #6b7280;
}

.deposet-plan-rows .deposet-row-unit {
	min-width: 120px;
	height: 34px;
	margin: 0;
	vertical-align: middle;
}

.deposet-row-remove {
	color: #b91c1c;
	text-decoration: none;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	border: none;
	background: none;
}

.deposet-row-remove:hover {
	color: #7f1d1d;
}

.deposet-plan-foot {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 12px 14px;
	background: #fafafb;
	border-top: 1px solid var(--deposet-border);
	font-size: 13px;
}

.deposet-plan-foot .deposet-plan-duration {
	color: #6b7280;
}

.deposet-add-row.button {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border-radius: 8px;
}

.deposet-add-row.button .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* List top bar (Add New) */
.deposet-list-top {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 4px;
}

.deposet-add-new-btn.button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 0 18px;
	font-size: 13.5px;
	font-weight: 600;
	border-radius: 10px;
	background: var(--deposet-accent);
	border-color: var(--deposet-accent);
	box-shadow: 0 6px 16px -6px rgba(79, 70, 229, 0.6);
}

.deposet-add-new-btn.button:hover {
	background: var(--deposet-accent-dark);
	border-color: var(--deposet-accent-dark);
}

.deposet-add-new-btn.button .dashicons {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 1;
}

/* Empty state */
.deposet-empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 40px 20px;
	color: var(--deposet-muted);
}

.deposet-empty-state .dashicons {
	font-size: 40px;
	width: 40px;
	height: 40px;
	margin-bottom: 12px;
	color: #c7d2fe;
}

.deposet-empty-state p {
	margin: 0;
	font-size: 14px;
}

/* Rules table */
.deposet-rules-table {
	border: 1px solid var(--deposet-border);
	border-radius: 10px;
	overflow: hidden;
	border-collapse: separate;
	border-spacing: 0;
}

.deposet-rules-table thead th {
	background: #f9fafb;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
	padding: 14px 16px;
	border-bottom: 1px solid var(--deposet-border);
}

.deposet-rules-table tbody td {
	padding: 14px 16px;
	font-size: 14px;
	color: #374151;
	vertical-align: middle;
	border-bottom: 1px solid #f1f2f4;
}

.deposet-rules-table tbody tr:last-child td {
	border-bottom: none;
}

/* Type pill */
.deposet-pill {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.deposet-pill--percentage {
	background: #eef2ff;
	color: #4338ca;
}

.deposet-pill--fixed {
	background: #ecfdf5;
	color: #047857;
}

.deposet-pill--payment_plan {
	background: #fef3c7;
	color: #92400e;
}

/* Row actions (Edit + Delete) */
.deposet-row-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: nowrap;
}

.deposet-row-actions form {
	margin: 0;
	display: inline-flex;
}

.deposet-edit-btn.button {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border-radius: 8px;
	color: #4338ca;
	border-color: #c7d2fe;
	background: #fff;
}

.deposet-edit-btn.button:hover {
	background: #eef2ff;
	border-color: #4f46e5;
	color: #3730a3;
}

.deposet-edit-btn.button .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
}

/* Delete button */
.deposet-delete-btn.button {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border-radius: 8px;
	color: #b91c1c;
	border-color: #fca5a5;
	background: #fff;
}

.deposet-delete-btn.button:hover {
	background: #fef2f2;
	border-color: #ef4444;
	color: #991b1b;
}

.deposet-delete-btn.button .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
}

/* Footer / save bar */
.deposet-settings-footer {
	position: sticky;
	bottom: 0;
	margin-top: 24px;
	padding: 16px 0;
	display: flex;
	justify-content: flex-end;
}

.deposet-settings-footer .deposet-save-btn.button {
	min-height: 44px;
	padding: 0 28px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 10px;
	background: var(--deposet-accent);
	border-color: var(--deposet-accent);
	box-shadow: 0 6px 16px -6px rgba(79, 70, 229, 0.6);
	transition: background 0.15s ease, transform 0.05s ease;
}

.deposet-settings-footer .deposet-save-btn.button:hover {
	background: var(--deposet-accent-dark);
	border-color: var(--deposet-accent-dark);
}

.deposet-settings-footer .deposet-save-btn.button:active {
	transform: translateY(1px);
}

/* Category Rules */
.deposet-add-rule {
	background: #fff;
	padding: 20px;
	margin: 20px 0;
	border: 1px solid #ccd0d4;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.deposet-add-rule h2 {
	margin-top: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #ddd;
}

.deposet-rules-list {
	background: #fff;
	padding: 20px;
	margin: 20px 0;
	border: 1px solid #ccd0d4;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.deposet-rules-list h2 {
	margin-top: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #ddd;
}

/* Product Meta Box */
#deposet_product_data .options_group {
	padding: 15px;
}

#deposet_product_data .form-field {
	margin-bottom: 15px;
}

/* Payment Plans Table */
.deposet-payment-plans-table {
	margin-top: 20px;
}

.deposet-payment-plans-table .widefat {
	border: 1px solid #ccd0d4;
}

.deposet-payment-plans-table th {
	background: #f9f9f9;
	font-weight: 600;
}

.deposet-payment-plans-table td {
	padding: 12px;
}

/* Status Badges */
.deposet-status {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.deposet-status.pending {
	background: #fff3cd;
	color: #856404;
}

.deposet-status.partial {
	background: #d1ecf1;
	color: #0c5460;
}

.deposet-status.complete {
	background: #d4edda;
	color: #155724;
}

.deposet-status.refunded {
	background: #f8d7da;
	color: #721c24;
}

/* Tooltips */
.deposet-tooltip {
	position: relative;
	display: inline-block;
	margin-left: 5px;
	cursor: help;
}

.deposet-tooltip .dashicons {
	color: #a0a5aa;
	font-size: 16px;
}

.deposet-tooltip:hover .dashicons {
	color: #2271b1;
}

/* Notices */
.deposet-notice {
	margin: 15px 0;
	padding: 12px;
	border-left: 4px solid;
}

.deposet-notice.info {
	border-color: #2271b1;
	background: #f0f6fc;
}

.deposet-notice.warning {
	border-color: #dba617;
	background: #fcf9e8;
}

.deposet-notice.error {
	border-color: #d63638;
	background: #fcf0f1;
}

/* Buttons */
.deposet-button-primary {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
	padding: 8px 16px;
	text-decoration: none;
	border-radius: 3px;
	display: inline-block;
	transition: all 0.2s;
}

.deposet-button-primary:hover {
	background: #135e96;
	border-color: #135e96;
	color: #fff;
}

/* Order Meta Box */
.deposet-order-meta {
	padding: 15px;
	background: #f9f9f9;
	border: 1px solid #ddd;
	margin: 15px 0;
}

.deposet-order-meta h4 {
	margin: 0 0 10px 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #ddd;
}

.deposet-order-meta-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}

.deposet-order-meta-row:last-child {
	border-bottom: none;
}

.deposet-order-meta-label {
	font-weight: 600;
	color: #666;
}

.deposet-order-meta-value {
	color: #333;
	font-weight: 500;
}

/* Checkbox Group Fields */
.deposet-checkbox-group {
	margin-bottom: 15px;
}

.deposet-checkbox-container {
	background: #fafafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 16px;
	max-height: 240px;
	overflow-y: auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 10px;
}

.deposet-checkbox-item {
	display: flex;
	align-items: center;
	padding: 10px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	transition: all 0.15s ease;
	cursor: pointer;
}

.deposet-checkbox-item:hover {
	background: #eef2ff;
	border-color: #c7d2fe;
}

.deposet-checkbox-item input[type="checkbox"] {
	margin: 0 10px 0 0;
	width: 16px;
	height: 16px;
	accent-color: #4f46e5;
}

.deposet-checkbox-item input[type="checkbox"]:checked + .deposet-checkbox-label {
	color: #4338ca;
	font-weight: 600;
}

.deposet-checkbox-item:has(input[type="checkbox"]:checked) {
	background: #eef2ff;
	border-color: #4f46e5;
	box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.15);
}

.deposet-checkbox-label {
	font-size: 13.5px;
	color: #374151;
	transition: color 0.15s ease;
}

.deposet-checkbox-group .description {
	margin-top: 10px;
	font-style: normal;
	color: #6b7280;
}

.deposet-checkbox-group .description strong {
	color: #4338ca;
	font-weight: 600;
}

/* Responsive */
@media (max-width: 782px) {
	.deposet-settings-header {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.deposet-add-rule,
	.deposet-rules-list {
		padding: 15px;
	}
	
	.deposet-order-meta-row {
		flex-direction: column;
		gap: 5px;
	}
	
	.deposet-checkbox-container {
		grid-template-columns: 1fr;
		max-height: 300px;
	}
	
	.deposet-checkbox-item {
		padding: 10px 12px;
	}
}

/* Partial Payments List Table */
.deposet-payment-type-deposit {
	color: #2271b1;
	font-weight: 600;
}

.deposet-payment-type-remaining {
	color: #d63638;
	font-weight: 600;
}

/* Order status badges in list table */
.order-status {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	line-height: 1;
}

.order-status.status-pending {
	background: #fff3cd;
	color: #856404;
}

.order-status.status-processing {
	background: #cce5ff;
	color: #004085;
}

.order-status.status-completed {
	background: #d4edda;
	color: #155724;
}

.order-status.status-cancelled {
	background: #f8d7da;
	color: #721c24;
}

.order-status.status-refunded {
	background: #e2e3e5;
	color: #383d41;
}

/* Partial payment list table styling */
.wp-list-table .column-partial_payment {
	width: 25%;
}

.wp-list-table .column-parent_order {
	width: 15%;
}

.wp-list-table .column-date {
	width: 15%;
}

.wp-list-table .column-status {
	width: 15%;
}

.wp-list-table .column-total {
	width: 15%;
}

/* Sortable column headers */
.wp-list-table .sortable .sorting-indicators {
	display: inline-block;
	margin-left: 5px;
	opacity: 0.5;
}

.wp-list-table .sortable:hover .sorting-indicators {
	opacity: 1;
}

/* Bulk actions styling */
.bulk-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.bulk-actions select {
	min-width: 150px;
}

/* Search and filter styling */
.tablenav .alignleft.actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.tablenav .alignleft.actions select {
	margin-right: 10px;
}

/* Order view links */
.order-view {
	text-decoration: none;
	color: #2271b1;
	font-weight: 600;
}

.order-view:hover {
	color: #135e96;
	text-decoration: underline;
}

/* Responsive table */
@media (max-width: 782px) {
	.wp-list-table .column-partial_payment,
	.wp-list-table .column-parent_order,
	.wp-list-table .column-date,
	.wp-list-table .column-status,
	.wp-list-table .column-total {
		width: auto;
	}
	
	.tablenav .alignleft.actions {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.bulk-actions {
		flex-direction: column;
		align-items: flex-start;
	}
}


.post-type-deposet_payment .wp-list-table .order-preview,.woocommerce_page_wc-orders .wp-list-table .order-preview {
    float: right;
    width: 16px;
    padding: 20px 4px 4px 4px;
    height: 0;
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
    border-radius: 4px
}

.post-type-deposet_payment .wp-list-table .order-preview::before,.woocommerce_page_wc-orders .wp-list-table .order-preview::before {
    font-family: WooCommerce;
    speak: never;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    margin: 0;
    text-indent: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    content: "\e010";
    line-height: 16px;
    font-size: 14px;
    vertical-align: middle;
    top: 4px
}
.post-type-deposet_payment .order_date.small-screen-only,
.post-type-deposet_payment .order_status.small-screen-only{
	display: none;
}