.spotmart-dispute-wrapper {
	background: #f9fafb;
	padding: 32px;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
	margin-bottom: 40px;
}

body.spotmart-modal-open {
	overflow: hidden;
}

.woocommerce-MyAccount-navigation li.is-active a,
.dokan-dashboard-menu li.dokan-dashboard-menu-active a {
	background: rgba(0, 179, 107, 0.12);
	color: #047857 !important;
	border-radius: 10px;
	font-weight: 600;
}

/* Fix spacing between icon and text for Dispute Management menu item */
.dokan-dashboard-menu li a[href*="spotmart-disputes"] .dashicons,
.dokan-dashboard-menu li a[href*="spotmart-disputes"] span.dashicons,
.dokan-dashboard-menu li a[href*="spotmart-disputes"] > .dashicons,
.dokan-dashboard-menu li a[href*="spotmart-disputes"] > span.dashicons {
	margin-right: 8px;
	display: inline-block;
}

.spotmart-dispute-wrapper h2 {
	margin: 0 0 4px;
	font-size: 24px;
	font-weight: 600;
	color: #111827;
}

.spotmart-dispute-subtitle {
	margin: 0;
	color: #6b7280;
	font-size: 14px;
}

.spotmart-dispute-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	gap: 16px;
}

.spotmart-dispute-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #fff;
	color: #111827;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.spotmart-dispute-button:hover {
	border-color: #007d39;
	color: #fff;
}

.spotmart-dispute-button--primary {
	background: #009900;
	color: #fff;
	border-color: #009900;
	box-shadow: 0 5px 12px rgba(0, 179, 107, 0.35);
}

.spotmart-dispute-button--primary:hover {
    background: #007d39;
    border-color: #007d39;
}

.spotmart-dispute-button--ghost {
	background: rgba(17, 24, 39, 0.05);
	border-color: transparent;
}

.spotmart-dispute-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-bottom: 20px;
}

.spotmart-dispute-filters-row {
	display: flex;
	gap: 20px;
	padding: 8px;
}

.spotmart-dispute-search {
	position: relative;
	flex: 1;
	min-width: 220px;
	max-width: 320px;
}

.spotmart-dispute-search span {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #9ca3af;
}

.spotmart-dispute-search input {
	width: 100%;
	padding: 10px 12px 10px 36px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #fff;
}

.spotmart-dispute-search input:focus {
	border-color: #4f46e5;
	outline: none;
	box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}

.spotmart-dispute-select {
	display: flex;
	align-items: center;
	gap: 8px;
}

.spotmart-dispute-select label {
	color: #6b7280;
	font-size: 13px;
	width: 70px;
}

.spotmart-dispute-select select {
	padding: 8px 14px;
	border-radius: 10px;
	border: 1px solid #d1d5db;
	background: #fff url("data:image/svg+xml,%3Csvg fill='none' stroke='%236b7280' stroke-width='1.5' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center/16px;
	padding-right: 34px;
	appearance: none;
}

.spotmart-dispute-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px #e5e7eb;
}

.spotmart-dispute-table-wrapper {
	overflow-x: auto;
}

.spotmart-dispute-table th,
.spotmart-dispute-table td {
	text-align: left;
	padding: 14px 18px;
	font-size: 14px;
}

.spotmart-dispute-table thead th {
	background: #f3f4f6;
	font-weight: 600;
	color: #4b5563;
	border-bottom: 1px solid #e5e7eb;
}

.spotmart-dispute-table tbody tr:not(:last-child) td {
	border-bottom: 1px solid #f3f4f6;
}

.spotmart-dispute-table tbody tr:hover {
	background: rgba(209, 213, 219, 0.18);
}

.spotmart-dispute-table tbody tr.js-spotmart-dispute-row {
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.spotmart-dispute-table tbody tr.js-spotmart-dispute-row.is-active {
	background: rgba(0, 179, 107, 0.1);
}

.spotmart-dispute-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	text-transform: capitalize;
}

.spotmart-dispute-modal {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 9999;
}

.spotmart-dispute-field--order select {
	width: 150px;
	max-width: 100%;
}

