.nexdirectory-pro-ticket-cta,
.nexdirectory-pro-primary-button,
.nexdirectory-pro-secondary-button,
.nexdirectory-pro-danger-button {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 12px;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	justify-content: center;
	line-height: 1.25;
	min-height: 44px;
	padding: 11px 16px;
	text-align: center;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.nexdirectory-pro-ticket-cta,
.nexdirectory-pro-primary-button {
	background: var(--nexdirectory-brand-600, #4f46e5);
	color: #fff;
	width: 100%;
}

.nexdirectory-pro-ticket-cta:hover,
.nexdirectory-pro-primary-button:hover {
	background: var(--nexdirectory-brand-700, #4338ca);
	box-shadow: 0 8px 20px rgb(67 56 202 / 18%);
	color: #fff;
	transform: translateY(-1px);
}

.nexdirectory-pro-ticket-cta--existing {
	background: #111827;
}

.nexdirectory-pro-ticket-cta--mobile {
	flex: 1 1 0;
}

.nexdirectory-pro-secondary-button {
	background: #fff;
	border-color: #d1d5db;
	color: #374151;
}

.nexdirectory-pro-secondary-button:hover {
	background: #f9fafb;
	border-color: #9ca3af;
	color: #111827;
}

.nexdirectory-pro-danger-button {
	background: #fff;
	border-color: #fecaca;
	color: #b91c1c;
}

.nexdirectory-pro-danger-button:hover {
	background: #fef2f2;
	border-color: #fca5a5;
}

.nexdirectory-pro-ticket-cta:focus-visible,
.nexdirectory-pro-primary-button:focus-visible,
.nexdirectory-pro-secondary-button:focus-visible,
.nexdirectory-pro-danger-button:focus-visible,
.nexdirectory-pro-dialog__close:focus-visible {
	outline: 3px solid rgb(99 102 241 / 32%);
	outline-offset: 3px;
}

.nexdirectory-pro-primary-button:disabled,
.nexdirectory-pro-ticket-cta:disabled {
	background: #9ca3af;
	box-shadow: none;
	cursor: not-allowed;
	transform: none;
}

.nexdirectory-pro-dialog {
	background: #fff;
	border: 0;
	border-radius: 20px;
	box-shadow: 0 30px 80px rgb(15 23 42 / 30%);
	color: #111827;
	margin: auto;
	max-height: min(760px, calc(100dvh - 32px));
	max-width: min(560px, calc(100vw - 24px));
	overflow: auto;
	padding: 0;
	width: 100%;
}

.nexdirectory-pro-dialog::backdrop {
	background: rgb(15 23 42 / 72%);
	backdrop-filter: blur(5px);
}

.nexdirectory-pro-dialog[open] {
	animation: nexdirectory-pro-dialog-in 180ms ease-out;
}

@keyframes nexdirectory-pro-dialog-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(.98);
	}
}

.nexdirectory-pro-dialog__header {
	align-items: flex-start;
	background: #f9fafb;
	border-bottom: 1px solid #e5e7eb;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	padding: 22px 24px;
}

.nexdirectory-pro-dialog__header h2,
.nexdirectory-pro-panel h2,
.nexdirectory-pro-panel h3,
.nexdirectory-pro-ticket-settings h3 {
	color: #111827;
	font-weight: 750;
	letter-spacing: -.02em;
	margin: 0;
}

.nexdirectory-pro-dialog__header h2 {
	font-size: 21px;
	line-height: 1.3;
}

.nexdirectory-pro-dialog__close {
	align-items: center;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	color: #4b5563;
	cursor: pointer;
	display: inline-flex;
	font-size: 24px;
	height: 40px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 40px;
}

.nexdirectory-pro-checkout-form {
	display: grid;
	gap: 18px;
	padding: 24px;
}

.nexdirectory-pro-checkout-form label,
.nexdirectory-pro-boost-form label,
.nexdirectory-pro-ticket-settings label,
.nexdirectory-pro-calendar-controls > label {
	color: #374151;
	display: grid;
	font-size: 13px;
	font-weight: 650;
	gap: 7px;
}

.nexdirectory-pro-checkout-form input:not([type="radio"]):not([type="checkbox"]),
.nexdirectory-pro-boost-form select,
.nexdirectory-pro-ticket-settings input:not([type="checkbox"]),
.nexdirectory-pro-calendar-controls input {
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	box-sizing: border-box;
	color: #111827;
	font: inherit;
	min-height: 44px;
	padding: 10px 12px;
	width: 100%;
}

.nexdirectory-pro-checkout-form input:focus,
.nexdirectory-pro-boost-form select:focus,
.nexdirectory-pro-ticket-settings input:focus,
.nexdirectory-pro-calendar-controls input:focus {
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgb(99 102 241 / 16%);
	outline: 0;
}

.nexdirectory-pro-price-row {
	align-items: center;
	background: #f5f3ff;
	border: 1px solid #ddd6fe;
	border-radius: 12px;
	display: flex;
	justify-content: space-between;
	padding: 14px 16px;
}

.nexdirectory-pro-price-row strong {
	color: #4338ca;
	font-size: 18px;
}

.nexdirectory-pro-form-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nexdirectory-pro-gateway-fieldset {
	border: 0;
	display: grid;
	gap: 9px;
	margin: 0;
	padding: 0;
}

.nexdirectory-pro-gateway-fieldset legend {
	color: #374151;
	font-size: 13px;
	font-weight: 650;
	margin-bottom: 7px;
}

.nexdirectory-pro-gateway-fieldset label {
	align-items: center;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	display: flex;
	gap: 9px;
	padding: 11px 12px;
}

.nexdirectory-pro-eyebrow {
	color: #6366f1 !important;
	font-size: 11px !important;
	font-weight: 750 !important;
	letter-spacing: .09em;
	margin: 0 0 5px !important;
	text-transform: uppercase;
}

.nexdirectory-pro-help {
	color: #6b7280 !important;
	font-size: 12px !important;
	line-height: 1.55;
	margin: 0;
}

.nexdirectory-pro-help--center {
	text-align: center;
}

.nexdirectory-pro-alert {
	border: 1px solid #fde68a;
	border-radius: 10px;
	font-size: 13px;
	padding: 11px 13px;
}

.nexdirectory-pro-alert--error {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

.nexdirectory-pro-ticket-settings,
.nexdirectory-pro-panel,
.nexdirectory-pro-calendar-controls {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-sizing: border-box;
	color: #374151;
	display: grid;
	gap: 18px;
	padding: 20px;
}

.nexdirectory-pro-ticket-settings p,
.nexdirectory-pro-panel__heading p {
	color: #6b7280;
	font-size: 13px;
	line-height: 1.55;
	margin: 5px 0 0;
}

.nexdirectory-pro-switch-row {
	align-items: center !important;
	display: flex !important;
	gap: 9px !important;
}

.nexdirectory-pro-switch-row input {
	accent-color: #4f46e5;
	height: 18px;
	width: 18px;
}

.nexdirectory-pro-panel__heading--split {
	align-items: flex-start;
	display: flex;
	gap: 20px;
	justify-content: space-between;
}

.nexdirectory-pro-boost-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.nexdirectory-pro-boost-card {
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	display: grid;
	gap: 14px;
	padding: 16px;
}

.nexdirectory-pro-boost-card__top {
	align-items: flex-start;
	display: flex;
	gap: 12px;
	justify-content: space-between;
}

.nexdirectory-pro-boost-card h3 {
	font-size: 16px;
}

.nexdirectory-pro-boost-card h3 a {
	color: inherit;
	text-decoration: none;
}

.nexdirectory-pro-boost-card h3 a:hover {
	color: #4f46e5;
}

.nexdirectory-pro-boost-card__top p {
	color: #6b7280;
	font-size: 12px;
	margin: 4px 0 0;
}

.nexdirectory-pro-status {
	background: #f3f4f6;
	border-radius: 999px;
	color: #4b5563;
	font-size: 11px;
	font-weight: 700;
	padding: 5px 9px;
}

.nexdirectory-pro-status.is-active {
	background: #ecfdf5;
	color: #047857;
}

.nexdirectory-pro-boost-form {
	display: grid;
	gap: 12px;
}

.nexdirectory-pro-history {
	border-top: 1px solid #e5e7eb;
	padding-top: 18px;
}

.nexdirectory-pro-history > h3 {
	font-size: 16px;
	margin-bottom: 12px;
}

.nexdirectory-pro-table-wrap {
	overflow-x: auto;
}

.nexdirectory-pro-table-wrap table {
	border-collapse: collapse;
	font-size: 13px;
	min-width: 580px;
	width: 100%;
}

.nexdirectory-pro-table-wrap th,
.nexdirectory-pro-table-wrap td {
	border-bottom: 1px solid #e5e7eb;
	padding: 11px 10px;
	text-align: left;
}

.nexdirectory-pro-table-wrap th {
	color: #6b7280;
	font-size: 11px;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.nexdirectory-pro-table-wrap a {
	color: #4338ca;
	font-weight: 650;
	text-decoration: none;
}

.nexdirectory-pro-empty-state {
	background: #f9fafb;
	border: 1px dashed #d1d5db;
	border-radius: 12px;
	padding: 18px;
}

.nexdirectory-pro-empty-state strong {
	color: #111827;
}

.nexdirectory-pro-empty-state p {
	color: #6b7280;
	font-size: 13px;
	margin: 5px 0 0;
}

.nexdirectory-pro-metric-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.nexdirectory-pro-metric-grid article {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	display: grid;
	gap: 6px;
	padding: 14px;
}

.nexdirectory-pro-metric-grid span {
	color: #6b7280;
	font-size: 12px;
}

.nexdirectory-pro-metric-grid strong {
	color: #111827;
	font-size: 22px;
}

.nexdirectory-pro-export-actions,
.nexdirectory-pro-inline-actions,
.nexdirectory-pro-copy-row {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nexdirectory-pro-copy-row input {
	flex: 1 1 280px;
}

.nexdirectory-pro-ticket-summary {
	align-items: center;
	color: #4b5563;
	display: flex;
	flex-wrap: wrap;
	font-size: 12px;
	gap: 7px;
	margin-top: 8px;
}

.nexdirectory-pro-ticket-summary code {
	background: #f3f4f6;
	border-radius: 6px;
	color: #374151;
	padding: 3px 6px;
}

body.nexdirectory-pro-dialog-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.nexdirectory-pro-form-grid {
		grid-template-columns: 1fr;
	}

	.nexdirectory-pro-panel__heading--split {
		display: grid;
	}

	.nexdirectory-pro-dialog__header,
	.nexdirectory-pro-checkout-form {
		padding: 18px;
	}

	.nexdirectory-pro-export-actions > button {
		flex: 1 1 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nexdirectory-pro-dialog[open] {
		animation: none;
	}

	.nexdirectory-pro-ticket-cta,
	.nexdirectory-pro-primary-button,
	.nexdirectory-pro-secondary-button,
	.nexdirectory-pro-danger-button {
		transition: none;
	}
}
