/* phpcs:disable -- CSS file, standards applied to PHP only. */
/* Main Wrapper */
	.wcdpdr-admin-wrap {
		font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
		background: linear-gradient(95deg, #d4c2e817 0%, #c8b5dc08 50%, #bda8d05e 100%)
		min-height: 100vh;
		margin: 0px 0px 0px -20px;
		padding: 40px;
	}

	/* Header */
	.wcdpdr-header {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		margin-bottom: 32px;
		background: #FFF;
		border-radius: 12px;
		padding: 28px 32px;
		box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 10px 30px rgba(124, 58, 237, 0.10);
	}

	.wcdpdr-title {
		font-size: 32px !important;
		font-weight: 700 !important;
		color: #3d3356 !important;
		margin: 0 0 8px 0 !important;
		line-height: 1.2 !important;
	}

	.wcdpdr-header-subtitle {
		font-size: 16px !important;
		color: #5d5876 !important;
		font-weight: 400 !important;
		margin: 0 !important;
	}

	/* Add New Rule Button - NO RED BALL */
	#wcdpdr-add-rule-btn {
		background: linear-gradient(135deg, #8b73b8 0%, #9b7ec8 100%) !important;
		color: white !important;
		border: none !important;
		padding: 14px 28px !important;
		border-radius: 10px !important;
		font-size: 15px !important;
		font-weight: 600 !important;
		cursor: pointer;
		box-shadow: 0 4px 12px rgba(139, 115, 184, 0.35) !important;
		transition: all 0.2s ease;
		position: relative;
		height: auto !important;
		line-height: 1.4 !important;
		display: inline-flex !important;
		align-items: center;
		gap: 8px;
	}

	#wcdpdr-add-rule-btn:hover {
		background: linear-gradient(135deg, #7c64a8 0%, #8b6db8 100%) !important;
		transform: translateY(-2px);
		box-shadow: 0 6px 16px rgba(139, 115, 184, 0.45) !important;
	}

	#wcdpdr-add-rule-btn .dashicons {
		font-size: 18px;
		width: 18px;
		height: 18px;
	}

	/* Stats Grid */
	.wcdpdr-stats-row {
		display: grid;
		grid-template-columns: repeat(8, 1fr);
		gap: 18px;
		margin-bottom: 28px;
	}

	.wcdpdr-stat-box {
		backdrop-filter: blur(10px);
		transition: all 0.25s ease;
		border: 1px solid rgba(255, 255, 255, 0.3);
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 12px 28px rgba(124, 58, 237, 0.08);
		background: #ffffff;
		border-radius: 10px;
		padding: 12px 14px;
		text-align:center;
	}

	.wcdpdr-stat-box:hover {
		transform: translateY(-2px);
		box-shadow:
		  0 4px 8px rgba(0, 0, 0, 0.06),
		  0 14px 32px rgba(124, 58, 237, 0.12);
		transition: all 0.25s ease;
	}

	.wcdpdr-stat-header {
		display: flex;
		align-items: center;
		gap: 10px;
		margin-bottom: 14px;
		justify-content: center;
	}

	.wcdpdr-stat-icon {
		width: 28px;
		height: 28px;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 18px;
		font-weight: bolder;
		border-radius: 50%;
		color: #FFF;
		padding: 2px 3px 4px 3px;
		margin-top:4px;
	}

	.wcdpdr-stat-label {
		font-size: 16px;
		font-weight: 600;
		color: #5d5876;
	}

	.wcdpdr-stat-value {
		font-size: 24px;
		font-weight: 700;
		color: #3d3356;
		line-height: 1;
		display: block;
	}

	.wcdpdr-stat-sublabel {
		display: block;
		font-size: 11px;
		color: #9e97b8;
		margin-top: 6px;
		font-style: italic;
	}

	/* Toolbar */
	.wcdpdr-toolbar {
		background: #FFF;
		backdrop-filter: blur(10px);
		border-radius: 14px;
		padding: 18px 24px;
		margin-bottom: 24px;
		display: flex;
		align-items: center;
		gap: 14px;
		border: 1px solid rgba(255, 255, 255, 0.3);
		border-radius: 12px;
		padding: 28px 32px;
		box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 10px 30px rgba(124, 58, 237, 0.10);

	}

	.wcdpdr-search-box {
		position: relative;
		flex: 1;
		max-width: 320px;
	}

	.wcdpdr-search-box::before {
		content: '\f179';
		font-family: dashicons;
		position: absolute;
		right: 16px;
		top: 50%;
		transform: translateY(-50%);
		color: #9d95ae;
		font-size: 18px;
	}

	#wcdpdr-search-rules {
		width: 100%;
		font-size: 14px;
		color: #5d5876;
		transition: all 0.2s ease;
		background: #fff;
		border: 1px solid #ece7f4;
		border-radius: 12px;
		padding: 10px 14px;
		box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
	}


	.wcdpdr-search:focus-within {
		border-color: #9b87d8;
		box-shadow:
		  0 0 0 3px rgba(155, 135, 216, 0.18),
		  inset 0 1px 2px rgba(0, 0, 0, 0.03);
	}

	#wcdpdr-search-rules::placeholder {
		color: #a8a0b8;
	}

	.wcdpdr-filter-box {
		display: flex;
		align-items: center;
		gap: 12px;
		margin-left: auto;
	}

	.wcdpdr-filter-btn {
		padding: 11px 18px !important;

		border-radius: 8px !important;
		background: rgba(255, 255, 255, 0.8) !important;
		font-size: 14px !important;
		color: #5d5876 !important;
		cursor: pointer !important;
		font-weight: 500 !important;
		transition: all 0.2s ease;
		display: inline-flex !important;
		align-items: center;
		gap: 6px;
		height: auto !important;
		line-height: 1 !important;
		border: 1px solid #8b73b8;
		border-color:#e5e0f2 !important;
		transition: all 0.2s ease;
	}

	.wcdpdr-filter-btn:hover {
		background: white !important;
		transform: translateY(-1px);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	}

	.wcdpdr-filter-btn .dashicons {
		font-size: 16px;
		width: 16px;
		height: 16px;
	}

	.wcdpdr-filter-select {
		padding: 11px 40px 11px 16px;
		border-radius: 10px;
		background: rgba(255, 255, 255, 0.8);
		font-size: 14px;
		color: #5d5876;
		cursor: pointer;
		appearance: none;
		background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%235d5876' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: right 14px center;
		font-weight: 500;
		min-width: 160px;
		border: 1px solid #e5e0f2;
		background: #fff;
		border-radius: 12px;
		padding: 8px 12px;
		border-color:#e5e0f2 !important;
		box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
		padding: 6px 12px !important;
		border-radius: 8px !important;;
	}

	.wcdpdr-filter-select:hover {
		background: white !important;
		border-color:#e5e0f2 !important;
		color:#5d5876 !important;
		transform: translateY(-1px);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	}
	.wcdpdr-status-label {
		font-size: 14px;
		color: #5d5876;
		font-weight: 500;
	}

	/* Toggle Switch */
	.wcdpdr-toggle-switch {
		position: relative;
		display: inline-block;
		width: 48px;
		height: 26px;
		margin: 0;
	}

	.wcdpdr-toggle-switch input {
		opacity: 0;
		width: 0;
		height: 0;
	}
