/**
 * Andreani — Panel de bultos adicionales en ficha de producto.
 *
 * Todo el CSS está scoped en .andreani-bultos-section para evitar leaks
 * hacia otros plugins o hacia el admin de WooCommerce.
 */

/* ============================================
   Wrapper + Header
   ============================================ */

#woocommerce-product-data .andreani-bultos-section {
	padding: 8px 12px !important;
	border-top: 1px solid #e0e0e0;
	margin-top: 8px;
}

.andreani-bultos-section .andreani-bultos-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 6px;
	gap: 12px;
}

.andreani-bultos-section .andreani-bultos-title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 14px;
	color: #1d2327;
}

.andreani-bultos-section .andreani-bultos-logo {
	height: 22px;
	width: 22px;
	display: inline-block;
	flex-shrink: 0;
}

/* ============================================
   Badge informativo (Bigger / Paquete común)
   ============================================ */

.andreani-bultos-section .andreani-bultos-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	line-height: 1.4;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.andreani-bultos-section .andreani-bultos-badge--regular {
	background: #e5e5e5;
	color: #555;
}

.andreani-bultos-section .andreani-bultos-badge--bigger {
	background: #d5e9d6;
	color: #1d6b2d;
}

/* ============================================
   Toggle checkbox
   ============================================ */

.andreani-bultos-section .andreani-bultos-toggle-field {
	display: flex;
	align-items: center;
	margin: 0 0 8px;
}

.woocommerce_options_panel .andreani-bultos-section .andreani-bultos-toggle-field label {
	display: inline-flex !important;
	align-items: center;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	font-weight: 600;
	font-size: 13px;
	color: #333;
	cursor: pointer;
}

.woocommerce_options_panel .andreani-bultos-section .andreani-bultos-toggle-field input[type="checkbox"] {
	width: auto !important;
	margin: 0 6px 0 0 !important;
	float: none !important;
}

/* ============================================
   Contenido colapsable del repeater
   ============================================ */

.andreani-bultos-section #andreani-bultos-content {
	display: none;
	padding-top: 8px;
}

.andreani-bultos-section #andreani-bultos-content.active {
	display: block;
}

.andreani-bultos-section .andreani-bultos-help {
	color: #666;
	font-size: 12px;
	margin: 0 0 10px;
}

/* ============================================
   Filas de bultos (repeater)
   ============================================ */

#woocommerce-product-data .andreani-bultos-section .andreani-bulto-row {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	margin-bottom: 8px;
	padding: 8px;
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 3px;
}

#woocommerce-product-data .andreani-bultos-section .andreani-bulto-row label {
	display: flex;
	flex-direction: column;
	font-size: 12px;
	color: #555;
	flex: 1;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}

#woocommerce-product-data .andreani-bultos-section .andreani-bulto-row input[type="number"] {
	width: 100% !important;
	margin-top: 2px;
	float: none;
	min-height: 0;
}

#woocommerce-product-data .andreani-bultos-section .andreani-bulto-label {
	font-weight: 600;
	font-size: 12px;
	min-width: 55px;
	color: #333;
	align-self: center;
}

#woocommerce-product-data .andreani-bultos-section .andreani-remove-bulto {
	color: #a00 !important;
	border-color: #a00 !important;
	font-size: 16px;
	line-height: 1;
	padding: 2px 8px !important;
	min-height: 28px;
	cursor: pointer;
	flex-shrink: 0;
}

#woocommerce-product-data .andreani-bultos-section .andreani-remove-bulto:hover {
	background: #a00 !important;
	color: #fff !important;
}

#woocommerce-product-data .andreani-bultos-section #andreani-add-bulto {
	margin-top: 8px;
}