.spotmart-dispute-field--compact .spotmart-dispute-input--compact,
#spotmart-dispute-amount {
	width: 150px;
	max-width: 100%;
}

.spotmart-dispute-modal.is-open {
	display: block;
}

.spotmart-dispute-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.35);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.spotmart-dispute-modal.is-open .spotmart-dispute-modal__overlay {
	opacity: 1;
}

/* Side drawer for Raise Dispute form */
.spotmart-dispute-modal:not(.spotmart-dispute-modal--details) .spotmart-dispute-modal__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(480px, 100%);
	background: #fff;
	box-shadow: -10px 0 30px rgba(15, 23, 42, 0.2);
	border-radius: 16px 0 0 16px;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.25s ease;
}

.spotmart-dispute-modal:not(.spotmart-dispute-modal--details).is-open .spotmart-dispute-modal__panel {
	transform: translateX(0);
}

/* Popup modal for Dispute Details */
.spotmart-dispute-modal--details .spotmart-dispute-modal__panel {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.95);
	width: min(800px, 90%);
	max-height: 90vh;
	background: #fff;
	box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
	border-radius: 16px;
	display: flex;
	flex-direction: column;
	opacity: 0;
	transition: transform 0.25s ease, opacity 0.25s ease;
	overflow: hidden;
}

.spotmart-dispute-modal--details.is-open .spotmart-dispute-modal__panel {
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
}

.spotmart-dispute-modal__header {
	padding: 12px 24px 12px 24px;
	border-bottom: 1px solid #f3f4f6;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.spotmart-dispute-modal__title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #111827;
	flex: 1;
}

.spotmart-dispute-modal__header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.spotmart-dispute-modal__seller-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.spotmart-dispute-button--approve {
	background: #16a34a;
	color: #fff;
	border-color: #16a34a;
}

.spotmart-dispute-button--approve:hover {
	background: #15803d;
	border-color: #15803d;
}

.spotmart-dispute-button--reject {
	background: #dc2626;
	color: #fff;
	border-color: #dc2626;
}

.spotmart-dispute-button--reject:hover {
	background: #b91c1c;
	border-color: #b91c1c;
}

.spotmart-dispute-modal__footer {
	padding: 24px;
	border-top: 1px solid #f3f4f6;
	border-bottom: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.spotmart-dispute-modal__body {
	padding: 24px;
	overflow-y: auto;
	flex: 1;
}

/* Dispute Detail Styles */
.spotmart-dispute-detail-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 2px solid #e5e7eb;
}

.spotmart-dispute-detail-title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #111827;
}

.spotmart-dispute-detail-status {
	margin-left: 12px;
}

.spotmart-dispute-detail-meta {
	margin-bottom: 24px;
	padding: 16px;
	background: #f9fafb;
	border-radius: 12px;
}

.spotmart-dispute-detail-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 10px;
}

.spotmart-dispute-detail-list li {
	display: flex;
	align-items: flex-start;
	color: #374151;
	font-size: 14px;
	line-height: 1.6;
}

.spotmart-dispute-detail-list strong {
	color: #111827;
	min-width: 140px;
	margin-right: 8px;
	font-weight: 600;
}

.spotmart-dispute-detail-section {
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e5e7eb;
}

.spotmart-dispute-detail-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.spotmart-dispute-detail-section-title {
	margin: 0 0 12px 0;
	font-size: 16px;
	font-weight: 600;
	color: #111827;
}

.spotmart-dispute-detail-text {
	margin: 0;
	color: #4b5563;
	line-height: 1.7;
	font-size: 14px;
}

.spotmart-dispute-detail-description {
	color: #4b5563;
	line-height: 1.7;
	font-size: 14px;
}

.spotmart-dispute-detail-description p {
	margin: 0 0 12px 0;
}

.spotmart-dispute-detail-description p:last-child {
	margin-bottom: 0;
}

.spotmart-dispute-detail-amount {
	font-size: 18px;
	font-weight: 600;
	color: #059669;
}

.spotmart-dispute-proof-image {
	display: inline-block;
	margin: 8px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
}

