/**
 * Pet Food Builder - Estilos Frontend
 */

 .cantidad-hidden {
        margin: 0px !important;
    padding: 0px !important;
 }
 .cantidad-hidden input {
    opacity: 0!important;
    height: 1px!important;
    
 }
 .wpforms-error {
    padding-top: 0px!important;
 }
.bsd-petfood-builder {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 15px;
	margin: 10px 0;
}

/* Formulario vertical - cada campo en su línea */
.bsd-petfood-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 15px;
}

.bsd-petfood-form > .bsd-petfood-field {
	width: 100%;
}

/* Campos del formulario */
.bsd-petfood-field {
	margin: 0;
}

.bsd-petfood-field label {
	display: block;
	font-weight: 500;
	margin-bottom: 8px !important;
	color: #555;
}

.bsd-petfood-field select,
.bsd-petfood-field input {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ddd;
	border-radius: 3px;
	background: #fff;
}

/* Selector de tipo de mascota - estilo botones horizontales */
.bsd-pet-type-selector {
	display: flex;
	gap: 8px;
	margin-top: 5px;
	flex-wrap: wrap;
}

.bsd-pet-option {
	cursor: pointer;
	margin: 0;
	display: inline-block;
}

.bsd-pet-option input[type="radio"] {
	margin: 0 8px 0 0;
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #2563eb;
}

.bsd-pet-card {
	border: 1.5px solid #d1d5db!important;
	border-radius: 8px!important;
	padding: 10px 16px!important;
	transition: all 0.2s ease;
	background: #fff!important;
	display: inline-flex;
	align-items: center;
	gap: 0;
	min-height: 44px;
	cursor: pointer;
}

/* Cuando está seleccionado - usar clase .checked */
.bsd-pet-card.checked {
	border-color: #2563eb;
	border-width: 2px;
	background: #eff6ff;
}

.bsd-pet-card.checked .bsd-pet-name {
	font-weight: 500;
	color: #1e40af;
}

.bsd-pet-card:hover {
	border-color: #2563eb;
	background: #f9fafb;
}

.bsd-pet-name {
	font-weight: 400;
	color: #374151;
	margin: 0;
	padding: 0;
	line-height: 1.4;
}

/* Lista de mascotas agregadas */
.bsd-petfood-items {
	margin: 10px 0;
}

/* Resumen del pedido */
.bsd-petfood-summary {
	margin-top: 15px;
	padding: 12px;
	background: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 3px;
}

.bsd-petfood-summary h4 {
	margin: 0 0 8px 0;
	color: #333 !important;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.bsd-summary-content {
	display: none;
}

.bsd-total-price {
	display: flex !important;
	justify-content: space-between;
	align-items: center;
	padding: 15px !important;
	margin: 10px -12px -12px -12px;
	background: #0073aa !important;
	color: white !important;
	border-radius: 0 0 3px 3px;
	min-height: 50px;
}

.bsd-total-price strong {
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600 !important;
	color: white !important;
}

.bsd-total-amount {
	color: white !important;
	font-weight: bold !important;
	line-height: 1;
}

/* Sabores sin stock */
.bsd-flavor-option.bsd-out-of-stock {
	opacity: 0.5;
	pointer-events: none;
	position: relative;
}

.bsd-flavor-option.bsd-out-of-stock .bsd-pet-card {
	background: #f5f5f5 !important;
	border-color: #ddd !important;
	cursor: not-allowed;
}

.bsd-flavor-option.bsd-out-of-stock .bsd-pet-name {
	color: #999;
	text-decoration: line-through;
}

.bsd-out-of-stock-badge {
	display: block;
	font-size: 10px;
	color: #f44336;
	font-weight: 600;
	margin-top: 2px;
	text-transform: uppercase;
}

.bsd-flavor-option:not(.bsd-out-of-stock) .bsd-out-of-stock-badge {
	display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
	.bsd-petfood-form {
		flex-direction: column;
		gap: 12px;
	}
	
	.bsd-petfood-form > .bsd-petfood-field {
		flex: none;
		width: 100%;
		min-width: 100%;
	}
	
	.bsd-pet-type-selector {
		flex-direction: row;
		gap: 8px;
	}
	
	.bsd-pet-card {
		padding: 12px 8px;
	}
	
	.bsd-total-price {
		flex-direction: column;
		gap: 8px;
		text-align: center;
		padding: 12px !important;
	}
}