.wcdpdr-toggle-switch input:checked + .wcdpdr-toggle-slider {
	background-color: #7c9b9e;   /* active color */
	border-color: #8b73b8;
}
.wcdpdr-toggle-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background-color: #e6e2f1;   /* inactive color */
	border: 1px solid #d6cfee;
	transition: all 0.3s ease;
	border-radius: 13px;
}

	.wcdpdr-toggle-slider:before {
		position: absolute;
		content: "";
		height: 20px;
		width: 20px;
		right: 3px;
		bottom: 3px;
		background-color: white;
		transition: 0.3s;
		border-radius: 50%;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	}

	.wcdpdr-toggle-switch input:checked + .wcdpdr-toggle-slider:before {
		transform: translateX(-22px);
	}

	.wcdpdr-more-menu {
		padding: 10px 14px;
		color: #5d5876;
		font-size: 20px;
		cursor: pointer;
		border-radius: 10px;
		background: rgba(255, 255, 255, 0.8);
		line-height: 1;
		font-weight: bold;
	}

	/* Table Card */
	.wcdpdr-table-wrapper {
		background: #FFF;
		backdrop-filter: blur(10px);
		border-radius: 14px;
		overflow: hidden;
		margin-bottom: 24px;
		border-radius: 12px;

		box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 10px 30px rgba(124, 58, 237, 0.10);
	}

	/* Table Styling */
	.wcdpdr-rules-table {
		width: 100%;
		border-collapse: collapse;
		background: transparent !important;
		border: none !important;
	}

	.wcdpdr-rules-table thead {
		background: #efedf4;
	}

	.wcdpdr-rules-table thead tr th{
		color: #000 !important;
	}
	.wcdpdr-rules-table thead th.check-column input.wcdpdr-select-all {
		margin-left: 0px;

	}

	.wcdpdr-rules-table th {
		padding: 18px 24px !important;
		text-align: left;
		font-size: 14px !important;
		font-weight: 600 !important;
		color: #5d5876 !important;
		border-bottom: 1px solid rgba(208, 196, 224, 0.5) !important;
		background: transparent !important;
	}

	.wcdpdr-rules-table th .dashicons {
		font-size: 14px;
		margin-left: 4px;
		color: #9d95ae;
	}

	.wcdpdr-rules-table tbody tr {
		border-bottom: 1px solid rgba(208, 196, 224, 0.35) !important;
		background: transparent !important;
		transition: all 0.2s ease;
	}

	.wcdpdr-rules-table tbody tr:hover {
		background: rgba(255, 255, 255, 0.25) !important;
	}

	.wcdpdr-rules-table td {
		padding: 20px 24px !important;
		font-size: 15px;
		color: #3d3356;
		border: none !important;
		vertical-align: middle !important;
	}

	/* Checkbox Styling */
	.check-column {
		width: 50px !important;
	}

	.check-column input[type="checkbox"], .wcdpdr-table-footer-wrapper input[type="checkbox"] {
		width: 20px;
		height: 20px;
		border: 2px solid #c0b8d0;
		border-radius: 5px;
		cursor: pointer;
		background: rgba(255, 255, 255, 0.6);
		appearance: none;
		-webkit-appearance: none;
		-moz-appearance: none;
		position: relative;
		transition: all 0.2s ease;
	}

	.check-column input[type="checkbox"]:hover {
		border-color: #8b73b8;
	}

	.check-column input[type="checkbox"]:checked {
		background: #8b73b8;
		border-color: #8b73b8;
	}

	.check-column input[type="checkbox"]:checked::after {
		content: '✓';
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		color: white;
		font-size: 14px;
		font-weight: bold;
	}

	/* Rule Name Column */
	.wcdpdr-col-name strong {
		font-weight: 700;
		font-size: 16px;
		color: #3d3356;
		display: block;
		margin-bottom: 4px;
	}

	.wcdpdr-rule-subtitle {
		font-size: 13px;
		color: #7d7291;
		display: block;
		margin-bottom: 8px;
	}

	.wcdpdr-rule-meta {
		display: flex;
		gap: 8px;
		flex-wrap: wrap;
	}

	.wcdpdr-rule-type {
		padding: 4px 10px;
		border-radius: 5px;
		font-size: 12px;
		font-weight: 600;
		display: inline-flex;
		align-items: center;
		gap: 5px;
	}

	.wcdpdr-type-fee {
		background: #d97bb8;
		color: white;
	}

	.wcdpdr-type-discount {
		background: #7c9b9e;
		color: white;
	}

	.wcdpdr-rule-badge {
		padding: 5px 12px;
		border-radius: 7px;
		font-size: 11px;
		font-weight: 600;
		background: rgba(157, 149, 174, 0.25);
		color: #5d5876;
	}

	/* Type Badge Column */
	.wcdpdr-type-badge {
		padding: 7px 16px;
		border-radius: 7px;
		font-size: 13px;
		font-weight: 600;
		display: inline-block;
	}

	/* Condition Column */
	.wcdpdr-condition-text {
		font-size: 14px;
		color: #5d5876;
		font-weight: 500;
		line-height: 1.5;
	}

	/* Action Column */
	.wcdpdr-action-text {
		font-size: 15px;
		color: #3d3356;
		font-weight: 600;
	}

	/* Priority Column */
	.wcdpdr-priority-badge {
		font-size: 17px;
		font-weight: 700;
		color: #3d3356;
	}

	/* Status Toggle Small */
	.wcdpdr-status-toggle-wrapper {
		display: flex;
		align-items: center;
		gap: 10px;
	}

	.wcdpdr-toggle-small {
		position: relative;
		display: inline-block;
		width: 40px;
		height: 22px;
	}

	.wcdpdr-toggle-small input {
		opacity: 0;
		width: 0;
		height: 0;
	}

	.wcdpdr-toggle-small-slider {
		position: absolute;
		cursor: pointer;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background-color: #7c8fcc;
		transition: 0.3s;
		border-radius: 11px;
	}

	.wcdpdr-toggle-small-slider:before {
		position: absolute;
		content: "";
		height: 16px;
		width: 16px;
		right: 3px;
		bottom: 3px;
		background-color: white;
		transition: 0.3s;
		border-radius: 50%;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	}

	.wcdpdr-toggle-small input:checked + .wcdpdr-toggle-small-slider:before {
		transform: translateX(-18px);
	}

	/* Edit Button */
	.wcdpdr-edit-rule {
		background: linear-gradient(135deg, #8b73b8 0%, #9b7ec8 100%) !important;
		color: white !important;
		border: none !important;
		padding: 10px 20px !important;
		border-radius: 8px !important;
		font-size: 14px !important;
		font-weight: 600 !important;
		cursor: pointer;
		transition: all 0.2s ease;
		height: auto !important;
		line-height: 1.3 !important;
		display: inline-flex !important;
		align-items: center;
		gap: 6px;
		box-shadow: 0 2px 8px rgba(139, 115, 184, 0.25);
	}

	.wcdpdr-edit-rule:hover {
		background: linear-gradient(135deg, #7c64a8 0%, #8b6db8 100%) !important;
		transform: translateY(-1px);
		box-shadow: 0 4px 12px rgba(139, 115, 184, 0.35);
	}

	.wcdpdr-edit-rule .dashicons, .wcdpdr-delete-rule.dashicons {
		font-size: 16px;
		width: 16px;
		height: 16px;
	}
	td.wcdpdr-col-actions {
		padding: 0px !important;
	}
	/* Delete Button */
	.wcdpdr-delete-rule {

		background: #c16aa8 !important;
		color: white !important;
		border: none !important;
		padding: 10px 20px !important;
		border-radius: 8px !important;
		font-size: 14px !important;
		font-weight: 600 !important;
		cursor: pointer;
		transition: all 0.2s ease;
		height: auto !important;
		line-height: 1.3 !important;
		display: inline-flex !important;
		align-items: center;
		gap: 6px;
		box-shadow: 0 2px 8px rgba(139, 115, 184, 0.25);
	}

	.wcdpdr-delete-rule:hover {
		background-color: #c16aa8 !important;
		transform: translateY(-1px);
		box-shadow: 0 4px 12px rgba(139, 115, 184, 0.35);
	}

	.wcdpdr-delete-rule .dashicons {
		font-size: 16px;
	}

	th.check-column {
		max-width: 5px;
	}

	.wcdpdr-tier-item {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr auto;
		gap: 10px;
		margin-bottom: 10px;
	}
	.wcdpdr-tier-item button.wcdpdr-tier-remove {
		background: #fcecec;
		color: #c73737;
		border: none;
		border-radius: 8px;
		padding: 0 12px;
		cursor: pointer;
		transition: 0.2s ease;
	}
	button#wcdpdr-add-condition span.dashicons.dashicons-plus {
		padding-top: 7px;
		font-size: 16px;
	}
	button#wcdpdr-add-condition { margin-bottom:0px !important;}
	button#wcdpdr-add-tier, button#wcdpdr-add-condition {
		padding: 5px 25px;
		margin-bottom: 20px;
		background: linear-gradient(135deg, #8b73b8 0%, #9b7ec8 100%) !important;
		border: none !important;
		color: white !important;
	}
	/* No Rules Message */
	.wcdpdr-no-rules {
		text-align: center;
		padding: 50px 20px !important;
	}

	.wcdpdr-no-rules p {
		color: #7d7291;
		font-size: 15px;
	}



	/* Modal Styles */
	.wcdpdr-modal {
		position: fixed;
		z-index: 999999;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		overflow: auto;
		display: none;
	}

	.wcdpdr-modal.wcdpdr-modal-active {
		display: flex !important;
		align-items: center;
		justify-content: center;
	}

	.wcdpdr-modal-overlay {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.6);
		backdrop-filter: blur(5px);
	}

	.wcdpdr-modal-content {
		position: relative;
		background: white;
		border-radius: 12px;
		max-width: 800px;
		width: 90%;
		max-height: 90vh;
		box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
		animation: modalSlideIn 0.3s ease;
		display: flex;
		flex-direction: column;
		z-index: 1;
	}

	.wcdpdr-modal-small {
		max-width: 500px;
	}

	@keyframes modalSlideIn {
		from {
			opacity: 0;
			transform: scale(0.9) translateY(-20px);
		}
		to {
			opacity: 1;
			transform: scale(1) translateY(0);
		}
	}

	.wcdpdr-modal-header {
		padding: 24px 32px;
		border-bottom: 1px solid #e8e8e8;
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-shrink: 0;
	}

	.wcdpdr-modal-header h2 {
		margin: 0;
		font-size: 24px;
		font-weight: 700;
		color: #FFF;
	}

	div#wcdpdr-conditions-container span.select2-selection.select2-selection--single, .select2-container--default.select2-container--focus .select2-selection--multiple {
		padding: 10px 12px;
		border-radius: 10px;
		border: 1px solid #ddd7ef;
		background: #faf9fe;
		font-size: 14px;
		transition: 0.2s ease;
		height: inherit;
	}

	div#wcdpdr-conditions-container .select2-container--default .select2-selection--single .select2-selection__arrow {

	  top: 13px;
	  right: 5px;
	}

	.wcdpdr-modal-close {
		background: none;
		border: none;
		font-size: 28px;
		color: #999;
		cursor: pointer;
		line-height: 1;
		padding: 4px;
		width: 32px;
		height: 32px;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 4px;
		transition: all 0.2s ease;
	}

	.wcdpdr-modal-close:hover {
		color: #333;
		background: #f0f0f0;
	}

	.wcdpdr-modal-body {
		padding: 32px;
		overflow-y: auto;
		flex: 1;
	}

	.wcdpdr-modal-footer {
		padding: 20px 32px;
		border-top: 1px solid #e8e8e8;
		display: flex;
		justify-content: flex-end;
		gap: 12px;
		flex-shrink: 0;
	}

	.wcdpdr-modal-footer .button {
		padding: 12px 28px !important;
		font-size: 15px !important;
		font-weight: 600 !important;
		border-radius: 8px !important;
		height: auto !important;
		line-height: 1.3 !important;
	}

	.wcdpdr-modal-footer .button-primary {
		background: linear-gradient(135deg, #8b73b8 0%, #9b7ec8 100%) !important;
		border: none !important;
		color: white !important;
	}

	.wcdpdr-modal-footer .button-primary:hover {
		background: linear-gradient(135deg, #7c64a8 0%, #8b6db8 100%) !important;
	}

	/* Form Styles */
	.wcdpdr-form-group {
		margin-bottom: 24px;
	}

	.wcdpdr-form-group label {
		display: block;
		font-weight: 600;
		margin-bottom: 10px;
		color: #2d2640;
		font-size: 14px;
	}

	.wcdpdr-input-full {
		width: 100%;
		padding: 12px 16px;
		border: 1px solid #d0d0d0;
		border-radius: 8px;
		font-size: 14px;
		transition: all 0.2s ease;
		color: #2d2640;
	}

	.wcdpdr-input-full:focus {
		outline: none;
		border-color: #8b73b8;
		box-shadow: 0 0 0 3px rgba(139, 115, 184, 0.15);
	}

	.wcdpdr-section {
		margin-bottom: 28px;
	}

	.wcdpdr-section h3 {
		margin: 0 0 8px 0;
		font-size: 18px;
		color: #2d2640;
		font-weight: 700;
	}

	.wcdpdr-section .description {
		color: #7d7291;
		font-size: 13px;
		margin-bottom: 18px;
	}

	.required {
		color: #e53e3e;
	}

	.wcdpdr-form-row {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}

	.wcdpdr-checkbox-label {
		display: flex;
		align-items: center;
		gap: 10px;
		cursor: pointer;
		font-weight: 500;
	}

	.wcdpdr-checkbox-label input[type="checkbox"] {
		width: 20px;
		height: 20px;
		border: 2px solid #c0b8d0;
		border-radius: 5px;
		cursor: pointer;
		background: rgba(255, 255, 255, 0.6);
		appearance: none;
		-webkit-appearance: none;
		-moz-appearance: none;
		position: relative;
		transition: all 0.2s ease;
	}

	.wcdpdr-checkbox-label input[type="checkbox"]:checked{
		background: #8b73b8;
		border-color: #8b73b8;
	}

	.wcdpdr-checkbox-label input[type="checkbox"]:checked::after {
		content: '✓';
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		color: white;
		font-size: 14px;
		font-weight: bold;
	}

	/* Conditions Row */
	.wcdpdr-condition-row {
		display: flex;
		align-items: center;
		gap: 12px;
		margin-bottom: 16px;
		padding: 16px;
		background: #f8f8f8;
		border-radius: 8px;
	}

	.wcdpdr-condition-row label {
		font-size: 14px;
		font-weight: 600;
		color: #2d2640;
		margin: 0;
		min-width: 30px;
	}

	.wcdpdr-condition-row select,
	.wcdpdr-condition-row input[type="text"],
	.wcdpdr-condition-row input[type="number"] {
		padding: 10px 14px;
		border: 1px solid #d0d0d0;
		border-radius: 6px;
		font-size: 14px;
	}

	.wcdpdr-condition-row select {
		min-width: 150px;
	}

	.wcdpdr-condition-row input[type="text"],
	.wcdpdr-condition-row input[type="number"] {
		width: 100px;
	}

	.wcdpdr-remove-condition {
		background: #ef4444 !important;
		color: white !important;
		padding: 8px 16px !important;
		border-radius: 6px !important;
		font-size: 13px !important;
		font-weight: 600 !important;
		border: none !important;
		cursor: pointer;
		margin-left: auto;
	}

	.wcdpdr-add-condition-btn {
		background: transparent !important;
		color: #8b73b8 !important;
		border: 2px dashed #8b73b8 !important;
		padding: 12px 24px !important;
		border-radius: 8px !important;
		font-size: 14px !important;
		font-weight: 600 !important;
		cursor: pointer;
		transition: all 0.2s ease;
		display: inline-flex;
		align-items: center;
		gap: 8px;
	}

	.wcdpdr-add-condition-btn:hover {
		background: rgba(139, 115, 184, 0.1) !important;
		border-color: #7c64a8 !important;
	}

	/* Actions Section */
	.wcdpdr-action-row {
		display: grid;
		grid-template-columns: 80px 1fr 120px 120px;
		gap: 12px;
		align-items: center;
		margin-bottom: 16px;
		padding: 16px;
		background: #f8f8f8;
		border-radius: 8px;
	}

	.wcdpdr-action-row label {
		font-size: 15px;
		font-weight: 700;
		color: #2d2640;
		margin: 0;
	}

	.wcdpdr-action-row select,
	.wcdpdr-action-row input {
		padding: 10px 14px;
		border: 1px solid #d0d0d0;
		border-radius: 6px;
		font-size: 14px;
	}


/* Start Pagination */
	.wcdpdr-table-footer-wrapper {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 16px 0px;
		background: #ffffff;

	}

	.wcdpdr-table-footer-wrapper input[type="checkbox"] {
		margin-left: 0px;
	}
	.wcdpdr-bulk-actions {
		display: flex;
		align-items: center;
		gap: 10px;
	}

	.wcdpdr-bulk-actions select {
		padding: 6px 10px;
		border-radius: 8px;
		border: 1px solid #ddd7ef;
		min-width: 120px;
	}

	.wcdpdr-bulk-actions .button {
		background: #8b73b8;
		color: #fff;
		border: none;
		padding: 7px 14px;
		border-radius: 8px;
		cursor: pointer;
	}

	.wcdpdr-bulk-actions .button:hover {
		background: #755cb3;
	}
	.wcdpdr-showing-count {
		font-size: 13px;
		color: #6b6486;
	}
	.wcdpdr-pagination {
		display: flex;
		align-items: center;
		gap: 8px;
	}
	.wcdpdr-page-link {
		padding: 6px 12px;
		border-radius: 8px;
		background: #f3f0fb;
		color: #5f4b8b;
		text-decoration: none;
		font-size: 13px;
		border: 1px solid #ddd7ef;
		transition: all 0.2s ease;
	}

	.wcdpdr-page-link:hover {
		background: #8b73b8;
		color: #fff;
		border-color: #8b73b8;
	}
	.wcdpdr-page-numbers {
		display: flex;
		gap: 6px;
	}

	.wcdpdr-page-number {
		min-width: 32px;
		height: 32px;
		line-height: 32px;
		text-align: center;
		border-radius: 8px;
		background: #ffffff;
		color: #5f4b8b;
		border: 1px solid #ddd7ef;
		font-size: 13px;
		text-decoration: none;
		transition: all 0.2s ease;
	}

	.wcdpdr-page-number:hover {
		background: #f3f0fb;
	}
	.wcdpdr-current-page {
		background: linear-gradient(135deg, #8b73b8, #6f5bd8);
		color: #ffffff;
		border-color: transparent;
		font-weight: 600;
		box-shadow: 0 6px 14px rgba(139, 115, 184, 0.35);
	}

/* End Pagination */

/* =====================================================
   MODAL WRAPPER & OVERLAY
===================================================== */

.wcdpdr-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wcdpdr-modal-active {
	display: flex;
}

/* Dark overlay with blur */
.wcdpdr-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 15, 40, 0.45);
	backdrop-filter: blur(6px);
}


/* =====================================================
   MODAL CONTAINER
===================================================== */

.wcdpdr-modal-content {
	position: relative;
	width: 100%;
	max-width: 720px;
	max-height: 90vh;
	background: #ffffff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow:
		0 30px 80px rgba(25, 15, 60, 0.35),
		0 10px 30px rgba(25, 15, 60, 0.15);
	animation: cfdModalFadeIn 0.25s ease;
}

/* Entry animation */
@keyframes cfdModalFadeIn {
	from {
		opacity: 0;
		transform: translateY(20px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}


/* =====================================================
   MODAL HEADER
===================================================== */

.wcdpdr-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	background: linear-gradient(135deg, #8b73b8, #6f5bd8);
	color: #ffffff;
}

.wcdpdr-modal-header h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.wcdpdr-modal-close {
	background: rgba(255,255,255,0.15);
	border: none;
	color: #ffffff;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	font-size: 20px;
	cursor: pointer;
	transition: 0.2s ease;
}

.wcdpdr-modal-close:hover {
	background: rgba(255,255,255,0.25);
}


/* =====================================================
   MODAL BODY
===================================================== */

.wcdpdr-modal-body {
	padding: 22px;
	overflow-y: auto;
	max-height: calc(90vh - 140px);
}


/* =====================================================
   FORM ELEMENTS
===================================================== */

.wcdpdr-form-group {
	margin-bottom: 18px;
}

.wcdpdr-form-group label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #3f3a59;
	margin-bottom: 6px;
}

.required {
	color: #e55353;
}
.wcdpdr-action-field label {
	margin-bottom: 6px;
	float: left;
}
.wcdpdr-action-field label.wcdpdr-checkbox-label {
	float: none;
}

.wcdpdr-date-range-wrapper input, .wcdpdr-time-range-wrapper input {
	min-width: 40% !important;
}
.wcdpdr-input-full,
.wcdpdr-modal select,
.wcdpdr-modal input[type="text"],
.wcdpdr-modal input[type="number"], .wcdpdr-modal input[type="time"] {
	min-width: 100%;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid #ddd7ef;
	background-color: #faf9fe;
	font-size: 14px;
	transition: 0.2s ease;
}

.wcdpdr-input-full:focus,
.wcdpdr-modal select:focus,
.wcdpdr-modal input:focus {
	outline: none;
	border-color: #8b73b8;
	box-shadow: 0 0 0 3px rgba(139, 115, 184, 0.15);
	background: #ffffff;
}


/* =====================================================
   SECTIONS (Conditions / Actions)
===================================================== */

.wcdpdr-section {
	background: #f8f6fc;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 22px;
	border: 1px solid #ebe7f5;
}

.wcdpdr-section h3 {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 600;
	color: #4b3f72;
}

.wcdpdr-section .description {
	font-size: 13px;
	color: #6b6486;
	margin-bottom: 12px;
}


/* =====================================================
   CONDITION ROW
===================================================== */

.wcdpdr-condition-item {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr auto;
	gap: 10px;
	margin-bottom: 10px;
}

.wcdpdr-condition-remove {
	background: #fcecec;
	color: #c73737;
	border: none;
	border-radius: 8px;
	padding: 0 12px;
	cursor: pointer;
	transition: 0.2s ease;
}

.wcdpdr-condition-remove:hover {
	background: #f8d7d7;
}


/* =====================================================
   ACTION FIELDS
===================================================== */

.wcdpdr-action-field {
	margin-bottom: 14px;
}

.wcdpdr-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #3f3a59;
}


/* =====================================================
   FORM ROW (Priority / Status)
===================================================== */

.wcdpdr-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}