.spotmart-dispute-proof-image img {
	display: block;
	max-width: 200px;
	max-height: 200px;
	object-fit: cover;
}

.spotmart-dispute-proof-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	margin: 8px;
	background: #f3f4f6;
	border-radius: 8px;
	color: #111827;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.spotmart-dispute-proof-link:hover {
	background: #e5e7eb;
	color: #059669;
}

.spotmart-dispute-detail__empty {
	padding: 40px;
	text-align: center;
	color: #6b7280;
}

.spotmart-dispute-modal__admin-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Image Lightbox Styles */
.spotmart-dispute-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: none;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.spotmart-dispute-lightbox.is-open {
	display: block;
	opacity: 1;
}

.spotmart-dispute-lightbox__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
}

.spotmart-dispute-lightbox__content {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
}

.spotmart-dispute-lightbox__image {
	max-width: 90%;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.spotmart-dispute-lightbox__close {
	position: absolute;
	top: 20px;
	right: 20px;
	border: none;
	border-radius: 50%;
	background-color: dimgrey;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10001;
	transition: background-color 0.2s ease;
}

.spotmart-dispute-lightbox__prev,
.spotmart-dispute-lightbox__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	border: none;
	border-radius: 50%;
	width: 50px;
	background-color: dimgrey;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10001;
	transition: background-color 0.2s ease;
}

.spotmart-dispute-lightbox__prev {
	left: 20px;
}

.spotmart-dispute-lightbox__next {
	right: 20px;
}



body.spotmart-lightbox-open {
	overflow: hidden;
}

.spotmart-dispute-proof-image {
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spotmart-dispute-proof-image:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Pagination Styles */
.spotmart-dispute-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
	padding: 20px 0;
	flex-wrap: wrap;
}

.spotmart-dispute-pagination__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	color: #111827;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s ease;
}

.spotmart-dispute-pagination__link:hover {
	border-color: #00b36b;
	color: #00b36b;
	background: rgba(0, 179, 107, 0.05);
}

.spotmart-dispute-pagination__link.spotmart-dispute-pagination__current {
	background: #00b36b;
	border-color: #00b36b;
	color: #fff;
	cursor: default;
}

.spotmart-dispute-pagination__link.spotmart-dispute-pagination__current:hover {
	background: #00b36b;
	color: #fff;
}

.spotmart-dispute-pagination__prev,
.spotmart-dispute-pagination__next {
	min-width: auto;
	padding: 8px 16px;
}

.spotmart-dispute-pagination__dots {
	padding: 8px 4px;
	color: #6b7280;
	font-size: 14px;
}

.spotmart-dispute-modal__close {
	background: none;
	border: none;
	color: #6b7280;
	cursor: pointer;
}

.spotmart-dispute-form .spotmart-dispute-field {
	display: flex;
	flex-direction: column;
	margin-bottom: 18px;
}

.spotmart-dispute-form label {
	font-size: 14px;
	font-weight: 500;
	color: #111827;
	margin-bottom: 6px;
}

.spotmart-dispute-form select,
.spotmart-dispute-form textarea,
.spotmart-dispute-form input[type="number"] {
	border-radius: 10px;
	border: 1px solid #d1d5db;
	padding: 10px 12px;
	font-size: 14px;
}

.spotmart-dispute-form textarea {
	resize: vertical;
	min-height: 120px;
}

.spotmart-dispute-upload {
	border: 1px dashed #cbd5f5;
	padding: 18px;
	border-radius: 12px;
	background: #f8fafc;
	text-align: center;
	cursor: pointer;
	position: relative;
	transition: border-color 0.2s ease;
}

.spotmart-dispute-upload:hover {
	border-color: #93c5fd;
}

.spotmart-dispute-upload__dropzone {
	color: #6b7280;
}

.spotmart-dispute-upload__preview {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
	justify-content: flex-start;
}

.spotmart-dispute-upload__preview img,
.spotmart-dispute-upload__preview .spotmart-dispute-file {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid rgba(148, 163, 184, 0.6);
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	padding: 4px;
}

