/* ==========================================================================
   WLSM Admin Styles
   ========================================================================== */

/* Status badges — never rely on color alone; always include text label */
.wlsm-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
}

.wlsm-status-active {
	background: #d4edda;
	color: #155724;
}

.wlsm-status-grace {
	background: #fff3cd;
	color: #856404;
}

.wlsm-status-revoked {
	background: #e2e3e5;
	color: #383d41;
}

.wlsm-status-expired {
	background: #e2e3e5;
	color: #383d41;
}

/* Global dashboard action buttons */
.wlsm-global-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* Product settings panel */
#wlsm_product_data .options_group {
	padding: 12px 0;
}

#wlsm_product_data .form-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

/* Confirmation page (My Account → Licenses → confirm) */
.wlsm-confirm-wrap {
	max-width: 480px;
}

.wlsm-confirm-wrap h2 {
	margin-bottom: 16px;
}

.wlsm-inactive-notice {
	color: #6c757d;
	font-style: italic;
	font-size: 13px;
}

/* WooCommerce Subscriptions status badges in the Licenses list table.
   WCS admin CSS isn't loaded on our page, so we define the colors here.
   Color values match WooCommerce Subscriptions' own admin stylesheet. */
mark.order-status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
}

mark.order-status span {
	display: inline;
}

mark.order-status.status-active {
	background: #c6e1c6;
	color: #5b841b;
}

mark.order-status.status-on-hold {
	background: #f8dda7;
	color: #94660c;
}

mark.order-status.status-pending-cancel {
	background: #f8dda7;
	color: #94660c;
}

mark.order-status.status-cancelled,
mark.order-status.status-expired {
	background: #eba3a3;
	color: #761919;
}

mark.order-status.status-pending {
	background: #e5e5e5;
	color: #777;
}

/* Inline notice within product settings panel */
#wlsm_product_data .notice {
	margin: 8px 0;
	padding: 8px 12px;
}