/* =====================================================
   MODAL FOOTER
===================================================== */

.wcdpdr-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 16px 22px;
	border-top: 1px solid #eeeaf6;
	background: #ffffff;
}

.wcdpdr-modal-footer .button {
	padding: 8px 16px;
	border-radius: 10px;
	font-size: 14px;
}

.wcdpdr-modal-footer .button-primary {
	background: linear-gradient(135deg, #8b73b8, #6f5bd8);
	border: none;
	color: #ffffff;
	box-shadow: 0 6px 14px rgba(139, 115, 184, 0.35);
}

.wcdpdr-modal-footer .button-primary:hover {
	opacity: 0.9;
}


.wcdpdr-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.wcdpdr-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #d0d7e1;
  border-top-color: #8b73b8; /* main color */
  border-radius: 50%;
  animation: wcdpdr-spin 0.8s linear infinite;
}

@keyframes wcdpdr-spin {
  to { transform: rotate(360deg); }
}
.wcdpdr-logs-actions {
	margin-top: 10px;
}

.wcdpdr-logs-select {
	float: left;
	margin-right: 5px;
}

td.column-data div.wcdpdr-log-data {
	margin-left: -550px;
}

.condition-value-wrapper .select2-container .select2-selection--single .select2-selection__rendered {
	padding-left:0px;
	padding-right:0px;
}

	/* Responsive */
	@media (max-width: 1200px) {
		.wcdpdr-stats-row {
			grid-template-columns: repeat(2, 1fr);
		}
	}

	@media (max-width: 768px) {
		.wcdpdr-stats-row {
			grid-template-columns: 1fr;
		}

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

		.wcdpdr-search-box {
			max-width: 100%;
		}

		.wcdpdr-filter-box {
			margin-left: 0;
			justify-content: space-between;
		}

		.wcdpdr-form-row {
			grid-template-columns: 1fr;
		}
	}
