/**
 * ilGhera Contributo RAEE for WooCommerce - Admin Styles
 *
 * @author ilGhera
 * @package ilghera-contributo-raee-for-woocommerce
 * @since 1.0.0
 */

/* Settings page */
.icrfw-settings {
	max-width: 1200px;
}

.icrfw-settings h1 {
	margin-bottom: 20px;
}

.icrfw-premium-key-table {
	background: #fff;
	padding: 15px;
	border: 1px solid #c3c4c7;
	margin-bottom: 20px;
}

.icrfw-premium-key-table th {
	width: 150px;
}

/* Tabs */
.icrfw-settings .nav-tab-wrapper {
	margin-bottom: 20px;
}

.icrfw-tab-content {
	background: #fff;
	padding: 20px;
	border: 1px solid #c3c4c7;
	border-top: none;
}

/* Info box */
.icrfw-info-box {
	background: #f0f7fc;
	border: 1px solid #c3daea;
	border-radius: 4px;
	padding: 15px 20px;
	margin-top: 20px;
}

.icrfw-info-box h4 {
	margin-top: 0;
	color: #0073aa;
}

.icrfw-info-box table {
	margin-top: 10px;
}

/* Rates table */
.icrfw-rates-table {
	margin-top: 20px;
}

.icrfw-rates-table th,
.icrfw-rates-table td {
	vertical-align: middle;
}

.icrfw-rates-table .button-small {
	margin: 2px;
}

.icrfw-rates-table .button-link-delete {
	color: #b32d2e;
}

.icrfw-rates-table .button-link-delete:hover {
	color: #a00;
	border-color: #a00;
}

/* Rate form */
.icrfw-rate-form-container {
	background: #f9f9f9;
	padding: 15px 20px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.icrfw-rate-form-container h4 {
	margin-top: 0;
}

/* Product list RAEE column */
.column-raee {
	width: 80px;
}

.icrfw-category-badge {
	display: inline-block;
	background-color: #0073aa;
	color: #fff;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 600;
}

.icrfw-category-badge[data-category="R1"] {
	background-color: #2271b1;
}

.icrfw-category-badge[data-category="R2"] {
	background-color: #00a32a;
}

.icrfw-category-badge[data-category="R3"] {
	background-color: #d63638;
}

.icrfw-category-badge[data-category="R4"] {
	background-color: #dba617;
}

.icrfw-category-badge[data-category="R5"] {
	background-color: #8c5e58;
}

.icrfw-exempt-badge {
	display: inline-block;
	background-color: #787c82;
	color: #fff;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 11px;
}

.icrfw-no-category {
	color: #999;
}

/* Product edit RAEE tab */
#raee_product_data .options_group {
	padding: 15px;
}

#raee_product_data .icrfw-current-rate {
	background: #f0f7fc;
	padding: 10px 15px;
	border-radius: 4px;
}

#raee_product_data .icrfw-rate-display {
	font-weight: 600;
	color: #0073aa;
}

/* Order RAEE data */
.icrfw-order-data {
	margin-top: 20px;
	padding: 15px;
	background: #f8f9fa;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.icrfw-order-data h3 {
	margin-top: 0;
	color: #0073aa;
}

.icrfw-order-data table {
	margin-top: 10px;
}

/* Takeback admin */
.icrfw-takeback-admin-info {
	margin-top: 20px;
	padding: 15px;
	background: #f0f7fc;
	border: 1px solid #c3daea;
	border-radius: 4px;
}

.icrfw-takeback-admin-info h3 {
	margin-top: 0;
	color: #0073aa;
	display: flex;
	align-items: center;
	gap: 8px;
}

.icrfw-takeback-admin-info ul {
	margin: 10px 0 0 20px;
}

.icrfw-takeback-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 500;
}

/* Alert styling */
.icrfw-alert {
	color: #b32d2e;
}

/* Responsive */
@media screen and (max-width: 782px) {
	.icrfw-tab-content {
		padding: 15px;
	}

	.icrfw-rate-form-container {
		padding: 10px 15px;
	}

	.column-raee {
		width: 60px;
	}
}
