/* ==========================================================================
   WooCommerce Geo Restriction — Admin Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Product panel
   -------------------------------------------------------------------------- */

.wgr-panel {
	padding: 16px 20px !important;
}

.wgr-panel-header {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e0e0e0;
}

.wgr-panel-header .dashicons {
	font-size: 22px;
	width: 22px;
	height: 22px;
	color: #2271b1;
	margin-top: 2px;
	flex-shrink: 0;
}

.wgr-panel-header h3 {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}

.wgr-panel-header .description {
	margin: 0;
	color: #646970;
	font-size: 12px;
	line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Field row
   -------------------------------------------------------------------------- */

.wgr-field-row {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	margin-bottom: 20px;
}

.wgr-label {
	flex-shrink: 0;
	width: 160px;
	font-weight: 600;
	font-size: 13px;
	color: #3c434a;
	padding-top: 6px;
}

.wgr-select-wrapper {
	flex: 1;
}

.wgr-select-wrapper .select2-container {
	width: 100% !important;
	max-width: 500px;
}

.wgr-select-wrapper .description {
	margin-top: 6px;
	color: #646970;
	font-size: 12px;
}

/* --------------------------------------------------------------------------
   Current restrictions badge list
   -------------------------------------------------------------------------- */

.wgr-current-restrictions {
	background: #f6f7f7;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 14px 16px;
	margin-top: 8px;
}

.wgr-current-restrictions h4 {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #646970;
}

.wgr-country-badges {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.wgr-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #fff;
	border: 1px solid #d63638;
	border-radius: 20px;
	padding: 3px 10px 3px 8px;
	font-size: 12px;
	color: #1d2327;
}

.wgr-badge-code {
	background: #d63638;
	color: #fff;
	border-radius: 10px;
	padding: 1px 5px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   Price override on front-end for restricted products
   -------------------------------------------------------------------------- */

.wgr-not-available {
	display: inline-block;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 4px;
	padding: 4px 10px;
	font-size: 13px;
	color: #664d03;
}

/* Single product page restriction notice — replaces the add-to-cart button */
.wgr-single-notice {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-left: 4px solid #e6a817;
	border-radius: 4px;
	padding: 12px 16px;
	font-size: 14px;
	color: #664d03;
	margin: 1em 0;
}

.wgr-single-notice::before {
	content: "⚠";
	font-size: 16px;
	flex-shrink: 0;
}
