/* Ticket Type Redesign */
.mpwem-ticket-cards-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 20px;
}

/* Action Bar */
.mpwem-ticket-action-bar {
	display: flex;
	align-items: center;
	padding: 12px 24px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	margin-bottom: 20px;
}

.mpwem-ticket-action-bar__item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.mpwem-ticket-action-bar__item label {
	margin: 0;
	font-size: 11px;
	font-weight: 800;
	color: #64748b;
	letter-spacing: 0.05em;
}

.mpwem-ticket-action-bar__divider {
	width: 1px;
	height: 24px;
	background: #e2e8f0;
	margin: 0 24px;
}

/* Global Card */
.mpwem-ticket-global-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.mpwem-ticket-global-card__content {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 24px;
}

/* Ticket Card */
.mpwem-ticket-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 0;
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
}

.mpwem-ticket-card:hover {
	border-color: var(--mpwem-primary);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mpwem-ticket-card__main {
	display: grid;
	grid-template-columns: minmax(200px, 1.5fr) 100px 100px 120px minmax(200px, 1.2fr) 60px;
	gap: 20px;
	padding: 24px;
	align-items: flex-start;
}

/* Group Layouts */
.mpwem-ticket-card__group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mpwem-ticket-card__identity {
	gap: 12px;
}

.mpwem-ticket-card__locked-name {
	font-size: 16px;
	font-weight: 700;
	color: #1e293b;
	padding: 8px 0;
}

.mpwem-card-label {
	font-size: 10px;
	font-weight: 800;
	color: #94a3b8;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin: 0;
}

.mpwem-card-sub-label {
	font-size: 11px;
	color: #64748b;
	margin-top: 4px;
}

/* Inputs */
.mpwem-card-input {
	width: 100%;
	height: 40px;
	padding: 8px 12px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 13px;
	color: #1e293b;
	transition: all 0.2s ease;
}

.mpwem-card-input:focus {
	border-color: var(--mpwem-primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mpwem-card-input--large {
	font-size: 16px;
	font-weight: 700;
	height: 44px;
}

.mpwem-card-input--small {
	width: 60px;
	text-align: center;
}

.mpwem-card-input-wrapper {
	position: relative;
}

.mpwem-card-input-wrapper--currency::before {
	content: '$';
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #64748b;
	font-weight: 600;
	font-size: 13px;
}

.mpwem-card-input-wrapper--currency .mpwem-card-input {
	padding-left: 28px;
}

/* Row & Tag Layouts */
.mpwem-card-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mpwem-card-tag {
	font-size: 9px;
	font-weight: 800;
	color: #3b82f6;
	background: #eff6ff;
	padding: 2px 6px;
	border-radius: 4px;
	letter-spacing: 0.05em;
	white-space: nowrap;
}

.mpwem-card-tag:last-child {
	color: #0891b2;
	background: #ecfeff;
}

/* Sale Period */
.mpwem-card-date-wrapper {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.mpwem-card-date-wrapper .mpwem-date-input-wrap {
	width: 100% !important;
}

.mpwem-card-time-field {
	width: 100%;
}

.mpwem-card-time-field input {
	width: 100%;
	height: 40px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 0 12px;
}

/* Actions */
.mpwem-ticket-card__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
	padding-top: 4px;
}

.mpwem-ticket-card__action-btn {
	background: transparent;
	border: none;
	color: #94a3b8;
	cursor: pointer;
	padding: 8px;
	border-radius: 6px;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mpwem-ticket-card__action-btn:hover {
	background: #f1f5f9;
	color: #64748b;
}

.mpwem-ticket-card__action-btn--danger:hover {
	background: #fef2f2;
	color: #ef4444;
}

.mpwem_sortable_button {
	cursor: grab;
	display: flex;
	gap: 2px;
}

.mpwem_sortable_button:active {
	cursor: grabbing;
}

/* Footer */
.mpwem-ticket-footer {
	margin-top: 32px;
	display: flex;
	justify-content: flex-start;
}

.mpwem-add-ticket-btn,
.mpwem_add_item {
	background: var(--mpwem-btn-primary-bg, #2563eb);
	color: var(--mpwem-btn-primary-text, #ffffff);
	border: none;
	font-weight: 600;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	padding: 8px 16px;
	border-radius: 8px;
	transition: all 0.2s ease;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.mpwem-add-ticket-btn:hover,
.mpwem_add_item:hover {
	background: var(--mpwem-btn-primary-hover, #1d4ed8);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

/* Hide Table Layout Hint */
.mpwem-ticket-table-hint {
	display: none;
}

/* Modal Specific Adjustments */
#mpwem_ticket_modal_mount .mpwem-ticket-modal__inline-actions {
	display: none; /* Hide old inline actions */
}

#mpwem_ticket_modal_mount .mpwem-ticket-modal__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px 32px;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
}