.spotmart-dispute-order-summary {
	background: rgba(15, 23, 42, 0.03);
	padding: 16px;
	border-radius: 12px;
	margin-bottom: 18px;
}

.spotmart-dispute-order-items {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.spotmart-dispute-order-items li {
	display: flex;
	gap: 12px;
	align-items: center;
	background: #fff;
	padding: 10px 14px;
	border-radius: 12px;
	box-shadow: inset 0 0 0 1px #e5e7eb;
}

.spotmart-dispute-order-items img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 8px;
}

.spotmart-dispute-order-items .spotmart-dispute-item-info {
	display: flex;
	flex-direction: column;
	font-size: 13px;
	color: #4b5563;
}

.spotmart-dispute-order-items .spotmart-dispute-item-info strong {
	color: #111827;
}

.spotmart-dispute-detail-list {
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
	display: grid;
	gap: 6px;
	color: #374151;
}

.spotmart-dispute-detail-list strong {
	color: #111827;
	margin-right: 6px;
}

@media (max-width: 782px) {
	.spotmart-dispute-wrapper {
		padding: 20px;
		margin: 0;
		border-radius: 12px;
	}

	.spotmart-dispute-field--order select {
		width: 100%;
	}

	.spotmart-dispute-field--compact .spotmart-dispute-input--compact {
		width: 100%;
	}

	.spotmart-dispute-card__meta {
		grid-template-columns: 1fr;
	}

	.spotmart-dispute-card__meta dt,
	.spotmart-dispute-card__meta dd {
		grid-column: 1;
	}

	.spotmart-dispute-card__header {
		align-items: flex-start;
	}

	.spotmart-dispute-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.spotmart-dispute-select {
		justify-content: space-between;
	}

	.spotmart-dispute-modal:not(.spotmart-dispute-modal--details) .spotmart-dispute-modal__panel {
		width: 100%;
		border-radius: 16px 16px 0 0;
		bottom: 0;
		top: auto;
		min-height: 60%;
		transform: translateY(100%);
		transition: transform 0.25s ease;
	}

	.spotmart-dispute-modal:not(.spotmart-dispute-modal--details).is-open .spotmart-dispute-modal__panel {
		transform: translateY(0);
	}

	.spotmart-dispute-modal--details .spotmart-dispute-modal__panel {
		width: 95%;
		max-height: 95vh;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%) scale(0.95);
	}

	.spotmart-dispute-modal--details.is-open .spotmart-dispute-modal__panel {
		transform: translate(-50%, -50%) scale(1);
	}

	.spotmart-dispute-modal__header-actions {
		flex-wrap: wrap;
	}

	.spotmart-dispute-modal__seller-actions {
		order: -1;
		width: 100%;
		justify-content: flex-end;
		margin-bottom: 8px;
	}
}

@media (max-width: 640px) {
	.spotmart-dispute-table,
	.spotmart-dispute-table thead,
	.spotmart-dispute-table tbody,
	.spotmart-dispute-table th,
	.spotmart-dispute-table td,
	.spotmart-dispute-table tr {
		display: block;
	}

	.spotmart-dispute-table thead {
		display: none;
	}

	.spotmart-dispute-table tbody tr {
		margin-bottom: 16px;
		background: #fff;
		border-radius: 12px;
		box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
		padding: 6px 0;
	}

	.spotmart-dispute-table tbody td {
		border: none !important;
		padding: 10px 18px;
		display: flex;
		justify-content: space-between;
		align-items: center;
		font-size: 14px;
	}

	.spotmart-dispute-table tbody td::before {
		content: attr(data-label);
		font-weight: 600;
		color: #4b5563;
		margin-right: 16px;
		flex: 1;
	}

	.spotmart-dispute-table tbody td:last-child {
		border-bottom: none;
	}
}

/* Remove proof button */
.spotmart-dispute-file-wrapper {
	position: relative;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-right: 10px;
	margin-bottom: 10px;
}

.spotmart-dispute-file-wrapper:last-child {
	margin-right: 0;
}