/* ============================================================
   Rule Simulator Page Styles
   ============================================================ */

.wcdpdr-simulator-wrap {
	max-width: 1400px;
}

.wcdpdr-simulator-intro {
	background: #f0f6fc;
	border-left: 4px solid #0073aa;
	padding: 15px 20px;
	margin: 20px 0;
}

.wcdpdr-simulator-container {
	display: grid;
	grid-template-columns: 400px 1fr;
	gap: 30px;
	margin: 30px 0;
}

.wcdpdr-simulator-panel {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
}

.wcdpdr-simulator-panel h2 {
	margin-top: 0;
	padding-bottom: 15px;
	border-bottom: 1px solid #dcdcde;
}

.wcdpdr-form-group {
	margin-bottom: 20px;
}

.wcdpdr-form-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: #1d2327;
}

.wcdpdr-form-group input[type="number"],
.wcdpdr-form-group input[type="text"],
.wcdpdr-form-group input[type="date"],
.wcdpdr-form-group input[type="time"],
.wcdpdr-form-group select {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 14px;
}

.wcdpdr-form-group input:focus,
.wcdpdr-form-group select:focus {
	border-color: #2271b1;
	outline: 1px solid #2271b1;
}

.wcdpdr-form-actions {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #dcdcde;
}

.wcdpdr-form-actions button {
	margin-right: 10px;
}

