.srfm-pd-widget {
	max-width: 860px;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 14px;
	color: #111827;
	line-height: 1.5;
	box-sizing: border-box;
}

.srfm-pd-widget *, .srfm-pd-widget ::after, .srfm-pd-widget ::before {
	box-sizing: border-box;
}

.srfm-pd-message {
	padding: 24px;
	text-align: center;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	color: #6b7280;
	font-size: 14px;
}

.srfm-pd-section {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.srfm-pd-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 24px;
	border-bottom: 1px solid #e5e7eb;
}

.srfm-pd-section-title {
	font-size: 15px;
	font-weight: 700;
	color: #111827;
}

.srfm-pd-section-count {
	font-size: 12px;
	color: #9ca3af;
	font-weight: 500;
}

.srfm-pd-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 9px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}

.srfm-pd-badge-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	flex-shrink: 0;
}

.srfm-pd-badge--active {
	background: #dcfce7;
	color: #166534;
}

.srfm-pd-badge--active .srfm-pd-badge-dot {
	background: #16a34a;
}

.srfm-pd-badge--paid {
	background: #dcfce7;
	color: #166534;
}

.srfm-pd-badge--paid .srfm-pd-badge-dot {
	background: #16a34a;
}

.srfm-pd-badge--cancelled {
	background: #fee2e2;
	color: #991b1b;
}

.srfm-pd-badge--cancelled .srfm-pd-badge-dot {
	background: #ef4444;
}

.srfm-pd-badge--refunded {
	background: #dbeafe;
	color: #1e40af;
}

.srfm-pd-badge--refunded .srfm-pd-badge-dot {
	background: #3b82f6;
}

.srfm-pd-badge--pending {
	background: #fef3c7;
	color: #92400e;
}

.srfm-pd-badge--pending .srfm-pd-badge-dot {
	background: #f59e0b;
}

.srfm-pd-sub-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 24px;
	border-bottom: 1px solid #f3f4f6;
	cursor: pointer;
	transition: background .1s;
}

.srfm-pd-sub-row:last-child {
	border-bottom: none;
}

.srfm-pd-sub-row:hover {
	background: #f9fafb;
}

.srfm-pd-sub-row--cancelled {
	opacity: .6;
}

.srfm-pd-sub-row-left {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.srfm-pd-sub-row-name {
	font-size: 14px;
	font-weight: 600;
	color: #111827;
}

.srfm-pd-sub-row-meta {
	font-size: 12px;
	color: #6b7280;
}

.srfm-pd-strike {
	text-decoration: line-through;
}

.srfm-pd-sub-row-right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.srfm-pd-chevron {
	color: #d1d5db;
	font-size: 16px;
	line-height: 1;
}

.srfm-pd-pay-row {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 12px 24px;
	border-bottom: 1px solid #f3f4f6;
	cursor: pointer;
	transition: background .1s;
	font-size: 13px;
}

.srfm-pd-pay-row:last-child {
	border-bottom: none;
}

.srfm-pd-pay-row:hover {
	background: #f9fafb;
}

.srfm-pd-pay-row-left {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.srfm-pd-pay-row-form {
	font-size: 14px;
	font-weight: 600;
	color: #111827;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.srfm-pd-pay-row-id {
	font-size: 12px;
	color: #9ca3af;
}

.srfm-pd-pay-row-right {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.srfm-pd-pay-row-amount {
	font-size: 14px;
	font-weight: 700;
	color: #111827;
	min-width: 70px;
	text-align: right;
}

.srfm-pd-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 24px;
	border-top: 1px solid #e5e7eb;
	background: #f9fafb;
}

.srfm-pd-pagination-info {
	font-size: 12px;
	color: #6b7280;
}

.srfm-pd-pagination-links {
	display: flex;
	gap: 8px;
}

.srfm-pd-pagination-link {
	font-size: 12px;
	color: #6366f1;
	font-weight: 600;
	text-decoration: none;
}

.srfm-pd-pagination-link:hover {
	text-decoration: underline;
}

.srfm-pd-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .4);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 100000;
}

.srfm-pd-overlay--open {
	display: flex;
}

.srfm-pd-panel {
	background: #fff;
	border-radius: 14px;
	width: 480px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
	animation: srfmPdSlideUp .2s ease;
}

.srfm-pd-panel-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 24px 24px 16px;
	border-bottom: 1px solid #e5e7eb;
}

.srfm-pd-panel-header-right {
	text-align: right;
}

.srfm-pd-panel-header-badge {
	margin-top: 8px;
}