.spotmart-dispute-file-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid rgba(148, 163, 184, 0.6);
}

.spotmart-dispute-file-wrapper .spotmart-dispute-file {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	text-align: center;
	line-height: 1.2;
	overflow: hidden;
	word-break: break-all;
	padding: 4px;
	border: 1px solid rgba(148, 163, 184, 0.6);
	border-radius: 10px;
}

.spotmart-remove-proof {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 20px;
	height: 20px;
	background: #ef4444;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
	z-index: 10;
	transition: background-color 0.2s ease;
}

.spotmart-remove-proof:hover {
	background: #dc2626;
}

.spotmart-remove-proof .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Timeline Styles */
.spotmart-dispute-timeline-header {
	padding: 0 0 16px;
	border-bottom: 2px solid #e5e7eb;
	margin-bottom: 20px;
}

.spotmart-dispute-timeline-header h3 {
	margin: 0;
	color: #111827;
	font-size: 18px;
	font-weight: 600;
}

.spotmart-dispute-timeline-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.spotmart-dispute-timeline-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #fff;
	border: 1px solid #e5e7eb;
	padding: 16px;
	border-radius: 12px;
	transition: all 0.2s ease;
}

.spotmart-dispute-timeline-item:hover {
	border-color: #d1d5db;
	background: #f9fafb;
}

.spotmart-dispute-timeline-title {
	font-size: 14px;
	color: #374151;
	flex: 1;
}

.spotmart-dispute-timeline-title strong {
	color: #111827;
	font-weight: 600;
}

.spotmart-dispute-timeline-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #6b7280;
	font-size: 13px;
	margin: 0 16px;
}

.spotmart-dispute-sep {
	color: #d1d5db;
}

.js-spotmart-back-timeline {
	display: inline-flex;
	align-items: center;
	background: none;
	border: none;
	padding: 0;
	color: #4b5563;
	font-weight: 500;
	cursor: pointer;
	font-size: 14px;
	transition: color 0.2s ease;
}

.js-spotmart-back-timeline:hover {
	color: #111827;
	text-decoration: underline;
}

/* Timeline Styles */
.spotmart-dispute-timeline-steps {
	list-style: none;
	padding: 0; /* Remove padding to align LI with UL edge */
	margin: 20px 0;
	position: relative;
}

/* Vertical Line */
.spotmart-dispute-timeline-steps::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 16px; /* Align with center of marker (17px axis) */
	width: 2px;
	background: #2563eb; /* Blue */
	z-index: 0;
}

.spotmart-dispute-timeline-step {
	position: relative;
	padding-left: 48px;
	padding-bottom: 32px;
}

.spotmart-dispute-timeline-step:last-child {
	padding-bottom: 0;
}


/* The Marker Dot */
.spotmart-dispute-timeline-marker {
	position: absolute;
	left: 17px; /* Align center to the vertical line axis */
	transform: translateX(-50%); /* Shift back by 50% width to center */
	top: 4px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid #2563eb; /* Blue */
	box-sizing: border-box; /* Ensure proper width calculation */
	z-index: 1;
	box-shadow: 0 0 0 4px #fff; /* Increased space around dot from line */
}

/* Filled dot variation removed for uniformity */
/* .spotmart-dispute-timeline-step:first-child .spotmart-dispute-timeline-marker {
    background: #2563eb; 
} */

.spotmart-dispute-timeline-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.spotmart-dispute-timeline-title-row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
}

.spotmart-dispute-timeline-title {
	font-weight: 600;
	font-size: 15px;
	color: #111827;
}

.spotmart-dispute-timeline-date {
	font-size: 13px;
	color: #6b7280;
}

.spotmart-dispute-timeline-body {
	font-size: 14px;
	color: #374151;
	line-height: 1.5;
}

.spotmart-dispute-timeline-body p {
	margin: 0 0 4px;
}

.spotmart-dispute-timeline-id {
    font-size: 12px;
    color: #4b5563;
}

.spotmart-dispute-timeline-link {
	display: inline-block;
	margin-top: 4px;
	font-size: 13px;
	color: #2563eb; /* Blue */
	text-decoration: underline;
	font-weight: 500;
}