#wcdpdr-run-simulation .dashicons {
	vertical-align: middle;
	margin-right: 5px;
}

.wcdpdr-results-container {
	min-height: 300px;
}

.wcdpdr-results-placeholder {
	text-align: center;
	padding: 60px 20px;
	color: #646970;
}

.wcdpdr-results-placeholder .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	opacity: 0.3;
}

.wcdpdr-rule-result {
	background: #f6f7f7;
	border-left: 4px solid #2271b1;
	padding: 15px;
	margin-bottom: 15px;
	border-radius: 4px;
}

.wcdpdr-rule-result.matched {
	border-left-color: #00a32a;
	background: #f0f6fc;
}

.wcdpdr-rule-result.not-matched {
	border-left-color: #dba617;
	background: #fcf9e8;
}

.wcdpdr-rule-result.failed {
	border-left-color: #d63638;
	background: #fcf0f1;
}

.wcdpdr-rule-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.wcdpdr-rule-name {
	font-weight: 600;
	font-size: 14px;
}

.wcdpdr-rule-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 500;
}

.wcdpdr-rule-badge.fee {
	background: #d63638;
	color: #fff;
}

.wcdpdr-rule-badge.discount {
	background: #00a32a;
	color: #fff;
}

.wcdpdr-rule-badge.matched {
	background: #00a32a;
	color: #fff;
}