.srfm-pd-panel-close {
	background: 0 0;
	border: none;
	font-size: 22px;
	color: #9ca3af;
	cursor: pointer;
	line-height: 1;
	padding: 0;
}

.srfm-pd-panel-close:hover {
	color: #4b5563;
}

.srfm-pd-panel-id {
	font-size: 11px;
	font-weight: 700;
	color: #9ca3af;
	text-transform: uppercase;
	letter-spacing: .5px;
}

.srfm-pd-panel-title {
	font-size: 18px;
	font-weight: 800;
	color: #111827;
	margin-top: 2px;
}

.srfm-pd-panel-subtitle {
	font-size: 13px;
	color: #6b7280;
	margin-top: 2px;
}

.srfm-pd-panel-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 11px 24px;
	border-bottom: 1px solid #f3f4f6;
	font-size: 13px;
}

.srfm-pd-panel-label {
	color: #6b7280;
}

.srfm-pd-panel-value {
	font-weight: 600;
	color: #374151;
}

.srfm-pd-panel-footer {
	padding: 14px 24px;
	background: #f9fafb;
	border-top: 1px solid #e5e7eb;
	display: flex;
	gap: 8px;
}

.srfm-pd-panel-footer--center {
	justify-content: center;
}

.srfm-pd-sub-info-box {
	margin: 14px 24px;
	padding: 14px;
	border-radius: 8px;
	border: 1px solid #bbf7d0;
	background: #f0fdf4;
}

.srfm-pd-sub-info-title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #166534;
	margin-bottom: 8px;
}

.srfm-pd-sub-info-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
}

.srfm-pd-sub-info-label {
	font-size: 10px;
	font-weight: 600;
	color: #86efac;
}

.srfm-pd-sub-info-value {
	font-size: 12px;
	font-weight: 600;
	color: #166534;
}

.srfm-pd-single-info-box {
	margin: 14px 24px;
	padding: 12px 14px;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	background: #f9fafb;
	font-size: 12px;
	color: #6b7280;
	text-align: center;
}

.srfm-pd-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	border: 1px solid #d1d5db;
	background: #fff;
	color: #374151;
	cursor: pointer;
	font-family: inherit;
	transition: all .15s;
	line-height: 1.4;
}

.srfm-pd-btn:hover {
	background: #e5e7eb;
	border-color: #9ca3af;
}

.srfm-pd-btn--danger {
	color: #ef4444;
	border-color: #fca5a5;
}

.srfm-pd-btn--danger:hover {
	background: #fee2e2;
	border-color: #ef4444;
}

.srfm-pd-btn--danger-fill {
	background: #ef4444;
	color: #fff;
	border-color: #ef4444;
}

.srfm-pd-btn--danger-fill:hover {
	background: #dc2626;
}

.srfm-pd-btn--danger-fill:disabled {
	opacity: .6;
	cursor: not-allowed;
}

.srfm-pd-btn--primary {
	background: #6366f1;
	color: #fff;
	border-color: #6366f1;
}

.srfm-pd-btn--primary:hover {
	background: #4f46e5;
}

.srfm-pd-cancel-body {
	padding: 24px;
	text-align: center;
}

.srfm-pd-cancel-body--confirm {
	padding-top: 32px;
}

.srfm-pd-cancel-body--success {
	padding: 40px 24px;
}

.srfm-pd-cancel-body h4 {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 4px;
	color: #111827;
}

.srfm-pd-cancel-body p {
	font-size: 13px;
	color: #6b7280;
	line-height: 1.5;
	margin: 0;
}

.srfm-pd-cancel-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 12px;
}

.srfm-pd-cancel-icon--warning {
	background: #fef3c7;
}

.srfm-pd-cancel-icon--success {
	background: #dcfce7;
}

.srfm-pd-txn-id {
	font-family: monospace;
	font-size: 11px;
}

@media (max-width:600px) {
	.srfm-pd-sub-row {
		flex-wrap: wrap;
		gap: 8px;
	}
	
	.srfm-pd-pay-row {
		grid-template-columns: 1fr auto;
	}
	
	.srfm-pd-pay-row-right .srfm-pd-badge {
		display: none;
	}
	
	.srfm-pd-sub-info-grid {
		grid-template-columns: 1fr;
	}
	
	.srfm-pd-panel {
		width: 95vw;
	}
	
	.srfm-pd-pay-row, .srfm-pd-section-header, .srfm-pd-sub-row {
		padding-left: 16px;
		padding-right: 16px;
	}
	
	.srfm-pd-pagination {
		flex-direction: column;
		gap: 8px;
		padding: 10px 16px;
	}
}