.spotmart-dispute-timeline-link:hover {
	text-decoration: none; /* Optional: remove underline on hover or keep it */
    color: #1d4ed8; /* Darker blue on hover */
}

/* Status Colors */
.spotmart-text-success {
    color: #16a34a !important; /* Green */
    font-weight: 600;
}

.spotmart-text-danger {
    color: #dc2626 !important; /* Red */
    font-weight: 600;
}

.spotmart-text-warning {
    color: #ca8a04 !important; /* Yellow/Orange */
    font-weight: 600;
}

/* Admin Dispute Table Width Reduction */
.spotmart-dispute-admin .spotmart-dispute-table-wrapper table {
	max-width: 50%;
}

/* ─── Conversation System ─── */

.spotmart-dispute-conversation {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 2px solid #e5e7eb;
}

.spotmart-dispute-conversation__thread {
	max-height: 400px;
	overflow-y: auto;
	padding: 12px 0;
}

.spotmart-dispute-conversation__message {
	display: flex;
	gap: 10px;
	margin-bottom: 14px;
}

.spotmart-dispute-conversation__message--system {
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.spotmart-dispute-conversation__system-text {
	color: #6b7280;
	font-size: 12px;
	font-style: italic;
	background: #f3f4f6;
	padding: 4px 14px;
	border-radius: 12px;
}

.spotmart-dispute-conversation__avatar {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
}

.spotmart-dispute-conversation__avatar img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}

.spotmart-dispute-conversation__bubble {
	background: #f3f4f6;
	border-radius: 12px;
	padding: 10px 14px;
	max-width: 80%;
	min-width: 120px;
}

.spotmart-dispute-conversation__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
	flex-wrap: wrap;
}

.spotmart-dispute-conversation__sender {
	font-weight: 600;
	font-size: 13px;
	color: #111827;
}

.spotmart-dispute-conversation__role {
	font-size: 11px;
	padding: 1px 7px;
	border-radius: 4px;
	font-weight: 500;
	text-transform: capitalize;
}

.spotmart-dispute-conversation__role--buyer {
	background: #dbeafe;
	color: #1d4ed8;
}

.spotmart-dispute-conversation__role--seller {
	background: #dcfce7;
	color: #15803d;
}

.spotmart-dispute-conversation__role--admin {
	background: #f3e8ff;
	color: #7e22ce;
}

.spotmart-dispute-conversation__time {
	font-size: 12px;
	color: #9ca3af;
}

.spotmart-dispute-conversation__text {
	font-size: 14px;
	color: #374151;
	line-height: 1.6;
}

.spotmart-dispute-conversation__text p {
	margin: 0 0 6px;
}

.spotmart-dispute-conversation__text p:last-child {
	margin-bottom: 0;
}

.spotmart-dispute-conversation__attachments {
	margin-top: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.spotmart-dispute-conversation__attachments .spotmart-dispute-proof-image img {
	max-width: 120px;
	max-height: 120px;
}

/* Reply area */
.spotmart-dispute-conversation__reply {
	border-top: 1px solid #e5e7eb;
	padding-top: 14px;
	margin-top: 14px;
}

.spotmart-dispute-conversation__input {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 14px;
	resize: vertical;
	min-height: 70px;
	font-family: inherit;
}

.spotmart-dispute-conversation__input:focus {
	border-color: #4f46e5;
	outline: none;
	box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}

.spotmart-dispute-conversation__reply-actions {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-top: 10px;
}

.spotmart-dispute-conversation__attach {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.spotmart-dispute-conversation__attach-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.spotmart-dispute-conversation__attach-preview .spotmart-dispute-file-wrapper {
	width: 48px;
	height: 48px;
}

.spotmart-dispute-button--icon {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 12px;
	font-size: 13px;
}

/* Unread badge */
.spotmart-dispute-unread-badge {
	display: inline-block;
	width: 8px;
	height: 8px;
	background: #2563eb;
	border-radius: 50%;
	margin-left: 6px;
	vertical-align: middle;
}