.wcdpdr-rule-badge.not-matched {
	background: #dba617;
	color: #fff;
}

.wcdpdr-rule-details {
	font-size: 13px;
	color: #50575e;
	margin: 5px 0;
}

.wcdpdr-rule-effect {
	margin-top: 10px;
	padding: 10px;
	background: #fff;
	border-radius: 3px;
	font-size: 13px;
}

.wcdpdr-cart-summary {
	margin-top: 30px;
	padding: 20px;
	background: #f6f7f7;
	border-radius: 4px;
}

.wcdpdr-cart-summary h3 {
	margin-top: 0;
	margin-bottom: 15px;
}

.wcdpdr-summary-table {
	width: 100%;
	border-collapse: collapse;
}

.wcdpdr-summary-table tr {
	border-bottom: 1px solid #dcdcde;
}

.wcdpdr-summary-table td {
	padding: 10px 0;
}

.wcdpdr-summary-table td:last-child {
	text-align: right;
}

.wcdpdr-total-row {
	border-top: 2px solid #1d2327;
	font-size: 16px;
}

.wcdpdr-fee {
	color: #d63638;
}

.wcdpdr-discount {
	color: #00a32a;
}

.wcdpdr-simulator-help {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
	margin-top: 30px;
}

.wcdpdr-simulator-help h3 {
	margin-top: 0;
}

.wcdpdr-simulator-help ul {
	margin: 15px 0;
	padding-left: 25px;
}

.wcdpdr-simulator-help li {
	margin-bottom: 8px;
	line-height: 1.6;
}

.wcdpdr-loading {
	text-align: center;
	padding: 40px;
}

.wcdpdr-loading .spinner {
	visibility: visible;
	float: none;
	margin: 0 auto;
}

@media (max-width: 1024px) {
	.wcdpdr-simulator-container {
		grid-template-columns: 1fr;
	}
}

/* ── Rule limit counter badge ───────────────────────────────────────── */
.wcdpdr-rule-counter {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 12px;
	background: #e8e3f3;
	color: #7c64a8;
	font-size: 12px;
	font-weight: 600;
	vertical-align: middle;
}
.wcdpdr-rule-counter--full {
	background: #f3e3e3;
	color: #a84040;
}
